Skip to content

Commit

Permalink
Merge pull request #282 from b123400/more-eprescription-patient
Browse files Browse the repository at this point in the history
Add more info to ePrescription patient
  • Loading branch information
zdavatz authored Dec 12, 2024
2 parents 98d3111 + d93660b commit 2d3c58a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions HINClient/MLePrescriptionPrepareWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ - (NSString *)preparePrescriptionFile {
@"FName": self.patient.givenName ?: @"",
@"LName": self.patient.familyName ?: @"",
@"BDt": [self formatBirthday:self.patient.birthDate] ?: @"",
@"Gender": [self.patient.gender isEqual:@"man"] ? @1 : [self.patient.gender isEqual:@"woman"] ? @2 : [NSNull null],
@"Street": self.patient.postalAddress ?: @"",
@"Zip": self.patient.zipCode ?: @"",
@"City": self.patient.city ?: @"",
@"Lng": [NSLocale systemLocale].localeIdentifier ?: @"",
@"Phone": self.patient.phoneNumber ?: @"",
@"Email": self.patient.emailAddress ?: @"",
@"Rcv": self.patient.insuranceGLN ?: @"",
},
@"Medicaments": items,
@"MedType": @3, // Prescription
Expand Down

0 comments on commit 2d3c58a

Please sign in to comment.