web stats
Issue with an OBR message type . - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2020, 02:11 AM
manesh manesh is offline
Mirth Newb
 
Join Date: May 2018
Posts: 6
manesh is on a distinguished road
Default Issue with an OBR message type .

I am using mirth 3.8
i have a request and result HL7 message that i receive

MSH|^~\&|LabTrak|IAL|LAB||20200205064109||ORU^R01| LabTrak 40087248||2.4
PID|1|xxxxxxx|xxx|123456789|xxxxx^xxxn^^^^||xxx|M| |||||||||Axxx3R
ORC|RE|^|TD01876091||||^^^^^R||||||13F019W520
OBR|1|^||C002^Creatinine (plus MDRD)|||202001301135||||||||BLC^^^|MP0000000^Kuddd n^M.G.^^^^^^DN|||||||||||^^^^^R

when in my transforment i try to get the value from OBR16
msg['OBR']['OBR.16']['OBR.16.1'].toString();

i get the following not the MP0000000 as the value
<OBR.16.1>MP0000000</OBR.16.1><OBR.16.1>MP0000000</OBR.16.1><OBR.16.1>MP0000000</OBR.16.1>
Please help
Thnx Manesh
Reply With Quote
  #2  
Old 02-10-2020, 04:40 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 615
kirbykn2 is on a distinguished road
Default

Post your code.
__________________
Best,

Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.4
Mirth Connect Version 3.8.0
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_181-b13
PostgreSQL Version 9.6.8
Reply With Quote
  #3  
Old 02-10-2020, 10:44 AM
stormcel stormcel is offline
OBX.3 Kenobi
 
Join Date: Mar 2010
Location: Phoenix
Posts: 173
stormcel is on a distinguished road
Default

This happens when you specify:
Quote:
msg['OBR']['OBR.16']['OBR.16.1'].toString();
and you have MORE THAN ONE OBR.16.1!!!
To address ONLY the first instance:
Quote:
msg['OBR']['OBR.16'][0]['OBR.16.1'].toString();
Or you need to iterate on the field.
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


All times are GMT -8. The time now is 01:25 PM.


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