For several of the FHIR resources pydantic models, the default factory value is List rather than None. This results in several empty lists taking up space when the model dump occurs. This will also potentially increase compute cost when passing the dumped model to an LLM.
For several of the FHIR resources pydantic models, the default factory value is List rather than None. This results in several empty lists taking up space when the model dump occurs. This will also potentially increase compute cost when passing the dumped model to an LLM.
Proposed solution: Replace
default_factory: list