web stats
Outbound Message Template - ADT - Mirth Community

Go Back   Mirth Community > Mirth Connect > General Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2015, 11:38 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 554
kirbykn2 is on a distinguished road
Default Outbound Message Template - ADT

We are debating on using an outbound message template for ADT. The vast majority of systems only receive a small subset of segments that are actually sent(MSH, EVN, PID, PV1). If we had a good outbound message template to start with, we could reuse this for the majority of the systems. Making small modifications where needed.

That being said, what would the downside be to using an outbound message template? Has anyone else use one for ADT? If so, what was your experience?
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #2  
Old 04-17-2015, 04:41 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 554
kirbykn2 is on a distinguished road
Default

Even if you haven't considered doing this, I would love to hear your feedback. Bad or good!
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #3  
Old 04-17-2015, 07:06 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,097
narupley is on a distinguished road
Default

An outbound template is helpful anytime you have some part of your message whose structure will always be the same. So if you always expect to create ADTs with the same segments, then it's convenient to use an outbound template, because mapping inbound data to outbound is very easy. You can drag-and-drop between the inbound/outbound message trees, and use Message Builder steps to map the data.

Of course if any part of the message dynamically changes depending on the input, then you'll probably need some JavaScript at some point. You can still use an outbound template for at least part of the message though. For example, if you're creating an ORU, you might still have the outbound template for the MSH/PID. However, since there could be more than one order group, it usually makes more sense to supplement that with a JavaScript step to dynamically build up groups of ORC/OBR/OBX segments for each order group.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #4  
Old 04-17-2015, 07:17 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 554
kirbykn2 is on a distinguished road
Default

Thanks for the response Nick.

I was thinking of mapping all of the incoming data elements to variables. We would then populate the outgoing template with the variables.

We would create a good base site template for all ADT. Then we would just need to add/subtract the variables per the specific requirements of the downstream systems.
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #5  
Old 04-20-2015, 09:06 AM
Shamil Shamil is offline
OBX.3 Kenobi
 
Join Date: May 2013
Posts: 151
Shamil is on a distinguished road
Default

When you say ADT, are you considering which version of HL7v2 you want to implement? There are a number of deprecated and withdrawn data types or data type's components not quite compatible with previous versions (XTN.1 is an example). Same with segments. To make sure you have all required fields you may need to implement the latest 2.7 version (not supported by HAPI yet btw).
Reply With Quote
Reply

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 09:49 PM.


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