web stats
Converting HL7 Message from 2.1 to 2.3 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 10-15-2007, 08:51 AM
maym2915 maym2915 is offline
What's HL7?
 
Join Date: Sep 2007
Posts: 2
maym2915
Default Converting HL7 Message from 2.1 to 2.3

Hi,
I want to convert a hl7 message from version 2.1 to 2.3. A lot of littles things change between these version and I do not want to generate them by hand... I've read on the forum a lot of discussion about that and a way to do this I've tried them all and it does'nt change version.

Here is the original message receive by the interface witch is in version 2.1:
Code:
MSH|^~\&|ADT|Admitting|RADIO|ARTEFACT|200710061035||ADT^A01|00000040|P|2.1
EVN|A01|200710061035
PID||1144270^4^M10|0699999^2^M10||XXXXXX|XXXCXCXX|20071006|F|||10 THE ADDRESS||(450)999-9999|||S||||||||||||||N
NK1|1
PV1||I|19^D415^01P|05|07008496||180658^DOCTOR NAME|||81|||||||180658^DOCTOR NAME|NN||01||||||||||||||||||||||||200710061018
DG1|1|I9|412|NAISSANCE||01
Z01|1||S|NOUVEAU-NE||FATHER NAME^D|||||0||||A||||||N|||1|GFATHER NAME|G-PERE||(450)432-9999|21||S||20071006101800||N||0||||0000000000||||||||00000000000000|00000000||||||||||01|00000000|00000000000000|05|00|75017|00|00|||||||||||||||||||000000000|000000000|||00000000000000|||01|0
Here is my code...
Code:
var msgOriginalFormatXML = SerializerFactory.getHL7Serializer( true, false, true ).toXML( msgOriginal );
default xml namespace = new Namespace('urn:hl7-org:v2xml');
msgOriginal = SerializerFactory.getHL7Serializer(true, false, true).fromXML( msgOriginalFormatXML );
The result is the same :angry: thing, that was receive by the interface!

Tanks for the help because i have no more idea!

Martin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion failed when converting datetime doc4child General Discussion 3 06-02-2019 10:06 PM
Converting HL7 to XML r_jyothsna Support 3 06-05-2009 08:16 AM
Converting complete message to XML Tombo Support 3 08-28-2008 04:36 AM
Converting HL7 Message from 2.1 to 2.3 maym2915 Development 0 10-15-2007 08:53 AM
converting transformers from 1.4 to 1.5 gsasquatch Support 4 06-19-2007 10:53 AM


All times are GMT -8. The time now is 06:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation