web stats
Importing HL7 messages from prune files - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2015, 05:41 AM
henriquetomaz henriquetomaz is offline
OBX.1 Kenobi
 
Join Date: Dec 2014
Posts: 45
henriquetomaz is on a distinguished road
Default Importing HL7 messages from prune files

Good morning,

During the development of our new service and new channel we received messages from a sender to have these messages stored. They were stored in HL7 (as we received them from the sender) in .txt files (one file per day). Now I want to import these messages to our channel and send it to our web service, which update our database and generate an medical report from a specific field contained in the message.

I read in previous posts that the CLI command "importmessages" just imports xml serialized messages to the channel. Additionally, once them imported, I am not sure the channel send them automatically to the destination.

So, basically, I want to use these .txt files (with the HL7 messages) and send them again to to my channel in order to redirect them to the final destination. As when I right-click on the channel and select "Send Message" and a window called "Message" opens and there I can click in "Open Text File" to load my .txt file and click to "Process Message" to send then to my channel. I want to automatized this process in the CLI since I have 51 .txt. file with more then 2k HL7 messages.

Any idea? I would really appreciate that!
Thank you!

Henrique Amaral
Reply With Quote
  #2  
Old 10-30-2015, 10:49 AM
phatneff phatneff is offline
Mirth Guru
 
Join Date: Jun 2014
Location: Cincinnati, OH
Posts: 182
phatneff is on a distinguished road
Send a message via AIM to phatneff
Default

Maybe I'm underthinking this and wanting to oversimplify the process, but why can't you do a file reader connector to read in the file and parse out each message and then send the messages to the appropriate destination?
Reply With Quote
  #3  
Old 11-04-2015, 05:05 AM
henriquetomaz henriquetomaz is offline
OBX.1 Kenobi
 
Join Date: Dec 2014
Posts: 45
henriquetomaz is on a distinguished road
Default

Your suggestion works perfectly for my problem. Thank you!
Reply With Quote
Reply

Tags
hl7, importmessages, send message, xml

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 08:48 AM.


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