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
2
votes
1 answer

How to insert created_timestamp in MongoDB using its Java Driver for Javascript

I'm trying to use $setOnInsert using javascript, so I can insert the created_timestamp just the first time it hits Mongo. var uri = new Packages.com.mongodb.MongoClientURI("mongodb://usr:pwd@localhost:27017/admin"); var mongoClient = new…
2
votes
0 answers

java.lang.NoClassDefFoundError: javax/media/jai/OperationRegistrySpi

I have asked the same question in this forum as well http://www.mirthproject.org/community/forums/showthread.php?t=217493 Here's my requirement I'm reading the .txt file (Base 64 Encoded) and converting into tif Image file in JAVA. Since creating…
Vibin Guevara
  • 778
  • 10
  • 27
2
votes
1 answer

mirth connect Database Reader automatic column mapping

Please could somebody confirm the following.. I am using Mirth Connect 3.5.08232. My Source Connector is a Database Reader. Say, I am using a query that returns multiple rows, and return the result (via JavaScript), as documentation suggests, so…
hello_earth
  • 1,442
  • 1
  • 25
  • 39
2
votes
2 answers

Mirth Changing Default ACK Field Value

I am using Mirth with a LLP listener receiving HL7v2 message. The customer expects an ACK message from us and so we checked the "Send ACK" radio button. The only problem is that in the default ACK it puts MIRTH in the MSH-3.1 field. I need to change…
Khirok
  • 517
  • 1
  • 13
  • 21
2
votes
2 answers

Cache results in a Mirth channel that performs batch processing

I'm stuck with a problem in Mirth. I have a Mirth channel that will receive a .csv file I'm performing a batch process in that channel. So, channel will read each row in the .csv file. I'm communicating each row and transforming into SOAP to…
Vibin Guevara
  • 778
  • 10
  • 27
2
votes
1 answer

How should one send ACKs to Mirth from a web service?

I want to write a simple "web service" that I can use Mirth to send HL7 messages to. This "web service" could be as simple as a CGI script, and would just need to accept the HL7 message as a string (and possibly a couple of other values) as a POST…
Wodin
  • 3,243
  • 1
  • 26
  • 55
2
votes
1 answer

Get Token from destination response and pass to new Channel in Mirth

I've created a channel in Mirth which first calls authentication service and returns response. Source I've configured to HTTP Listener and in destination I've used HTTP Sender which calls a rest service for login and returns token as…
User14141111
  • 355
  • 2
  • 19
2
votes
1 answer

Mirth : database reader, how to deal with [multiple rows] returned from sql query?

I am new to Mirth connect and I need some help I am working on a demo like the following: the source is Database Reader the destination is a Document writer The SQL select query in the source returns multiple rows "and this is what I need" I am…
Heba A.
  • 127
  • 2
  • 15
2
votes
1 answer

How to convert a json into HL7 using Mirth Connect 3.4.1?

I define a javascript transformer now, but always tip failure when transformation, the code is as follows: var input = JSON.parse(connectorMessage.getRawData()); var patienId = input.PATIENT_ID; var patientName = input.PATIENT_NAME; var idCard =…
伽角马
  • 31
  • 1
  • 3
2
votes
1 answer

What is the appointment date timezone in HL7 Scheduling SIU S12 request?

Currently I am working with the HL7 and mirth part for the new appointment booking. So when I parse the HL7 data in mirth for SIU S12 request, I am getting the date in YYYYMMDDHHmmss fomat in SCH category. Can any one have an idea about in which…
2
votes
1 answer

Read globalChannelMap from destination template

I have a source connection reading and constructing my output all in javascript in the channel source. I need to pass this along to access it from the destination. So I use globalChannelMap.put('fullMessage', fullMessage); Inside the destination in…
Tsukasa
  • 6,342
  • 16
  • 64
  • 96
2
votes
2 answers

E4X to JSON conversion fails for duplicate xml elements

Kindly see below code I am using to convert Mirth xml to JSON. function E4XtoJSON(xml, ignored) { var r, children = xml.*, attributes = xml.@*, length = children.length(); if(length == 0) { r = xml.toString(); } else if(length == 1) { …
raj
  • 114
  • 5
2
votes
1 answer

Using a Mirth Transformer to loop through multiple PID.3 Segments

I have a message structure where I need to loop through multiple PID.3 segments, selecting one with a PID.3.5 == 'MR' and then replacing PID.3.4 with identifier. I understand how to loop through multiple segments such as OBX, but not sub-segments. …
skyman
  • 2,255
  • 4
  • 32
  • 55
2
votes
3 answers

Why is this string: javax.sql.rowset.serial.SerialClob being included in an output file instead of the actual value

I am using Mirth 3.1.0.x, to extract data from a Sql Server 2012 database and write the resultset to a flat file. The code was working prior to a new column being added. Here is the code in a transformer script for a Mirth Channel…
Gary Kindel
  • 17,071
  • 7
  • 49
  • 66
2
votes
1 answer

Random Date Generation in Javascript

I am trying to generate random date in Mirth in the format yyyymmdd, a tool that uses Javascript and Limitedly supports Java (Apache commons). The problem I am facing is that the date it is generating is outside range. Some random output my code…
Sid
  • 988
  • 8
  • 27