Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive FHIR schema #118

Open
bwalsh opened this issue Jan 1, 2023 · 0 comments
Open

Recursive FHIR schema #118

bwalsh opened this issue Jan 1, 2023 · 0 comments

Comments

@bwalsh
Copy link

bwalsh commented Jan 1, 2023

  • fhir.resources version: R4B
  • Python version: 3.9
  • Operating System: MacOS

Description

Attempting to get complete (deep) json schema for a FHIR type and all its dependencies

The schema for the class is created, but does not include a dependency schema for all the contained types.
For example, for Patient, I'd like to recursively get the schemas for PatientCommunication, PatientContact, Address, HumanName, FHIRPrimitiveExtension etc.

What I Did

from fhir.resources.patient import Patient
Patient.schema().keys()
>>> dict_keys(['title', 'description', 'type', 'properties', 'additionalProperties'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant