From: Nico V. <ni...@us...> - 2006-01-03 16:34:40
|
Hi Latha, Could you please share the hl7 message you're trying to parse ? I guess that your problem is related due to the fact that the segments (OBX...) are part of a segment group. Please check the readme.txt file in the HAPI cvs root folder for instructions on obtaining the source code for the generated classes. Thanks a lot ! Regards Nico At 3/01/2006, latha wrote: >Hi, > >I am Latha V working as a Software Engineer for reli e-marg software >solutions pvt Ltd,Mysore. We are developing an application which is using >HL7 standard. We are using the recent HAPI which we got it from >sourceforge.net i.e hapi-0.5beta.jar. > >The actual process what we are carrying out is > >Building a HL7 message Object using the different methods of the different >event classes like ORU_R01,VXU_V04 .. ..etc for OBX,RXA and NTE segments. >Converting the above Message Object into string using the method 'String >encode(Message msg)' of the PipeParser class. >In the remote application, we are parsing the above incoming string, using >the method 'parse(String str)' of the PipeParser class . >The above parser class method is returning a Message Object, Upon which we >tried to get the values of different field's for the above OBX,RXA and NTE >segments. Unfortunately the values returned are found to be NULL. > >Whereas for MSH. PVI, NK1, PID segments the above process is working >fine.(i.e we are able to get the values from this segments) > >We are unable to trace what might be the exact problem!!!!! > >And one more problem we are facing is, we are unable to get the datetime >field values after using the above parser method(parse(String str)' of the >PipeParser class), for all the segments. What might be the solution for >getting these field values? > >But we guess there might be some problem with the PipeParser class we are >using or there might be some problem with the API we are using.Is encoding >the message Object to string causing any problems to the Message Object? > >The temporary alternative what we have adopted to solve this problem is we >are parsing these segments individually using a static method of the >PipeParser class. > >i.e parse(Segment seg,String str,EncodingCharacters enc) > >Once we parse the OBX,RXA and NTE segments using the above method we are >able to get back the values from the different fields. > >So can you please let me know how far this temporary fix is correct??? > >If it is not correct, could you please let me know what else to be done to >solve this problem!!! > >Also, could you please let us know where can we get the complete source >code files of the API we are using (i.e hapi-0.5beta.jar)??? > >Thanks & regards > >Latha V > > > |