Skip to content

HealthChain v0.18.0

Latest

Choose a tag to compare

@jenniferjiangkells jenniferjiangkells released this 27 Nov 12:44
· 1 commit to main since this release
d9744f6

Highlights

  • New cookbook: Ward Monitoring on Live FHIR Data (#277).
  • Every FHIR entry point (client reads and writes, dataset loaders, CDS prefetch) now raises FHIRValidationError with a per-field report on bad data (#320).
  • The fhir-core and annotated-types caps are gone, and each release now checks that a fresh pip install imports before it uploads (#317, #319).

Behaviour changes

  • FHIR client calls and the MIMIC and Synthea loaders raise FHIRValidationError (from healthchain.fhir) on bad data, where they used to raise Pydantic ValidationError or KeyError. Code that catches the old exceptions needs updating (#320).
  • Datetimes with a +0000 offset, instant strings without a timezone, and Python datetime objects without a timezone now fail validation (#317).
  • CDS prefetch with an invalid resource raises FHIRValidationError instead of keeping the raw dict (#317, #320).
  • CDS Hooks routes return HTTP errors instead of 200 with empty cards. A failing handler gives 500, including one that returns None, returns a dict without cards, or is async def. A request whose hook doesn't match the route gives 400. dispatch() with an unregistered hook type raises ValueError (#326).
  • CDS services that share a hook type no longer overwrite each other. Duplicate service ids and register_handler() on a CDS service now raise. Use handle_request(..., service_id=) to pick one of several services that share a hook (#327).

Python 3.10: reached end of life in October 2026 and is still supported in this release. Support ends in an upcoming release (#300).

What's Changed

New Contributors

Full Changelog: 0.17.1...0.18.0