From: Tripp, B. <Bry...@uh...> - 2004-12-14 18:31:10
|
Hi Archie,=20 HAPI indeed won't give you what you want if the message doesn't have the core structure that it declares in MSH-9, which is fine (and I think unavoidable), but I agree that it should try to fail in that case. It's hard to tell legal local additions from a structural problem ... the = only way I can think to do this is to fail if the resulting message is = missing required segments. If you can think of a better way please let me know. But are you saying that a PV1 got parsed into an NK1? That would be a = bug that I don't know about. =20 Thanks,=20 Bryan=20 > -----Original Message----- > From: hl7...@li... > [mailto:hl7...@li...]On Behalf Of Archie > Cobbs > Sent: December 13, 2004 5:00 PM > To: hl7...@li... > Subject: [HAPI-devel] ADT^A13 bad parse >=20 >=20 >=20 > We received an ADT^A13 message that has "2.2" in the MSH.12 field, > but contained these segments: MSH EVN PID PD1 NK1 PV1 PV2 OBX AL1 > DG1 DG1 GT1 IN1 IN2 .. >=20 > Note that the ability to include the "PD1" segment was added in 2.3. > So technically this is a bogus message because it says "2.2" but has > a PD1 segment (right?). >=20 > In any case, HAPI happily parses this message but the resulting XML > contains information in the wrong places, etc. For example, the PV1.3 > information ends up in ADT_A13.IN1IN2IN3/NK1/NK1.40. >=20 > So although it's nice that HAPI handles this message at all, it seems > like it doesn't do so very gracefully. Is this the intended behavior? >=20 > Could HAPI be configured to try a later version of the spec if the > message doesn't parse correctly, instead of putting things in the > wrong field? It seems like in practice the MSH.12 field is sometimes > just more of a hint than reality. >=20 > Thanks, > -Archie >=20 > ______________________________________________________________ > ____________ > Archie Cobbs * CTO, Awarix * =20 http://www.awarix.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.=20 http://productguide.itmanagersjournal.com/ _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |