Skip to content

Commit

Permalink
Patient: add period to telecom field
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen authored and Amy Chen committed Jan 31, 2024
1 parent 5a860d4 commit caee46f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/model/Patient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
IPatient_Communication,
IPatient_Contact,
IPatient_Link,
IPeriod,
IReference,
IResourceList,
PatientGenderKind
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit caee46f

Please sign in to comment.