Skip to content

Commit

Permalink
Merge pull request #14 from beda-software/issue-13
Browse files Browse the repository at this point in the history
Use StructureDefinition differential over snapshot for primitive types
  • Loading branch information
m0rl authored Aug 29, 2024
2 parents 6eabea6 + 711d253 commit 10a3ae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fhir_py_types/reader/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"System.Time": "str",
"System.Date": "str",
"System.DateTime": "str",
"System.Decimal": "int",
"System.Decimal": "float",
"System.Integer": "int",
}

Expand Down Expand Up @@ -93,6 +93,7 @@ def parse_base_structure_definition(definition: dict[str, Any]) -> StructureDefi

match kind:
case StructureDefinitionKind.PRIMITIVE:
schemas = definition["differential"]["element"]
structure_schema = next(
s for s in schemas if s["id"] == definition["type"] + ".value"
)
Expand Down

0 comments on commit 10a3ae8

Please sign in to comment.