Hello,
I've looked at
http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/HandlingMultipleVersions.html
for converting message formats to certain model instances. Specifically using
CanonicalModelClassFactory mcf = new CanonicalModelClassFactory("2.5.1");
However, when I write the message back out using Parser.encode() it remains in
the original 2.2 form. Is there a way to "translate" the source file into
v2.5.1 compatible file? I can set the MSH 12 id to 2.5.1 manually but that
seems like a "brute force" approach. Is there a better way?
Thanks!
Ted Slusser
Health Systems Engineer III
Vanderbilt Informatics Center
3401 West End Avenue, Ste 700
Nashville, TN 37203
Cell Phone: (615) 420-7326
This e-mail is confidential and privileged pursuant to provisions of Section
63-6-219 of Tennessee Code Annotated, the contractual obligations of Vanderbilt
University to its insurance companies, the attorney-client privilege and other
applicable provisions of law. Furthermore and ad endum, this document should
be read only by those persons to whom it is addressed. If you have received
this message, it was obviously addressed to you and therefore you can read it,
even if we did not mean to send it to you. However, if the contents of this
email make no sense whatsoever then you probably were not the intended
recipient, or you are a mindless cretin; either way, you should immediately
delete yourself and destroy your computer
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel