From: <twh...@th...> - 2005-11-10 14:00:27
|
Nico, Thanks. Yes, I figured that out after I dug a little deeper. The problem I'm still having is how to navigate the structures to get the value, say what with an ADT packet I'd get by doing this: String sMRN = terser.get("PID-3"); I've tried numerous combinations, but may be simply missing on the path syntax or maybe I need to use other classes, Groups, Segments, etc to get to the actual string value(s) I need. What is the call sequence or path string to get() to return the MRN? Thanks in advance for your help, Tom ni...@sk... writes: > Hi Tom, > > The reason why you get this exception is because the PID segment is part of a group (PATIENT) in the SIU_S12 structure. > > You can easily see this in the message structure description in the hl7 standard doc. > > If you don't have access to the hl7 standard doc you could download the hl7 conformance tool called Messaging Workbench which contains a list of the structures from > > http://www.hl7.org/lib_admin/docs.cfm?dir=library/committees/conf&comm=conf > > Best Regards > > Nico > > > > > Hi, HL7 2.3HAPI 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... SIU_S12_PIDPV1PV2OBXDG1 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 EngineerThe 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. Downloadit for free - -and be entered to win a 42\" plasma tv or your very ownSony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php_______________________________________________Hl7api-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/hl7api-devel 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 |