You likely just want to change the call from : xad.getCountyParishCode().toString(); to xad.getCountyParishCode().getValue()
From: Gillman, Matthew <m.gill...@ucl.ac.uk> Sent: Monday, January 28, 2019 10:01 AM To: hl7api-devel@lists.sourceforge.net Subject: [External] [HAPI-devel] Getting data values from CWE type Hi everyone I am having trouble extracting data values from the CWE type. For example, let’s suppose I have a PID segment with the following for PID-11 Patient Address: 35 Gilbert Avenue^^Harlow^^CM1 5QT^^^^Essex. // A fictitious address (I’m assuming the above is correct) In Java I say: String patientCounty; // patient county PID-11.9 patientCounty = xad.getCountyParishCode().toString(); System.out.println("county = " + patientCounty); The terminal output is: county = CWE[Essex] I want the “Essex” without the CWE bit at the front. I am also having trouble extracting things like InterpreterCode and Primary Language. Can someone give me an example, please? Thanks in advance Matthew -- EUR ING Matthew Gillman CEng MIET CSci MIScT MBCS Research Software Developer Research IT Services - Research Software Development Group Information Services Division University College London Telephone: 0203 108 8216 (internal: 58216) Email: m.gill...@ucl.ac.uk<mailto:m.gill...@ucl.ac.uk> orcid: https://orcid.org/0000-0002-2340-6930<https://urldefense.proofpoint.com/v2/url?u=https-3A__orcid.org_0000-2D0002-2D2340-2D6930&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=VnYhy7Qh2TPWQTwfje6NAvmntWXxxwhN_1pvCFqkOwE&m=lSKtH49o2pVxhAERbv4kD36RAH-hfr4l2tMlR4E4k-Q&s=pJPtaTI6RQkhhTrbnt2sWwa0BVTbt-SJR2X_GrnUwXg&e=> ________________________________ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy. ______________________________________________________________________________________ www.accenture.com
_______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel