From: Suranga K. <sur...@gm...> - 2013-09-18 18:26:21
|
Hi, I'm using HAPI 0.5 jar to try and parse a string (ER7 format) to an ORUR01 object. The string i'm using is, MSH|^~\&|FORMENTRY|LOCAL|HL7LISTENER|LOCAL|20080226102656||ORU^R01|JqnfhKKtouEz8kzTk6Zo|P|2.5|1||||||||16^LOCAL.FORMID PID|||3^^^^||John3^Doe^|| PV1|1|O|1^Unknown Location||||1^Super User (1-8)|||||||||||||||||||||||||||||||||||||20080212|||||||V ORC|RE||||||||20080226102537|1^Super User OBR|1|||1238^MEDICAL RECORD OBSERVATIONS^99DCT OBX|1|NM|5497^CD4, BY FACS^99DCT||450|||||||||20080206 OBX|2|DT|5096^RETURN VISIT DATE^99DCT||20080229|||||||||2008021 I parse this string into a ORUR01 message object using GenericParser as follows, Message message = parser.parse(hl7_String); The parsing completes successfully, but for some reason, HAPI is unable to identify the components of the newly created hl7 object. For example, the hl7 string (shown above) has a pid.3 segment, but i'm unable to capture them using the pid.getPatientIdentifierList() method. The same is true of the obx.getObservationIdentifier() method. Can someone please advise me as to what i'm doing wrong here ? I also tried with PipeParser, but i'm afraid that the results are the same. PS: I tried the same with an xml delimited message, and it works perfectly fine.... -- Best Regards, Suranga |