From: Eric F. <ef...@ne...> - 2005-02-24 14:14:09
|
In reverse order: 3) LAT is not part of the ORM structure, it is an artifact of the segment being wrapped by the email: OBR||LL02-194182|(963)232-25AF|71020^CHEST PA LAT||20020920||||||||||455^JONES^JOHN|(914)632-9422 is one line with "|71020^CHEST PA LAT|" being field 5 2) OK. I wanted to use XML to do various transformations with XSLT...but if people don't use the XML much perhaps there is a reason and I should consider do the transformation in pure Java. 1) Perhaps I don't know as much as I thought, but how can I specify the message structure more explicitly than have ORM^O01 as MSH-9? And what is MSH-9-3, I have only seen two subfields in MSH-9, not three. Perhaps I am misunderstanding. Many Thanks Tripp, Bryan wrote: > Hi Eric, > > 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. > > 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. > > 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). > > Bryan > > ________________________________ > > 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=6595&alloc_id=14396&op=click > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > ------------------------------------------------------- > 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_ide95&alloc_id396&op=click > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel -- Eric Freed IT Manager New Rochelle Radiology 914-633-7700 x339 |