Skip to content
Healthcare SoftwareEngineering

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.

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.

  1. Sources
    • MLLP listeners
    • HTTP/FHIR endpoints
    • File and SFTP readers
    • Database pollers
  2. Channel logic
    • Filters
    • Transformers
    • Code templates
    • Response handling
  3. Destinations
    • Queued senders
    • FHIR clients
    • Database writers
    • Channel writers
  4. Platform
    • Backing database
    • Data pruner
    • Clustered or HA setup
    • Configuration map
  5. Operations
    • Git-managed exports
    • CI tests
    • Alerts
    • Dashboards
Illustrative layering; actual architecture is decided per engagement and documented in decision records.

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. 1

    Channel inventory

    We export and catalog every channel: source, destinations, message types, volume, and owners.

  2. 2

    Health assessment

    We review storage, queuing, error rates, script duplication, version, and licensing status.

  3. 3

    Remediation plan

    Prioritized fixes, refactoring, and upgrade or migration options with trade-offs laid out.

  4. 4

    Implementation

    Changes made in test with Git-tracked exports and automated transformer tests, then promoted.

  5. 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

Options for teams on open-source Mirth releases
OptionBenefitRiskConsider when
License current NextGen ConnectVendor support and updatesOngoing cost; check current licensing termsMirth is core and the team knows it well
Stay on last open-source releaseNo license changeNo vendor security patches over timeShort-term only, with compensating controls
Adopt a community forkFamiliar model, open licenseFork maturity and longevity varyTeam can evaluate and contribute
Migrate to another engine or cloud serviceFresh platform choiceMigration effort and retestingChannel 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 guide

Mirth 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.

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.