Skip to content

Commit

Permalink
Merge pull request #180 from b123400/more-eprescription-patient
Browse files Browse the repository at this point in the history
  • Loading branch information
zdavatz authored Dec 12, 2024
2 parents ea1f2fd + 0d17398 commit eaab9f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions AmiKoDesitin/Prescription.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ - (NSData *)ePrescription {
@"FName": self.patient.givenName ?: @"",
@"LName": self.patient.familyName ?: @"",
@"BDt": [self formatBirthdayForEPrescription: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 ?: @"",
},
@"Medicaments": items,
@"MedType": @3, // Prescription
Expand Down

0 comments on commit eaab9f7

Please sign in to comment.