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: James A. <ja...@ja...> - 2014-06-10 14:16:46
|
Hi Matt, You'll find the full specification for HL7 over HTTP here: http://hl7api.sourceforge.net/hapi-hl7overhttp/specification.html 1) what should the content type be for the response messages ER7 formatted hl7 requests (I'm thinking text/plain) application/hl7-v2 (although as a part of preparation for balloting at HL7 this has been changed to "application/hl7-v2+er7". HAPI currently won't accept the latter, but the next version will accept either.) 2) Using the following code, how would I serialize the response message for the http response stream? Here is a complete example of sending a message using HAPI's HL7 over HTTP implementation: http://hl7api.sourceforge.net/hapi-hl7overhttp/doc_hapi.html 3) are signers required? 4) Does anyone have an example of how signers are contstructed/implemented? Depends what you mean by signers. There was a "signature header" present in a previous version of the specification, but that was removed about a year ago. I doubt it ever got used anywhere. 5) are there any headers that would be expected in Hl7 over http responses ? Other than Content-Type (including charset=utf-8), no. Cheers, James On Thu, Jun 5, 2014 at 3:49 PM, Matt Young <mat...@pa...> wrote: > I have some questions about hl7 over http. > 1) what should the content type be for the response messages ER7 > formatted hl7 requests (I'm thinking text/plain) > 2) Using the following code, how would I serialize the response message > for the http response stream? > Parser p = hapiContext.getGenericParser(); > Message resp= null; > Message hapiMsg; > > // The parse method performs the actual parsing > hapiMsg = p.parse(hl7Text); > respMsg= mainProcessor.processMessage(hapiMsg, new > HashMap<String,Object>()); // mainProcessor implements > ca.uhn.hl7v2.protocol.ReceivingApplication > // I don't know if the following would be right > httpServletResponse.getOutputStream().write(respMsg.encode().getBytes()); > // what happens if the hl7Text contained xml? what if it was ER7? > 3) are signers required? > 4) Does anyone have an example of how signers are contstructed/implemented? > 5) are there any headers that would be expected in Hl7 over http responses > ? > > The PaySpan e-mail gateway <mailgw01> made the following annotations. > > ------------------------------------------------------------------------------ > Confidentiality statement > *********************************************************************** > Notice: This e-mail message, including any attachments, is for the sole > use of the intended recipient(s) and may contain confidential and > privileged information. Any unauthorized review, copy, use, disclosure, > or distribution is prohibited. If you are not the intended recipient, > or not an agent of the intended recipient responsible for delivering this > message, please contact the sender by reply e-mail and destroy all copies > of the original message.[TW] 06/05/14, 15:49:59 > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |
From: James A. <ja...@ja...> - 2014-06-09 16:56:02
|
In < 2.1 the ConnectionHub class is the main part of the API used to send messages. Here is a random example I found using it: http://icardea.googlecode.com/svn/trunk/icardea-cied-dataprocessing/src/main/java/de/offis/health/icardea/cied/hl7/processing/HL7_ORU_Sending.java Cheers, James On Mon, Jun 9, 2014 at 4:09 AM, Sara Fatima <sar...@gm...> wrote: > Hi > > Thank you Jure. I trying to work with HAPI v2.0. I wish to work without > using HapiContext and DefaultHapiContext. Is there any other class, which > could be used instead? > > Thanks & Regards > Sara Fatima > > > > On Mon, Jun 9, 2014 at 1:21 PM, Jure Grom <Jur...@ma...> wrote: > >> Try http://hl7api.sourceforge.net/devbyexample.html , section "Sending >> and receiving". There you'll find >> http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html >> >> >> Regards, >> Jure >> ------------------------------ >> *Od:* Sara Fatima [sar...@gm...] >> *Poslano:* ponedeljek, 9. junij 2014 9:41 >> *Za:* HAPI Devel List >> *Zadeva:* [HAPI-devel] Sending over MLLP >> >> Hi all, >> >> I wish to use HAPI to send HL7 message over MLLP using PAM profile. I >> could only find sample to send message over HTTP, however I understand that >> HAPI also allows to send message over MLLP. I would be glad if I could get >> some guidance on this. >> >> Thanks & Regards >> Sara >> > > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://www.hpccsystems.com > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Jure G. <Jur...@ma...> - 2014-06-09 08:19:23
|
Try http://hl7api.sourceforge.net/devbyexample.html , section "Sending and receiving". There you'll find http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html Regards, Jure ________________________________ Od: Sara Fatima [sar...@gm...] Poslano: ponedeljek, 9. junij 2014 9:41 Za: HAPI Devel List Zadeva: [HAPI-devel] Sending over MLLP Hi all, I wish to use HAPI to send HL7 message over MLLP using PAM profile. I could only find sample to send message over HTTP, however I understand that HAPI also allows to send message over MLLP. I would be glad if I could get some guidance on this. Thanks & Regards Sara |
From: Sara F. <sar...@gm...> - 2014-06-09 08:09:49
|
Hi Thank you Jure. I trying to work with HAPI v2.0. I wish to work without using HapiContext and DefaultHapiContext. Is there any other class, which could be used instead? Thanks & Regards Sara Fatima On Mon, Jun 9, 2014 at 1:21 PM, Jure Grom <Jur...@ma...> wrote: > Try http://hl7api.sourceforge.net/devbyexample.html , section "Sending > and receiving". There you'll find > http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html > > > Regards, > Jure > ------------------------------ > *Od:* Sara Fatima [sar...@gm...] > *Poslano:* ponedeljek, 9. junij 2014 9:41 > *Za:* HAPI Devel List > *Zadeva:* [HAPI-devel] Sending over MLLP > > Hi all, > > I wish to use HAPI to send HL7 message over MLLP using PAM profile. I > could only find sample to send message over HTTP, however I understand that > HAPI also allows to send message over MLLP. I would be glad if I could get > some guidance on this. > > Thanks & Regards > Sara > |
From: Sara F. <sar...@gm...> - 2014-06-09 07:41:48
|
Hi all, I wish to use HAPI to send HL7 message over MLLP using PAM profile. I could only find sample to send message over HTTP, however I understand that HAPI also allows to send message over MLLP. I would be glad if I could get some guidance on this. Thanks & Regards Sara |
From: Matt Y. <mat...@pa...> - 2014-06-05 20:09:43
|
I have some questions about hl7 over http. 1) what should the content type be for the response messages ER7 formatted hl7 requests (I'm thinking text/plain) 2) Using the following code, how would I serialize the response message for the http response stream? Parser p = hapiContext.getGenericParser(); Message resp= null; Message hapiMsg; // The parse method performs the actual parsing hapiMsg = p.parse(hl7Text); respMsg= mainProcessor.processMessage(hapiMsg, new HashMap<String,Object>()); // mainProcessor implements ca.uhn.hl7v2.protocol.ReceivingApplication // I don't know if the following would be right httpServletResponse.getOutputStream().write(respMsg.encode().getBytes()); // what happens if the hl7Text contained xml? what if it was ER7? 3) are signers required? 4) Does anyone have an example of how signers are contstructed/implemented? 5) are there any headers that would be expected in Hl7 over http responses ? The PaySpan e-mail gateway <mailgw01> made the following annotations. ------------------------------------------------------------------------------ Confidentiality statement *********************************************************************** Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, copy, use, disclosure, or distribution is prohibited. If you are not the intended recipient, or not an agent of the intended recipient responsible for delivering this message, please contact the sender by reply e-mail and destroy all copies of the original message.[TW] 06/05/14, 15:49:59 |
From: James A. <ja...@ja...> - 2014-06-05 14:22:42
|
Hi Sara, The names of various fields changed between versions of HL7. Using a newer version of the structures is fine (although you need to be aware that some fields may have been added which will be incompatible with older versions of the standard). Because of these name changes though, the method names you need to use to populate data in the messages will change too. If you have compile errors, look to see if there are methods with similar names (opening up the actual HL7 standard for the version you are using would be helpful) and you can probably simply change as required. Maybe also try looking for other modules in the code you are working with that need to populate these fields. James On Thu, Jun 5, 2014 at 2:47 AM, Sara Fatima <sar...@gm...> wrote: > Hi James > > I tried with removing <scope>provided</scope> but still the error is > there. > > What I realised that openmrs-core has already structures v25 and v26. So I > tried changing my imports, and work with v25. (Earlier I was trying to add > structure v24 dependency) > > import ca.uhn.hl7v2.model.v25.message.ADT_A01; >> import ca.uhn.hl7v2.model.v25.segment.MSH; >> import ca.uhn.hl7v2.model.v25.segment.PID; > > > By doing this my error was resolved and I could generate HL7 message, but > by changing to v25 I got error in below line. > > >> mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); >> mshSegment.getMessageType().getMessageType().setValue("ADT"); >> pid.getPatientIdentifierList(0).getID().setValue("123456"); > > > Currently I just commented out these lines to check if the rest is > working, it is working now. But I would like to know why these lines aren't > getting compiled. (As I will also need patient identifier in my HL7 message) > > Also my knowledge about HAPI is limited and I am not very sure what effect > would be there by changing structure from v24 to v25. Could you please > brief me about the purpose of these 2 structures? > > Thanks & Regards > Sara > > Regards > Sara Fatima > > > > On Wed, Jun 4, 2014 at 11:55 PM, James Agnew <ja...@ja...> wrote: > >> I would try removing the <scope>provided</scope> from your dependencies. >> That means "use it to compile, but don't include it in the finished >> product" which is probably not wanted here. >> James >> >> >> On Wed, Jun 4, 2014 at 1:22 PM, Sara Fatima <sar...@gm...> >> wrote: >> >>> Hi >>> >>> Which classpath are you referring to? I haven't set any classpath as of >>> now. What class paths do I need to set? >>> On 4 Jun 2014 22:49, "g3949" <g3...@ya...> wrote: >>> >>>> >>>> then your classpath is wrong... >>>> HAPI doesn't find the hapi-jar files while trying do run the programm >>>> >>>> FP >>>> >>>> >>>> On Wednesday, June 4, 2014 7:10 PM, Sara Fatima < >>>> sar...@gm...> wrote: >>>> >>>> >>>> Hi Christian, >>>> >>>> I have added the below dependencies, >>>> >>>> <dependency> >>>> <groupId>ca.uhn.hapi</groupId> >>>> <artifactId>hapi-base</artifactId> >>>> <version>2.0</version> >>>> <scope>provided</scope> >>>> <exclusions> >>>> <exclusion> >>>> <groupId>org.slf4j</groupId> >>>> <artifactId>slf4j-api</artifactId> >>>> </exclusion> >>>> <exclusion> >>>> <groupId>log4j</groupId> >>>> <artifactId>log4j</artifactId> >>>> </exclusion> >>>> </exclusions> >>>> </dependency> >>>> <dependency> >>>> <groupId>ca.uhn.hapi</groupId> >>>> <artifactId>hapi-structures-v24</artifactId> >>>> <version>2.0</version> >>>> <scope>provided</scope> >>>> </dependency> >>>> >>>> >>>> But I am still facing the same problem. >>>> >>>> An Internal Error has Occurred >>>> >>>> *java.lang.NoClassDefFoundError *ca/uhn/hl7v2/model/v24/message/ADT_A01 >>>> >>>> >>>> >>>> Regards >>>> Sara Fatima >>>> >>>> >>>> >>>> On Wed, Jun 4, 2014 at 9:43 PM, Christian Ohr <chr...@gm...> >>>> wrote: >>>> >>>> You need to add dependencies on the structure libraries. >>>> Please get started with >>>> http://hl7api.sourceforge.net/getting_started.html. >>>> >>>> Christian >>>> >>>> >>>> 2014-06-04 17:35 GMT+02:00 Sara Fatima <sar...@gm...>: >>>> >>>> Hi Christian, >>>> >>>> Thank you for the guidelines. I am trying the below code to create HL7 >>>> message. >>>> >>>> ADT_A01 adt = new ADT_A01(); >>>> >>>> MSH mshSegment = adt.getMSH(); >>>> mshSegment.getFieldSeparator().setValue("|"); >>>> mshSegment.getEncodingCharacters().setValue("^~\\&"); >>>> >>>> mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); >>>> >>>> mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); >>>> mshSegment.getSequenceNumber().setValue("123"); >>>> mshSegment.getMessageType().getMessageType().setValue("ADT"); >>>> mshSegment.getMessageType().getTriggerEvent().setValue("A01"); >>>> mshSegment.getMessageType().getMessageStructure().setValue("ADT >>>> A01"); >>>> >>>> PID pid = adt.getPID(); >>>> >>>> pid.getPatientName(0).getFamilyName().getSurname().setValue("Doe"); >>>> pid.getPatientName(0).getGivenName().setValue("John"); >>>> pid.getPatientIdentifierList(0).getID().setValue("123456"); >>>> >>>> Parser parser = new PipeParser(); >>>> String encodedMessage = parser.encode(adt); >>>> System.out.println("Printing ER7 Encoded Message:"); >>>> System.out.println(encodedMessage); >>>> >>>> return encodedMessage; >>>> >>>> But I am facing an error, as >>>> >>>> An Internal Error has Occurred >>>> >>>> *java.lang.NoClassDefFoundError *ca/uhn/hl7v2/model/v24/message/ADT_A01 >>>> >>>> >>>> Is there any jar file which I should add to support ADT? (I am using it >>>> in maven project) >>>> >>>> Thanks & Regards >>>> Sara Fatima >>>> >>>> >>>> >>>> On Wed, Jun 4, 2014 at 8:29 PM, Christian Ohr <chr...@gm...> >>>> wrote: >>>> >>>> Basically you instantiate an instance of PipeParser (or GenericParser) >>>> yourself instead of obtaining it from an HapiContext: >>>> >>>> ADT_A01 adt = new ADT_A01(); >>>> >>>> ... populate message ... >>>> >>>> Parser parser = new PipeParser(); >>>> String encodedMessage = parser.encode(adt); >>>> System.out.println("Printing ER7 Encoded Message:"); >>>> System.out.println(encodedMessage); >>>> >>>> When you need to parse a HL7 message, you would call parser.parse >>>> instead of parser.encode, obviously. >>>> >>>> BTW. we always try to retain backwards-compatibility on API level as >>>> good as possible. The code above is still valid in 2.1 and 2.2. >>>> There have been some internal changes between 2.0 and 2.1 and 2.2 (and >>>> bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI >>>> versions, too. >>>> >>>> regards >>>> Christian >>>> >>>> >>>> 2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: >>>> >>>> Hi all, >>>> >>>> Since few weeks I am trying to work with HAPI. My aim here is to create >>>> a HL7 message and send it to an HIE over MLLP (using PAM profile). I need >>>> to include this feature in an OpenMRS module. HAPI is already embed in >>>> OpenMRS-core, but OpenMRS is supporting HAPI v2.0. >>>> >>>> I was using this example >>>> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to >>>> create HL7 message. What I understand here is this example is working fine >>>> with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and >>>> DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking >>>> for a way to create HL7 message using HAPI v2.0. >>>> >>>> I would be glad if someone could guide me to old documentation, or any >>>> examples which can help create HL7 message using v2.0. >>>> >>>> Thanks & Regards >>>> Sara Fatima >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and >>>> their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/NeoTech >>>> _______________________________________________ >>>> Hl7api-devel mailing list >>>> Hl7...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and >>>> their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/NeoTech >>>> _______________________________________________ >>>> Hl7api-devel mailing list >>>> Hl7...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and >>>> their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/NeoTech >>>> >>>> _______________________________________________ >>>> Hl7api-devel mailing list >>>> Hl7...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >> > |
From: Sara F. <sar...@gm...> - 2014-06-05 06:47:19
|
Hi James I tried with removing <scope>provided</scope> but still the error is there. What I realised that openmrs-core has already structures v25 and v26. So I tried changing my imports, and work with v25. (Earlier I was trying to add structure v24 dependency) import ca.uhn.hl7v2.model.v25.message.ADT_A01; > import ca.uhn.hl7v2.model.v25.segment.MSH; > import ca.uhn.hl7v2.model.v25.segment.PID; By doing this my error was resolved and I could generate HL7 message, but by changing to v25 I got error in below line. mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); > mshSegment.getMessageType().getMessageType().setValue("ADT"); > pid.getPatientIdentifierList(0).getID().setValue("123456"); Currently I just commented out these lines to check if the rest is working, it is working now. But I would like to know why these lines aren't getting compiled. (As I will also need patient identifier in my HL7 message) Also my knowledge about HAPI is limited and I am not very sure what effect would be there by changing structure from v24 to v25. Could you please brief me about the purpose of these 2 structures? Thanks & Regards Sara Regards Sara Fatima On Wed, Jun 4, 2014 at 11:55 PM, James Agnew <ja...@ja...> wrote: > I would try removing the <scope>provided</scope> from your dependencies. > That means "use it to compile, but don't include it in the finished > product" which is probably not wanted here. > James > > > On Wed, Jun 4, 2014 at 1:22 PM, Sara Fatima <sar...@gm...> > wrote: > >> Hi >> >> Which classpath are you referring to? I haven't set any classpath as of >> now. What class paths do I need to set? >> On 4 Jun 2014 22:49, "g3949" <g3...@ya...> wrote: >> >>> >>> then your classpath is wrong... >>> HAPI doesn't find the hapi-jar files while trying do run the programm >>> >>> FP >>> >>> >>> On Wednesday, June 4, 2014 7:10 PM, Sara Fatima < >>> sar...@gm...> wrote: >>> >>> >>> Hi Christian, >>> >>> I have added the below dependencies, >>> >>> <dependency> >>> <groupId>ca.uhn.hapi</groupId> >>> <artifactId>hapi-base</artifactId> >>> <version>2.0</version> >>> <scope>provided</scope> >>> <exclusions> >>> <exclusion> >>> <groupId>org.slf4j</groupId> >>> <artifactId>slf4j-api</artifactId> >>> </exclusion> >>> <exclusion> >>> <groupId>log4j</groupId> >>> <artifactId>log4j</artifactId> >>> </exclusion> >>> </exclusions> >>> </dependency> >>> <dependency> >>> <groupId>ca.uhn.hapi</groupId> >>> <artifactId>hapi-structures-v24</artifactId> >>> <version>2.0</version> >>> <scope>provided</scope> >>> </dependency> >>> >>> >>> But I am still facing the same problem. >>> >>> An Internal Error has Occurred >>> >>> *java.lang.NoClassDefFoundError *ca/uhn/hl7v2/model/v24/message/ADT_A01 >>> >>> >>> >>> Regards >>> Sara Fatima >>> >>> >>> >>> On Wed, Jun 4, 2014 at 9:43 PM, Christian Ohr <chr...@gm...> >>> wrote: >>> >>> You need to add dependencies on the structure libraries. >>> Please get started with >>> http://hl7api.sourceforge.net/getting_started.html. >>> >>> Christian >>> >>> >>> 2014-06-04 17:35 GMT+02:00 Sara Fatima <sar...@gm...>: >>> >>> Hi Christian, >>> >>> Thank you for the guidelines. I am trying the below code to create HL7 >>> message. >>> >>> ADT_A01 adt = new ADT_A01(); >>> >>> MSH mshSegment = adt.getMSH(); >>> mshSegment.getFieldSeparator().setValue("|"); >>> mshSegment.getEncodingCharacters().setValue("^~\\&"); >>> >>> mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); >>> >>> mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); >>> mshSegment.getSequenceNumber().setValue("123"); >>> mshSegment.getMessageType().getMessageType().setValue("ADT"); >>> mshSegment.getMessageType().getTriggerEvent().setValue("A01"); >>> mshSegment.getMessageType().getMessageStructure().setValue("ADT >>> A01"); >>> >>> PID pid = adt.getPID(); >>> pid.getPatientName(0).getFamilyName().getSurname().setValue("Doe"); >>> pid.getPatientName(0).getGivenName().setValue("John"); >>> pid.getPatientIdentifierList(0).getID().setValue("123456"); >>> >>> Parser parser = new PipeParser(); >>> String encodedMessage = parser.encode(adt); >>> System.out.println("Printing ER7 Encoded Message:"); >>> System.out.println(encodedMessage); >>> >>> return encodedMessage; >>> >>> But I am facing an error, as >>> >>> An Internal Error has Occurred >>> >>> *java.lang.NoClassDefFoundError *ca/uhn/hl7v2/model/v24/message/ADT_A01 >>> >>> >>> Is there any jar file which I should add to support ADT? (I am using it >>> in maven project) >>> >>> Thanks & Regards >>> Sara Fatima >>> >>> >>> >>> On Wed, Jun 4, 2014 at 8:29 PM, Christian Ohr <chr...@gm...> >>> wrote: >>> >>> Basically you instantiate an instance of PipeParser (or GenericParser) >>> yourself instead of obtaining it from an HapiContext: >>> >>> ADT_A01 adt = new ADT_A01(); >>> >>> ... populate message ... >>> >>> Parser parser = new PipeParser(); >>> String encodedMessage = parser.encode(adt); >>> System.out.println("Printing ER7 Encoded Message:"); >>> System.out.println(encodedMessage); >>> >>> When you need to parse a HL7 message, you would call parser.parse >>> instead of parser.encode, obviously. >>> >>> BTW. we always try to retain backwards-compatibility on API level as >>> good as possible. The code above is still valid in 2.1 and 2.2. >>> There have been some internal changes between 2.0 and 2.1 and 2.2 (and >>> bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI >>> versions, too. >>> >>> regards >>> Christian >>> >>> >>> 2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: >>> >>> Hi all, >>> >>> Since few weeks I am trying to work with HAPI. My aim here is to create >>> a HL7 message and send it to an HIE over MLLP (using PAM profile). I need >>> to include this feature in an OpenMRS module. HAPI is already embed in >>> OpenMRS-core, but OpenMRS is supporting HAPI v2.0. >>> >>> I was using this example >>> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to >>> create HL7 message. What I understand here is this example is working fine >>> with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and >>> DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking >>> for a way to create HL7 message using HAPI v2.0. >>> >>> I would be glad if someone could guide me to old documentation, or any >>> examples which can help create HL7 message using v2.0. >>> >>> Thanks & Regards >>> Sara Fatima >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > |
From: James A. <ja...@ja...> - 2014-06-04 18:26:22
|
I would try removing the <scope>provided</scope> from your dependencies. That means "use it to compile, but don't include it in the finished product" which is probably not wanted here. James On Wed, Jun 4, 2014 at 1:22 PM, Sara Fatima <sar...@gm...> wrote: > Hi > > Which classpath are you referring to? I haven't set any classpath as of > now. What class paths do I need to set? > On 4 Jun 2014 22:49, "g3949" <g3...@ya...> wrote: > >> >> then your classpath is wrong... >> HAPI doesn't find the hapi-jar files while trying do run the programm >> >> FP >> >> >> On Wednesday, June 4, 2014 7:10 PM, Sara Fatima <sar...@gm...> >> wrote: >> >> >> Hi Christian, >> >> I have added the below dependencies, >> >> <dependency> >> <groupId>ca.uhn.hapi</groupId> >> <artifactId>hapi-base</artifactId> >> <version>2.0</version> >> <scope>provided</scope> >> <exclusions> >> <exclusion> >> <groupId>org.slf4j</groupId> >> <artifactId>slf4j-api</artifactId> >> </exclusion> >> <exclusion> >> <groupId>log4j</groupId> >> <artifactId>log4j</artifactId> >> </exclusion> >> </exclusions> >> </dependency> >> <dependency> >> <groupId>ca.uhn.hapi</groupId> >> <artifactId>hapi-structures-v24</artifactId> >> <version>2.0</version> >> <scope>provided</scope> >> </dependency> >> >> >> But I am still facing the same problem. >> >> An Internal Error has Occurred >> >> *java.lang.NoClassDefFoundError *ca/uhn/hl7v2/model/v24/message/ADT_A01 >> >> >> >> Regards >> Sara Fatima >> >> >> >> On Wed, Jun 4, 2014 at 9:43 PM, Christian Ohr <chr...@gm...> >> wrote: >> >> You need to add dependencies on the structure libraries. >> Please get started with >> http://hl7api.sourceforge.net/getting_started.html. >> >> Christian >> >> >> 2014-06-04 17:35 GMT+02:00 Sara Fatima <sar...@gm...>: >> >> Hi Christian, >> >> Thank you for the guidelines. I am trying the below code to create HL7 >> message. >> >> ADT_A01 adt = new ADT_A01(); >> >> MSH mshSegment = adt.getMSH(); >> mshSegment.getFieldSeparator().setValue("|"); >> mshSegment.getEncodingCharacters().setValue("^~\\&"); >> >> mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); >> >> mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); >> mshSegment.getSequenceNumber().setValue("123"); >> mshSegment.getMessageType().getMessageType().setValue("ADT"); >> mshSegment.getMessageType().getTriggerEvent().setValue("A01"); >> mshSegment.getMessageType().getMessageStructure().setValue("ADT >> A01"); >> >> PID pid = adt.getPID(); >> pid.getPatientName(0).getFamilyName().getSurname().setValue("Doe"); >> pid.getPatientName(0).getGivenName().setValue("John"); >> pid.getPatientIdentifierList(0).getID().setValue("123456"); >> >> Parser parser = new PipeParser(); >> String encodedMessage = parser.encode(adt); >> System.out.println("Printing ER7 Encoded Message:"); >> System.out.println(encodedMessage); >> >> return encodedMessage; >> >> But I am facing an error, as >> >> An Internal Error has Occurred >> >> *java.lang.NoClassDefFoundError *ca/uhn/hl7v2/model/v24/message/ADT_A01 >> >> >> Is there any jar file which I should add to support ADT? (I am using it >> in maven project) >> >> Thanks & Regards >> Sara Fatima >> >> >> >> On Wed, Jun 4, 2014 at 8:29 PM, Christian Ohr <chr...@gm...> >> wrote: >> >> Basically you instantiate an instance of PipeParser (or GenericParser) >> yourself instead of obtaining it from an HapiContext: >> >> ADT_A01 adt = new ADT_A01(); >> >> ... populate message ... >> >> Parser parser = new PipeParser(); >> String encodedMessage = parser.encode(adt); >> System.out.println("Printing ER7 Encoded Message:"); >> System.out.println(encodedMessage); >> >> When you need to parse a HL7 message, you would call parser.parse instead >> of parser.encode, obviously. >> >> BTW. we always try to retain backwards-compatibility on API level as good >> as possible. The code above is still valid in 2.1 and 2.2. >> There have been some internal changes between 2.0 and 2.1 and 2.2 (and >> bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI >> versions, too. >> >> regards >> Christian >> >> >> 2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: >> >> Hi all, >> >> Since few weeks I am trying to work with HAPI. My aim here is to create a >> HL7 message and send it to an HIE over MLLP (using PAM profile). I need to >> include this feature in an OpenMRS module. HAPI is already embed in >> OpenMRS-core, but OpenMRS is supporting HAPI v2.0. >> >> I was using this example >> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to >> create HL7 message. What I understand here is this example is working fine >> with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and >> DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking >> for a way to create HL7 message using HAPI v2.0. >> >> I would be glad if someone could guide me to old documentation, or any >> examples which can help create HL7 message using v2.0. >> >> Thanks & Regards >> Sara Fatima >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and >> their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> >> > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Sara F. <sar...@gm...> - 2014-06-04 17:22:54
|
Hi Which classpath are you referring to? I haven't set any classpath as of now. What class paths do I need to set? On 4 Jun 2014 22:49, "g3949" <g3...@ya...> wrote: > > then your classpath is wrong... > HAPI doesn't find the hapi-jar files while trying do run the programm > > FP > > > On Wednesday, June 4, 2014 7:10 PM, Sara Fatima <sar...@gm...> > wrote: > > > Hi Christian, > > I have added the below dependencies, > > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-base</artifactId> > <version>2.0</version> > <scope>provided</scope> > <exclusions> > <exclusion> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-api</artifactId> > </exclusion> > <exclusion> > <groupId>log4j</groupId> > <artifactId>log4j</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-structures-v24</artifactId> > <version>2.0</version> > <scope>provided</scope> > </dependency> > > > But I am still facing the same problem. > > An Internal Error has Occurred > > *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/model/v24/message/ADT_A01 > > > > Regards > Sara Fatima > > > > On Wed, Jun 4, 2014 at 9:43 PM, Christian Ohr <chr...@gm...> > wrote: > > You need to add dependencies on the structure libraries. > Please get started with http://hl7api.sourceforge.net/getting_started.html > . > > Christian > > > 2014-06-04 17:35 GMT+02:00 Sara Fatima <sar...@gm...>: > > Hi Christian, > > Thank you for the guidelines. I am trying the below code to create HL7 > message. > > ADT_A01 adt = new ADT_A01(); > > MSH mshSegment = adt.getMSH(); > mshSegment.getFieldSeparator().setValue("|"); > mshSegment.getEncodingCharacters().setValue("^~\\&"); > > mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); > > mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); > mshSegment.getSequenceNumber().setValue("123"); > mshSegment.getMessageType().getMessageType().setValue("ADT"); > mshSegment.getMessageType().getTriggerEvent().setValue("A01"); > mshSegment.getMessageType().getMessageStructure().setValue("ADT > A01"); > > PID pid = adt.getPID(); > pid.getPatientName(0).getFamilyName().getSurname().setValue("Doe"); > pid.getPatientName(0).getGivenName().setValue("John"); > pid.getPatientIdentifierList(0).getID().setValue("123456"); > > Parser parser = new PipeParser(); > String encodedMessage = parser.encode(adt); > System.out.println("Printing ER7 Encoded Message:"); > System.out.println(encodedMessage); > > return encodedMessage; > > But I am facing an error, as > > An Internal Error has Occurred > > *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/model/v24/message/ADT_A01 > > > Is there any jar file which I should add to support ADT? (I am using it in > maven project) > > Thanks & Regards > Sara Fatima > > > > On Wed, Jun 4, 2014 at 8:29 PM, Christian Ohr <chr...@gm...> > wrote: > > Basically you instantiate an instance of PipeParser (or GenericParser) > yourself instead of obtaining it from an HapiContext: > > ADT_A01 adt = new ADT_A01(); > > ... populate message ... > > Parser parser = new PipeParser(); > String encodedMessage = parser.encode(adt); > System.out.println("Printing ER7 Encoded Message:"); > System.out.println(encodedMessage); > > When you need to parse a HL7 message, you would call parser.parse instead > of parser.encode, obviously. > > BTW. we always try to retain backwards-compatibility on API level as good > as possible. The code above is still valid in 2.1 and 2.2. > There have been some internal changes between 2.0 and 2.1 and 2.2 (and > bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI > versions, too. > > regards > Christian > > > 2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: > > Hi all, > > Since few weeks I am trying to work with HAPI. My aim here is to create a > HL7 message and send it to an HIE over MLLP (using PAM profile). I need to > include this feature in an OpenMRS module. HAPI is already embed in > OpenMRS-core, but OpenMRS is supporting HAPI v2.0. > > I was using this example > <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to > create HL7 message. What I understand here is this example is working fine > with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and > DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking > for a way to create HL7 message using HAPI v2.0. > > I would be glad if someone could guide me to old documentation, or any > examples which can help create HL7 message using v2.0. > > Thanks & Regards > Sara Fatima > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > |
From: g3949 <g3...@ya...> - 2014-06-04 17:19:18
|
then your classpath is wrong... HAPI doesn't find the hapi-jar files while trying do run the programm FP On Wednesday, June 4, 2014 7:10 PM, Sara Fatima <sar...@gm...> wrote: Hi Christian, I have added the below dependencies, <dependency> ><groupId>ca.uhn.hapi</groupId> ><artifactId>hapi-base</artifactId> ><version>2.0</version> ><scope>provided</scope> ><exclusions> ><exclusion> ><groupId>org.slf4j</groupId> ><artifactId>slf4j-api</artifactId> ></exclusion> ><exclusion> ><groupId>log4j</groupId> ><artifactId>log4j</artifactId> ></exclusion> ></exclusions> ></dependency> ><dependency> ><groupId>ca.uhn.hapi</groupId> ><artifactId>hapi-structures-v24</artifactId> ><version>2.0</version> ><scope>provided</scope> ></dependency> > But I am still facing the same problem. An Internal Error has Occurred >java.lang.NoClassDefFoundError >ca/uhn/hl7v2/model/v24/message/ADT_A01 RegardsSara Fatima On Wed, Jun 4, 2014 at 9:43 PM, Christian Ohr <chr...@gm...> wrote: You need to add dependencies on the structure libraries. >Please get started with http://hl7api.sourceforge.net/getting_started.html. > >Christian > > > > >2014-06-04 17:35 GMT+02:00 Sara Fatima <sar...@gm...>: > > >Hi Christian, >> >> >>Thank you for the guidelines. I am trying the below code to create HL7 message. >> >> >> ADT_A01 adt = new ADT_A01(); >> >> MSH mshSegment = adt.getMSH(); >> mshSegment.getFieldSeparator().setValue("|"); >> mshSegment.getEncodingCharacters().setValue("^~\\&"); >> mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); >> mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); >> mshSegment.getSequenceNumber().setValue("123"); >> mshSegment.getMessageType().getMessageType().setValue("ADT"); >> mshSegment.getMessageType().getTriggerEvent().setValue("A01"); >> mshSegment.getMessageType().getMessageStructure().setValue("ADT A01"); >> >> PID pid = adt.getPID(); >> pid.getPatientName(0).getFamilyName().getSurname().setValue("Doe"); >> pid.getPatientName(0).getGivenName().setValue("John"); >> pid.getPatientIdentifierList(0).getID().setValue("123456"); >> >> >> Parser parser = new PipeParser(); >> String encodedMessage = parser.encode(adt); >> System.out.println("Printing ER7 Encoded Message:"); >> System.out.println(encodedMessage); >> >> return encodedMessage; >> >> >>But I am facing an error, as >>An Internal Error has Occurred >>>java.lang.NoClassDefFoundError >>>ca/uhn/hl7v2/model/v24/message/ADT_A01 >> >> >>Is there any jar file which I should add to support ADT? (I am using it in maven project) >> >> >>Thanks & RegardsSara Fatima >> >> >> >> >>On Wed, Jun 4, 2014 at 8:29 PM, Christian Ohr <chr...@gm...> wrote: >> >>Basically you instantiate an instance of PipeParser (or GenericParser) yourself instead of obtaining it from an HapiContext: >>> >>> ADT_A01 adt = new ADT_A01(); >>> >>> >>>... populate message ... >>> >>> >>>Parser parser = new PipeParser(); >>>String encodedMessage = parser.encode(adt); >>>System.out.println("Printing ER7 Encoded Message:"); >>>System.out.println(encodedMessage); >>> >>>When you need to parse a HL7 message, you would call parser.parse instead of parser.encode, obviously. >>> >>> >>>BTW. we always try to retain backwards-compatibility on API level as good as possible. The code above is still valid in 2.1 and 2.2. >>>There have been some internal changes between 2.0 and 2.1 and 2.2 (and bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI versions, too. >>> >>>regards >>>Christian >>> >>> >>> >>>2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: >>> >>>Hi all, >>>> >>>> >>>>Since few weeks I am trying to work with HAPI. My aim here is to create a HL7 message and send it to an HIE over MLLP (using PAM profile). I need to include this feature in an OpenMRS module. HAPI is already embed in OpenMRS-core, but OpenMRS is supporting HAPI v2.0. >>>> >>>> >>>>I was using this example to create HL7 message. What I understand here is this example is working fine with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking for a way to create HL7 message using HAPI v2.0. >>>> >>>> >>>>I would be glad if someone could guide me to old documentation, or any examples which can help create HL7 message using v2.0. >>>> >>>> >>>>Thanks & RegardsSara Fatima >>>> >>>> >>>> >>>>------------------------------------------------------------------------------ >>>>Learn Graph Databases - Download FREE O'Reilly Book >>>>"Graph Databases" is the definitive new guide to graph databases and their >>>>applications. Written by three acclaimed leaders in the field, >>>>this first edition is now available. Download your free book today! >>>>http://p.sf.net/sfu/NeoTech >>>>_______________________________________________ >>>>Hl7api-devel mailing list >>>>Hl7...@li... >>>>https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>>> >>> >>>------------------------------------------------------------------------------ >>>Learn Graph Databases - Download FREE O'Reilly Book >>>"Graph Databases" is the definitive new guide to graph databases and their >>>applications. Written by three acclaimed leaders in the field, >>>this first edition is now available. Download your free book today! >>>http://p.sf.net/sfu/NeoTech >>>_______________________________________________ >>>Hl7api-devel mailing list >>>Hl7...@li... >>>https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >> > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: Sara F. <sar...@gm...> - 2014-06-04 17:08:21
|
Hi Christian, I have added the below dependencies, > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-base</artifactId> > <version>2.0</version> > <scope>provided</scope> > <exclusions> > <exclusion> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-api</artifactId> > </exclusion> > <exclusion> > <groupId>log4j</groupId> > <artifactId>log4j</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-structures-v24</artifactId> > <version>2.0</version> > <scope>provided</scope> > </dependency> > But I am still facing the same problem. > An Internal Error has Occurred > > *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/model/v24/message/ADT_A01 Regards Sara Fatima On Wed, Jun 4, 2014 at 9:43 PM, Christian Ohr <chr...@gm...> wrote: > You need to add dependencies on the structure libraries. > Please get started with http://hl7api.sourceforge.net/getting_started.html > . > > Christian > > > 2014-06-04 17:35 GMT+02:00 Sara Fatima <sar...@gm...>: > > Hi Christian, >> >> Thank you for the guidelines. I am trying the below code to create HL7 >> message. >> >> ADT_A01 adt = new ADT_A01(); >> >> MSH mshSegment = adt.getMSH(); >> mshSegment.getFieldSeparator().setValue("|"); >> mshSegment.getEncodingCharacters().setValue("^~\\&"); >> >> mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); >> >> mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); >> mshSegment.getSequenceNumber().setValue("123"); >> mshSegment.getMessageType().getMessageType().setValue("ADT"); >> mshSegment.getMessageType().getTriggerEvent().setValue("A01"); >> mshSegment.getMessageType().getMessageStructure().setValue("ADT >> A01"); >> >> PID pid = adt.getPID(); >> pid.getPatientName(0).getFamilyName().getSurname().setValue("Doe"); >> pid.getPatientName(0).getGivenName().setValue("John"); >> pid.getPatientIdentifierList(0).getID().setValue("123456"); >> >> Parser parser = new PipeParser(); >> String encodedMessage = parser.encode(adt); >> System.out.println("Printing ER7 Encoded Message:"); >> System.out.println(encodedMessage); >> >> return encodedMessage; >> >> But I am facing an error, as >> >>> An Internal Error has Occurred >>> >>> *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/model/v24/message/ADT_A01 >> >> >> Is there any jar file which I should add to support ADT? (I am using it >> in maven project) >> >> Thanks & Regards >> Sara Fatima >> >> >> >> On Wed, Jun 4, 2014 at 8:29 PM, Christian Ohr <chr...@gm...> >> wrote: >> >>> Basically you instantiate an instance of PipeParser (or GenericParser) >>> yourself instead of obtaining it from an HapiContext: >>> >>> ADT_A01 adt = new ADT_A01(); >>> >>> ... populate message ... >>> >>> Parser parser = new PipeParser(); >>> String encodedMessage = parser.encode(adt); >>> System.out.println("Printing ER7 Encoded Message:"); >>> System.out.println(encodedMessage); >>> >>> When you need to parse a HL7 message, you would call parser.parse >>> instead of parser.encode, obviously. >>> >>> BTW. we always try to retain backwards-compatibility on API level as >>> good as possible. The code above is still valid in 2.1 and 2.2. >>> There have been some internal changes between 2.0 and 2.1 and 2.2 (and >>> bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI >>> versions, too. >>> >>> regards >>> Christian >>> >>> >>> 2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: >>> >>>> Hi all, >>>> >>>> Since few weeks I am trying to work with HAPI. My aim here is to create >>>> a HL7 message and send it to an HIE over MLLP (using PAM profile). I need >>>> to include this feature in an OpenMRS module. HAPI is already embed in >>>> OpenMRS-core, but OpenMRS is supporting HAPI v2.0. >>>> >>>> I was using this example >>>> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to >>>> create HL7 message. What I understand here is this example is working fine >>>> with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and >>>> DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking >>>> for a way to create HL7 message using HAPI v2.0. >>>> >>>> I would be glad if someone could guide me to old documentation, or any >>>> examples which can help create HL7 message using v2.0. >>>> >>>> Thanks & Regards >>>> Sara Fatima >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Learn Graph Databases - Download FREE O'Reilly Book >>>> "Graph Databases" is the definitive new guide to graph databases and >>>> their >>>> applications. Written by three acclaimed leaders in the field, >>>> this first edition is now available. Download your free book today! >>>> http://p.sf.net/sfu/NeoTech >>>> _______________________________________________ >>>> Hl7api-devel mailing list >>>> Hl7...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >> > |
From: Christian O. <chr...@gm...> - 2014-06-04 16:13:25
|
You need to add dependencies on the structure libraries. Please get started with http://hl7api.sourceforge.net/getting_started.html. Christian 2014-06-04 17:35 GMT+02:00 Sara Fatima <sar...@gm...>: > Hi Christian, > > Thank you for the guidelines. I am trying the below code to create HL7 > message. > > ADT_A01 adt = new ADT_A01(); > > MSH mshSegment = adt.getMSH(); > mshSegment.getFieldSeparator().setValue("|"); > mshSegment.getEncodingCharacters().setValue("^~\\&"); > > mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); > > mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); > mshSegment.getSequenceNumber().setValue("123"); > mshSegment.getMessageType().getMessageType().setValue("ADT"); > mshSegment.getMessageType().getTriggerEvent().setValue("A01"); > mshSegment.getMessageType().getMessageStructure().setValue("ADT > A01"); > > PID pid = adt.getPID(); > pid.getPatientName(0).getFamilyName().getSurname().setValue("Doe"); > pid.getPatientName(0).getGivenName().setValue("John"); > pid.getPatientIdentifierList(0).getID().setValue("123456"); > > Parser parser = new PipeParser(); > String encodedMessage = parser.encode(adt); > System.out.println("Printing ER7 Encoded Message:"); > System.out.println(encodedMessage); > > return encodedMessage; > > But I am facing an error, as > >> An Internal Error has Occurred >> >> *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/model/v24/message/ADT_A01 > > > Is there any jar file which I should add to support ADT? (I am using it in > maven project) > > Thanks & Regards > Sara Fatima > > > > On Wed, Jun 4, 2014 at 8:29 PM, Christian Ohr <chr...@gm...> > wrote: > >> Basically you instantiate an instance of PipeParser (or GenericParser) >> yourself instead of obtaining it from an HapiContext: >> >> ADT_A01 adt = new ADT_A01(); >> >> ... populate message ... >> >> Parser parser = new PipeParser(); >> String encodedMessage = parser.encode(adt); >> System.out.println("Printing ER7 Encoded Message:"); >> System.out.println(encodedMessage); >> >> When you need to parse a HL7 message, you would call parser.parse instead >> of parser.encode, obviously. >> >> BTW. we always try to retain backwards-compatibility on API level as good >> as possible. The code above is still valid in 2.1 and 2.2. >> There have been some internal changes between 2.0 and 2.1 and 2.2 (and >> bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI >> versions, too. >> >> regards >> Christian >> >> >> 2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: >> >>> Hi all, >>> >>> Since few weeks I am trying to work with HAPI. My aim here is to create >>> a HL7 message and send it to an HIE over MLLP (using PAM profile). I need >>> to include this feature in an OpenMRS module. HAPI is already embed in >>> OpenMRS-core, but OpenMRS is supporting HAPI v2.0. >>> >>> I was using this example >>> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to >>> create HL7 message. What I understand here is this example is working fine >>> with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and >>> DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking >>> for a way to create HL7 message using HAPI v2.0. >>> >>> I would be glad if someone could guide me to old documentation, or any >>> examples which can help create HL7 message using v2.0. >>> >>> Thanks & Regards >>> Sara Fatima >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > |
From: Sara F. <sar...@gm...> - 2014-06-04 15:35:22
|
Hi Christian, Thank you for the guidelines. I am trying the below code to create HL7 message. ADT_A01 adt = new ADT_A01(); MSH mshSegment = adt.getMSH(); mshSegment.getFieldSeparator().setValue("|"); mshSegment.getEncodingCharacters().setValue("^~\\&"); mshSegment.getDateTimeOfMessage().getTimeOfAnEvent().setValue("200701011539"); mshSegment.getSendingApplication().getNamespaceID().setValue("TestSendingSystem"); mshSegment.getSequenceNumber().setValue("123"); mshSegment.getMessageType().getMessageType().setValue("ADT"); mshSegment.getMessageType().getTriggerEvent().setValue("A01"); mshSegment.getMessageType().getMessageStructure().setValue("ADT A01"); PID pid = adt.getPID(); pid.getPatientName(0).getFamilyName().getSurname().setValue("Doe"); pid.getPatientName(0).getGivenName().setValue("John"); pid.getPatientIdentifierList(0).getID().setValue("123456"); Parser parser = new PipeParser(); String encodedMessage = parser.encode(adt); System.out.println("Printing ER7 Encoded Message:"); System.out.println(encodedMessage); return encodedMessage; But I am facing an error, as > An Internal Error has Occurred > > *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/model/v24/message/ADT_A01 Is there any jar file which I should add to support ADT? (I am using it in maven project) Thanks & Regards Sara Fatima On Wed, Jun 4, 2014 at 8:29 PM, Christian Ohr <chr...@gm...> wrote: > Basically you instantiate an instance of PipeParser (or GenericParser) > yourself instead of obtaining it from an HapiContext: > > ADT_A01 adt = new ADT_A01(); > > ... populate message ... > > Parser parser = new PipeParser(); > String encodedMessage = parser.encode(adt); > System.out.println("Printing ER7 Encoded Message:"); > System.out.println(encodedMessage); > > When you need to parse a HL7 message, you would call parser.parse instead > of parser.encode, obviously. > > BTW. we always try to retain backwards-compatibility on API level as good > as possible. The code above is still valid in 2.1 and 2.2. > There have been some internal changes between 2.0 and 2.1 and 2.2 (and > bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI > versions, too. > > regards > Christian > > > 2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: > >> Hi all, >> >> Since few weeks I am trying to work with HAPI. My aim here is to create a >> HL7 message and send it to an HIE over MLLP (using PAM profile). I need to >> include this feature in an OpenMRS module. HAPI is already embed in >> OpenMRS-core, but OpenMRS is supporting HAPI v2.0. >> >> I was using this example >> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to >> create HL7 message. What I understand here is this example is working fine >> with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and >> DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking >> for a way to create HL7 message using HAPI v2.0. >> >> I would be glad if someone could guide me to old documentation, or any >> examples which can help create HL7 message using v2.0. >> >> Thanks & Regards >> Sara Fatima >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Christian O. <chr...@gm...> - 2014-06-04 14:59:24
|
Basically you instantiate an instance of PipeParser (or GenericParser) yourself instead of obtaining it from an HapiContext: ADT_A01 adt = new ADT_A01(); ... populate message ... Parser parser = new PipeParser(); String encodedMessage = parser.encode(adt); System.out.println("Printing ER7 Encoded Message:"); System.out.println(encodedMessage); When you need to parse a HL7 message, you would call parser.parse instead of parser.encode, obviously. BTW. we always try to retain backwards-compatibility on API level as good as possible. The code above is still valid in 2.1 and 2.2. There have been some internal changes between 2.0 and 2.1 and 2.2 (and bugfixes!), but chances are that OpenMRS may work as-is with newer HAPI versions, too. regards Christian 2014-06-04 7:17 GMT+02:00 Sara Fatima <sar...@gm...>: > Hi all, > > Since few weeks I am trying to work with HAPI. My aim here is to create a > HL7 message and send it to an HIE over MLLP (using PAM profile). I need to > include this feature in an OpenMRS module. HAPI is already embed in > OpenMRS-core, but OpenMRS is supporting HAPI v2.0. > > I was using this example > <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to > create HL7 message. What I understand here is this example is working fine > with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and > DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking > for a way to create HL7 message using HAPI v2.0. > > I would be glad if someone could guide me to old documentation, or any > examples which can help create HL7 message using v2.0. > > Thanks & Regards > Sara Fatima > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Sara F. <sar...@gm...> - 2014-06-04 05:17:10
|
Hi all, Since few weeks I am trying to work with HAPI. My aim here is to create a HL7 message and send it to an HIE over MLLP (using PAM profile). I need to include this feature in an OpenMRS module. HAPI is already embed in OpenMRS-core, but OpenMRS is supporting HAPI v2.0. I was using this example <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> to create HL7 message. What I understand here is this example is working fine with HAPI v2.1 and not with HAPI v2.0. I see that HapiContext and DefaultHapiContext are working with v2.1 and not with v2.0. So I am looking for a way to create HL7 message using HAPI v2.0. I would be glad if someone could guide me to old documentation, or any examples which can help create HL7 message using v2.0. Thanks & Regards Sara Fatima |
From: Sara F. <sar...@gm...> - 2014-06-03 10:06:26
|
Hi James I understand that OpenMRS core is using HAPI 2.0 and HAPIContext and DefaultHAPIContext don't seem to exist in HAPI 2.0. Is there any other class under HAPI 2.0 which can create HL7 message? I am trying to use HAPI 2.0 instead of 2.1 to keep inline with OpenMRS-core. Where can I find the old documentation to see how to create a message using HAPI 2.0. Thanks & Regards Sara On 6/3/14, Sara Fatima <sar...@gm...> wrote: > Hi James, > > Here is the dependency tree. I have included the exclusions as discussed > earlier. > > C:\Users\SARA\IHEModule\IHEInteroperability>mvn dependency:tree > [INFO] Scanning for projects... > [WARNING] > [WARNING] Some problems were encountered while building the effective model > for > org.openmrs.module:IHEInteroperability-api:jar:1.0-SNAPSHOT > [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' > must be > unique: org.openmrs.api:openmrs-api:jar -> version 1.8.0 vs (?) @ line 67, > colu > mn 15 > [WARNING] > [WARNING] Some problems were encountered while building the effective model > for > org.openmrs.module:IHEInteroperability-omod:jar:1.0-SNAPSHOT > [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' > must be > unique: org.openmrs.api:openmrs-api:jar -> version 1.8.0 vs (?) @ line 76, > colu > mn 15 > [WARNING] > [WARNING] It is highly recommended to fix these problems because they > threaten t > he stability of your build. > [WARNING] > [WARNING] For this reason, future Maven versions might no longer support > buildin > g such malformed projects. > [WARNING] > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Build Order: > [INFO] > [INFO] IHEInteroperability Module > [INFO] IHEInteroperability Module API > [INFO] IHEInteroperability Module OMOD > Downloading: > http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/ > apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml > [WARNING] Could not transfer metadata > org.apache.maven.plugins:maven-compiler-pl > ugin/maven-metadata.xml from/to openmrs-repo ( > http://mavenrepo.openmrs.org/nexus > /content/repositories/public): mavenrepo.openmrs.org > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building IHEInteroperability Module 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ > IHEInteroperability > --- > [INFO] org.openmrs.module:IHEInteroperability:pom:1.0-SNAPSHOT > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building IHEInteroperability Module API 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ > IHEInteroperability- > api --- > [INFO] org.openmrs.module:IHEInteroperability-api:jar:1.0-SNAPSHOT > [INFO] +- ca.uhn.hapi:hapi-base:jar:2.1:provided > [INFO] +- ca.uhn.hapi:hapi-structures-v21:jar:2.1:provided > [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided > [INFO] | +- commons-collections:commons-collections:jar:3.2:provided > [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided > [INFO] | +- commons-io:commons-io:jar:1.4:provided > [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided > [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided > [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided > [INFO] | +- log4j:log4j:jar:1.2.15:provided > [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided > [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided > [INFO] | | \- > org.springframework:spring-expression:jar:3.0.2.RELEASE:provided > > [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided > [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided > [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided > [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided > [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided > [INFO] | +- asm:asm-commons:jar:2.2.3:provided > [INFO] | | \- asm:asm-tree:jar:2.2.3:provided > [INFO] | +- asm:asm-util:jar:2.2.3:provided > [INFO] | +- cglib:cglib-nodep:jar:2.2:provided > [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided > [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided > [INFO] | +- stax:stax:jar:1.2.0:provided > [INFO] | +- stax:stax-api:jar:1.0.1:provided > [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided > [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided > [INFO] | | +- antlr:antlr:jar:2.7.6:provided > [INFO] | | \- asm:asm:jar:1.5.3:provided > [INFO] | +- dom4j:dom4j:jar:1.6.1:provided > [INFO] | +- c3p0:c3p0:jar:0.9.1:provided > [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided > [INFO] | +- org.slf4j:slf4j-api:jar:1.5.6:provided > [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided > [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided > [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided > [INFO] | +- javax.mail:mail:jar:1.4.1:provided > [INFO] | | \- javax.activation:activation:jar:1.1:provided > [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided > [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided > [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided > [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided > [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided > [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided > [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided > [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided > [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided > [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided > [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided > [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided > [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided > [INFO] | | \- > org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro > vided > [INFO] | +- jfree:jfreechart:jar:1.0.12:provided > [INFO] | | \- jfree:jcommon:jar:1.0.15:provided > [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided > [INFO] | +- taglibs:request:jar:1.0.1:provided > [INFO] | +- taglibs:response:jar:1.0.1:provided > [INFO] | +- taglibs:standard:jar:1.1.2:provided > [INFO] | +- taglibs:page:jar:1.0.1:provided > [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided > [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided > [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test > [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test > [INFO] \- org.openmrs.test:openmrs-test:pom:1.8.0:test > [INFO] +- org.springframework:spring-test:jar:3.0.2.RELEASE:test > [INFO] +- junit:junit:jar:4.8.1:test > [INFO] +- org.databene:databene-benerator:jar:0.5.9:test > [INFO] | +- org.databene:databene-webdecs:jar:0.4.9:test > [INFO] | | +- org.apache.poi:poi:jar:3.5-beta5:test > [INFO] | | \- org.freemarker:freemarker:jar:2.3.9:test > [INFO] | +- org.databene:databene-commons:jar:0.4.9:test > [INFO] | | \- commons-logging:commons-logging:jar:1.1:test > [INFO] | | +- logkit:logkit:jar:1.0.1:test > [INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:test > [INFO] | +- org.databene:databene-gui:jar:0.1.9:test > [INFO] | +- net.sourceforge.jtds:jtds:jar:1.2.2:test > [INFO] | +- org.apache.derby:derbyclient:jar:10.4.2.0:test > [INFO] | \- postgresql:postgresql:jar:8.3-603.jdbc4:test > [INFO] +- com.h2database:h2:jar:1.2.135:test > [INFO] +- org.dbunit:dbunit:jar:2.4.7:test > [INFO] \- xmlunit:xmlunit:jar:1.3:test > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building IHEInteroperability Module OMOD 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > Downloading: > http://hl7api.sourceforge.net/m2/org/openmrs/module/IHEInteroperabi > lity-api/1.0-SNAPSHOT/maven-metadata.xml > Downloading: > http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/ > openmrs/module/IHEInteroperability-api/1.0-SNAPSHOT/maven-metadata.xml > [WARNING] Could not transfer metadata > org.openmrs.module:IHEInteroperability-api > :1.0-SNAPSHOT/maven-metadata.xml from/to openmrs-repo ( > http://mavenrepo.openmrs. > org/nexus/content/repositories/public): mavenrepo.openmrs.org > [WARNING] Could not transfer metadata > org.openmrs.module:IHEInteroperability-api > :1.0-SNAPSHOT/maven-metadata.xml from/to hapi-sf ( > http://hl7api.sourceforge.net/ > m2): hl7api.sourceforge.net > [WARNING] Failure to transfer > org.openmrs.module:IHEInteroperability-api:1.0-SNA > PSHOT/maven-metadata.xml from > http://mavenrepo.openmrs.org/nexus/content/reposit > ories/public was cached in the local repository, resolution will not be > reattemp > ted until the update interval of openmrs-repo has elapsed or updates are > forced. > Original error: Could not transfer metadata > org.openmrs.module:IHEInteroperabil > ity-api:1.0-SNAPSHOT/maven-metadata.xml from/to openmrs-repo ( > http://mavenrepo.o > penmrs.org/nexus/content/repositories/public): mavenrepo.openmrs.org > [WARNING] Failure to transfer > org.openmrs.module:IHEInteroperability-api:1.0-SNA > PSHOT/maven-metadata.xml from http://hl7api.sourceforge.net/m2 was cached > in the > local repository, resolution will not be reattempted until the update > interval > of hapi-sf has elapsed or updates are forced. Original error: Could not > transfer > metadata > org.openmrs.module:IHEInteroperability-api:1.0-SNAPSHOT/maven-metadata > .xml from/to hapi-sf (http://hl7api.sourceforge.net/m2): > hl7api.sourceforge.net > [INFO] > [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ > IHEInteroperability- > omod --- > [INFO] org.openmrs.module:IHEInteroperability-omod:jar:1.0-SNAPSHOT > [INFO] +- ca.uhn.hapi:hapi-base:jar:2.1:provided > [INFO] +- ca.uhn.hapi:hapi-structures-v21:jar:2.1:provided > [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided > [INFO] | +- commons-collections:commons-collections:jar:3.2:provided > [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided > [INFO] | +- commons-io:commons-io:jar:1.4:provided > [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided > [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided > [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided > [INFO] | +- log4j:log4j:jar:1.2.15:provided > [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided > [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided > [INFO] | | \- > org.springframework:spring-expression:jar:3.0.2.RELEASE:provided > > [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided > [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided > [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided > [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided > [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided > [INFO] | +- asm:asm-commons:jar:2.2.3:provided > [INFO] | | \- asm:asm-tree:jar:2.2.3:provided > [INFO] | +- asm:asm-util:jar:2.2.3:provided > [INFO] | +- cglib:cglib-nodep:jar:2.2:provided > [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided > [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided > [INFO] | +- stax:stax:jar:1.2.0:provided > [INFO] | +- stax:stax-api:jar:1.0.1:provided > [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided > [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided > [INFO] | | +- antlr:antlr:jar:2.7.6:provided > [INFO] | | \- asm:asm:jar:1.5.3:provided > [INFO] | +- dom4j:dom4j:jar:1.6.1:provided > [INFO] | +- c3p0:c3p0:jar:0.9.1:provided > [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided > [INFO] | +- org.slf4j:slf4j-api:jar:1.5.6:provided > [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided > [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided > [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided > [INFO] | +- javax.mail:mail:jar:1.4.1:provided > [INFO] | | \- javax.activation:activation:jar:1.1:provided > [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided > [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided > [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided > [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided > [INFO] +- > org.openmrs.module:IHEInteroperability-api:jar:1.0-SNAPSHOT:compile > [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided > [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided > [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided > [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided > [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided > [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided > [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided > [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided > [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided > [INFO] | | \- > org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro > vided > [INFO] | +- jfree:jfreechart:jar:1.0.12:provided > [INFO] | | \- jfree:jcommon:jar:1.0.15:provided > [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided > [INFO] | +- taglibs:request:jar:1.0.1:provided > [INFO] | +- taglibs:response:jar:1.0.1:provided > [INFO] | +- taglibs:standard:jar:1.1.2:provided > [INFO] | +- taglibs:page:jar:1.0.1:provided > [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided > [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided > [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test > [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test > [INFO] \- org.openmrs.test:openmrs-test:pom:1.8.0:test > [INFO] +- org.springframework:spring-test:jar:3.0.2.RELEASE:test > [INFO] +- junit:junit:jar:4.8.1:test > [INFO] +- org.databene:databene-benerator:jar:0.5.9:test > [INFO] | +- org.databene:databene-webdecs:jar:0.4.9:test > [INFO] | | +- org.apache.poi:poi:jar:3.5-beta5:test > [INFO] | | \- org.freemarker:freemarker:jar:2.3.9:test > [INFO] | +- org.databene:databene-commons:jar:0.4.9:test > [INFO] | | \- commons-logging:commons-logging:jar:1.1:test > [INFO] | | +- logkit:logkit:jar:1.0.1:test > [INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:test > [INFO] | +- org.databene:databene-gui:jar:0.1.9:test > [INFO] | +- net.sourceforge.jtds:jtds:jar:1.2.2:test > [INFO] | +- org.apache.derby:derbyclient:jar:10.4.2.0:test > [INFO] | \- postgresql:postgresql:jar:8.3-603.jdbc4:test > [INFO] +- com.h2database:h2:jar:1.2.135:test > [INFO] +- org.dbunit:dbunit:jar:2.4.7:test > [INFO] \- xmlunit:xmlunit:jar:1.3:test > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] IHEInteroperability Module ........................ SUCCESS > [12.036s] > [INFO] IHEInteroperability Module API .................... SUCCESS [4.154s] > [INFO] IHEInteroperability Module OMOD ................... SUCCESS > [12.942s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1:03.228s > [INFO] Finished at: Tue Jun 03 13:20:08 IST 2014 > [INFO] Final Memory: 9M/23M > [INFO] > ------------------------------------------------------------------------ > C:\Users\SARA\IHEModule\IHEInteroperability> > > Regards > Sara Fatima > > > > On Mon, Jun 2, 2014 at 7:21 PM, James Agnew <ja...@ja...> wrote: > >> Hi Sara, This sounds like yet another dependency problem. Can you post >> your dependency tree? >> >> sent from my phone. >> On Jun 2, 2014 4:49 AM, "Sara Fatima" <sar...@gm...> wrote: >> >>> Hi all, >>> >>> I have been working this on trying to create HL7 message. I have used >>> this >>> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> >>> sample >>> as a helper. When I am running this as a separate java file, I am able >>> to >>> successfully create HL7 message. >>> >>> I am trying to include HAPI in my module. Though I am able to compile >>> and >>> run the code, I haven't got the desired result. I am getting >>> >>>> An Internal Error has Occurred >>>> >>>> *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/HapiContext >>> >>> >>> when I am trying to call the createHL7Message method. >>> >>> Here >>> <https://github.com/saramirza14/openmrs-module-IHEInteroperability/tree/hapi> >>> is the code which I am writing. >>> >>> I would be glad if someone could help me figure out what I am missing. >>> >>> >>> Thanks & Regards >>> Sara Fatima >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/NeoTech >>> _______________________________________________ >>> Hl7api-devel mailing list >>> Hl7...@li... >>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >>> >>> > -- Regards Sara Fatima |
From: Sara F. <sar...@gm...> - 2014-06-03 07:57:56
|
Hi James, Here is the dependency tree. I have included the exclusions as discussed earlier. C:\Users\SARA\IHEModule\IHEInteroperability>mvn dependency:tree [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.module:IHEInteroperability-api:jar:1.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.openmrs.api:openmrs-api:jar -> version 1.8.0 vs (?) @ line 67, colu mn 15 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.module:IHEInteroperability-omod:jar:1.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.openmrs.api:openmrs-api:jar -> version 1.8.0 vs (?) @ line 76, colu mn 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten t he stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support buildin g such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] IHEInteroperability Module [INFO] IHEInteroperability Module API [INFO] IHEInteroperability Module OMOD Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/ apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-compiler-pl ugin/maven-metadata.xml from/to openmrs-repo ( http://mavenrepo.openmrs.org/nexus /content/repositories/public): mavenrepo.openmrs.org [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building IHEInteroperability Module 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ IHEInteroperability --- [INFO] org.openmrs.module:IHEInteroperability:pom:1.0-SNAPSHOT [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building IHEInteroperability Module API 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ IHEInteroperability- api --- [INFO] org.openmrs.module:IHEInteroperability-api:jar:1.0-SNAPSHOT [INFO] +- ca.uhn.hapi:hapi-base:jar:2.1:provided [INFO] +- ca.uhn.hapi:hapi-structures-v21:jar:2.1:provided [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided [INFO] | +- commons-collections:commons-collections:jar:3.2:provided [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided [INFO] | +- commons-io:commons-io:jar:1.4:provided [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided [INFO] | +- log4j:log4j:jar:1.2.15:provided [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-expression:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided [INFO] | +- asm:asm-commons:jar:2.2.3:provided [INFO] | | \- asm:asm-tree:jar:2.2.3:provided [INFO] | +- asm:asm-util:jar:2.2.3:provided [INFO] | +- cglib:cglib-nodep:jar:2.2:provided [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided [INFO] | +- stax:stax:jar:1.2.0:provided [INFO] | +- stax:stax-api:jar:1.0.1:provided [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided [INFO] | | +- antlr:antlr:jar:2.7.6:provided [INFO] | | \- asm:asm:jar:1.5.3:provided [INFO] | +- dom4j:dom4j:jar:1.6.1:provided [INFO] | +- c3p0:c3p0:jar:0.9.1:provided [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided [INFO] | +- org.slf4j:slf4j-api:jar:1.5.6:provided [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided [INFO] | +- javax.mail:mail:jar:1.4.1:provided [INFO] | | \- javax.activation:activation:jar:1.1:provided [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro vided [INFO] | +- jfree:jfreechart:jar:1.0.12:provided [INFO] | | \- jfree:jcommon:jar:1.0.15:provided [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided [INFO] | +- taglibs:request:jar:1.0.1:provided [INFO] | +- taglibs:response:jar:1.0.1:provided [INFO] | +- taglibs:standard:jar:1.1.2:provided [INFO] | +- taglibs:page:jar:1.0.1:provided [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test [INFO] \- org.openmrs.test:openmrs-test:pom:1.8.0:test [INFO] +- org.springframework:spring-test:jar:3.0.2.RELEASE:test [INFO] +- junit:junit:jar:4.8.1:test [INFO] +- org.databene:databene-benerator:jar:0.5.9:test [INFO] | +- org.databene:databene-webdecs:jar:0.4.9:test [INFO] | | +- org.apache.poi:poi:jar:3.5-beta5:test [INFO] | | \- org.freemarker:freemarker:jar:2.3.9:test [INFO] | +- org.databene:databene-commons:jar:0.4.9:test [INFO] | | \- commons-logging:commons-logging:jar:1.1:test [INFO] | | +- logkit:logkit:jar:1.0.1:test [INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:test [INFO] | +- org.databene:databene-gui:jar:0.1.9:test [INFO] | +- net.sourceforge.jtds:jtds:jar:1.2.2:test [INFO] | +- org.apache.derby:derbyclient:jar:10.4.2.0:test [INFO] | \- postgresql:postgresql:jar:8.3-603.jdbc4:test [INFO] +- com.h2database:h2:jar:1.2.135:test [INFO] +- org.dbunit:dbunit:jar:2.4.7:test [INFO] \- xmlunit:xmlunit:jar:1.3:test [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building IHEInteroperability Module OMOD 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://hl7api.sourceforge.net/m2/org/openmrs/module/IHEInteroperabi lity-api/1.0-SNAPSHOT/maven-metadata.xml Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/ openmrs/module/IHEInteroperability-api/1.0-SNAPSHOT/maven-metadata.xml [WARNING] Could not transfer metadata org.openmrs.module:IHEInteroperability-api :1.0-SNAPSHOT/maven-metadata.xml from/to openmrs-repo ( http://mavenrepo.openmrs. org/nexus/content/repositories/public): mavenrepo.openmrs.org [WARNING] Could not transfer metadata org.openmrs.module:IHEInteroperability-api :1.0-SNAPSHOT/maven-metadata.xml from/to hapi-sf ( http://hl7api.sourceforge.net/ m2): hl7api.sourceforge.net [WARNING] Failure to transfer org.openmrs.module:IHEInteroperability-api:1.0-SNA PSHOT/maven-metadata.xml from http://mavenrepo.openmrs.org/nexus/content/reposit ories/public was cached in the local repository, resolution will not be reattemp ted until the update interval of openmrs-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.module:IHEInteroperabil ity-api:1.0-SNAPSHOT/maven-metadata.xml from/to openmrs-repo ( http://mavenrepo.o penmrs.org/nexus/content/repositories/public): mavenrepo.openmrs.org [WARNING] Failure to transfer org.openmrs.module:IHEInteroperability-api:1.0-SNA PSHOT/maven-metadata.xml from http://hl7api.sourceforge.net/m2 was cached in the local repository, resolution will not be reattempted until the update interval of hapi-sf has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.module:IHEInteroperability-api:1.0-SNAPSHOT/maven-metadata .xml from/to hapi-sf (http://hl7api.sourceforge.net/m2): hl7api.sourceforge.net [INFO] [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ IHEInteroperability- omod --- [INFO] org.openmrs.module:IHEInteroperability-omod:jar:1.0-SNAPSHOT [INFO] +- ca.uhn.hapi:hapi-base:jar:2.1:provided [INFO] +- ca.uhn.hapi:hapi-structures-v21:jar:2.1:provided [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided [INFO] | +- commons-collections:commons-collections:jar:3.2:provided [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided [INFO] | +- commons-io:commons-io:jar:1.4:provided [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided [INFO] | +- log4j:log4j:jar:1.2.15:provided [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-expression:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided [INFO] | +- asm:asm-commons:jar:2.2.3:provided [INFO] | | \- asm:asm-tree:jar:2.2.3:provided [INFO] | +- asm:asm-util:jar:2.2.3:provided [INFO] | +- cglib:cglib-nodep:jar:2.2:provided [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided [INFO] | +- stax:stax:jar:1.2.0:provided [INFO] | +- stax:stax-api:jar:1.0.1:provided [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided [INFO] | | +- antlr:antlr:jar:2.7.6:provided [INFO] | | \- asm:asm:jar:1.5.3:provided [INFO] | +- dom4j:dom4j:jar:1.6.1:provided [INFO] | +- c3p0:c3p0:jar:0.9.1:provided [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided [INFO] | +- org.slf4j:slf4j-api:jar:1.5.6:provided [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided [INFO] | +- javax.mail:mail:jar:1.4.1:provided [INFO] | | \- javax.activation:activation:jar:1.1:provided [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided [INFO] +- org.openmrs.module:IHEInteroperability-api:jar:1.0-SNAPSHOT:compile [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro vided [INFO] | +- jfree:jfreechart:jar:1.0.12:provided [INFO] | | \- jfree:jcommon:jar:1.0.15:provided [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided [INFO] | +- taglibs:request:jar:1.0.1:provided [INFO] | +- taglibs:response:jar:1.0.1:provided [INFO] | +- taglibs:standard:jar:1.1.2:provided [INFO] | +- taglibs:page:jar:1.0.1:provided [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test [INFO] \- org.openmrs.test:openmrs-test:pom:1.8.0:test [INFO] +- org.springframework:spring-test:jar:3.0.2.RELEASE:test [INFO] +- junit:junit:jar:4.8.1:test [INFO] +- org.databene:databene-benerator:jar:0.5.9:test [INFO] | +- org.databene:databene-webdecs:jar:0.4.9:test [INFO] | | +- org.apache.poi:poi:jar:3.5-beta5:test [INFO] | | \- org.freemarker:freemarker:jar:2.3.9:test [INFO] | +- org.databene:databene-commons:jar:0.4.9:test [INFO] | | \- commons-logging:commons-logging:jar:1.1:test [INFO] | | +- logkit:logkit:jar:1.0.1:test [INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:test [INFO] | +- org.databene:databene-gui:jar:0.1.9:test [INFO] | +- net.sourceforge.jtds:jtds:jar:1.2.2:test [INFO] | +- org.apache.derby:derbyclient:jar:10.4.2.0:test [INFO] | \- postgresql:postgresql:jar:8.3-603.jdbc4:test [INFO] +- com.h2database:h2:jar:1.2.135:test [INFO] +- org.dbunit:dbunit:jar:2.4.7:test [INFO] \- xmlunit:xmlunit:jar:1.3:test [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] IHEInteroperability Module ........................ SUCCESS [12.036s] [INFO] IHEInteroperability Module API .................... SUCCESS [4.154s] [INFO] IHEInteroperability Module OMOD ................... SUCCESS [12.942s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:03.228s [INFO] Finished at: Tue Jun 03 13:20:08 IST 2014 [INFO] Final Memory: 9M/23M [INFO] ------------------------------------------------------------------------ C:\Users\SARA\IHEModule\IHEInteroperability> Regards Sara Fatima On Mon, Jun 2, 2014 at 7:21 PM, James Agnew <ja...@ja...> wrote: > Hi Sara, This sounds like yet another dependency problem. Can you post > your dependency tree? > > sent from my phone. > On Jun 2, 2014 4:49 AM, "Sara Fatima" <sar...@gm...> wrote: > >> Hi all, >> >> I have been working this on trying to create HL7 message. I have used >> this >> <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> sample >> as a helper. When I am running this as a separate java file, I am able to >> successfully create HL7 message. >> >> I am trying to include HAPI in my module. Though I am able to compile and >> run the code, I haven't got the desired result. I am getting >> >>> An Internal Error has Occurred >>> >>> *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/HapiContext >> >> >> when I am trying to call the createHL7Message method. >> >> Here >> <https://github.com/saramirza14/openmrs-module-IHEInteroperability/tree/hapi> >> is the code which I am writing. >> >> I would be glad if someone could help me figure out what I am missing. >> >> >> Thanks & Regards >> Sara Fatima >> >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> |
From: James A. <ja...@ja...> - 2014-06-02 22:27:16
|
Hi Letha, Most likely some logic is preventing the 3rd rep from being added. Are you able to distill this down into a code fragment that could be posted to the list? Cheers, James On Mon, Jun 2, 2014 at 3:53 PM, Letha Joy <let...@ec...> wrote: > Hi, > > I am getting following error message when I tried to create ORM > (Medication)message using teaser. It works fine with three allergies. when > I tries to add 4th allergy I am getting the following . Any help will be > appreciated. > > ca.uhn.hl7v2.HL7Exception: Can't return repetition #3 of AL1 - there are > currently only 2 repetitions so rep# must be between 0 and 2 > > at > ca.uhn.hl7v2.model.AbstractGroup.get(AbstractGroup.java:165) > > at > ca.uhn.hl7v2.util.MessageNavigator.getCurrentStructure(MessageNavigator.java:169) > > at > ca.uhn.hl7v2.util.SegmentFinder.getStructure(SegmentFinder.java:132) > > at > ca.uhn.hl7v2.util.SegmentFinder.getSegment(SegmentFinder.java:104) > > at ca.uhn.hl7v2.util.Terser.getSegment(Terser.java:356) > > at ca.uhn.hl7v2.util.Terser.set(Terser.java:432) > > > > Thanks, > > Letha Joy > CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains > confidential information belonging to the sender that is legally privileged > and proprietary and may be subject to protection under the law, including > the Health Insurance Portability and Accountability Act (HIPAA). If you are > not the intended recipient of this e-mail, you are prohibited from sharing, > copying, or otherwise using or disclosing its contents. If you have > received this e-mail in error, please notify the sender immediately by > reply e-mail and permanently delete this e-mail and any attachments without > reading, forwarding or saving them. Thank you. > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Letha J. <let...@ec...> - 2014-06-02 20:11:43
|
Hi, I am getting following error message when I tried to create ORM (Medication)message using teaser. It works fine with three allergies. when I tries to add 4th allergy I am getting the following . Any help will be appreciated. ca.uhn.hl7v2.HL7Exception: Can't return repetition #3 of AL1 - there are currently only 2 repetitions so rep# must be between 0 and 2 at ca.uhn.hl7v2.model.AbstractGroup.get(AbstractGroup.java:165) at ca.uhn.hl7v2.util.MessageNavigator.getCurrentStructure(MessageNavigator.java :169) at ca.uhn.hl7v2.util.SegmentFinder.getStructure(SegmentFinder.java:132) at ca.uhn.hl7v2.util.SegmentFinder.getSegment(SegmentFinder.java:104) at ca.uhn.hl7v2.util.Terser.getSegment(Terser.java:356) at ca.uhn.hl7v2.util.Terser.set(Terser.java:432) Thanks, Letha Joy CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains confidential information belonging to the sender that is legally privileged and proprietary and may be subject to protection under the law, including the Health Insurance Portability and Accountability Act (HIPAA). If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them. Thank you. |
From: James A. <ja...@ja...> - 2014-06-02 13:51:47
|
Hi Sara, This sounds like yet another dependency problem. Can you post your dependency tree? sent from my phone. On Jun 2, 2014 4:49 AM, "Sara Fatima" <sar...@gm...> wrote: > Hi all, > > I have been working this on trying to create HL7 message. I have used this > <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> sample > as a helper. When I am running this as a separate java file, I am able to > successfully create HL7 message. > > I am trying to include HAPI in my module. Though I am able to compile and > run the code, I haven't got the desired result. I am getting > >> An Internal Error has Occurred >> >> *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/HapiContext > > > when I am trying to call the createHL7Message method. > > Here > <https://github.com/saramirza14/openmrs-module-IHEInteroperability/tree/hapi> > is the code which I am writing. > > I would be glad if someone could help me figure out what I am missing. > > > Thanks & Regards > Sara Fatima > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Sara F. <sar...@gm...> - 2014-06-02 08:50:02
|
Hi all, I have been working this on trying to create HL7 message. I have used this <http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html> sample as a helper. When I am running this as a separate java file, I am able to successfully create HL7 message. I am trying to include HAPI in my module. Though I am able to compile and run the code, I haven't got the desired result. I am getting > An Internal Error has Occurred > > *java.lang.NoClassDefFoundError*ca/uhn/hl7v2/HapiContext when I am trying to call the createHL7Message method. Here <https://github.com/saramirza14/openmrs-module-IHEInteroperability/tree/hapi> is the code which I am writing. I would be glad if someone could help me figure out what I am missing. Thanks & Regards Sara Fatima |
From: James A. <ja...@ja...> - 2014-05-29 21:25:49
|
Hi Dayu. 1.x uses Commons-logging instead of SLF4j, but the general principal is the same. If you add log4j to your classpath (I'm not positive but I don't think C-L supports Logback as a backing library) it should automatically get picked up and start logging. In fact, I think commons-logging defaults to logging to the console even without a backing library. Cheers, James On Thu, May 29, 2014 at 11:31 AM, Dayu Han <da...@st...> wrote: > Thanks for the reply, James. I should have been more specific in the first > place. We use HAPI 1.x, not HAPI 2.x, I wonder if HAPI takes the same > approach in both releases. > > Dayu > > On May 29, 2014, at 9:28 AM, James Agnew <ja...@ja...> wrote: > > Hi Dayu, > > HAPI uses SLF4j ( http://www.slf4j.org/ ) for logging. SLF4j is a facade > framework which forwards logging to an underlying framework, such as LOG4j > or Logback. > > The easiest way to get started with logging is to just add a logback JAR > to your classpath. If you're already using a specific framework, you just > need to add the appropriate SLF4j adapter JAR. > > Cheers, > James > > > On Thu, May 29, 2014 at 9:17 AM, Dayu Han <da...@st...> wrote: > >> Hello >> >> Just wonder if HAPI has any logging, if yes, how to turn it on. >> >> Thanks >> Dayu >> -- >> Dayu Han >> Software Developer >> Strata Health Solutions >> Phone: +1 403 261 0855 ext 2102 >> www.stratahealth.com >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Time is money. Stop wasting it! Get your web API in 5 minutes. >> www.restlet.com/download >> http://p.sf.net/sfu/restlet >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > -- > Dayu Han > Software Developer > Strata Health Solutions > Phone: +1 403 261 0855 ext 2102 > www.stratahealth.com > > > > > > > > > > > |
From: Dayu H. <da...@st...> - 2014-05-29 15:32:08
|
Thanks for the reply, James. I should have been more specific in the first place. We use HAPI 1.x, not HAPI 2.x, I wonder if HAPI takes the same approach in both releases. Dayu On May 29, 2014, at 9:28 AM, James Agnew <ja...@ja...> wrote: > Hi Dayu, > > HAPI uses SLF4j ( http://www.slf4j.org/ ) for logging. SLF4j is a facade framework which forwards logging to an underlying framework, such as LOG4j or Logback. > > The easiest way to get started with logging is to just add a logback JAR to your classpath. If you're already using a specific framework, you just need to add the appropriate SLF4j adapter JAR. > > Cheers, > James > > > On Thu, May 29, 2014 at 9:17 AM, Dayu Han <da...@st...> wrote: > Hello > > Just wonder if HAPI has any logging, if yes, how to turn it on. > > Thanks > Dayu > -- > Dayu Han > Software Developer > Strata Health Solutions > Phone: +1 403 261 0855 ext 2102 > www.stratahealth.com > > > > > > > > > > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > -- Dayu Han Software Developer Strata Health Solutions Phone: +1 403 261 0855 ext 2102 www.stratahealth.com |
From: James A. <ja...@ja...> - 2014-05-29 15:28:58
|
Hi Dayu, HAPI uses SLF4j ( http://www.slf4j.org/ ) for logging. SLF4j is a facade framework which forwards logging to an underlying framework, such as LOG4j or Logback. The easiest way to get started with logging is to just add a logback JAR to your classpath. If you're already using a specific framework, you just need to add the appropriate SLF4j adapter JAR. Cheers, James On Thu, May 29, 2014 at 9:17 AM, Dayu Han <da...@st...> wrote: > Hello > > Just wonder if HAPI has any logging, if yes, how to turn it on. > > Thanks > Dayu > -- > Dayu Han > Software Developer > Strata Health Solutions > Phone: +1 403 261 0855 ext 2102 > www.stratahealth.com > > > > > > > > > > > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |