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
0 answers

837P mirth - I am trying to transform patient info when subscriber is not the patient along with some claims when subscriber is the patient

I am trying to transform patient info when subscriber is not the patient along with some claims when subscriber is the patient. I came across another challenge when subscriber is not the patient or subscriber has dependent. So far I tried below code…
2
votes
3 answers

Copy multiple repetition PID-3 to PID-4

I have an ORU interface in Mirth which splits to two destinations. I need to make some changes to the PID in Mirth before sending to one destination which I have managed except I cannot seem to copy all of PID3 to PID 4 just the first…
SCH
  • 21
  • 2
2
votes
1 answer

What is the correct format to use with joda time datetime formatter in Mirth?

In one of the HL7 date time values, I get values like 202009010935-0400 I am trying to use joda time to parse that and convert into a yyyy-MM-dd'T'HH:mm:ss format. Using this line of code var instant =…
rams
  • 6,381
  • 8
  • 46
  • 65
2
votes
2 answers

How stop execution and send ack/nack with error message in mirth 3.4?

I'm new in mirth so sorry if my question may seems naive. I've a mirth channel that recives hl7 messages, and this is fine, also I've some filters and transformers both in Source and Destination. When all is fine at the end of destination I send an…
max
  • 366
  • 5
  • 18
2
votes
2 answers

Mirth Connect Channel destination sort JSON array of objects

I need to sort an array of objects being sent into Mirth. Originally the sorting was done via XSLT (since the inbound data was XML), but with a change (outside of my control) the inbound data was changed to JSON. The original sorting was being done…
P.McSwain
  • 344
  • 4
  • 14
2
votes
2 answers

How do I get the Mirth Connect Environment Name in a script?

I'm running Mirth Connect Server 3.8.1. The settings page has two fields, Environment Name and Server Name: I've been able to get the Server Name in a script the following way: var configurationController =…
2
votes
1 answer

Get space used by Mirth per channel in SQL Server

How can I tell how much disk space each channel uses for message and metadata storage with my Mirth Server using SQL Server as the backing database?
Mitch
  • 21,223
  • 6
  • 63
  • 86
2
votes
1 answer

Is there any way to access private datasets through API call

I'm running Mirth 3.6.1 with CKAN 2.8 and being a newbie to this I've run into an issue: Is there a way to access resources in private datasets in CKAN through API requests? I can't seem to do it. I have an organization with a public dataset and I…
2
votes
2 answers

Query message store of mirth connect

Can I use mirth connect to store millions of HL7v2 messages (pipe delimited) and query them programmatically by our third party software application at a later point of time? What's the best way to do that? Is mirth's REST API capable to query its…
OneWorld
  • 17,512
  • 21
  • 86
  • 136
2
votes
1 answer

Keeping track of configuration changes and it actual global state

I want to keep a track of mirth configuration changes and it actual global state. Now, I just export all group channels as xml and commit them to git. Is it enough or there are another configuration that is persisted in database? Is Mirth DB only a…
2
votes
1 answer

How to process only the most recent file in a directory using Mirth Connect?

I'm attempting to create a channel designed to take a binary file from an sFTP site and transfer it to a second sFTP site. The source site updates their files on Friday, so I'm creating the channel to run every Sunday. The main issue is that I want…
michaelmccarthy404
  • 498
  • 1
  • 5
  • 19
2
votes
1 answer

Mirth: Evaulating SWITCH versus IF Statement

I'm using a product called Mirth (version 3.6) to execute transform code. It doesn't seem to have an interactive debugger so can anyone explain why the following code in a destination transform will only log from the IF statement and not from the…
Geekn
  • 2,650
  • 5
  • 40
  • 80
2
votes
1 answer

HTTP Sender and REST conventions

I'm writing a C# Web API server application, and will send JSON to it via a Mirth HTTP Sender destination. This post is about how to handle error conditions. Specifically, there are three scenarios I want to handle: Sometimes we take the C#…
Dean Bostic
  • 21
  • 1
  • 3
2
votes
1 answer

Access Mirth Connect REST API from Javascript Transformers (Mirth 3.5.1)

I am struggling to access the mirth connect Rest api endpoints from a source javascript transformer of a mirth connect channel. My goal is to be able to export and import channel groups using javascript code in the transformer. I am aware that it is…
Mike Aono
  • 859
  • 2
  • 11
  • 17
2
votes
1 answer

Mirth Connect Multiple HTTP Listeners Channels on One Port?

Can I have multiple mirth HTTP Listeners channels running on the same port but differentiated by name/url. For example: https://healthcare.org:443/api/GetPatient https://healthcare.org:443/api/GetReport Is that possible in some way or should i have…
Tayyab
  • 1,207
  • 8
  • 29