Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8556 r50 1st and 2nd names concatenated before submission to Maximus #169

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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