Create 2 HL7 messages from one inbound message

44 views
Skip to first unread message

MightyMouse

unread,
Feb 5, 2015, 9:01:37 AM2/5/15
to Ensemble-in...@googlegroups.com
Good day,

I have a situation where I am processing an inbound ORU^R01 that contains stat and normal tests for processing.  What I would like to do is have the transformation (or some other mechanism) take the inbound message and produce and deliver 2 messages where one contains the stat tests and the other contains the normal tests.

Does anyone have an example of how to do this or can point me in the right direction on how to accomplish this the easiest?

Thank you,
Lawrence

Graham, Ben

unread,
Feb 5, 2015, 9:11:59 AM2/5/15
to Ensemble-in...@googlegroups.com

You could use a BPL business process to do this.

 

The BPL provides the framework for logic to determine whether or not there are stat tests, and create a message for the stat tests.

The same for the normals.

 

You would still need a transform for each case.

 

-Ben

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






This electronic transmission and any documents accompanying this electronic transmission may contain information that is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on or regarding the contents of this electronically transmitted information is strictly prohibited. If you have received this e-mail in error, please notify the sender and delete this message immediately.

Lori Fassman

unread,
Feb 5, 2015, 9:18:45 AM2/5/15
to Ensemble-in...@googlegroups.com

Hi Lawrence,

 

You might create two separate transforms (maybe with a “base” transform that does all the common work between the two, and then smaller transforms for stats and “other” that filter the tests and do whatever needs to be different between them, if anything).  Call the base transform first followed by one of the two specific transforms from your routing rules. 

 

<when condition=”1”>

<send transform=”baseTransform, YourStatsTransform” target=”YourTarget” />

<send transform=”baseTransform, YourOtherTransform” target=”YourTarget” />

</when>

 

Lori

 

 

From: Ensemble-in...@googlegroups.com [mailto:Ensemble-in...@googlegroups.com] On Behalf Of MightyMouse
Sent: Thursday, February 05, 2015 9:02 AM
To: Ensemble-in...@googlegroups.com
Subject: [InterSystems-EnsHlth] Create 2 HL7 messages from one inbound message

 

Good day,

--

Joan Roesch

unread,
Feb 5, 2015, 9:45:40 AM2/5/15
to Ensemble-in...@googlegroups.com
Multiple sends in the rule.

 


Joan M. Roesch
Application Analyst, Integration
VCU Health Systems
(804)349-9198 (cell)
(804) 828-8341 (work)
jro...@mcvh-vcu.edu




From:        MightyMouse <mrlg...@gmail.com>
To:        Ensemble-in...@googlegroups.com
Date:        02/05/2015 09:01 AM
Subject:        [InterSystems-EnsHlth] Create 2 HL7 messages from one inbound message

--

You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at

http://groups.google.com/group/Ensemble-in-Healthcare?hl=en


---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Ensemble-in-Healt...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.


NOTE: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.
--------------------------------------
VCU Health System
http://www.vcuhealth.org

MightyMouse

unread,
Feb 5, 2015, 10:23:16 AM2/5/15
to Ensemble-in...@googlegroups.com
Thanks Ensemble-ites!

The message I am trying to manipulate is formatted this way:

MSH|^~&|LAB|XXX|ECW||20150204131445||ORM^O01|1373589|T|2.3|
PID|1|34497||34497|TEST^MAN^||19411207|M|||111 High Street^^DEERBORN^MI^41301|||||||||
PV1|1||||||1000000000^Welby^Marcus^A|^^^|||||||||||1111111|
GT1|1||TEST^MAN^||111 High Street^^DEERBORN^MI^41301|||19411207|M||1|
ORC|NW|1373589|||||||20150204131445|||1780673970^Gavryck^Wayne^A|
OBR|1|1373589||04350^CALCIUM|||20150204131445||||||||^|1000000000^Welby^Marcus^A|||||||||||^^^^^R|
ORC|NW|1373589|||||||20150204131445|||1780673970^Gavryck^Wayne^A|
OBR|2|1373589||63132^COMPLETE URINALYSIS|||20150204131445||||||||^|1000000000^Welby^Marcus^A|||||||||||^^^^^S|
ORC|NW|1373589|||||||20150204131445|||1780673970^Gavryck^Wayne^A|
OBR|3|1373589||52275^MONO TEST|||20150204131445||||||||^|1000000000^Welby^Marcus^A|||||||||||^^^^^R|
ORC|NW|1373589|||||||20150204131445|||1780673970^Gavryck^Wayne^A|
OBR|4|1373589||67360^GROUP A STREP SCREEN AND CULTURE|||20150204131445||||||||^|1000000000^Welby^Marcus^A|||||||||||^^^^^S|

OBR:27.6 is the subfield that I'm checking for stat or regular tests and they can appear in any of the OBR segments, in any order.

I like the multiple transforms and am working on the condition.  I can foreach through the OBRuniongroup storing the OBR:27.6 values in a string then test the string for either "S" and "R", just "S", or just "R" then transform accordingly.

Does that sound like it would work?

Thanks,
LG

Joan Roesch

unread,
Feb 5, 2015, 10:33:39 AM2/5/15
to Ensemble-in...@googlegroups.com
Can you put a condition on the when clause where the OBR27.6 = "S"  do one dtl and if OBR27.6 = "R"

if the OBR appears multiple times in the message?    




Joan




From:        MightyMouse <mrlg...@gmail.com>
To:        Ensemble-in...@googlegroups.com
Date:        02/05/2015 10:23 AM
Subject:        [InterSystems-EnsHlth] Re: Create 2 HL7 messages from one inbound message
Sent by:        Ensemble-in...@googlegroups.com




--

You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at

http://groups.google.com/group/Ensemble-in-Healthcare?hl=en

MightyMouse

unread,
Feb 5, 2015, 10:44:07 AM2/5/15
to Ensemble-in...@googlegroups.com
Yes, but the OBR:27.6 values of "S" and "R" can be in 1 or more segments of a single message.  So I'd need to check if the entire group of OBR:27.6s contained both "S" and "R" then do a transform for each to produce the "S" and "R"-only messages.  Then check for just "S" and just "R" and do those transforms where the messages are consistent with test priority.

To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com


For more options, visit this group at


---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.

To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages