web stats
Break HL7 msg into several messages - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-22-2018, 06:26 PM
mmonisky mmonisky is offline
OBX.1 Kenobi
 
Join Date: Aug 2015
Posts: 36
mmonisky is on a distinguished road
Default Break HL7 msg into several messages

Need guidance on how to break an ORM message with several OBR|OBX|NTE's into separate messages for each OBR|OBX|NTE combo.
Each message will only have 1 each OBR|OBX|NTE combo


Original message:

MSH|^~\&|EMR^1ST FLOOR||PMD|TEST FACILITY - UTAH|20180510||ORM^O01|11867-6071-41|P|2.3.1
PID||16|||TEST09^JAX||20020101|M|||1002 NO WHERE ST^^SANDY^UT^84070||^^555^5550001||||||555550003|
NTE|1|DISPATCH NOTES||||||||||
ORC|NW|36||36||||||||1568438653^LALLY^THOMAS^^^^^^ ^^^^NPI||^^^^303^3799371|||||||||2|^^WHEAT RIDGE^CO^80033
OBR|1|36|788f6cd3-9c4d-4657-b2e5-37ca743cf101|74018^ABDOMEN^HCPC^1^PAIN LOCALIZED TO UPPER ABDOMEN|ASAP|20180510|
OBX|1|ST|R10.1^PATIENT COMPLAINT^ICD10||PAIN LOCALIZED TO UPPER ABDOMEN||||||R|
NTE|1|Something here||
OBR|2|36|c0799337-0f8c-4304-a4b6-36e8e9a06bd7|71046^CHEST 2 VIEWS^HCPC^1^CHEST PAIN ON BREATHING|ASAP|20180510|
OBX|1|ST|R07.1^PATIENT COMPLAINT^ICD10||CHEST PAIN ON BREATHING||||||R|
NTE|1|Something here||

First new msg with the first OBR|OBX|NTE combo copying MSH|PID|NTE|ORC

MSH|^~\&|EMR^1ST FLOOR^1ST FLOOR||PMD|TEST FACILITY - UTAH|20180510||ORM^O01|11867-6071-41|P|2.3.1
PID||16|||TEST09^JAX||20020101|M|||1002 NO WHERE ST^^SANDY^UT^84070||^^555^5550001||||||555550003|
NTE|1|DISPATCH NOTES||||||||||
ORC|NW|36||36||||||||1568438653^LALLY^THOMAS^^^^^^ ^^^^NPI||^^^^303^3799371|||||||||2|^^WHEAT RIDGE^CO^80033
OBR|1|36|788f6cd3-9c4d-4657-b2e5-37ca743cf101|74018^ABDOMEN^HCPC^1^PAIN LOCALIZED TO UPPER ABDOMEN|ASAP|20180510|
OBX|1|ST|R10.1^PATIENT COMPLAINT^ICD10||PAIN LOCALIZED TO UPPER ABDOMEN||||||R|
NTE|1|Something here||



2nd new msg with the 2nd OBR|OBX|NTE combo copying MSH|PID|NTE|ORC

MSH|^~\&|EMR^1ST FLOOR^1ST FLOOR||PMD|TEST FACILITY - UTAH|20180510||ORM^O01|11867-6071-41|P|2.3.1
PID||16|||TEST09^JAX||20020101|M|||1002 NO WHERE ST^^SANDY^UT^84070||^^555^5550001||||||555550003|
NTE|1|DISPATCH NOTES||||||||||
ORC|NW|36||36||||||||1568438653^LALLY^THOMAS^^^^^^ ^^^^NPI||^^^^303^3799371|||||||||2|^^WHEAT RIDGE^CO^80033
OBR|2|36|c0799337-0f8c-4304-a4b6-36e8e9a06bd7|71046^CHEST 2 VIEWS^HCPC^1^CHEST PAIN ON BREATHING|ASAP|20180510|
OBX|1|ST|R07.1^PATIENT COMPLAINT^ICD10||CHEST PAIN ON BREATHING||||||R|
NTE|1|Something here||
Reply With Quote
 

Tags
break, hl7, split

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


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