Skip to content

Commit

Permalink
fix issue of null obs
Browse files Browse the repository at this point in the history
  • Loading branch information
hadijahkyampeire committed May 31, 2024
1 parent a029805 commit fe90e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/esm-commons-lib/src/utils/encounter-list-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function getObsFromEncounter(encounter, obsConcept, isDate?: Boolean, isT
const obs = findObs(encounter, obsConcept);

if (isTrueFalseConcept) {
if (obs.value.uuid == 'cf82933b-3f3f-45e7-a5ab-5d31aaee3da3') {
if (obs?.value?.uuid == 'cf82933b-3f3f-45e7-a5ab-5d31aaee3da3') {
return 'Yes';
} else {
return 'No';
Expand Down

0 comments on commit fe90e93

Please sign in to comment.