Saga IT

Saga's HL7 Developer Workbench 2.0 Adds FHIR and C-CDA

Saga's HL7 developer workbench 2.0 converts HL7 v2 to FHIR R4, validates FHIR and C-CDA, and compares messages in all three standards. Free account.

HL7FHIRHealthcare Interoperability

Saga’s HL7 developer workbench started as a tool for HL7® v2: open a message, see every segment and field named, and validate it against its v2 version. Version 2.0 puts FHIR® and C-CDA on the same bench. The workbench now converts HL7 v2 to FHIR, validates FHIR resources against their profiles, opens and checks C-CDA documents, and compares two messages or documents in any of the three standards.

It is built for integration engineers and interface analysts. The tools are free with an account, and messages are parsed and validated in your browser, never uploaded.

Convert HL7 v2 to FHIR

A blackened steel layout plate seen from above, with a soapstone drawing on it. Four boxes on the left hold the segments of an ADT^A01, each pointing to the FHIR resource it becomes on the right: MSH-9 to MessageHeader.eventCoding, EVN-2 to Provenance.recorded, PID-3, 5, 7 and 8 to the Patient's identifier, name, birthDate and gender, and PV1-2 and 19 to the Encounter's class and identifier. Chalked underneath: HL7 v2-to-FHIR IG 1.0.0.A blackened steel layout plate seen from above, with a soapstone drawing on it. Four boxes on the left hold the segments of an ADT^A01, each pointing to the FHIR resource it becomes on the right: MSH-9 to MessageHeader.eventCoding, EVN-2 to Provenance.recorded, PID-3, 5, 7 and 8 to the Patient's identifier, name, birthDate and gender, and PV1-2 and 19 to the Encounter's class and identifier. Chalked underneath: HL7 v2-to-FHIR IG 1.0.0.
An ADT^A01 mapped to a FHIR R4 Bundle, segment by segment, as HL7’s v2-to-FHIR IG maps it.

The new converter takes an HL7 v2 message and builds a FHIR R4 Bundle from it. It follows HL7’s v2-to-FHIR Implementation Guide, version 1.0.0.

HL7 maps 13 message structures: ADT_A01, A02, A05, A06, A09, A11 and A17, MDM_T02, OML_O21, ORM_O01, ORU_R01, SIU_S12 and VXU_V04. Other structures convert too, labeled Adapted so you can tell them apart. The output is FHIR R4 (4.0.1).

Take an ADT^A01 admit. MSH becomes the Bundle’s MessageHeader, with MSH-9 in its eventCoding. EVN becomes a Provenance, and EVN-2 is its recorded time. PID becomes the Patient: PID-3 to identifier, PID-5 to name, PID-7 to birthDate and PID-8 to gender. PV1 becomes the Encounter, with PV1-2 as its class and the visit number in PV1-19 as its identifier. AL1 and IN1 become AllergyIntolerance and Coverage the same way.

Open the v2 to FHIR converter to run your own messages through it, and the v2-to-FHIR mapping tables list every field HL7 maps.

Validate FHIR resources against their profiles

On the steel plate, a soapstone drawing titled US Core Patient shows a scroll bracket full size. A forged piece lies on the drawing, its right end still dull red. It matches at name 1..* and us-core-6, both ticked, but it has no left scroll: that part of the drawing is circled and marked with a cross, identifier 1..*.On the steel plate, a soapstone drawing titled US Core Patient shows a scroll bracket full size. A forged piece lies on the drawing, its right end still dull red. It matches at name 1..* and us-core-6, both ticked, but it has no left scroll: that part of the drawing is circled and marked with a cross, identifier 1..*.
A Patient checked against US Core: name passes, the required identifier is missing.

The FHIR parser opens a resource or a Bundle in JSON or XML and shows it as a tree beside its source, with every element named from the specification. Validation runs in your browser, against core R4, R4B, R5 or the R6 draft, or against an implementation guide’s profiles.

