Implement and TestReference Implementations Overview

Reference Implementations Overview

These projects are maintained by b.well Connected Health and are published openly. They are implementations of the specification, not the specification itself. If an implementation and the specification text disagree, the specification governs.

What exists

ProjectWhat it isWhere
Patient matching libraryA Python library that implements the Table 2 rules over FHIR R4 Patient resources, with normalization and a candidate cache. Apache-2.0.GitHub, PyPI
Patient matching serviceA FastAPI service that wraps the library as a FHIR $match HTTP endpoint.GitHub
IAL2 readerA package that verifies an IAL2 token and returns a FHIR Patient. Published on PyPI; its source repository is not public.PyPI
Probability calculationsA standalone tool that computes empirical u-probabilities from public data. It is not part of the matching library.Methodology

Which to use

If you want toUse
Embed matching in a Python applicationThe library
Run an HTTP $match endpointThe service
Turn a CSP-issued IAL2 token into a FHIR PatientThe IAL2 reader, or implement section III.D of the specification yourself
Implement in another languageThe specification, checked against the test set. The test set is algorithm-agnostic and needs no Python.
Understand how a Table 2 rule maps to codeSpec-to-Code Map

Pages in this section