From d01dcab68e935c98ad48860e74586935e258775d Mon Sep 17 00:00:00 2001 From: Pavel R Date: Fri, 8 Dec 2023 12:49:16 +0100 Subject: [PATCH] Change system for patient identifier Ref: https://github.com/beda-software/fhir-emr/issues/225 --- src/models/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/user.ts b/src/models/user.ts index cccb64c..f4ef6dc 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -10,7 +10,7 @@ export const UserModel = types return self.patient?.name?.[0] ? formatHumanName(self.patient.name[0]) : undefined; }, get appleUserId() { - return self.patient?.identifier?.find((i) => i.system === 'https://appleid.apple.com')?.value; + return self.patient?.identifier?.find((i) => i.system === 'https://ingest.emr.beda.software')?.value; }, })) .actions((self) => ({