dotimplement / HealthChain

Simplify prototyping and testing LLM applications in healthcare context 💫 🏥
https://dotimplement.github.io/HealthChain/
Apache License 2.0
10 stars 1 forks source link

Default values in FHIR resources should be None rather than empty list #40

Closed adamkells closed 2 months ago

adamkells commented 2 months ago

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