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

Replace the FHIR empty list default with None #41

Merged
merged 22 commits into from
Jun 20, 2024
Merged

Conversation

adamkells
Copy link
Contributor

@adamkells adamkells commented Jun 13, 2024

As pointed out in #40 , there are several FHIR resource fields which give empty lists that take up space in the resource model dump. This PR replaces these with None values so that the exclude_none flag in model_dump will exclude these.

This PR also resolves #44 by setting the resource types using Literals.

What does this PR change?

  • Uses literals to set the ResourceType field in resources.
  • Replace the default empty list with None.

@adamkells adamkells self-assigned this Jun 13, 2024
@adamkells adamkells marked this pull request as ready for review June 18, 2024 23:02
Copy link
Member

@jenniferjiangkells jenniferjiangkells left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ngl here did not go through every file in there but got the gist lgtm

@adamkells adamkells merged commit c45f8af into main Jun 20, 2024
3 checks passed
@adamkells adamkells deleted the fhir-default-none branch June 20, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

resourceType field not appearing in generated data by default
3 participants