I am having a brain freeze for some reason understanding an HL7 concept. And would appreciate some assistance. Basically I need to grab data from the 9th component of a PID 3 and I don't have a sample message.
Per the HL7 SPEC (for version 2.5.1 this PID-3 is of type CX and is composed of 10 components. PID-3.1.9 (9TH component of this field is of type CWE which according to the spec has 10 elements). Is this the same thing as a subcomponent?
If I have a field lets say PID-3.9 (meaning the 9th component of the third field of the pid segment) and I wanted to access/reference by name all the parts to that 9th component is this how it the hl7 message would look?
PID|1|||^^^^^^^^MIA&ATL&CVG&DFT&CUN&DTW&BWI&JFK^
First of all, I want to suggest that you use a HL7 2.x parser for message / field addressing. You can use HAPI Test Panel:
You can reach and install HAPI Test Panel at http://hl7api.sourceforge.net/hapi-testpanel/install.html
Sample view of HAPI Test Panel and subcomponents of PID-3-9
With HAPI Test Panel you can see data types of components or subcomponents.
Here is the sample message for HL7 v2.5.1: You can find PID-3-9[1-9] in this message.