beda-software / fhir-py-types

Convert FHIR StructureDefinition into Python type annotations
BSD 3-Clause "New" or "Revised" License
15 stars 1 forks source link

Add extensions for primitive types #6 #12

Closed ruscoder closed 2 weeks ago

ruscoder commented 2 weeks ago

It generates property: Optional['Element'] for all primitives including union types (_valueBoolean). And the edge case is also covered for given: Optional[List_[Element]] when primitive is repeatable.