Questions tagged [mirth]

Mirth is an open source cross-platform interface engine with a focus on medical message formats (HL7, CCD, CCDA, DICOM, and more) that enables bi-directional sending and transformation of messages between systems and applications over multiple transports available.

Mirth was originally based on the open source Mule ESB engine to provide speed, stability and security in a flexible environment. Due to Mule licensing changes, Mirth Connect 3.0 was rewritten with its own ESB, Donkey.

Mirth Connect is written in Java and also uses the Rhino engine to execute JavaScript at runtime. This means that Mirth questions will often be tagged for java, javascript, or rhino.

More information on Mirth Project web page.

498 questions
4
votes
3 answers

Where are the user guides for Mirth Connect?

Where are the user guides for Mirth Connect? Google searches point to an older forum post and relatively old links to version 3.0.1. The current release is 3.6.1 and is several years newer than those links.
Freiheit
  • 8,408
  • 6
  • 59
  • 101
4
votes
5 answers

How to convert local date to UTC in Mirth?

In Mirth I receive a local datetime string (201801011000) which I need to convert to UTC. I soon found out using the classic js new Date() doesn't work well. This for example: var d = new Date("2018-01-01 10:00"); logger.info(d.toString()); gives…
kramer65
  • 50,427
  • 120
  • 308
  • 488
4
votes
1 answer

mirth connect stop message propagation through destinations

I am using Mirth Connect 3.5.0.8232. I have a Database Reader as source connector and a JavaScript writer as destination connector. I decided to put some fancy code in the destination, doing four separate things, which should follow one after the…
hello_earth
  • 1,442
  • 1
  • 25
  • 39
4
votes
2 answers

Mirth HL7 ACK ERROR: Message control Ids do not match

I'm starting out with Mirth and HL7 and I'm trying to send a message to a remote server. My MSH looks as follows: MSH|^~\&|EPIC|EPIC|IMG_SCHEDULE_APPT|REMOTE|20170328193318|PERSONNAME|ORM^O01|12345678|T|2.4|||||||||| The response looks as…
kramer65
  • 50,427
  • 120
  • 308
  • 488
4
votes
2 answers

Invoking Mirth Connect CLI with Powershell script

I'm using powershell 4 to invoke the Mirth Connect command line interface (mccommand.exe). I am explicitly avoiding use of the "-s" parameter of the Mirth CLI to pass a Mirth script file because I want to pass dynamic commands instead to the Mirth…
Adam Flynn
  • 949
  • 2
  • 9
  • 21
4
votes
3 answers

Is using ASCII 10 inside a HL7 segment a valid way to represent a new line?

Placing an ASCII 10 (0A) character somewhere inside of a segment of an HL7 message to represent a new line character. Is this valid? From what I can see it is recommend to use \X0D\ or \X0D0A\ to represent a new line character for plain text format…
Ay Rue
  • 228
  • 1
  • 3
  • 15
4
votes
3 answers

Adding Multiple NTE segments to HL7 message with Mirth

I am trying to add multiple NTE lines to the end of HL7 messages using Mirth. I can add a single line using for example: tmp=msg; msg['NTE']['NTE.1']="1".toString(); msg['NTE']['NTE.3']="Performed at 123 Radiology".toString(); But... When I want to…
user2201142
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

XDS.b testing with SoapUI

I have to implement a simple client to a XDS.b server (SubmitObjectRequest and RetrieveDocumentSetRequest operations), but I'm struggling to get even a simple example of use to work. I've tried using Mirth Connect's Channel for XDS.b also, but with…
Herberth Amaral
  • 3,479
  • 3
  • 33
  • 35
4
votes
2 answers

Mirth: Send file like PDF, zip or Transfer pdf files using mirth

I want to transfer pdf/zip file through mirh. I am using file reader connector as source and file writer as destination connector. can any one help me how to send/transfer pdf/zip file?
Rikin Patel
  • 8,848
  • 7
  • 70
  • 78
4
votes
2 answers

How to get Response from another channel in mirth

We have two channels called channelA and channelB. In channelA we have two destinations a. first destination will invoke the channelB with XML data as input and get the response from the channelB in XML format. b. retrieve the response of first…
Riyaz shaik
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Mirth java code to conditionally change a field

I'm using Mirth to read HL7 messages from our DB and send them out to a client's EMR. This particular EMR requires that the OBR and OBX for the embedded PDF are formatted a specific way. If OBR.4.1 and OBR.4.2 have "0PDF^PDF Report" we need to…
user2109799
  • 41
  • 1
  • 2
3
votes
3 answers

Mirth processing multiple segments

Here I am doing some mapping for Next of Kin $('Nok') (see mapping table). Then to process this I have the Javascript below. The reason that I am trying this was is, at times we get multiple next of kin segments come through. If that is the case,…
3
votes
2 answers

What does Template:${message.encodedData} mean in mirth?

I am trying to learn a mirth system with a channel that is pulling from a database for its source and outputting hl7 messages for its destination(s). The SQL query pulls the correct data from the source--but Mirth does not output all of the data in…
bernie2436
  • 22,841
  • 49
  • 151
  • 244
3
votes
3 answers

NextGen Mirth: Loop through all OBR/OBX segments for output to Document Writer

I used Mirth about 10 years ago and realize I have forgotten pretty much everything and a lot of my resources are no longer available. I am looking to iterate through OBR and OBX segments to pull the OBR 4.2, 7.1, 16.2 to be used as a section…
j creedon
  • 33
  • 1
  • 5
3
votes
1 answer

Is it possible to use a an SQL query to find out whether a Mirth channel is disabled or not?

Is it possible to use a an SQL query to find out whether a Mirth channel is disabled or not? I know it can be done via API calls but I am trying to use a purely database method.
pldiguanaman
  • 125
  • 1
  • 9
1
2
3
33 34