// the find
nazrulworld/fhir.resources
FHIR Resources https://www.hl7.org/fhir/resourcelist.html
A Python library providing typed, validated models for every FHIR resource (R5, R4B, STU3), built on top of pydantic v2. It's the go-to choice if you're building a Python FHIR server, ETL pipeline, or clinical data tool and want structured objects instead of raw dicts. Not a FHIR server itself — just the data layer.
Pydantic v2 as the foundation means you get fast validation, IDE autocomplete, and FastAPI compatibility for free. The multi-version support (R5 default, R4B and STU3 as sub-packages) is genuinely useful — real healthcare systems rarely all run the same version. XML and YAML serialization on top of JSON covers most EHR integration scenarios. The test suite is thorough: a test file per resource per FHIR version, which is the right approach for a spec-compliance library.
The classes are code-generated from fhir-parser, which means any spec error or generator bug propagates to every resource — you're not going to catch that until runtime. Enum validation is deliberately not enforced by default, meaning invalid codes silently pass unless you write custom validators; this will surprise anyone who expects 'validated' to mean 'terminologically correct'. The `model_construct()` path skips validation and breaks on resources with multiple required fields — the README warns about this in a footnote but it's a real footgun for anyone building objects programmatically. No FHIRPath evaluation support despite being in the topics list.