Skip to content

Global model_config customization for FHIR models #21

Description

@pete-layerhealth

I'd like to change Pydantic settings like extra="ignore" for all FHIR models without subclassing every generated resource (Patient, Observation, etc.) from fhir.resources.

FHIRAbstractModel hardcodes extra="forbid", and per-class overrides don't scale with codegen'd models.

Is there a supported way to configure this globally? Happy to PR something if you have a preferred approach

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions