Matchbox
Matchbox makes it easier to validate, transform and exchange healthcare information. It checks that health data follows the HL7® FHIR® standard and the implementation guides built on it, and it maps data to and from FHIR with the FHIR mapping language.
Matchbox is used at IHE Connectathons, integrated in the Gazelle tooling, to validate the messages of the participants against FHIR implementation guides. It is also used in production to validate messages without any call to the internet.
Matchbox comes in two forms:
- matchbox-server: a FHIR server, distributed as a Docker image, that you run in your own infrastructure. It offers
the FHIR API (
$validate,$transform, …), a web interface, the Gazelle EVS and ITB APIs and an MCP server. - matchbox-engine: a Java library that you embed in your own application, with the same validation and transformation features.
Matchbox is developed by ahdis and is freely available under the Apache Software License 2.0. It is based on HAPI FHIR and the official HL7 FHIR validator. A public test server is available to try it out.
Main features
- Validation of FHIR resources (R4, R4B, R5) and logical models (e.g. CDA) against the FHIR specification and implementation guides, with implementation guides pre-installed so that no package server is needed at runtime.
- Terminology: use an external terminology server, or the internal one for an offline setup.
- Mapping of health data to and from FHIR with the FHIR mapping language (
StructureMap/$transform), including CDA to FHIR. - Structured Data Capture:
QuestionnaireResponse/$extractbased on the FHIR mapping language, andQuestionnaire/$assemblefor modular questionnaires. - AI support: analysis of validation results by an LLM, and an MCP server for AI assistants.
- Integration with the IHE Gazelle EVS Client, Gazelle Maestro and the Interoperability Test Bed (ITB).
How this documentation is organized
The documentation follows the Diátaxis framework:
-
Lessons to get started: you follow the steps and learn Matchbox along the way.
-
Recipes for a specific goal: run Matchbox, load your implementation guides, configure a terminology server, …
-
The technical description: configuration parameters, FHIR operations, Docker image, Java API.
-
Background and design: how validation works, how engines and packages are managed, how to read validation errors.
What has changed in each version is listed in the changelog.