Hello Guys,
Does any one have a example Lab Report with OBR , OBX and NTE combined?
Thanks in advance
Does any one have a example Lab Report with OBR , OBX and NTE combined?
Thanks in advance
const red_flag = <img src="/mirth/graphics/flag_red.png"/>; for each (var obr in msg.OBR) { var group = <group>{obr}</group>; getSegmentsAfter(msg, obr, /OBX|NTE/, true).forEach(function(seg) {group.appendChild(seg)}); var obx8 = group['OBX']['OBX.8']['OBX.8.1'].toString(); var tr = <tr> <td>{obx8 != 'N' ? red_flag : ''}</td> <td>{group.OBX['OBX.3']['OBX.3.2'].toString()}</td> <td>{group.OBX['OBX.5']['OBX.5.1'].toString() + " "+ group.OBX['OBX.6']['OBX.6.1'].toString()}</td> <td>{obx8}</td> <td>{group.OBX['OBX.7']['OBX.7.1'].toString() + " " + group.OBX['OBX.6']['OBX.6.1'].toString()}</td> <td>{group.OBR['OBR.2']['OBR.2.1'].toString()}</td> <td>{divWrap(group.NTE['NTE.2']['NTE.2.1'])}</td> </tr>; tmp.appendChild(tr); } // takes an XMLList and returns a new list of the string value of each list item // wrapped in div tags function divWrap(list) { var ret = <></>; for each (var e in list) { ret += <div>{e.toString()}</div> } return ret; }
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment