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



_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to