Skip to content

Releases

fhirground v1.0.0

Choose a tag to compare

@DanPalBCM DanPalBCM released this 13 Nov 17:49

fhirground v1.0.0

First public release of fhirground: grounded, validated FHIR R4 extraction from clinical notes.

fhirground splits the problem in two. The LLM says mentions: plain language, a verbatim evidence quote and an assertion status. Code says FHIR: grounding to offsets, the assertion policy, unit and date normalization, terminology resolution, mapping and validation. FHIR structure never depends on the model's formatting.

Install

pip install fhirground
pip install "fhirground[bedrock]"     # AWS Bedrock backend
pip install "fhirground[calibrate]"   # confidence calibration
pip install "fhirground[all]"         # everything

Requires Python 3.11+.

Four guarantees, each enforced in code

  • Grounded. Every emitted resource carries evidence offsets into the original note. A mention whose quote cannot be found is dropped and counted, never guessed.
  • No invented codes. The mention schema has no code fields, and mapping functions accept only a terminology Resolution, never a string. A property test pushes adversarial text such as "SNOMED 44054006" through the pipeline and asserts that every emitted code is in the active value sets.
  • Validated. Every resource parses under the pinned FHIR R4B models and passes the project rules, or it is dropped with a reason.
  • Assertion-aware. Negated, family-history and hypothetical mentions are never emitted as affirmed facts.

Also in this release

  • Condition, MedicationRequest and Observation resources. Output as Bundles, NDJSON, debug traces, and clinval-format predictions, so clinval can evaluate the output directly.
  • Backends: a deterministic mock (no network), any OpenAI-compatible server (vLLM etc.), and AWS Bedrock.
  • A committed synthetic benchmark with scoring, and a demo.py that fails if a code field ever reaches the schema.

Quality

626 tests at 95% coverage on Python 3.11–3.13. Property-based tests (hypothesis) cover the core invariants. No test makes a network call.

Known limitations

Three resource types only. No US Core profile conformance claims. No cross-note reconciliation. No de-identification. See the CHANGELOG for the full list.

Full changelog: https://github.com/DanPalBCM/fhirground/blob/main/CHANGELOG.md
Documentation: https://danpalbcm.github.io/fhirground/