web stats
need to read a file with multiple HL7 messages - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2014, 11:05 AM
johnjohn johnjohn is offline
OBX.1 Kenobi
 
Join Date: Aug 2014
Posts: 31
johnjohn is on a distinguished road
Default need to read a file with multiple HL7 messages

I am using mirth 3.0.1.7051. I need to process a file contains multiple HL7 messages which does not have the header and trailer. The file reader is used to read the file. If I use the batch process, do I need the BHS, FHS, FTS and BTS? I want to produce different file for each HL7 message. Do you know what is the easiest way to do it? What type of segment separators do we need in order to process it correctly? Thanks again for your help.

My input file is as follows:
0bMSH...
0d0aPID...
0d0aPV1
0d0aFT1
...
...
...
0d0a1c0d0a0bMSH
0d0aPID
0d0aPV1
...
...
0d0a1c0d0a0bMSH
0d0aPID
0d0aPV1
...
...
0d0a1c0d0a (last message)
Reply With Quote
  #2  
Old 09-04-2014, 11:08 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,117
narupley is on a distinguished road
Default

Yes, if you have Process Batch enabled and your inbound data type is HL7 v2.x, it will be automatically split into discrete messages, whether or not the batch segments exist.
__________________
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
  #3  
Old 09-04-2014, 11:20 AM
johnjohn johnjohn is offline
OBX.1 Kenobi
 
Join Date: Aug 2014
Posts: 31
johnjohn is on a distinguished road
Default

Do I need to put in any specific encoding type? (I used the default) What are you expecting before and after each segment and the end of the file?

My input file is

0bMSH...
0d0aPID...
0d0aPV1
0d0aFT1
...
...
...
0d0a1c0d0a0bMSH
0d0aPID
0d0aPV1
...
...
0d0a1c0d0a0bMSH
0d0aPID
0d0aPV1
...
...
0d0a1c0d0a (last message)

Thanks
Reply With Quote
  #4  
Old 09-04-2014, 11:02 PM
johnjohn johnjohn is offline
OBX.1 Kenobi
 
Join Date: Aug 2014
Posts: 31
johnjohn is on a distinguished road
Default batch file processing

I am using mirth 3.0.1.7051. I am trying to read a file with multiple hl7 messages with no header or trailer. The channel is a simple pass through channel with file read as the source and file write as the destination. However, it did not split up individual file when it is done. Does mirth require specific segment termination in order for it to work? I had turned on the batch option, and it still did not work. Any ideas?

Thanks for your help
Attached Files
File Type: xml newWW-ATL charge import.xml (18.3 KB, 29 views)
Reply With Quote
  #5  
Old 09-05-2014, 09:14 AM
johnjohn johnjohn is offline
OBX.1 Kenobi
 
Join Date: Aug 2014
Posts: 31
johnjohn is on a distinguished road
Default

I have to put the file in the folder for it to work. The dashboard's send message will not work.
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 11:59 PM.


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