From caee46fd9bfeb2bd5440e0ce623da372229779b2 Mon Sep 17 00:00:00 2001 From: Amy Chen Date: Wed, 31 Jan 2024 15:24:53 -0800 Subject: [PATCH] Patient: add period to telecom field --- src/model/Patient.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/model/Patient.ts b/src/model/Patient.ts index 905645d..ba0e381 100644 --- a/src/model/Patient.ts +++ b/src/model/Patient.ts @@ -16,6 +16,7 @@ import { IPatient_Communication, IPatient_Contact, IPatient_Link, + IPeriod, IReference, IResourceList, PatientGenderKind @@ -86,7 +87,13 @@ export default class Patient implements IPatient { )[0]; if (!smsContactPoint) { - smsContactPoint = { system: ContactPointSystemKind._sms }; + const smsPeriod: IPeriod = { + start: new Date().toISOString(), + }; + smsContactPoint = { + system: ContactPointSystemKind._sms, + period: smsPeriod, + }; this.telecom.push(smsContactPoint); }