Check a Patient against US Core and the validator holds it to what US Core adds to the base resource: identifier and name are both required (1..*), and the us-core-6 invariant wants a given or family name, or a data-absent reason in their place. It also checks references, slices and the invariants FHIR defines on the core resources.

With terminology checks on, coded elements are checked against the value sets they are bound to. Try it in the FHIR parser.

Open and validate C-CDA documents

A wooden board on the smithy's brick wall, chalked C-CDA templateId and the shared root 2.16.840.1.113883.10.20.22. Five sheet-steel templates hang on nails, each a different shape and stamped with the end of its templateId: .1.1 US Realm Header, .1.2 CCD, .2.6.1 Allergies, .2.5.1 Problems and .2.3.1 Results.A wooden board on the smithy's brick wall, chalked C-CDA templateId and the shared root 2.16.840.1.113883.10.20.22. Five sheet-steel templates hang on nails, each a different shape and stamped with the end of its templateId: .1.1 US Realm Header, .1.2 CCD, .2.6.1 Allergies, .2.5.1 Problems and .2.3.1 Results.
C-CDA templates are identified by templateId, all under one root.

The CDA parser is a C-CDA viewer and validator in one. It renders the document, collapses long narrative blocks so the structure stays readable, and can mask the patient details in the header while you work.

A C-CDA declares its templates by templateId (US Realm Header, CCD, the Allergies or Problems section), and the workbench checks each template the document claims, with a link to that template’s definition. It also runs HL7’s Schematron for C-CDA 4.0 and 5.0.

Open a document in the CDA parser. If the document types are new to you, our C-CDA guide explains what each one carries.

Compare two messages or documents

Two forged S-hooks hang side by side from a rod across the smithy window, silhouetted against the light. They match everywhere except the bottom curl, which is tighter on the right-hand hook. Chalked on the sill under them: ADT^A08 under each, and one field differs: PID-11.Two forged S-hooks hang side by side from a rod across the smithy window, silhouetted against the light. They match everywhere except the bottom curl, which is tighter on the right-hand hook. Chalked on the sill under them: ADT^A08 under each, and one field differs: PID-11.
Message Diff: two ADT^A08 messages that differ in one field.

Message Diff puts two messages or documents of the same standard side by side: two v2 messages, two FHIR resources or two C-CDA documents. Use it to compare what a sender sent with what the engine delivered, or the same message before and after a mapping change.

It compares them by structure as well as by text, so a change in one field stands out from a change in formatting. Compare two of your own in Message Diff.

Redact, route, filter or split with rules

Close on the heel of the anvil. A hot-cut hardy stands in its hole and a glowing bar has just been cut through on it, the cut-off end tipping away, sparks flying from the cut. Chalked on the anvil's side: RULESET, redact PID-19, and route, filter, split.Close on the heel of the anvil. A hot-cut hardy stands in its hole and a glowing bar has just been cut through on it, the cut-off end tipping away, sparks flying from the cut. Chalked on the anvil's side: RULESET, redact PID-19, and route, filter, split.
A ruleset redacts, routes, filters or splits a file of messages.

Rules work on a set of messages at once. A ruleset can redact fields, route messages, filter out the ones you do not need, or split a file into parts. A dry run shows what each rule would change, as a diff, before you keep the output, and saved rulesets sync to your account.

The example ruleset that ships with the workbench clears PID-19, the patient’s social security number, on every message, and you build your own from there. Build a ruleset in Rules. PHI masking, separately, hides values on screen while you work.

Build test messages and profile message sets

A row of hand-forged rosehead nails lies on the steel plate, all the same, the last one still glowing from the header. Chalked above: ADT^A04 x 50. Under each nail, the value that changes from one to the next: PID-3 1001, 1002, 1003 and on to 1050.A row of hand-forged rosehead nails lies on the steel plate, all the same, the last one still glowing from the header. Chalked above: ADT^A04 x 50. Under each nail, the value that changes from one to the next: PID-3 1001, 1002, 1003 and on to 1050.
Builder: fifty ADT^A04 messages from one template, each with its own patient ID.

