Hi James, the HL7 code generation of 1.1-beta1 has a serious problem:
package ca.uhn.hl7v2.model.v25.message; .... public class ADT_A01 extends AbstractMessage { .... /** * Returns "1.1-beta1" */ public String getVersion() { return "1.1-beta1"; } .... } Must obviously be "2.5". This is consistently wrong for all message classes. This becomes obvious when adding non-standard segments to a message. java.lang.Error: Unable to add nonstandard segment ZHV: at ca.uhn.hl7v2.parser.MessageIterator.addNonStandardSegmentAtCurrentPosition(MessageIterator.java:161) ..... Caused by: ca.uhn.hl7v2.HL7Exception: The HL7 version 1.1-beta1 is not recognized at ca.uhn.hl7v2.parser.DefaultModelClassFactory.findClass(DefaultModelClassFactory.java:246) at ca.uhn.hl7v2.parser.DefaultModelClassFactory.getSegmentClass(DefaultModelClassFactory.java:112) at ca.uhn.hl7v2.model.AbstractGroup.addNonstandardSegment(AbstractGroup.java:164) at ca.uhn.hl7v2.parser.MessageIterator.addNonStandardSegmentAtCurrentPosition(MessageIterator.java:159) ... 54 more cheers Christian James Agnew wrote: > > Hi Everyone, > > This is a quick note to let everyone know that HAPI 1.1-beta1 has been > posted to the Sourceforge download > site<https://sourceforge.net/projects/hl7api/files/hl7api-unstable/1.1-beta1/> > . > > Thank you to everyone that has contributed code or filed bugs for this > release. I had been hoping to get is out a month ago, but competing > priorities, and the unexpected CVS outage at sf.net set us back a bit. > This > release features a number of bug fixes, particularly to the XML > parser/encoder, as well as a new Maven plugin that can be used to generate > structure classes from XML conformance profiles. The documentation is just > getting started on this, but it is very powerful- we at UHN are using it > pretty much constantly in ESB and message translation applications these > days. > > More info is available at the what's > new<http://hl7api.sourceforge.net/whatsnew.html>and > changelog <http://hl7api.sourceforge.net/changes-report.html> pages. > > Assuming nothing major comes up, I am hoping we will be able to release > HAPI > 1.1 within the next few weeks. > > Cheers, > James Agnew > > Ps, to anyone reading this who is based in Toronto, I might as well take a > minute to plug our other open-source > project<http://whereismystreetcar.appspot.com/>, > a realtime transit tracker. I think it's pretty cool. :) > > ------------------------------------------------------------------------------ > Index, Search & Analyze Logs and other IT data in Real-Time with Splunk > Collect, index and harness all the fast moving IT data generated by your > applications, servers and devices whether physical, virtual or in the > cloud. > Deliver compliance at lower cost and gain new business insights. > Free Software Download: http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Hl7api-devel mailing list > Hl7api-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > -- View this message in context: http://old.nabble.com/Announcement%3A-New-HAPI-Beta-Posted-tp30982575p31012440.html Sent from the hl7api-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel