From d93660b0e892613d5315d11fa5e20308aba680c9 Mon Sep 17 00:00:00 2001 From: b123400 Date: Thu, 12 Dec 2024 22:31:57 +0900 Subject: [PATCH] Add more info to ePrescription patient --- HINClient/MLePrescriptionPrepareWindowController.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/HINClient/MLePrescriptionPrepareWindowController.m b/HINClient/MLePrescriptionPrepareWindowController.m index 3c3ddeb..e490cba 100644 --- a/HINClient/MLePrescriptionPrepareWindowController.m +++ b/HINClient/MLePrescriptionPrepareWindowController.m @@ -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