No v2 SourceGenerator in HAPI 0.6?

View: New views
2 Messages — Rating Filter:   Alert me  

No v2 SourceGenerator in HAPI 0.6?

by Johnny2R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm working on an HL7 application taking ideas from Roger Searjeant's helpful example (http://sites.google.com/site/rogersearjeant/healthcare-and-hl7/hapi-ack-nak-message-helper). That uses HAPI 0.5.1. I've been trying to get my stuff working with version 0.6, but I'm having a problem with one line in the example code:

String ackClassName = SourceGenerator.getVersionPackageName(version) + "message.ACK";

This uses ca.uhn.hl7v2.sourcegen.SourceGenerator, but HAPI 0.6 doesn't have a v2 SourceGenerator class, only a v3 one which lacks this method. Is there a workaround for this?

Re: No v2 SourceGenerator in HAPI 0.6?

by James Agnew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The method in question was actually moved to "DefaultModelClassFactory" in version 0.6. This was the only bit of API that had to change as a part of the move to a mavenized build, it figures it would break something!

Cheers,
James


On Mon, Jul 27, 2009 at 11:01 AM, Johnny2R <grails@...> wrote:

I'm working on an HL7 application taking ideas from Roger Searjeant's helpful
example
(http://sites.google.com/site/rogersearjeant/healthcare-and-hl7/hapi-ack-nak-message-helper).
That uses HAPI 0.5.1. I've been trying to get my stuff working with version
0.6, but I'm having a problem with one line in the example code:

String ackClassName = SourceGenerator.getVersionPackageName(version) +
"message.ACK";

This uses ca.uhn.hl7v2.sourcegen.SourceGenerator, but HAPI 0.6 doesn't have
a v2 SourceGenerator class, only a v3 one which lacks this method. Is there
a workaround for this?
--
View this message in context: http://www.nabble.com/No-v2-SourceGenerator-in-HAPI-0.6--tp24680681p24680681.html
Sent from the hl7api-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel


------------------------------------------------------------------------------

_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@...
https://lists.sourceforge.net/lists/listinfo/hl7api-devel