Interface engines
Mirth Connect Integration Engineering
Mirth Connect runs a large share of HL7 interfaces in US healthcare. We design, tune, and rescue Mirth channels, and help teams plan around the engine's recent licensing change.
At a glance
- Standards & integrations
- HL7 v2 over MLLPFHIR R4 RESTX12 EDI (270/271, 837, 835)SFTP and file sharesSQL databasesWeb services (SOAP and REST)
- Typical deliverables
Channel inventory and dependency map
Health assessment report
Licensing and upgrade option analysis
Refactored channels and code templates in Git
Mirth Connect: overview
Mirth Connect, now marketed as NextGen Connect by NextGen Healthcare, is a Java-based interface engine built around channels. Each channel has a source connector (MLLP listener, HTTP, file reader, database poller), filters and transformers written in JavaScript on the Rhino engine or configured through mapping steps, and one or more destination connectors. Code templates and global scripts share logic across channels, and a message store keeps each message's raw, transformed, and response content for search and reprocessing.
For years the core engine was released under an open-source license, which drove wide adoption by hospitals, labs, and health IT vendors. Starting with version 4.6 in 2025, NextGen moved the product to a commercial license. Earlier open-source releases remain available under their original terms, and community forks have appeared. Licensing details, pricing, and support terms can change, so check current licensing terms with NextGen and your legal team before planning upgrades or new deployments. We help you weigh staying, licensing, or migrating, without pushing an answer.
Most Mirth problems we see are not the engine's fault. They are channels that grew organically: a 2,000-line transformer copied between fifteen channels, message storage left at full content with no pruning until the database fills, destination queues disabled so a downstream outage loses messages, and no version control on channel exports. We bring software engineering discipline to Mirth: channels in Git, tests for transformers, structured alerts, and capacity planning.
Engineering challenges in Mirth Connect
01Licensing uncertainty
The move to a commercial license from version 4.6 affects upgrade paths, support, and budget. Teams on older versions must decide whether to license, stay on an unsupported release, adopt a fork, or migrate.
02Transformer sprawl
Duplicated JavaScript across channels makes fixes inconsistent. A change to an OBX mapping might be applied in four channels and missed in the fifth.
03Database growth
Storing full message content without a pruner policy fills the backing database, slows the dashboard, and eventually stops processing.
04Queue misconfiguration
Destinations without queuing enabled drop or error messages when a downstream system is down, instead of holding and retrying.
05Version-skew upgrades
Jumping several major versions can break custom extensions, Java library dependencies, and Rhino-specific JavaScript behavior.
Technical capabilities
What our Mirth Connect work covers
Channel design and build
New channels for HL7 v2, FHIR, X12, and file or database integrations, with filters, transformers, response handling, and correct MLLP ACK generation.
Refactoring and code templates
Consolidating duplicated transformer logic into tested code templates and libraries, so mappings change in one place.
Performance and storage tuning
Thread counts, queue settings, storage modes, and data pruner policies tuned to volume, plus moving the backing store to PostgreSQL or SQL Server where appropriate.
Upgrades and licensing review
Upgrade planning with compatibility testing of extensions and scripts, and a technical comparison of licensing, fork, and migration options to support your decision.
DevOps for channels
Channel exports in Git, environment-specific configuration maps, scripted deployment between test and production, and automated transformer tests.
Monitoring and alerting
Alerts on errored messages, queue depth, and inactivity, sent to on-call tooling without PHI in the alert body.
Migration off Mirth
Inventory and translation of channels to another engine or cloud service, with parallel runs to compare outputs before cutover.
Software architecture
Reference architecture for Mirth Connect
A production Mirth deployment treats channels as code and the engine as infrastructure.
- Sources
- MLLP listeners
- HTTP/FHIR endpoints
- File and SFTP readers
- Database pollers
- Channel logic
- Filters
- Transformers
- Code templates
- Response handling
- Destinations
- Queued senders
- FHIR clients
- Database writers
- Channel writers
- Platform
- Backing database
- Data pruner
- Clustered or HA setup
- Configuration map
- Operations
- Git-managed exports
- CI tests
- Alerts
- Dashboards
Technology stack for Mirth Connect
- Engine
- Mirth Connect / NextGen ConnectOpen-source releases prior to 4.6Community forks (evaluate case by case)
- Scripting
- JavaScript (Rhino)Java librariesE4X/XML handlingJSON parsing
- Data stores
- PostgreSQLMicrosoft SQL ServerOracle DatabaseMySQL
- Ops
- GitCI pipelinesDocker imagesPrometheus/Grafana or cloud monitoring
- Alternatives
- RhapsodyCloverleafInterSystems IRIS for HealthCloud healthcare APIs
Security & compliance
Security and compliance considerations for Mirth Connect
What regulations require
- The HIPAA Security Rule requires audit controls for systems containing ePHI (45 CFR 164.312(b)); Mirth's message store and event log are part of that picture and need access controls and retention rules.
- The HIPAA Security Rule requires access control mechanisms, including unique user identification, for ePHI systems (45 CFR 164.312(a)(1)); shared administrator logins to the Mirth Administrator do not meet that intent.
- Organizations must conduct and update a risk analysis (45 CFR 164.308(a)(1)(ii)(A)); running an unsupported engine version is a risk that should be documented and addressed.
Recommended engineering practices
- Run the Administrator and API behind a VPN or private network and require TLS for all connectors.
- Integrate Administrator logins with directory authentication where your edition supports it, and remove default accounts.
- Set pruner policies so full message content is retained only as long as operations require.
- Patch the JVM and engine on a schedule and track CVEs for bundled libraries.
- Keep credentials in the configuration map or an external secrets store, not hard-coded in transformers.
Regulatory summaries are educational, not legal advice. HIPAA compliance is an organizational program; software can support safeguards but cannot by itself make an organization compliant. Systems that handle PHI need their own risk analysis, vendor evaluation, and Business Associate Agreements before deployment.
Integration capabilities
Integrations we engineer for Mirth Connect
- HL7 v2 over MLLP
- FHIR R4 REST
- X12 EDI (270/271, 837, 835)
- SFTP and file shares
- SQL databases
- Web services (SOAP and REST)
- Cloud queues and storage
- DICOM via connectors where licensed
Engineering methodology
How we approach Mirth Connect
- 1
Channel inventory
We export and catalog every channel: source, destinations, message types, volume, and owners.
- 2
Health assessment
We review storage, queuing, error rates, script duplication, version, and licensing status.
- 3
Remediation plan
Prioritized fixes, refactoring, and upgrade or migration options with trade-offs laid out.
- 4
Implementation
Changes made in test with Git-tracked exports and automated transformer tests, then promoted.
- 5
Monitoring handoff
Alerts, dashboards, and runbooks handed to your team or supported under an ongoing arrangement.
Business use cases
Where Mirth Connect delivers value
Rescuing a stalled engine
A lab's Mirth server stops processing after its database fills; storage and pruning are fixed and queues restored without message loss.
Licensing decision support
A health IT vendor on an older open-source release compares licensing, a community fork, and migration to a cloud service.
Channel standardization
Thirty channels with copied transformers are refactored around shared code templates and tested mappings.
FHIR facade
A Mirth channel converts inbound ADT and ORU into FHIR resources posted to a managed FHIR service.
Technical comparison
| Option | Benefit | Risk | Consider when |
|---|---|---|---|
| License current NextGen Connect | Vendor support and updates | Ongoing cost; check current licensing terms | Mirth is core and the team knows it well |
| Stay on last open-source release | No license change | No vendor security patches over time | Short-term only, with compensating controls |
| Adopt a community fork | Familiar model, open license | Fork maturity and longevity vary | Team can evaluate and contribute |
| Migrate to another engine or cloud service | Fresh platform choice | Migration effort and retesting | Channel estate needs rework anyway |
Typical deliverables
What a Mirth Connect engagement produces
- Channel inventory and dependency map
- Health assessment report
- Licensing and upgrade option analysis
- Refactored channels and code templates in Git
- Automated transformer tests
- Alerting and dashboard configuration
- Runbooks for common failures
Mirth production hygiene
- All channels exported to Git with change history
- Destination queuing enabled where downstream outages are possible
- Data pruner policy configured and verified
- Error and inactivity alerts routed to on-call
- Default credentials removed; named user accounts only
- Licensing status documented for the running version
- Backup and restore of the backing database tested
Cost and timeline factors
What shapes Mirth Connect cost and timeline
- Number and complexity of channels
- Current version and upgrade distance
- Licensing path chosen
- Message volume and HA requirements
- Extent of transformer refactoring
- Migration scope if moving off Mirth
Typical timeline
A health assessment and quick fixes usually take a few weeks. Refactoring a mid-sized channel estate or upgrading across major versions runs one to three months. Full migration to another engine depends on channel count and is typically planned over quarters.
Read the cost guideMirth Connect FAQs
Is Mirth Connect still open source?
Releases before version 4.6 were distributed under an open-source license and remain available under those terms. Starting with 4.6 in 2025, NextGen Healthcare moved NextGen Connect to a commercial license. Because terms and pricing can change, check current licensing terms directly with NextGen before making decisions.
Should we migrate away from Mirth?
Not automatically. If your channels are healthy and licensing fits your budget, staying can be the lowest-risk path. Migration makes sense when the channel estate needs significant rework anyway, when you want managed cloud services, or when licensing terms do not fit. We assess channels before recommending either direction.
Why does our Mirth server slow down over time?
The most common cause is message storage growth without effective pruning, which bloats the backing database and slows queries. Other causes include synchronous destinations without queuing, heavy transformers running in single threads, and JVM memory settings that no longer match volume.
Can Mirth handle FHIR?
Yes. Mirth can expose HTTP listeners that accept FHIR requests and can call FHIR servers from destinations using HTTP connectors or JavaScript. Many teams use it to translate HL7 v2 into FHIR resources. For full FHIR server behavior, pair it with a dedicated FHIR server.
Related engineering topics
- Interface Engine DevelopmentSelection, build, and operation of healthcare interface engines: Rhapsody, Cloverleaf, Mirth/NextGen Connect, InterSystems, cloud healthcare services, or custom.Read more
- HL7 Integration ServicesHL7 v2 interface engineering over MLLP: ADT, orders, results, scheduling, charges, and documents, with correct ACKs and replayable error handling.Read more
- Healthcare Software MaintenanceOngoing support, patching, monitoring, and incremental improvement for healthcare applications and integrations that clinicians rely on every day.Read more
- Legacy Healthcare System MigrationMoving clinical, financial, and archival data off retiring healthcare platforms: data conversion, reconciliation, cutover, parallel run, and decommissioning with records retained.Read more
- Hire HL7 DevelopersHire HL7 v2 developers who build and debug interface engine channels, handle message ordering, and keep ACK and error queues healthy.Read more
Discuss your healthcare engineering project
Tell us about the system, the integrations it depends on, and the constraints you are working within. A senior engineer will review it and reply with questions, not a sales script.