From: Tripp, B. <Bry...@uh...> - 2003-09-18 20:33:36
|
Hi Vishal, Yes, people put messages in files in all kinds of wierd ways. How about scanning the file using some kind of regular expression that will find messages amid arbitrary content. Like this maybe: MSH(.).*\r\n?([A-Z]{3}\1.*\r\n?)* (I don't know if that one will work -- just trying to illustrate). Or you could hack the MLLP code to use delimiters that you set at run time. I think I did that once. If I remember correctly there was some trick to using escape sequences outside of Java source (you would want to do this so you could easily type them into a config file or on the command line using characters you have on your keyboard). Nope, it's not coming to me. Bryan -----Original Message----- From: Vishal Abrol [mailto:va...@ve...] Sent: September 18, 2003 6:18 AM To: 'Tripp, Bryan' Subject: RE: [HAPI-devel] New HAPI user Yes, messages in the file. Whenever we develop interface for somebody, usually they send us the files as a specification. Would that be different? Vishal -----Original Message----- From: Tripp, Bryan [mailto:Bry...@uh...] Sent: Thursday, September 18, 2003 10:56 PM To: 'Vishal Abrol' Subject: RE: [HAPI-devel] New HAPI user Hi Vishal, Vishal Answer: Really? I am actually surprised. Since yesterday I collected six sets of HL messages from some from our customers ( real time data,5-10 messages) and actually one of the files have standard start message character '\u000b' but most of the time message end varies with '0D 1C OA' ,'0D 0A 1C 0D 0A',atleast '1C' is usually consistent . One of the sets had only '0D' as start and end with '0D' again. I have been dealing with customer all over US and yes, we did have problems with our HL7 parsing usually ended up in custom fixes. This is one of the reasons; I need to develop a standard solution. So far, I have been pre processing the messages to prefix-suffix proper delimiters before I send it to my parser for parsing. Segment delimiters are usually limited to '0A','0D','0D 0A' and '0A 0D'.I work in CA,USA and had a lot of interaction with Hospitals since 2-3 years. Hopefully you will be able to address this issue ? Oh! I thought you were talking about the minimal lower layer protocol. Do you mean messages in files? Bryan This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. |