From: Tripp, B. <Bry...@uh...> - 2005-02-23 22:23:52
|
Hi Eric,=20 =20 There are a few things here: 1) The O01 event has a number of = alternative structures associated with it, which makes it impossible to choose the "right" message structure based on the event alone (I'm not aware of any other events like this). HAPI defaults to RDO. There are two ways you = can deal with this. If possible, specify the message structure in MSH-9-3 as ORM_O01. The other way is to change the default mapping in = parser.event_map from the RDO to the ORM structure. =20 =20 2) HAPI's XML support doesn't handle unexpected segments. (This is on = the list of things to do but hasn't been a priority, because few people seem = to use XML.) If the RDO structure is used, your OBR segment looks like an unexpected one, and the XML parser ignores it. =20 =20 3) I don't have the specs with me (I'm not at work today), but is LAT = part of the ORM structure? If not it will be seen as unexpected in any case, = and will be ignored by the XML parser. To address this you would have to customize the ORM_O01 class (not difficult ... just one line of code = added to the constructor). =20 =20 Bryan=20 ________________________________ From: hl7...@li... on behalf of Eric Freed Sent: Wed 23/02/2005 3:28 PM To: hl7...@li... Subject: [HAPI-devel] ORM 001 and XML Hi, I am having a problem that I think is related to a problem that has been brought up here a few times, but I am not sure of the answer. In the course of testing I tried to have a message go from regular encoding, to XML and then back. However, the final message is not the same as the first one: First message: ---------------------------------------------------------- MSH|^~\&|ADS|LL|PSCRIBE||200209181134||ORM^O01|2|P|2.3 PID|||263334||SMITH^JOHN||19471112|M|||ADDRESS^^CITY^ST||(914)633-7700|||= ||2 63334|123-45-6789 ORC|NW|LL02-194182||||||||||455^JONES^JOHN OBR||LL02-194182|(963)232-25AF|71020^CHEST PA LAT||20020920||||||||||455^JONES^JOHN|(914)632-9422 ---------------------------------------------------------- returned message: ---------------------------------------------------------- MSH|^~\&|ADS|LL|PSCRIBE||200209181134||ORM^O01|2|P|2.3 PID|||263334||SMITH^JOHN||19471112|M|||ADDRESS^^CITY^ST||(914)633-7700|||= ||2 63334|123-45-6789 ORC|NW|LL02-194182||||||||||455^JONES^JOHN ------------------------------------------------------------ The OBR segment is missing. When I look at the XML, it starts with = <RDO_O01> I know the RDO^O01 and ORM^O01 issue has been brought up here, but I didn't see a solution and don't know if it would cause the problem = above. Any advice? Thanks, -- Eric Freed IT Manager New Rochelle Radiology 914-633-7700 x339 ------------------------------------------------------- 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. http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |