Hi Tom,
The SIU_S12_.. structure is actually a segment group. Chapter 3 of the HL7=
=20
spec defines the SIU messages as containing the following structure:=20
[ { PID [PD1] [PV1] [PV2] [{OBX}] [{DG1}] } ]
which basically means that the entire chunk of segments is optional (as=20
indicated by the surrounding [ ]) and can repeat as a group (as indicated b=
y=20
the surrounding { }).
To access the PID segment, use notation like:
terser.get("/SIU_S12_PIDPV1PV2OBXDG1/PID-3");
This long name actually maps to a HAPI class by the same name.
Does this make sense?
Cheers,
James Agnew
On November 9, 2005 2:22 pm, twh...@th... wrote:
> Hi,
>
> HL7 2.3
> HAPI 0.4.3
>
> Have been HAPIly consuming and processing ADTs successfully for 6 months.
> Great package.
>
> Am now adding SIUs (S12, S14, etc) to the mix.
>
> Was suprised when a simple call to terser.get("PID-3") blew up with the
> infamous "Can't find PID as direct child" exception.
>
> I debug and find that the terser has childNames such as MSH, SCH, NTE
> and...
>
>=20
>
> What is this? What HAPI class does it map to?
>
> Do I need to use the SIU_S12.... string somehow in the terser.get() call?
>
> From a quick review of the messages on this list, it appears so. What I
> haven't been able to find is a document describing this notation and the
> reason for it.
>
> Is there a description doc available?
>
> Also, why when I get a SIU^S14 packet, does the same SIU_S12... childName
> show up.
>
> Thanks in advance for any insight or doc,
>
> Tom
>
> Senior Consulting Engineer
> The Java Team Corporation
>
> Specializing in:
> * Domain Modeling
> * Software Architecture Analysis and Assessment
> * Performance Analysis and Remediation
> * Enterprise Application Development and Integration
>
> http://www.thejavateam.com
>
> (Cell) 978-360-2636
> (Fax) 978-692-2396
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Hl7api-devel mailing list
> Hl7...@li...
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
|