From: Praveen K. <pra...@ya...> - 2005-03-22 10:21:16
|
Hi ALL, I am using v2.3.1 . Even with the latest version of 0.4.3 I am getting same result as I have mentioned earlier. Even I tried with ur input string also I am getting the same ouput . I am sending the program I used and the output along with it Please provide the needful solution for it. package org.srit.hl7; import ca.uhn.hl7v2.HL7Exception; import ca.uhn.hl7v2.model.Message; import ca.uhn.hl7v2.parser.EncodingNotSupportedException; import ca.uhn.hl7v2.parser.PipeParser; public class TestORM { public static void main(String[] args) { Message msg = null; PipeParser parser = new PipeParser(); // String msgText = "MSH|^~\\&|||||||ORM^O01^ORM_O01|00613205|P|2.3.1||\r" // +"PID|||xxxxx|00000|patienta^one||19230306|M||U||||||||493094"; String msgText = "MSH|^~\\&|REQUETE|6^CL|UNILAB||20040305110331||ORM^O01^ORM_O01|XXXX|T|2.3.1|||||||"; try { msg = parser.parse(msgText); } catch (EncodingNotSupportedException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (HL7Exception e) { e.printStackTrace(); } System.out.println("Message is : " +msg.getName()); } } OUTPUT Message is : RDO_O01 Aris JAVIER RAMOS <Ari...@hc...> wrote: What version of HAPI are you using ?? have you tryed with the last version of HAPI (version 0.4.3) ? have you specifiyed the message structure to use in the MSH-9-3 like this : MSH|^~\&|REQUETE|6^CL|UNILAB||20040305110331||ORM^O01^ORM_O01|XXXX|T|2.3.1||||||| Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 7:11 >>> Hi All, I am a new member to this group.My Name is Praveen. I have one doubt. I am parsing a ORM_O01 HL7 Message of HAPI v2.3.1 After parsing of the messag,i am getting RDO_O01 Message Object. this is wrong because after parsing ORM_O01 Message I need to get ORM_O01 Message Object itself . But My question is why I am geeting RDO_O01 Object after parsing ORM_O01 Message?????? The same persists for v2.3 also For other versions of HAPI namely v2.2 and v2.4 I am getting the correct result.ie I am getting ORM_O01 Object after parsing ORM_O01 Is there any solution for this problem??? Its bit urgent. Hoping for eary reply for this message Rgds Praveen Kumar.A --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |