web stats
Mirth Community - View Single Post - Break HL7 msg into several messages
View Single Post
  #1  
Old 05-22-2018, 05:26 PM
mmonisky mmonisky is offline
OBX.1 Kenobi
 
Join Date: Aug 2015
Posts: 35
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