Skip to content

Release v5.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 10:42
ed7eb38

2026/11/30 Release 5.0.0

matchbox 5 is based on Spring Boot 4, HAPI FHIR 9 and org.hl7.fhir.core 7. The main changes since 4.1.21 are listed
here, the details are in the sections of the release candidates 5.0.0-rc1 to 5.0.0-rc6 below.

Platform

  • The Docker images are published to the GitHub container registry only: ghcr.io/ahdis/matchbox
    (#659). Use ghcr.io/ahdis/matchbox:v5.0.0 (or :latest) instead
    of europe-west6-docker.pkg.dev/ahdis-ch/ahdis/matchbox: the Google Artifact Registry keeps the images up to
    4.1.21, but doesn't get the images from 5.0.0 on. The latest tag is only moved by a release (vX.Y.Z), not by a
    pre-release (e.g. v5.1.0-alpha1, v5.1.0-rc1)
  • Spring Boot 4.0.9 and Spring Framework 7.0.10 (fixes spring-webmvc
    CVE-2026-47884), with Hibernate ORM 7.2, Jakarta EE 11,
    Jackson 3 and JUnit 6
  • HAPI FHIR 9.0.0 from Maven Central. The release candidates used the build 8.13.15-pr8189-1 of
    hapifhir/hapi-fhir#8189 from GitHub Packages: building matchbox doesn't need a GitHub token with read:packages
    anymore, and matchbox-engine is published to Maven Central again. The patched HAPI FHIR classes are updated to
    9.0.0 (JpaConfig, PackageLoaderSvc, TermReadSvcImpl, NpmPackageVersionResourceEntity,
    WorkerContextValidationSupportAdapter and the HapiWorkerContext of R4, R4B and R5)
  • Matchbox runs on Tomcat 11.0.27 instead of Undertow, which Spring Boot 4 doesn't support anymore. The
    server.undertow.max-http-post-size setting isn't needed anymore
  • org.hl7.fhir.core 7.0.8 (from 6.10.4): the
    validator, the FHIR mapping language and the worker context are based on the versionless R6 modules
    (org.hl7.fhir.model, org.hl7.fhir.services, org.hl7.fhir.standalone) instead of org.hl7.fhir.r5, with new
    checks of the validator and changes in the terminology handling, see 5.0.0-rc1 and 5.0.0-rc4. Since 7.0.7 the
    validator reports a value set as not valid when it lists codes that a complete code system doesn't have; matchbox
    doesn't apply this to urn:ietf:rfc:3986, where every URI is a code (the IHE format codes list URIs, and
    conformsTo() failed for the IHE MHD DocumentReference profiles of CH EPR FHIR)
  • Update hl7.fhir.uv.extensions to 5.4.1.

Changes for the users of matchbox-engine

  • The API of MatchboxEngine uses the R6 model (org.hl7.fhir.model.core, StructureMap is
    org.hl7.fhir.model.fml.StructureMap), with overloads for the HAPI R5 model (addCanonicalResource,
    createSnapshot) and R6Model to convert between them. parseMapR6 and getStructureDefinitionR6 return the R6
    model, parseMapR5 and getStructureDefinitionR5 still the HAPI R5 model
  • createSnapshot adds the snapshot to the StructureDefinition it is given (it returned a new instance).
    useTxCacheFolder(folder) and disableTxCache() replace initTxCache(folder), which is deprecated

