Hi!

I’m a first-time user of the HAPI library (version 2.2) and am seeing some 
strange behaviour.

I’m parsing in an ADT A01 Hl7v2.4 message which has the following patient info 
section

                <hl7v2:PID.5>
                        <hl7v2:XPN.1>SMITH</hl7v2:XPN.1>
                        <hl7v2:XPN.2>FREDRICA</hl7v2:XPN.2>
                        <hl7v2:XPN.3>J</hl7v2:XPN.3>
                        <hl7v2:XPN.5>MRS</hl7v2:XPN.5>
                        <hl7v2:XPN.7>L</hl7v2:XPN.7>
                </hl7v2:PID.5>

When I parse the message using the DefaultHapiContext() with no validation() 
the XPN.1 value disappears. XPN.2, XPN.3, XPN.5, and XPN.7 are there still but 
XPN.1 isn’t.

I look across the rest of my message and see that all the XPN.1s and XAD.1s are 
missing.

What am I doing wrong? 

Thanks
Oli


Oliver Wilkie 
( 07854601573 | 2 uk.linkedin.com/in/owilkie  8 oliverwil...@gmail.com

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to