From: Nico V. <ni...@sk...> - 2006-09-12 18:55:24
|
Hi Torben, Could you please send/post the complete message (zip-file) (blank patient=20 data if it's not a test patient) ? Do you receive the message over a socket or do you read it from a file ? Have you tried parsing the same message in the TestPanel application ? My apologies for the number of questions ... Regards Nico At 12/09/2006, Torben Greiser wrote: >Hello all, > >I have a problem parsing an HL7 message which I took from a server log >of an ICU application. > >It is a message of type ORF_R04 and returns lots of OBR messages with >many repeating OBX's. > >I am using 0.5beta and when I try to parse the complete message I get >the following exception: > >Exception in thread "main" >ca.uhn.hl7v2.parser.EncodingNotSupportedException: Can't parse message >beginning MSH|^~\&|IMESOMASTER|ICU-DATA|ICUFILES|ICU-DATA|20 > at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:140) > at myPackageName.PatientDataTest.main(PatientDataTest.java:63) > >Since I dont get information about where the error is (even with debug >level nothing is logged, as the exception is thrown first) I then >constructed the message manually by adding the individual OBR/OBX segments. > >The first 31 repetitions of the OBR's are handled fine. >In my test class the following code snippet successfully outputs the >number of repetitions: > >int orderReps =3D msg_orf_r04.getORDERReps(); >System.out.println(orderReps + " ORDER repetitions in this ORF_R04 >message."); > >But after adding the 32nd OBR segment, the above exception is thrown >again. The source for this segment is: > > >OBR|12085761677000035443356294253000013|00000000000352845184||ICUFILES^ICUF= ILES^204|||20060508235810|20060510125900||||^^L|||NORM&NORM&L&=20 > >& & & & &L& & & & & ^^^^5&5&L& & & & & >|||||352845184|||||F||||||^^L|||||20060508235738 >OBX|1|TX|V2-A-Urin^V2-A-Urin^IMDD^^^^352845184^352845185|1|Resturin >verworfen: XXXX >ml|ml^ml^L|||||R|||20060508235810|^^L|14289^unbekannt^unbekannt^^^^^55 >OBX|2|TX|V2-A-Urin&Komm^V2-A-Urin^L^^^^352845184^352845186|1|Urin >(=DCbernahme von vorheriger Station), >flie=DFt nicht in die Bilanz >ein|^^L|||||R|||20060508235810|^^L|14289^unbekannt^unbekannt^^^^^55 >OBX|3|ST|V2-A-Urin&WizardRelTime^V2-A-Urin^L^^^^352845184^352845187|1|X|^^L= |||||R|||20060508235810|^^L|14289^unbekannt^unbekannt^^^^^55 >OBX|4|ST|V2-A-Urin&WizardId^V2-A-Urin^IMDD^^^^352845184^352845188|1|#4740#2= #1#|^^L|||||R|||20060508235810|^^L|14289^unbekannt^unbekannt^^^^^55 > > >First I thought that the german Umlaut "=DC" or the "=DF" are causing the >problem. But after changing them to "U" and "ss" respectively the error >still persists. Also changing the charset to "8859/1" did not solve the >problem. > >I have absolutely no clue what is wrong in the above message, as it is >being used in a commercial application and thus should follow the HL7 >standard. > > >Any help is greatly appreciated > >Bye, > >Torben > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job= easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1= 21642 >_______________________________________________ >Hl7api-devel mailing list >Hl7...@li... >https://lists.sourceforge.net/lists/listinfo/hl7api-devel |