Mirth (NextGen) Connect Bits #8: Using Attachment Handler
Mirth (NextGen) Connect allows you to handle attachments from an HL7 message or by reading a file. Attachments can be viewed in the Dashboard in the “Attachments Tab”. The viewer supports four types: Text, Image, DICOM, and PDF. Using the Attachment handler allows you to reduce the memory footprint...
Mirth (NextGen) Connect Bits #7: Code Templates Usage
If you’re a developer familiar with full-stack technologies and some software design patterns like MVC, you’ll know that you have parts of your codebase where you have helpers, model, controller, and others. Basically organizing functions, classes, and methods to be re-usable. In Mirth (NextGen) Connect, you can do scripting...
Mirth (NextGen) Connect Bits #6: HL7 Data Update & Manipulation
HL7 data manipulation in Mirth (NextGen) Connect can be done using the different options in the Transformer. However, for complex conditions where you want to change specific parts of the HL7 message, you can code it using JavaScript. If you’re reading and outputting the data as HL7, then the...
Mirth (NextGen) Connect Bits #5: Adding SSL Certificate To Resolve HTTPS Sender Issues
One common issue with Mirth (NextGen) Connect is calling 3rd party API via HTTPS, unfortunately, there’s a chance that you’ll get an error like the one below. To resolve this, you need to add the web API’s SSL certificate in your Java KeyStore for Mirth to use. There are...
Mirth (NextGen) Connect Bits #4: How To Use DateUtil Class
DateUtil is a powerful function found in the Mirth Connect application. When calling it in a JavaScript type Filter/Transformer, you should see the definition and arguments needed. You can also find it in the “Reference” section. This is part of the User API in the application, you can check...
My Experience On Using A Telehealth Service – Medifi
As of this time of writing, we are currently experiencing a pandemic. Countries have been in lockdowns and curfews are implemented. People are advised to stay at home, wear a mask if going outside, and maintain social distancing. Life needs to move forward and one important part of it...
Mirth (NextGen) Connect Bits #3: CRUD Database Operations Using JavaScript
Mirth (NextGen) Connect has a Database Reader in the “Source” and a Database Writer in the “Destination”. However, if you have some complex processes like getting additional information in between, you can do database operations (create, read, update and delete) anywhere that executes the JavaScript code (ex. Filter, Transformer,...
Mirth (NextGen) Connect Bits #2: Adding New Segments and Repeating Fields on an HL7 Message
The code below is one way to add new segments. I prefer to create a tmp object and set up the static segments in the Outbound template of the transformer. I then use the code below to add new segments. To add repeating fields, I use the code below....
Mirth (NextGen) Connect Bits #1: Looping & Deleting Segments
[UPDATED] : Fixed the delete logic since I found issues on it. Loop will start at the bottom or last child instead. A quick rundown on how to loop and delete specific segments based on some conditions. Here I want to check all OBX segments and delete those that...
Basics of HL7 V2 Messages
Quick review, HL7 (Health Level Seven) is an organization that provides a framework (and related standards) for the exchange, integration, sharing, and retrieval of electronic health information. These standards define how information is packaged and communicated from one party to another, setting the language, structure, and data types required...