Repository navigation
Highlights
- New cookbook: Ward Monitoring on Live FHIR Data (#277).
- Every FHIR entry point (client reads and writes, dataset loaders, CDS prefetch) now raises
FHIRValidationErrorwith 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 installimports before it uploads (#317, #319).
Behaviour changes
- FHIR client calls and the MIMIC and Synthea loaders raise
FHIRValidationError(fromhealthchain.fhir) on bad data, where they used to raise PydanticValidationErrororKeyError. Code that catches the old exceptions needs updating (#320). - Datetimes with a
+0000offset,instantstrings without a timezone, and Pythondatetimeobjects without a timezone now fail validation (#317). - CDS prefetch with an invalid resource raises
FHIRValidationErrorinstead 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 withoutcards, or isasync def. A request whosehookdoesn't match the route gives 400.dispatch()with an unregistered hook type raisesValueError(#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. Usehandle_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
- fix(deps): upgrade fhir-core and raise on invalid CDS prefetch by @jenniferjiangkells in #317
- fix(fhir): parse every FHIR entry point through one validator by @jenniferjiangkells in #320
- fix(gateway): use UTC for FHIR gateway status timestamp by @jenniferjiangkells in #318
- fix(gateway): return HTTP errors from failing CDS hook handlers by @jenniferjiangkells in #326
- fix(gateway): key CDS services by id, not hook type by @jenniferjiangkells in #327
- ci: check that releases install and import with pip by @jenniferjiangkells in #319
- docs(cookbook): ward monitoring on live FHIR data by @jenniferjiangkells in #277
New Contributors
- @cwoodmansey @radhikakumar13 made their first contribution in #277
Full Changelog: 0.17.1...0.18.0