Skip to content

Commit

Permalink
POC-635 : Patient relationship bug (#1706)
Browse files Browse the repository at this point in the history
* Patient relationship bug

* Patient relationship bug
  • Loading branch information
Alfred-Mutai authored Jan 26, 2024
1 parent 1127c3d commit b6ab85e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class LocatorPrettyViewerComponent implements OnInit {
}
}
this.mappedAttributes = this.generateMappings(this.data);
console.log('mappedAttributes', this.mappedAttributes);
}

generateMappings(data: any) {
Expand All @@ -46,7 +45,9 @@ export class LocatorPrettyViewerComponent implements OnInit {
for (const item of data[type]) {
if (type === 'obs' && item.concept.name.display) {
mappings[type][item.concept.name.display] =
item.value.display || item.value;
item.value && item.value.display
? item.value.display
: item.value || null;
} else if (type === 'attributes' && item.display) {
const parts = item.display.split('=');
if (parts.length === 2) {
Expand Down

0 comments on commit b6ab85e

Please sign in to comment.