Re: [HAPI-devel] generateACK and CanonicalMCF

2012-01-16 Thread Jens Kristian Villadsen
I'm perfectly aware of the need to include multiple structure libraries and I can also see the extra management it produces/need to provide generic code. However, the generateACK seems to be spec'ed that way and in that scope, it cannot be an error, but rather a 'feature request'. 2012/1/16 christ

Re: [HAPI-devel] generateACK and CanonicalMCF

2012-01-16 Thread Jens Kristian Villadsen
But I agree in that it would be very useful if the implementation was changed as already proposed. 2012/1/16 christian ohr > > The problem in this case is that you are required to include the 2.4 > structures libraries into your classpath. And, if you don't know the > version(s) of the received

Re: [HAPI-devel] generateACK and CanonicalMCF

2012-01-16 Thread christian ohr
The problem in this case is that you are required to include the 2.4 structures libraries into your classpath. And, if you don't know the version(s) of the received messages in advance (and that's one good reason to use the CanonicalModelClassfactory 2.6) you would be required to include all struc

Re: [HAPI-devel] generateACK and CanonicalMCF

2012-01-14 Thread Jens Kristian Villadsen
Where is the problem? If you look at http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/model/Message.html#generateACK%28%29, you will see that the following is stated: The ACK generated will be of the same version as the value of MSH-12 in this message (as opposed to the version of the messa

Re: [HAPI-devel] generateACK and CanonicalMCF

2012-01-11 Thread Rahul Somasunderam
The bug Id is 3471571. On Jan 9, 2012, at 4:42 PM, James Agnew wrote: > Hi Rahul, > > Looks like you have uncovered a bug in HAPI. I tried it locally and I see the > same thing as you: Basically, the "generateACK()" method is not actually > honoring your ModelClassFactory, so it's trying to in

Re: [HAPI-devel] generateACK and CanonicalMCF

2012-01-09 Thread James Agnew
Hi Rahul, Looks like you have uncovered a bug in HAPI. I tried it locally and I see the same thing as you: Basically, the "generateACK()" method is not actually honoring your ModelClassFactory, so it's trying to instantiate the 2.4 version of the structure. The easiest workaround is probably to c

Re: [HAPI-devel] generateACK and CanonicalMCF

2012-01-09 Thread Rahul Somasunderam
Yes I have only the 2.6 structures in my classpath. And Canonical should look for 2.6 classes, however the stack trace says it's looking for 2.4 classes. Everything is fine until I try to create the ACK. So I've used some duct tape to get over the problem like this: MSH requestMsh = message.

Re: [HAPI-devel] generateACK and CanonicalMCF

2012-01-09 Thread Sharma, Niranjan K (GE Healthcare)
Rahul, Do you have structure classes in your path? CMCF will look for 2.6 structure. Thanks. Regards -Niranjan. From: Rahul Somasunderam [mailto:r...@certifydatasystems.com] Sent: Monday, January 09, 2012 10:36 AM To: hl7api-devel@lists.sourceforge.net Subject: [HAPI-devel] generateACK and Can