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