web stats
HL7 message map - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2013, 02:08 PM
Souren Souren is offline
Mirth Newb
 
Join Date: Jul 2013
Location: UK
Posts: 12
Souren is on a distinguished road
Send a message via Skype™ to Souren
Unhappy HL7 message map

Hi
Ok, have only been working with Mirth / HL7 for a few weeks so am definitely a newbie.

Issue I have is the way some of the HL7 message "mappings" are appearing.
Logged into a site where the system had been working, recognising HL7 messages and assigning them to variables properly.
Then I found the system was not working
On examination of a message I found the following change
Initially the following was the mapping to a variable
messageHeader_messageType_triggerEvent = msg['MSH']['MSH.9']['MSH.9.2'].toString()

Then I found that the "mapping" had changed changed to
messageHeader_messageType_triggerEvent = msg['MSH']['MSH.9']['CM_MSG.2'].toString()

How had ['MSH']['MSH.9']['MSH.9.2'] become ['MSH']['MSH.9']['CM_MSG.2']

I really don't want to go and remap everything as the same message on my test machine works fine.
Have I made some sort of change to the Mirth engine (I did inadvertently run the MIRH CLI, could that have made a change?
I am sure it is a really silly thing I have done which can easily be reversed.
So hoping someone out there will point me in the right direction

Thanks in advance
Reply With Quote
  #2  
Old 08-05-2013, 09:16 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,360
cory_cole is on a distinguished road
Default

At the point that you are looking the message is in XML. The standard XML would be.

<HL7>
<MSH>
<MSH.9>
<MSH.9.1/>
<MSH.9.2>some value
</MSH.9.2>
</MSH.9>
</MSH>
</HL7>

Therfore msg['MSH']['MSH.9']['MSH.9.2'].toString() would be correct.

if msg['MSH']['MSH.9']['CM_MSG.2'].toString() is working somewhere you have changed the XML layout.
Reply With Quote
  #3  
Old 08-06-2013, 12:40 PM
Souren Souren is offline
Mirth Newb
 
Join Date: Jul 2013
Location: UK
Posts: 12
Souren is on a distinguished road
Send a message via Skype™ to Souren
Default HL7 Map

Turned out to do with the channel data properties
I had strip namespace and "strict" ticked
Once removed the display went back to "normal"
Reply With Quote
Reply

Tags
hl7 conversion, variables

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


All times are GMT -8. The time now is 04:17 PM.


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