Skip to content

Commit

Permalink
(fix) handles error incase patient MRN is null
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-icap committed Nov 14, 2023
1 parent 7870284 commit e569588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom-expressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ export async function getIdentifier(patient, identifierType) {
const identifierValue = patient?.identifier?.find(
(e) => e.id === identifierType
);
return identifierValue.value;
return identifierValue?.value;
}

0 comments on commit e569588

Please sign in to comment.