web stats
Adding GDT to OBX Segment. - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-16-2015, 01:03 PM
telshayal telshayal is offline
Mirth Newb
 
Join Date: Nov 2013
Posts: 22
telshayal is on a distinguished road
Default Adding GDT to OBX Segment.

We have a resulting agency that is sending reports but the first two rows of the OBX segments are not consistent with the remainder of the report.
OBX 1 and OBX 1 are always missing GDT value in them but then from OBX3 onwards the OBX segments are correct. How can I do this via a java script?

OBX|1|FT|XCXR&||FINAL REPORT||||||F
OBX|2|FT|XCXR&|| ||||||F
OBX|3|FT|XCXR&GDT||Interpreting Radiologist:LastName, FirstName MD||||||F
OBX|4|FT|XCXR&GDT|| ||||||F
OBX|5|FT|XCXR&GDT||History: Iridocyclitis. Assess for associated granulomatous disease||||||F
Reply With Quote
  #2  
Old 03-16-2015, 01:11 PM
telshayal telshayal is offline
Mirth Newb
 
Join Date: Nov 2013
Posts: 22
telshayal is on a distinguished road
Default

Forgot to add that the XCXR in the message is a "variable" with every message so that is the exam code. That would be different with every message depend on what gets scheduled.
Reply With Quote
  #3  
Old 03-16-2015, 01:18 PM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,310
cory_cole is on a distinguished road
Default

Try this...


msg['OBX'][0]['OBX.3']['OBX.3.1'] += 'GDT'
msg['OBX'][1]['OBX.3']['OBX.3.1'] += 'GDT'
Reply With Quote
  #4  
Old 03-16-2015, 01:39 PM
telshayal telshayal is offline
Mirth Newb
 
Join Date: Nov 2013
Posts: 22
telshayal is on a distinguished road
Default

Cory Cole,

Thanks this worked and it started to add GDT to the message.
Now I have another question. The last two fields of OBX are added by a script that does not add "IMP" in OBX3

How can we add these values of 'IMP' only is missing in the last fields. Almost a conditional statement if absent then add it.

OBX|25|FT|IMP||telephone.^<13>
OBX|26|FT|IMP|| ^<13>
OBX|27|FT|IMP||I have reviewed the images obtained and agree with the above report.^<13>
OBX|28|FT||| Attending Radiologist: name, MD^<13>
OBX|29|FT||| Resident Radiologist: name, MD^<13>
Reply With Quote
Reply

Tags
concat

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 05:28 PM.


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