diff --git a/packages/esm-commons-lib/src/utils/encounter-list-utils.ts b/packages/esm-commons-lib/src/utils/encounter-list-utils.ts index f3c7d9efd..d7d8ba440 100644 --- a/packages/esm-commons-lib/src/utils/encounter-list-utils.ts +++ b/packages/esm-commons-lib/src/utils/encounter-list-utils.ts @@ -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';