Hi there, I have the same problem as you have with this message. The second order is seen as a prior order (ORDER PRIOR) by hapi. Actually this should not be the case as we do not have the required OBR segment in the ORDER PRIOR group. Thus this should be recognized as a second order.
Please find below a sample of an OML^O33 message that hapi can also not parse correctly. Any suggestion on how to solve this problem will be very appreciated. MSH|^~\&|OP|Emergency Ward|OF|Microbiology|200309060810||OML^O33^OML_O33|msgOP123|T|2.5|123||||USA||EN PID|1||12345^5^M10^Memphis_Hosp^PI||EVERYMAN^ADAM^^JR^^^L||19800101|M PV1|1|O|Ward||||||||||||||||12345^5^M10^Memphis_Hosp^PI SPM|1|123456791^Emergency||MSU^Mid Stream Urine^L|||||||P||||||200309060800|||||||||1 ORC|NW|12345679^Emergency||777^Emergency|||||200309060800|222221^NURSE^NANCY|||||||||||Emergency WardTQ1|||||||||R OBR|1|12345679^Emergency||87086^Urine Microscopy and Culture^C4|||||||S|||||222222^PHYSICIAN^^^^DR| SPM|2|123456701^Emergency||PUS||||TOE|LEFT||P||||||200309060805|||||||||1 ORC|NW|12345670^Emergency||777^Emergency|||||200309060800|222221^NURSE^NANCY|||||||||||Emergency WardTQ1|||||||||R OBR|1|12345670^Emergency||87040^Microscopy and Culture^C4||||||222221^NURSE^NANCY|S|||||222222^PHYSICIAN^^^^DR| >From: Daniel Nebot <[EMAIL PROTECTED]> >To: hl7api-devel@lists.sourceforge.net >Subject: [HAPI-devel] OML O21 does not parse more than one ORDER group? >Date: Thu, 29 Mar 2007 11:38:58 +0100 (BST) > >Hi there, > >I am trying to parse a rather simple message with more than one order into >it, like the one below. Unfortunately, HAPI does not seem to go further >than the first ORC-OBR block. > >I have looked to the source code but I cannot see why. This really urges >for me... I would be very grateful should somebody be so kind to throw some >light on how to solve it! >Cheers >MSH|^~\&|OF|Chemistry|AM|Automation|200309060825||OML^O21^OML_O21|msgOF101|T|2.5|123||||USA||EN >PID|1||12345^5^M10^Memphis_Hosp^PI||EVERYMAN^ADAM^^JR^^^L||19800101|M >PV1|1|O|Ward|||||||||||||||12345 >ORC|NW|||666^gastric|||||200309060824|222221^NURSE^NANCY||||||||||| >Entero-gastric^^^^^^FI^^^EG02 >TQ1|||||||||A >OBR||555_1^chemistry||GLUC^GLUCOSE^L||||||1234^BLEEDER|S|||||222222^PHYSICIAN^^^^DR > >|821 >SPM|1|123456781^gastric >||SER|||||||P||||||200309060735|200309060821||||||||1 >ORC|NW|||666^gastric|||||200309060710|222221^NURSE^NANCY||||||||||| >Entero-gastric^^^^^^FI^^^EG02 >TQ1|||||||||A >OBR||555_2^chemistry||GLUC^GLUCOSE^L||||||1234^BLEEDER|S||||| >222222^PHYSICIAN^^^^DR|821 >SPM|1|123456782^gastric||SER|||||||P||||||200309060755|200309060821||||||||1 > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys-and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >Hl7api-devel mailing list >Hl7api-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/hl7api-devel _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel