web stats
Example Lab Report - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 06-20-2019, 11:00 PM
ASIFM786 ASIFM786 is offline
What's HL7?
Join Date: Oct 2008
Posts: 5
Smile Example Lab Report

Hello Guys,

Does any one have a example Lab Report with OBR , OBX and NTE combined?

Thanks in advance
Reply With Quote
Old 06-20-2019, 11:02 PM
ASIFM786 ASIFM786 is offline
What's HL7?
Join Date: Oct 2008
Posts: 5

currently i have used this layout... but i cannot combine them all together :-

var results = new XML('<tbody></tbody>');
var tr;

for each (mOBX in msg..OBX) {

tr = new XML('<tr></tr>');

tr['td'][0] = '';
if (mOBX['OBX.8']['OBX.8.1'].toString() != "N") {
tr['td'][0]['img']['@src'] = '/mirth/graphics/flag_red.png';
// Test Name
tr['td'][1] = mOBX['OBX.3']['OBX.3.2'].toString();
// Result
tr['td'][2] = mOBX['OBX.5']['OBX.5.1'].toString() + " "+ mOBX['OBX.6']['OBX.6.1'].toString();
// Flag - Red if not N = normal
tr['td'][3] = mOBX['OBX.8']['OBX.8.1'].toString();
// Reference range
tr['td'][4] = mOBX['OBX.7']['OBX.7.1'].toString() + " " + mOBX['OBX.6']['OBX.6.1'].toString();

results[''] += tr;

Reply With Quote
Old 07-05-2019, 09:48 PM
agermano agermano is offline
Mirth Guru
Join Date: Apr 2017
Location: Indiana, USA
Posts: 795
agermano is on a distinguished road

This code template should help.

Reply With Quote

lab, nte, obr, obx, report

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 03:31 PM.

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