Builder makes test messages from a template you edit visually. Variables fill the fields that should change from one message to the next, correlation rules keep related fields consistent, and batch generation writes as many as you need: fifty ADT^A04 registrations with fifty different patient IDs, for example.

Analysis profiles a set of messages you already have, field by field, and raises quality alerts on what it finds. For HL7 v2 conformance, the workbench ships 20 conformance profiles from IHE, CDC and NIST, and you can add your own, with field constraints and predicate rules. Open Builder or Analysis to try them.

The quick references

The quick references cover HL7 v2, v3, CDA and FHIR, with terminology search across them. They are open without an account. In 2.0, each v2 segment, field, data type, table, structure and event page also shows what changed from the version before it.

Where your messages go

A polished steel great helm, finished, sits on a plank shelf on forged brackets against the smithy's brick wall. A cross-shaped strap runs down its face and across the brow, with eye slits either side and a cross of breathing holes on the right cheek. The window light catches its crown and the forge warms its left edge.A polished steel great helm, finished, sits on a plank shelf on forged brackets against the smithy's brick wall. A cross-shaped strap runs down its face and across the brow, with eye slits either side and a cross of breathing holes on the right cheek. The window light catches its crown and the forge warms its left edge.
Finished work stays in the shop.

Messages are parsed and validated in your browser and are never uploaded. Optional terminology checks (off by default) send only the codes being checked. Saved conversion templates and rulesets sync to your account. The workbench’s security notes and privacy policy have the details.

Get started

Create a free account at saga-it.com/hl7workbench and the tools open in your browser. The parser guide is the place to start. Start with a message you already know, or pick one of our sample HL7 messages, and run it through the v2 to FHIR converter.

Saga’s integration team builds these interfaces for hospitals and health-tech vendors. HL7’s map covers the standard segments; a production migration adds local code sets, Z-segments and identifier systems. If that is the project in front of you, see HL7 integration and FHIR API integration.

Frequently Asked Questions

How do I convert an HL7 v2 message to FHIR?

Open the v2 to FHIR converter in Saga's HL7 developer workbench and paste or open the message. It builds a FHIR R4 Bundle using HL7's v2-to-FHIR Implementation Guide 1.0.0. HL7 publishes maps for 13 message structures, including ADT_A01, ORU_R01 and VXU_V04. Other structures convert too, labeled Adapted. Open the converter with a free account.

What does FHIR validation check?

First, that the JSON or XML is a valid resource for its FHIR release. Then the profile you pick, from core R4, R4B, R5 or the R6 draft, or from an implementation guide such as US Core: required elements and their cardinality, references, slices and invariants, and terminology bindings when you turn terminology checks on. The checks run in your browser.

How do I open and validate a C-CDA document?

Open it in the workbench's CDA parser, which is a C-CDA viewer and validator in one. It renders the document, checks each template the document claims by its templateId, and runs HL7's Schematron for C-CDA 4.0 and 5.0. Our C-CDA guide explains what the documents contain.

Are my messages uploaded?

No. Messages are parsed and validated in your browser and are never uploaded. Optional terminology checks (off by default) send only the codes being checked. The workbench's security notes have the details.

Is the workbench free?

Yes. The tools need a free account. The quick references and the documentation are open without one.

Are HL7 and FHIR the same thing?

Both come from HL7 International, but they are different standards. HL7 v2 is the pipe-delimited messaging standard most hospital interfaces still run on. FHIR is the newer, resource-based standard built for APIs. HL7 vs FHIR compares them in detail.

Need Help with Healthcare IT?

From HL7 and FHIR integration to cloud infrastructure, our team is ready to solve your toughest interoperability challenges.