Validation

  • Validation is about twice as fast for profiles whose invariants resolve canonical resources, e.g. ch-elm (45 instead
    of 95–102 ms per validation in the load test): each engine keeps the last 100 resources it converted for
    resolve() (matchbox.fhir.context.fetchCacheSize, 0 to keep none)
  • New validation parameters bpWarnings and resourceIdRule (#589)
  • For a profile that no engine knows, $validate answers "Validation for profile '...' not supported by this validator
    instance", like the Gazelle API
  • The engine for an IG no longer replaces the suppressed warnings and errors of the other engines
    (matchbox.fhir.context.suppressWarnInfo, matchbox.fhir.context.suppressError)
  • The terminology ecosystem of HL7 (https://ecosystem.hl7.org/tx-reg, e.g. for the Swiss SNOMED CT edition on
    tx.fhir.ch) is also used with http://tx.fhir.org, and not with other terminology servers
  • Bundle/$get-profiles (and the MCP tool get-profiles-for-document-bundle) matches the profiles of a document with
    any of the type and category codings of its Composition
  • $validate, the Gazelle API and the ITB API share one validation service (MatchboxValidationService), so that
    they select the profile, get the engine, validate, count and report in the same way
    (#702):
    • ITB API: without the input profiles, the first meta.profile of the resource is the profile (then the base
      profile of its resource type), as for the type-level $validate. If the validation engine is not yet
      initialized, the report is UNDEFINED instead of FAILURE
    • Gazelle API: the validation duration is recorded in the metrics, and the validation parameters with several
      values are listed with their values in the report metadata
    • Validation statistics (matchbox.validation.save-statistics): the validations of the Gazelle API and the ITB
      API are saved as well
    • The duration in the OperationOutcome and in the metrics is the duration of the validation, without the time to
      get or create the validation engine
  • The sessionId of a validation engine is a digest of its validation parameters instead of their 32-bit hash code,
    which could give two different sets of parameters the same engine. Requests with the same check-references-to
    values share an engine (a new engine was created for every request)
  • The validation parameter showMessageIds of a request is applied (the setting of the server was used)
  • The extensions setting of the server (matchbox.fhir.context.extensions, default any) applies to the validation
    engines of all implementation guides, and not only to the engine of the FHIR core package: it was dropped from the
    validation parameters of a request, which then had to send extensions itself. check-references-to was dropped in
    the same way, and matchbox.fhir.context.checkReferencesTo was not read
  • An implementation guide of the validation parameter ig that is not installed is installed from the package
    registry before the validation (id#version), if the server is not read-only (httpReadOnly), for $validate, the
    ITB API and the HL7 validator API alike (#702). This brings back the
    auto-installation of $validate for the ig parameter; a profile of an implementation guide that is not installed
    doesn't install it. If the implementation guide cannot be installed (read-only server, no exact version, not in the
    registry), the request gets an error instead of a validation without the implementation guide
  • Internal terminology server ([server]/tx): CodeSystem/$lookup answers with HTTP 404 and an
    OperationOutcome (not-found), as the server knows nothing about the codes it accepts. The operation failed with
    "HAPI-0436: Resource null is not known" and a warning "Failure during REST processing" in the log of the server,
    for every LOINC and SNOMED CT code of an Observation that the validator of org.hl7.fhir.core 7 looks up
    (#710)

New APIs

  • The validation API of the HL7 validator, as validator.fhir.org has it: POST [server]/core/validate with the
    ValidationRequest and ValidationResponse of org.hl7.fhir.core, so that a client of the HL7 validator can use
    matchbox with only the address changed (#702). The implementation
    guides are given as igs or ig; the same set of implementation guides always gives the same validation engine,
    which is shared with $validate. An implementation guide that is not installed is installed from the package
    registry (id#version), as the loadIG operation of the ITB API does; a read-only server (httpReadOnly) installs
    nothing and answers with HTTP 400. Only the parameters that are in
    the request override the validation parameters of the server. An unexpected error is answered with HTTP 500 and an
    error id, the exception is in the log of the server. See the
    HL7 validator API reference
  • ITB (GITB REST) services for the Interoperability Test Bed (ITB 1.30.0 or later, with handlerApiType="REST"):
    the validation service FHIRValidator under [server]/itb/fhir
    (#589) and the processing services FHIRPathProcessor under
    [server]/itb/fhirPath and IGManager under [server]/itb/igManager
    (#681). They follow the contract of the HL7 validator's ITB
    services (hapifhir/org.hl7.fhir.core#2615), with one deviation: an invalid request (a missing or empty required
    input, an input value that is not valid, an unknown operation) is answered with HTTP 200 and a report with the
    result FAILURE that says what is wrong, and not with HTTP 400 and {"error": ...}, as ITB only keeps the status
    code of an answer that is not 2xx and the author of the test case would not see the reason. A body that is not JSON
    still gets HTTP 400. An internal error (HTTP 500) has an error id instead of the message of the exception, which is
    in the log of the server. See the ITB API reference
  • onlyOneEngine mode: searching ValueSets (GET [base]/ValueSet) works again
    (#663), and the NamingSystems of the main engine are exposed (GET [base]/NamingSystem, #664)
  • Loading packages from http(s) URLs follows redirects (#75) and supports a package URL allow-list
    (IPackageUrlAllowListProvider)

Security

  • Docker image: the base image is the latest Java 25 JRE, containing the mitigation of CVE-2026-114938 ("Java4Shell")
    and CVE-2026-109518 (apt).
  • Docker image: libpam 1.5.2-6+deb12u3 of Debian 12 fixes
    CVE-2025-6020 (HIGH, local privilege escalation in
    pam_namespace), which Trivy reports for the images of 5.0.0-rc6 and before. The image build installs it with the
    Debian security updates (apt-get upgrade). matchbox isn't exploitable: the image doesn't enable pam_namespace
    and matchbox opens no PAM sessions
  • Tomcat 11.0.27 fixes CVE-2026-65182,
    CVE-2026-65905 and
    CVE-2026-68525, Guava 33.7.2 fixes CVE-2026-102554
    (graphql-java is excluded)
  • OpenTelemetry 1.68.0 (opentelemetry-api, from 1.65.0) with opentelemetry-spring-boot-starter 2.34.0 (from
    2.31.1) fixes CVE-2026-118259 (quadratic CPU
    consumption in the parsing of the W3C tracestate header)
  • The release workflow builds the Docker image and scans it with Trivy before the tag and the release are created, a
    HIGH or CRITICAL vulnerability with a fix stops the release
  • The published Docker image of the newest release is scanned with Trivy every day (scheduled_scans.yml), a HIGH or
    CRITICAL vulnerability with a fix is posted to Zulip
  • Software Bill of Materials (SBOM, CycloneDX) of the server in matchbox.jar, provided by the Spring Boot actuator
    as /actuator/sbom/application and uploaded to the GitHub release (matchbox-server-<version>.cdx.json), the
    Docker images have an SBOM attestation, matchbox-engine is published with its SBOM
    (matchbox-engine-<version>-cyclonedx.json)

Other

  • MCP: the tool list-fhir-profiles-to-validate-for always failed with HTTP 400 ("does not know how to handle GET
    operation[OperationDefinition]"), it now reads the OperationDefinition of $validate instead of searching for it
    (#686)
  • Documentation: reorganized according to the Diátaxis framework into tutorials, how-to
    guides, reference and explanation. The existing pages were split and moved (the old addresses redirect to the new
    ones, with mkdocs-redirects), and new tutorials and how-to guides were added.
  • Documentation: how to provide implementation guides from files (file: URLs in hapi.fhir.implementationguides, in
    Docker with a volume, dependencies, reinstalling a package with the same version) and how to build an own docker
    image with preinstalled packages (#643)
  • Frontend: Angular 22.2.3 and angular-eslint 22.6.0, source-map-js 1.2.2 (Dependabot alerts
    #418,
    #419 and
    #421, all development dependencies)
  • The duplicate opentelemetry-spring-boot-starter entry in the dependencyManagement of the root pom.xml is
    removed, the Maven version of the GitHub runners rejects it
  • The workflows don't use .github/maven-settings.xml and the permission packages: read anymore
  • main is matchbox 5 and the only development branch: the branch matchbox_v5 was merged into it, the workflows
    don't run for matchbox_v5 anymore and the release workflow no longer handles release candidates (X.Y.Z-rcN)
  • MCP: the tool list-fhir-igs had an inverted logic for the includeVersions parameter, and the MCP
    searches (list-fhir-igs, search-fhir-resources) ignored their search parameters, as they were not in the query
    string of the request
    (#684). Its test MatchboxApiR4Test.mcpListFhirIgs compares the
    number of IGs with the number before the test instead of a fixed number, which failed on main
  • Update hl7.terminology to 7.5.0 (#701).
  • Tests: the test IG matchbox.health.test.ig.r4 0.3.2 depends on the latest hl7.terminology.r4#7.5.0 and
    hl7.fhir.uv.extensions.r4#5.4.1, the versions that are bundled. With 0.3.1 the test server downloaded
    hl7.terminology.r4#7.4.0, and since the update of the extensions to 5.4.1 also hl7.fhir.uv.extensions.r4#5.3.0
    with its dependencies, from the registry (#701)
  • MCP: the tools conditional-update-fhir-resource and conditional-patch-fhir-resource failed without an id and
    ignored their query, the headers of the tools (e.g. If-None-Exist, If-Match) were ignored, the patch tools
    rejected their resource and search-fhir-resources ignored its query string

Full Changelog: v5.0.0-rc6...v5.0.0