You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(4) |
May
(5) |
Jun
(6) |
Jul
(3) |
Aug
(13) |
Sep
(28) |
Oct
(33) |
Nov
(8) |
Dec
(1) |
2003 |
Jan
(6) |
Feb
(2) |
Mar
|
Apr
(25) |
May
(21) |
Jun
(13) |
Jul
(12) |
Aug
(14) |
Sep
(6) |
Oct
(6) |
Nov
(16) |
Dec
(6) |
2004 |
Jan
(5) |
Feb
(7) |
Mar
(13) |
Apr
(17) |
May
(24) |
Jun
(14) |
Jul
(14) |
Aug
(8) |
Sep
(3) |
Oct
(8) |
Nov
(14) |
Dec
(26) |
2005 |
Jan
(18) |
Feb
(12) |
Mar
(29) |
Apr
(9) |
May
(4) |
Jun
(12) |
Jul
(17) |
Aug
(9) |
Sep
(12) |
Oct
|
Nov
(12) |
Dec
|
2006 |
Jan
(46) |
Feb
(18) |
Mar
(11) |
Apr
(13) |
May
(12) |
Jun
(27) |
Jul
(34) |
Aug
(45) |
Sep
(27) |
Oct
(13) |
Nov
(26) |
Dec
(22) |
2007 |
Jan
(21) |
Feb
(29) |
Mar
(32) |
Apr
(6) |
May
(11) |
Jun
(13) |
Jul
(14) |
Aug
(11) |
Sep
(15) |
Oct
(7) |
Nov
(30) |
Dec
(16) |
2008 |
Jan
(11) |
Feb
(14) |
Mar
(5) |
Apr
(18) |
May
(12) |
Jun
(11) |
Jul
(5) |
Aug
(12) |
Sep
(3) |
Oct
(2) |
Nov
(15) |
Dec
(2) |
2009 |
Jan
(18) |
Feb
(6) |
Mar
(9) |
Apr
(10) |
May
(29) |
Jun
(16) |
Jul
(44) |
Aug
(49) |
Sep
(14) |
Oct
(21) |
Nov
(11) |
Dec
(22) |
2010 |
Jan
(12) |
Feb
(13) |
Mar
(5) |
Apr
(6) |
May
(15) |
Jun
(15) |
Jul
(14) |
Aug
(20) |
Sep
(17) |
Oct
(36) |
Nov
(19) |
Dec
(7) |
2011 |
Jan
(8) |
Feb
(14) |
Mar
(21) |
Apr
(12) |
May
(6) |
Jun
(12) |
Jul
(17) |
Aug
(6) |
Sep
(13) |
Oct
(15) |
Nov
(26) |
Dec
(9) |
2012 |
Jan
(25) |
Feb
(13) |
Mar
(31) |
Apr
(10) |
May
(16) |
Jun
(21) |
Jul
(61) |
Aug
(38) |
Sep
(16) |
Oct
(13) |
Nov
(37) |
Dec
(26) |
2013 |
Jan
(20) |
Feb
(26) |
Mar
(34) |
Apr
(32) |
May
(27) |
Jun
(56) |
Jul
(16) |
Aug
(38) |
Sep
(35) |
Oct
(17) |
Nov
(11) |
Dec
(7) |
2014 |
Jan
(36) |
Feb
(13) |
Mar
(25) |
Apr
|
May
(27) |
Jun
(33) |
Jul
(34) |
Aug
|
Sep
(4) |
Oct
(11) |
Nov
(42) |
Dec
(2) |
2015 |
Jan
(5) |
Feb
(6) |
Mar
(11) |
Apr
(3) |
May
|
Jun
(1) |
Jul
(2) |
Aug
(5) |
Sep
(5) |
Oct
(5) |
Nov
(8) |
Dec
(19) |
2016 |
Jan
(8) |
Feb
(12) |
Mar
(6) |
Apr
(5) |
May
(5) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(9) |
Oct
(1) |
Nov
(2) |
Dec
(5) |
2017 |
Jan
(2) |
Feb
|
Mar
(3) |
Apr
(6) |
May
(8) |
Jun
(7) |
Jul
(14) |
Aug
(10) |
Sep
(6) |
Oct
(2) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(9) |
Mar
(2) |
Apr
(3) |
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
(8) |
Sep
(4) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2019 |
Jan
(10) |
Feb
(2) |
Mar
(6) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(5) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2020 |
Jan
(9) |
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(9) |
Oct
(1) |
Nov
(11) |
Dec
|
2021 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(7) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2023 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(2) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
From: Simon S. <sgs...@ya...> - 2005-04-01 06:10:38
|
Hi; We're planning to use HAPI as an adapter to allow us to wire multiple systems with slightly different Hl7 protocols in to a Java J2EE Business Processing and EAI backbone. Internally, the EAI backbone will pass around XML messages produced by HAPI-based programs parsing HL7 messages. The J2EE EAI backbone has drag and drop programming tools that make it relatively simple to work with XML messages. Right now, HAPI Test Panel wont properly parse the particular versions of the messages produced by some of the HL7 systems that we need to pass around the backbone (A19, Q11, A01, A02, A03, A08, A31, O01, P03). We'll be performing some custom modifications to HAPI libraries to allow us to properly parse the non-conforming messages, but for now, we can't specify the XML interfaces between the internal components of the EAI Backbone because we can't generate XML from HAPI which we can use to infer .xsds. Is there a way to find or generate HAPI's natural .xsds for the common messages I have identified? Id there a "one big generic" HL7 .xsd for HAPI? Many thanks; Simon Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com |
From: Tripp, B. <Bry...@uh...> - 2005-04-01 04:02:12
|
No, the text version of the standard says it should repeat, so I'll = change it. =20 Bryan=20 -----Original Message----- From: hl7...@li... on behalf of Alan Shields Sent: Wed 3/30/2005 4:00 PM To: hl7...@li... Subject: [HAPI-devel] hapi 0.4.3 & pid alternate patient id =20 Hi I just downloaded 0.4.3 and I notice that the data model for 2.3=20 defines PID:4 (alternate patient id) as a non repeating field. Is this correct? Cheers Alan Shields ma...@as... ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: Alan S. <ma...@as...> - 2005-03-30 21:00:30
|
Hi I just downloaded 0.4.3 and I notice that the data model for 2.3 defines PID:4 (alternate patient id) as a non repeating field. Is this correct? Cheers Alan Shields ma...@as... |
From: Tom Le <to...@te...> - 2005-03-30 04:21:25
|
From the method call and doc, the parameter is a logical name for a log file. I think!!! fan yue wrote: > Shrock, > > Thanks for that. But the following problem is still there, > >> Also I notice in the 'sendAndReceive' method, two HapiLog objects are >> instantiated like this >> >> HapiLog rawOutbound = >> HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.outbound"); >> HapiLog rawInbound = >> HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.inbound"); >> >> But under the installation directory of my HAPI, I could not find > > directory > >> 'raw', I wonder what it is used for and whether my copy of HAPI is >> correct >> and complete. > > > Does anyone know the answer? I am waiting for it... > > Thank you, > > Sarah > > >> From: "Shrock, Court" <Sh...@in...> >> To: 'fan yue' <fan...@ho...>, Bry...@uh..., > > hl7...@li... > >> Subject: RE: [HAPI-devel] HAPI Logging >> Date: Tue, 29 Mar 2005 08:26:11 -0800 >> >> You need to tell log4j where it's config file is; and that is done when > > you > >> start the process: >> java -Dlog4j.configuration=log4j.xml -jar sendAndReceive.jar >> >> -----Original Message----- >> From: fan yue [mailto:fan...@ho...] >> Sent: Tuesday, March 29, 2005 12:01 AM >> To: Bry...@uh...; hl7...@li... >> Cc: fan...@ho... >> Subject: [HAPI-devel] HAPI Logging >> >> Hello, >> >> I have implemented a class in which the method 'sendAndReceive' of > > Initiator > >> class is called. I always got a message, in my IDE console, like this, >> >> log4j:WARN No appenders could be found for logger >> (ca.uhn.hl7v2.app.Initiator). >> log4j:WARN Please initialize the log4j system properly. >> >> Do I need to do extra configuration to make log4j work? Because >> currently >> the logging system does not work. >> >> Also I notice in the 'sendAndReceive' method, two HapiLog objects are >> instantiated like this >> >> HapiLog rawOutbound = >> HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.outbound"); >> HapiLog rawInbound = >> HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.inbound"); >> >> But under the installation directory of my HAPI, I could not find > > directory > >> 'raw', I wonder what it is used for and whether my copy of HAPI is >> correct >> and complete. >> >> Thank you, >> >> Sarah >> >> >From: "Tripp, Bryan" <Bry...@uh...> >> >To: "fan yue" >> <fan...@ho...>,<hl7...@li...> >> >Subject: RE: [HAPI-devel] Building message >> >Date: Tue, 22 Feb 2005 10:47:15 -0500 >> > >> >Hi Sarah, >> > >> >Yes, like this ... >> > >> >//1. create a Message object with the structure you need, e.g. ADT_A01 >> >ADT_A01 message = new ADT_A01(); >> > >> >//2. Set its values using getters/setters >> >message.getMSH().getSendingApplication().getNamespaceID().setValue("my >> >app"); >> > >> >// ... or using Terser ... >> >Terser terser = new Terser(message); >> >terser.set("/MSH-3-1", "my app"); >> > >> >//3. Encode the message using a Parser >> >PipeParser parser = new PipeParser(); >> >String encodedMessage = parser.encode(message); >> > >> >//4. Then you can send it somewhere >> >Connection conn = new Connection(parser, new MinLowerLayerProtocol(), >> >new Socket(host, port)); Message response = >> >conn.getInitiator().sendAndReceive(message); >> > >> >Bryan >> > >> >-----Original Message----- >> >From: hl7...@li... on behalf of fan yue >> >Sent: Tue 2/22/2005 1:47 AM >> >To: hl7...@li... >> >Subject: [HAPI-devel] Building message >> > >> >Hi, >> > >> >I just started using HAPI and am not very farmiliar with it. My >> >question is, except for parsing an HL7 message, can we also build or >> >construct an >> >HL7 message using HAPI? Which package should I look into? >> > >> >Thank you very much, >> > >> >Sarah >> > >> > >> > >> > >> >------------------------------------------------------- >> >SF email is sponsored by - The IT Product Guide Read honest & candid >> >reviews on hundreds of IT Products from real users. >> >Discover which products truly live up to the hype. Start reading now. >> >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> >_______________________________________________ >> >Hl7api-devel mailing list >> >Hl7...@li... >> >https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> > >> >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide Read honest & candid > > reviews > >> on hundreds of IT Products from real users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |
From: fan y. <fan...@ho...> - 2005-03-30 04:06:36
|
Shrock, Thanks for that. But the following problem is still there, >Also I notice in the 'sendAndReceive' method, two HapiLog objects are >instantiated like this > > HapiLog rawOutbound = >HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.outbound"); > HapiLog rawInbound = >HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.inbound"); > >But under the installation directory of my HAPI, I could not find directory >'raw', I wonder what it is used for and whether my copy of HAPI is correct >and complete. Does anyone know the answer? I am waiting for it... Thank you, Sarah >From: "Shrock, Court" <Sh...@in...> >To: 'fan yue' <fan...@ho...>, Bry...@uh..., hl7...@li... >Subject: RE: [HAPI-devel] HAPI Logging >Date: Tue, 29 Mar 2005 08:26:11 -0800 > >You need to tell log4j where it's config file is; and that is done when you >start the process: >java -Dlog4j.configuration=log4j.xml -jar sendAndReceive.jar > >-----Original Message----- >From: fan yue [mailto:fan...@ho...] >Sent: Tuesday, March 29, 2005 12:01 AM >To: Bry...@uh...; hl7...@li... >Cc: fan...@ho... >Subject: [HAPI-devel] HAPI Logging > >Hello, > >I have implemented a class in which the method 'sendAndReceive' of Initiator >class is called. I always got a message, in my IDE console, like this, > >log4j:WARN No appenders could be found for logger >(ca.uhn.hl7v2.app.Initiator). >log4j:WARN Please initialize the log4j system properly. > >Do I need to do extra configuration to make log4j work? Because currently >the logging system does not work. > >Also I notice in the 'sendAndReceive' method, two HapiLog objects are >instantiated like this > > HapiLog rawOutbound = >HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.outbound"); > HapiLog rawInbound = >HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.inbound"); > >But under the installation directory of my HAPI, I could not find directory >'raw', I wonder what it is used for and whether my copy of HAPI is correct >and complete. > >Thank you, > >Sarah > > >From: "Tripp, Bryan" <Bry...@uh...> > >To: "fan yue" ><fan...@ho...>,<hl7...@li...> > >Subject: RE: [HAPI-devel] Building message > >Date: Tue, 22 Feb 2005 10:47:15 -0500 > > > >Hi Sarah, > > > >Yes, like this ... > > > >//1. create a Message object with the structure you need, e.g. ADT_A01 > >ADT_A01 message = new ADT_A01(); > > > >//2. Set its values using getters/setters > >message.getMSH().getSendingApplication().getNamespaceID().setValue("my > >app"); > > > >// ... or using Terser ... > >Terser terser = new Terser(message); > >terser.set("/MSH-3-1", "my app"); > > > >//3. Encode the message using a Parser > >PipeParser parser = new PipeParser(); > >String encodedMessage = parser.encode(message); > > > >//4. Then you can send it somewhere > >Connection conn = new Connection(parser, new MinLowerLayerProtocol(), > >new Socket(host, port)); Message response = > >conn.getInitiator().sendAndReceive(message); > > > >Bryan > > > >-----Original Message----- > >From: hl7...@li... on behalf of fan yue > >Sent: Tue 2/22/2005 1:47 AM > >To: hl7...@li... > >Subject: [HAPI-devel] Building message > > > >Hi, > > > >I just started using HAPI and am not very farmiliar with it. My > >question is, except for parsing an HL7 message, can we also build or > >construct an > >HL7 message using HAPI? Which package should I look into? > > > >Thank you very much, > > > >Sarah > > > > > > > > > >------------------------------------------------------- > >SF email is sponsored by - The IT Product Guide Read honest & candid > >reviews on hundreds of IT Products from real users. > >Discover which products truly live up to the hype. Start reading now. > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >_______________________________________________ > >Hl7api-devel mailing list > >Hl7...@li... > >https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide Read honest & candid reviews >on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Hl7api-devel mailing list >Hl7...@li... >https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: Tripp, B. <Bry...@uh...> - 2005-03-30 01:06:33
|
Thanks Steve. A few comments further to this ... 1) the method is Group.addNonStandardSegment(), 2) this doesn't help for incoming = messages, however HAPI will automatically parse unexpected segments in incoming messages into instances of GenericSegment, 3) you can use the code for = the standard messages as an example for writing a custom message class; see = the ca.uhn.hl7v2.parser.Parser javadocs for instructions on registering your custom message classes with HAPI.=20 Bryan=20 -----Original Message----- From: hl7...@li... on behalf of Steve = Holdener Sent: Tue 3/29/2005 7:57 PM To: Alfredo Cancio Cc: hl7...@li... Subject: Re: [HAPI-devel] question =20 Alfredo, In HL7, segment types beginning with "Z" are reserved for custom segments, outside the spec. I believe you need to add a non-standard segment to your message or group (I think there's a method specifically for this). There are a couple other options, as well. If you're message is pretty "flat" (no repeating groups), you can probably use the Terser class to add your Z-segments. You can also define your own message type, complete with groups, if you have several of these segments, include repeating groups, or want some kind of enforcement of required Z-segments. -Steve On Thu, 24 Mar 2005 09:24:14 -0300, Alfredo Cancio <alf...@ho...> wrote: > =20 > =20 > Dear Bryan,=20 > We are trying to implement your HAPI v2.4 and we need messages Zxx.=20 > Is this possible? How?=20 > =20 > Thanks you.=20 > =20 > Alfredo Cancio=20 > Hospital Italiano de Buenos Aires=20 > Argentina ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: Steve H. <ste...@gm...> - 2005-03-30 00:58:00
|
Alfredo, In HL7, segment types beginning with "Z" are reserved for custom segments, outside the spec. I believe you need to add a non-standard segment to your message or group (I think there's a method specifically for this). There are a couple other options, as well. If you're message is pretty "flat" (no repeating groups), you can probably use the Terser class to add your Z-segments. You can also define your own message type, complete with groups, if you have several of these segments, include repeating groups, or want some kind of enforcement of required Z-segments. -Steve On Thu, 24 Mar 2005 09:24:14 -0300, Alfredo Cancio <alf...@ho...> wrote: > > > Dear Bryan, > We are trying to implement your HAPI v2.4 and we need messages Zxx. > Is this possible? How? > > Thanks you. > > Alfredo Cancio > Hospital Italiano de Buenos Aires > Argentina |
From: Shrock, C. <Sh...@in...> - 2005-03-29 16:26:25
|
You need to tell log4j where it's config file is; and that is done when you start the process: java -Dlog4j.configuration=log4j.xml -jar sendAndReceive.jar -----Original Message----- From: fan yue [mailto:fan...@ho...] Sent: Tuesday, March 29, 2005 12:01 AM To: Bry...@uh...; hl7...@li... Cc: fan...@ho... Subject: [HAPI-devel] HAPI Logging Hello, I have implemented a class in which the method 'sendAndReceive' of Initiator class is called. I always got a message, in my IDE console, like this, log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.app.Initiator). log4j:WARN Please initialize the log4j system properly. Do I need to do extra configuration to make log4j work? Because currently the logging system does not work. Also I notice in the 'sendAndReceive' method, two HapiLog objects are instantiated like this HapiLog rawOutbound = HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.outbound"); HapiLog rawInbound = HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.inbound"); But under the installation directory of my HAPI, I could not find directory 'raw', I wonder what it is used for and whether my copy of HAPI is correct and complete. Thank you, Sarah >From: "Tripp, Bryan" <Bry...@uh...> >To: "fan yue" <fan...@ho...>,<hl7...@li...> >Subject: RE: [HAPI-devel] Building message >Date: Tue, 22 Feb 2005 10:47:15 -0500 > >Hi Sarah, > >Yes, like this ... > >//1. create a Message object with the structure you need, e.g. ADT_A01 >ADT_A01 message = new ADT_A01(); > >//2. Set its values using getters/setters >message.getMSH().getSendingApplication().getNamespaceID().setValue("my >app"); > >// ... or using Terser ... >Terser terser = new Terser(message); >terser.set("/MSH-3-1", "my app"); > >//3. Encode the message using a Parser >PipeParser parser = new PipeParser(); >String encodedMessage = parser.encode(message); > >//4. Then you can send it somewhere >Connection conn = new Connection(parser, new MinLowerLayerProtocol(), >new Socket(host, port)); Message response = >conn.getInitiator().sendAndReceive(message); > >Bryan > >-----Original Message----- >From: hl7...@li... on behalf of fan yue >Sent: Tue 2/22/2005 1:47 AM >To: hl7...@li... >Subject: [HAPI-devel] Building message > >Hi, > >I just started using HAPI and am not very farmiliar with it. My >question is, except for parsing an HL7 message, can we also build or >construct an >HL7 message using HAPI? Which package should I look into? > >Thank you very much, > >Sarah > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide Read honest & candid >reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Hl7api-devel mailing list >Hl7...@li... >https://lists.sourceforge.net/lists/listinfo/hl7api-devel > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: fan y. <fan...@ho...> - 2005-03-29 08:01:13
|
Hello, I have implemented a class in which the method 'sendAndReceive' of Initiator class is called. I always got a message, in my IDE console, like this, log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.app.Initiator). log4j:WARN Please initialize the log4j system properly. Do I need to do extra configuration to make log4j work? Because currently the logging system does not work. Also I notice in the 'sendAndReceive' method, two HapiLog objects are instantiated like this HapiLog rawOutbound = HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.outbound"); HapiLog rawInbound = HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.inbound"); But under the installation directory of my HAPI, I could not find directory 'raw', I wonder what it is used for and whether my copy of HAPI is correct and complete. Thank you, Sarah >From: "Tripp, Bryan" <Bry...@uh...> >To: "fan yue" <fan...@ho...>,<hl7...@li...> >Subject: RE: [HAPI-devel] Building message >Date: Tue, 22 Feb 2005 10:47:15 -0500 > >Hi Sarah, > >Yes, like this ... > >//1. create a Message object with the structure you need, e.g. ADT_A01 >ADT_A01 message = new ADT_A01(); > >//2. Set its values using getters/setters >message.getMSH().getSendingApplication().getNamespaceID().setValue("my >app"); > >// ... or using Terser ... >Terser terser = new Terser(message); >terser.set("/MSH-3-1", "my app"); > >//3. Encode the message using a Parser >PipeParser parser = new PipeParser(); >String encodedMessage = parser.encode(message); > >//4. Then you can send it somewhere >Connection conn = new Connection(parser, new MinLowerLayerProtocol(), new >Socket(host, port)); >Message response = conn.getInitiator().sendAndReceive(message); > >Bryan > >-----Original Message----- >From: hl7...@li... on behalf of fan yue >Sent: Tue 2/22/2005 1:47 AM >To: hl7...@li... >Subject: [HAPI-devel] Building message > >Hi, > >I just started using HAPI and am not very farmiliar with it. My question >is, except for parsing an HL7 message, can we also build or construct an >HL7 message using HAPI? Which package should I look into? > >Thank you very much, > >Sarah > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Hl7api-devel mailing list >Hl7...@li... >https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |
From: fan y. <fan...@ho...> - 2005-03-29 07:11:04
|
Hi, I have implemented a class in which the 'sendAndReceive' method of 'Initiator.java' is called. And I always got a message in my IDE's console log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.app.Initiator). log4j:WARN Please initialize the log4j system properly. Do I need to do some extra configuration for log4j? I also noticed that in the 'sendAndReceive' method, two HapiLog objects are instantiated like this, HapiLog rawOutbound = HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.outbound"); HapiLog rawInbound = HapiLogFactory.getHapiLog("ca.uhn.hl7v2.raw.inbound"); but I could not find the directory 'raw' under the directory where HAPI is installed. Does that mean something is missing in my copy of HAPI? Thanks, Sarah |
From: Riemer, R. \(GE Healthcare\) <Ric...@me...> - 2005-03-25 14:59:29
|
Hi, I'm a software engineer with GE Healthcare IT, and am currently using = HAPI 0.4.3 for an application we're developing. I stumbled onto an issue with representing timezones in TM datatypes, = for which I'd like to get some feedback. I'm using the TM.toHl7TMFormat() method as follows: java.util.Date date =3D new = SimpleDateFormat("yyyyMMddHHmmssZ").parse("19740805000000+0000"); GregorianCalender cal =3D new GregorianCalender(); cal.setTime(date); return DT.toHl7DTFormat(cal) + TM.toHl7TMFormat(cal); If I run this piece of code in different timezones, different values are = returned: * When run in CET 25-March-2005 (Central European Time, UTC+1): = 19740805010000+0100 This seems to be OK. It is the same time, displayed in the local = timezone * When run in CEST 25-April-2005 (Central European Summer Time, UTC+2): = 19740805010000+0100 Still OK, but the time is displayed as winter time, instead of in = daylight saving time * When run in CST (Central Standard Time, UTC-6): 19740804190000-0600 This seems to be wrong. The timezone -0600 is OK, but the time should be = 180000-0600 here, instead of 190000-0600. * When run in CDT (Central Daylight Time, UTC-5): 19740804190000-0600 This seems to be wrong as well. The time should be either 19000000-0500 = or 180000-0600. Am I correct in my assumptions that: * the time is incorrect for some timezones (CST and CDT)? * the timezone should reflect the daylight saving time, so in CST we = should se 020000+0200 instead of 010000+0100? Any help would be appreciated. I'd like to know if I should submit bugs = for any or both of my assumptions. Thanks, Rick Riemer Software Engineer Core Infrastructure Platforms GE Healthcare IT T +31 30 692 6000 F +31 30 692 6010 D *381 6427 E ric...@me... www.gehealthcare.com |
From: Alfredo C. <alf...@ho...> - 2005-03-24 12:29:09
|
Dear Bryan, We are trying to implement your HAPI v2.4 and we need messages Zxx. Is this possible? How? Thanks you. Alfredo Cancio=20 Hospital Italiano de Buenos Aires Argentina |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:54:30
|
Thanks Aris, The Problem is resolved.I am getting ORM_O01 after parsing Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting ORM_O01 after parsing If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote:yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:51:52
|
Thanks Aris, The Problem is resolved.I am getting ORM_O01 after parsing Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting ORM_O01 after parsing If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:51:40
|
Thanks Aris, The Problem is resolved.I am getting ORM_O01 after parsing Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting ORM_O01 after parsing If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:50:54
|
Thanks Aris, The Problem is resolved.I am getting ORM_O01 after parsing Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting ORM_O01 after parsing If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:50:46
|
Thanks Aris, The Problem is resolved.I am getting ORM_O01 after parsing Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting ORM_O01 after parsing If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:49:45
|
Thanks Aris, Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting ORM_O01 after If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:49:43
|
Thanks Aris, Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting ORM_O01 If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Make Yahoo! your home page |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:49:34
|
Thanks Aris, Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:49:20
|
Thanks Aris, Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am getting ORM_O01 after If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Make Yahoo! your home page |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:49:09
|
Thanks Aris, Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! |
From: Praveen K. <pra...@ya...> - 2005-03-23 07:49:08
|
Thanks Aris, Thanks a lot.It's working fine. Thanks Steven for ur suggestion. The Problem is resolved.I am If any body has latest source for HAPI hl7 v2.5 pls send it across to me or is there a way to access it.???If so Pls tell me How to do it??? Waiting for ur reply Regards Praveen Kumar.A Aris JAVIER RAMOS <Ari...@hc...> wrote: yes the archive is hapi-0.4.2.jar You must uncompress the entire archive before (with winzip letting the option user folder names). go to the file to modifie. and after modification compress it again, it will create à .zip file, you can change the .zip in .jar. have you let the line mapping ORM_O01 ORM_O01 uncommented ? regards Aris >>> Praveen Kumar 03/22 2:15 >>> Hi All, Iin which jar file i need to comment the lines. is it in hapi-0.4.2.jar???? I have changed 2.3.1 .properties in the jar file. After I changed the .properties file as per ur instructuions.it gave me that folder will be lost. After that I ran the same program which I had sent earlier . It is giving the following error. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.Parser). log4j:WARN Please initialize the log4j system properly. ca.uhn.hl7v2.HL7Exception: Couldn't create Message object of type ORM_O01 at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:218) at org.srit.hl7.TestORM.main(TestORM.java:34) Caused by: ca.uhn.hl7v2.HL7Exception: No map found for version 2.3.1 at ca.uhn.hl7v2.parser.Parser.getMessageStructureForEvent(Parser.java:390) at ca.uhn.hl7v2.parser.Parser.findMessageClass(Parser.java:263) at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:205) ... 1 more java.lang.NullPointerException at org.srit.hl7.TestORM.main(TestORM.java:43) Exception in thread "main" What is the correct way of modfiying the file. Please give me the proper steps t make the below changes . Hoping for a early Reply Regards Praveen Aris JAVIER RAMOS wrote: Hello, When I frist came to the Hapi distribution list, I had the same problem than you I was using the parse HAPI 0.4.2. To solve my problem I modified the jar archive of api. In thad jar i found à text file called ca/uhn/hl7v2/parser/eventmap/2.3.properties (I was using the 2.3 version of the HL7 norm) and i modified this sequence of line : ORM_O01 ORM_O01 ORM_O01 OMD_O01 ORM_O01 OMN_O01 ORM_O01 OMS_O01 ORM_O01 RDO_O01 <--- like this : ORM_O01 ORM_O01 #ORM_O01 OMD_O01 #ORM_O01 OMN_O01 #ORM_O01 OMS_O01 #ORM_O01 RDO_O01 and it worked good look. Aris PS if you are using 2.3.1 version, modifie the file "2.3.1.properties" and so on. Aris Javier Ramos Analyste-Developpeur Hôpital Cantonal Universitaire de Genève Rue Micheli-du-Crest 24 1211 Genève >>> Praveen Kumar 03/22 11:21 >>> 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 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! |
From: Jim K. <ji...@ho...> - 2005-03-22 17:13:57
|
Hi- Just a quick follow up to my last message on this topic. I should have mentioned that the interface I send to requires the use of the HL7 batch protocol. I had to write a few new "containing" classes in order to get HAPI to generate messages the way I needed them. In doing this, I think that I threw off an implicit asssumption on the part of the XMLParser, namely that everything after the root (which in my case is now the BATCH message) is a group and should be treated as such. So when it gets around to the ORU_R01 message class, its already assuming that its processing only AbstractGroups. Any thoughts on this? Thanks. Jim |
From: Jim K. <ji...@ho...> - 2005-03-22 15:42:48
|
Hey All- I know that updating the XML generation is on tap for the next release (0.4.4?) and you probably already came across this, but just in case you're still making lists: I'm generating ORU messages and I noticed that the root node is being rendered as ORU.R01 instead of the expected ORU_R01. This is being done by the makeGroupElementName method and I assume that its done to accomodate SUPPGRP type classes like ORU_R01_ORCOBRNTEOBXNTECTI where it is legitimate to replace the first underscore with a period. However, since the method doesn't differentiate between AbstractGroup implementers and AbstractMessage implementers, AbstraceMessages have their XML representations mangled. protected static String makeGroupElementName(String className) { String ret = null; int loc = className.lastIndexOf('_'); if (loc >= 0) { StringBuffer elementName = new StringBuffer(); elementName.append(className.substring(0, loc)); elementName.append('.'); elementName.append(className.substring(loc + 1)); ret = elementName.toString(); } else { ret = className; } return ret; } Maybe its possible to put the check in the encode method? private void encode(ca.uhn.hl7v2.model.Group groupObject, org.w3c.dom.Element groupElement) throws HL7Exception { String[] childNames = groupObject.getNames(); try { for (int i = 0; i < childNames.length; i++) { Structure[] reps = groupObject.getAll(childNames[i]); for (int j = 0; j < reps.length; j++) { Element childElement = groupElement.getOwnerDocument().createElement(makeGroupElementName(childNames[i])); groupElement.appendChild(childElement); if (reps[j] instanceof Group) { encode((Group) reps[j], childElement); } else if (reps[j] instanceof Segment) { encode((Segment) reps[j], childElement); } } } } catch (DOMException e) { throw new HL7Exception( "Can't encode group " + groupObject.getClass().getName(), HL7Exception.APPLICATION_INTERNAL_ERROR, e); } } |