web stats
Example Lab Report - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #11  
Old 08-07-2019, 09:27 PM
ASIFM786 ASIFM786 is offline
Mirth Newb
 
Join Date: Oct 2008
Posts: 16
ASIFM786
Post

I have attached a HL7 Message as example with multiple OBR, OBX and NTE
Attached Files
File Type: txt 00003hl7.txt (4.9 KB, 5 views)
Reply With Quote
  #12  
Old 08-09-2019, 04:11 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 898
agermano is on a distinguished road
Default

and what do you expect your table to look like after it runs?
Reply With Quote
  #13  
Old 08-09-2019, 10:45 PM
ASIFM786 ASIFM786 is offline
Mirth Newb
 
Join Date: Oct 2008
Posts: 16
ASIFM786
Thumbs up

The following structure

Header OBR4.2
Test Name | Result | Flag | Reference Range
OBX3.2 | OBX5.1 + OBX 6.1 | OBX8.1 | OBX7.1+OBX6.1
NTE3.1

The difficulty is trying to get the NTE to follow as the message.

As as the moment the NTE reiterates at the bottom, which doesnt flow.

thanks for all your help
Reply With Quote
  #14  
Old 08-10-2019, 06:04 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 898
agermano is on a distinguished road
Default

Sorry, I'm still not clear on what you want. Can you post what you want the html to look like for the sample hl7 message?
Reply With Quote
  #15  
Old 08-10-2019, 09:46 PM
ASIFM786 ASIFM786 is offline
Mirth Newb
 
Join Date: Oct 2008
Posts: 16
ASIFM786
Question

hey sorry, i have attached the exampe HTML,

currently the {$Results} Javascript doesnt have the OBR or the NTE.
Attached Files
File Type: txt html.txt (3.2 KB, 2 views)
Reply With Quote
  #16  
Old 08-11-2019, 09:36 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 898
agermano is on a distinguished road
Default

That's the part I'm asking about. What html is Results supposed to contain after processing your sample hl7 message, including the OBR and NTE data? I'm not sure how I can help you if I can't figure out what you're trying to do, and you say the example I gave you doesn't help you.
Reply With Quote
  #17  
Old 08-12-2019, 10:33 AM
ASIFM786 ASIFM786 is offline
Mirth Newb
 
Join Date: Oct 2008
Posts: 16
ASIFM786
Default

I have attached the channel i was working from, and the examples of the report before i tried the updated script you mentioned if it makes easier to replicate what i am seeing.

I can get the NTE in a seperate script (shown below) but this doesnt flow with the results.

var reportTxt = "";
for each (seg in msg.children())
{
if (seg.name().toString() == "NTE")
{
reportTxt += "<tr>" + seg['NTE.3']['NTE.3.1'].toString().replace("<", "&lt;") + "</tr>";
}
}


channelMap.put('text', reportTxt);
Attached Files
File Type: pdf LabResult-1565634466493 OLD.pdf (8.3 KB, 1 views)
File Type: pdf UpdatedLabResult-1565634466748 New script.pdf (6.6 KB, 2 views)
File Type: xml LAB hl7 to PDF.xml (88.0 KB, 2 views)
File Type: txt 00003hl7.txt (4.9 KB, 1 views)
Reply With Quote
Reply

Tags
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 11:09 PM.


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