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
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel