Skip to content

Commit

Permalink
8556 r50 first and second names concatenated before submission to Max…
Browse files Browse the repository at this point in the history
…imus (#169)
  • Loading branch information
prit-cgi authored Jan 26, 2023
1 parent 45627c4 commit 72836f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ public static void setPidValues(PID pid, String patientId, String patientIdAssig
*/
public static void setZiaValues(ZIA zia, String bcResidencyDate, String surname, String firstGivenName, String secondGivenName, String telephone, String immigrationOrVisaCode, String priorResidenceCode) throws HL7Exception {
//e.g. ZIA||20210101|||||||||||||HELP^RERE^^^^^L|898 RETER ST^^^^^^^^^^^^^^^^^^^VICTORIA^BC^V8V8V8^^H~123 UIYUI ST^^^^^^^^^^^^^^^^^^^VICTORIA^BC^V8V8V8^^M|^PRN^PH^^^250^8578974|||||||S|AB^M
String givenName = firstGivenName + secondGivenName;
String areaCode = null;
String phoneNumber = null;

zia.getZia2_BCResidencyDate().parse(bcResidencyDate);
zia.getZia15_ExtendedPersonName().parse(surname);
zia.getZia15_ExtendedPersonName().getGivenName().parse(givenName);
zia.getZia15_ExtendedPersonName().getGivenName().parse(firstGivenName);
zia.getZia15_ExtendedPersonName().getXpn3_SecondAndFurtherGivenNamesOrInitialsThereof().parse(secondGivenName);
zia.getZia15_ExtendedPersonName().getNameTypeCode().parse("L");;

if(StringUtils.isNotBlank(telephone)) {
Expand Down

0 comments on commit 72836f7

Please sign in to comment.