web stats
Saving an ORM and then sending it later issue - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2013, 07:07 AM
atibbits atibbits is offline
Mirth Guru
 
Join Date: May 2012
Location: Salina, KS
Posts: 381
atibbits is on a distinguished road
Question Saving an ORM and then sending it later issue

I am needing to figure out a way to save entire order messages in either a database or a file and then send those messages once we receive a specific ADT message. I am trying to figure out the best way to do this. The order messages we are needing to "hold" will be missing PID.3 (MRN#) and we are waiting for the ADT (usually an A04) that will have the MRN# we need to put into PID.3.

Does anyone have any suggestions on how to do this ?

Right now, I am thinking about saving these in an individual file with the account# (PID.18) as the file name. However, I cannot figure out how to get the account # in the file name. I then want to search for this file based on the incoming ADT message account#. If there is a match, I want to pull this file through.
Reply With Quote
  #2  
Old 09-11-2013, 08:01 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,310
cory_cole is on a distinguished road
Default

Channel_A receives the HL7 messages. If MRN# not there, writes to /tmp. If MRN# there, move appropriate file(s) to /process.

Channel_B scans /process for messages.
Reply With Quote
  #3  
Old 09-11-2013, 08:54 AM
atibbits atibbits is offline
Mirth Guru
 
Join Date: May 2012
Location: Salina, KS
Posts: 381
atibbits is on a distinguished road
Default

I can get it to create a file with the visit # as the file name, but the next issue I have is how to use an ADT message with the MRN# as a trigger to send the order message. Also, I have to use the MRN# from the ADT and put it in the order message before I send it.
Reply With Quote
  #4  
Old 09-11-2013, 11:34 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,310
cory_cole is on a distinguished road
Default

Here is a channel that you can tweak.

Missing MRN.xml
Reply With Quote
  #5  
Old 09-11-2013, 12:16 PM
atibbits atibbits is offline
Mirth Guru
 
Join Date: May 2012
Location: Salina, KS
Posts: 381
atibbits is on a distinguished road
Default

Thanks Cory! I will see what I can do!!!
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 04:45 AM.


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