Hi,


I am new to HL7, I am trying to process a sample HL7 message using HAPI API
I am getting the following exception and I am unable to proceed further.
Please, assist me on how to resolve this issue.

Appreciate your help.



FYI: I added all the jar files provided under lib folder onto my classpath
and I am using the sample java program provided in the site, I just
replaced the message provided with the below message string no other
changes.




*Sample message: (partial message)*



"MSH|^~\\&|deLacy 2.9.14|svmhstst^CPS-Care
Connect|BP|svmhbprt^HealthLink|20120117124847||REF^I12|20120117124847781|P|2.3.1"

        +"RF1|P|R|DRF|DS^Discharge
Summary^^HL70282||1122239-20120117124842879|201201171248|||E^Event
Summary^HL70336"

        +"PRD|RT^General Provider|EHSLER^ROBERT^^^DR|Suite 505  Level 5 SVC
DARLINGHURST^^^NSW^2010^Australia||02 9999 9999^WPN^PH~02 8888
8888^WPN^FX||1234567A^1234567A"

        +"PRD|RP^Discharging Provider|EHSEEF^MARK OLIVER|Suite 707  Level 7
SVC DARLINGHURST^^^NSW^2010^Australia||02 6666 6666^WPN^PH~02 7777
7777^WPN^FX||7654321A^7654321A"

        
+"PID|||5859343^^^SVH^MR~123456789^^^^MC||BARNES^SARAH^^^MRS||19340301|F|||15
CAMELIA AVENUE CASTLE HILL^^Sydney^NSW^2154^Australia||02 9883
4876||||||123456789"

        +"NK1|1|MR CYRIL BARNES|^HUSBAND|15 CAMELIA AVENUE, CASTLE HILL
2154|02 9883 4876|02 9080 5432|P^Primary"

        +"DG1|1||DG1^INVESTIGATION OF LUNG
MALIGNANCY||201111170000|F|||||||||1"

        +"AL1|1|DA|^ABBOCILLIN||Asthma|20120106"

        +"AL1|2|FA|^Bananas||Blisters|20120106"

        +"OBR|1|||^Discharge Summary|||201201171248"

      ..........";





*Error message:*



*ca.uhn.hl7v2.HL7Exception*: The HL7 version 2.3.1RF1 is not recognized

       at ca.uhn.hl7v2.parser.Parser.assertVersionExists(*Parser.java:527*)

       at ca.uhn.hl7v2.parser.Parser.parse(*Parser.java:208*)

       at ca.uhn.hl7v2.parser.GenericParser.parse(*GenericParser.java:253*)

       at util.hl7.helpers.ParseHL7Messages.main(*ParseHL7Messages.java:60*)





Thanks,

Venkatesh S
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to