Hi, I'm sorry I haven't answered earlier :(
The message you have is indeed incorrect ! It should indeed be better if HAPI threw an exception ... but it doesn't in the current version. I don't know the situation in which you encounter this issue, but to my opinion the only solution is to ask the sending party to correct the message, since it will fail anyway if they send it to other parties. If you really want to use/implement this message, an option could be to use the Messaging Workbench tool and create a message profile that is compliant with your sample message. If you send me the hl7 xml profile afterwards I can generate HAPI compatible classes that you can use to parse this message ... but I would certainly not advise this, since it's not "hl7" ... If you want to validate hl7 test messages there are 2 good tools available on the web: http://humehealth.com.au/humeNET/files/Technology/bar2xml.php http://ahml.ballarat.edu.au/ I will create a tracker in Sourceforge if you haven't done it already. Hope this helps ... Best Regards Nico At 12/12/2007, Fabio Daprile wrote: >Hello all, > >Somebody can explain me what happens in this case? >I need this information to finish a parser!!!! > >Greetings, >Fabio > > >Fabio Daprile wrote: > > Hello all, > > > > while parsing an ORM_O01 message i found what i think is an error. > > I parse it first with the PipeParser and after that with the > > DefaultXMLParser. > > > > here is the message: > > > > > MSH|^~\\&|VERBENA|PRAEZISION|RIS|SYNCROMED|20070828135556+0000||ORM^O01|5366|P|2.5| > > PID|||410379^^^PRAEZ||MORCHI^ANTONIO||19200202000000+0000|F|||VIA > > BOSCHI, 13 ^BG^MARTO^BG^24027^100^M^ITALIA^016144~VIA BOSCHI, 13 > > > ^BG^MARTO^BG^24027^100^H^ITALIA^016144~^BG^MARTO^BG^^100^B^ITALIA^016144|||||||AAAAAAAAAAAAAAAA|228PP272||||016144|||100^ITALIA|\r" > > PD1|||ASL DELLA PROVINCIA DI BERGAMO^^^^^^^^^301030|\r" > > > PV1||E|||||133429^GRIGIS^MASSIMO|9PRZMARK^MARTELLI^MARCO^^^^^^^^^^9||114||||||||||||||||||||||||||||||||A02|||||||||V| > > > > > ORC|NW|67262|5189|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO > > > > SOCCORSO|\r" > > OBR|1|67262|5189|1223^RX PELVI > > > (bacino)||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000| > > OBR|2|67262|5189|1220^RX > > > SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000| > > OBR|2|67262|5189|1220^RX > > > SPALLA||||||||3|RRR|||9PRZMARK^MARTELLI||||||||1|||1.000000^^^20070828135500+0000| > > > ORC|NW|67262|5190|2007100059|PR||1.000000^^^20070828135500+0000||20070828135500+0000|||9PRZMARK^MARTELLI^MARCO|||||114^PRONTO > > > > SOCCORSO| > > OBR|1|67262|5190|8001^TAC > > > CAPO||||||||3|RRR|||9PRZMARK^MARTELLI||||||||7|||1.000000^^^20070828135500+0000| > > ZDS|1.2.300.4005|a^b^c|Application|DICOM| > > > > > > When parsing the first ORDER group, i find correctly the ORDER_DETAIL. > > The parser asks then for all the repetitions of the OBR segment. the > > reps[] array contains only 1 element. > > The other 2 instances of OBR are found after the group OBSERVATION. > > > > This is wrong on my opinion. The number of repetitions of OBR should be > > 3 in the ORDER_DETAIL group. > > > > Somebody can explain this behavior? > > > > Greetz, > > Fabio > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Hl7api-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > > > > > >------------------------------------------------------------------------- >SF.Net email is sponsored by: >Check out the new SourceForge.net Marketplace. >It's the best place to buy or sell services for >just about anything Open Source. >http://sourceforge.net/services/buy/index.php >_______________________________________________ >Hl7api-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/hl7api-devel ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

