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

Generalize handling of Base/Conformance properties that changed type #2981

Merged
merged 9 commits into from
Dec 3, 2024

Conversation

ewoutkramer
Copy link
Member

@ewoutkramer ewoutkramer commented Nov 26, 2024

To review the generated code: there are no relevant code changes in the satellites, only in Base and Conformance, so you would only have to look through the generated files in those projects.

Otherwise, I only had to fix some unit tests lightly, esp. for Attachment.size, since this is no longer always a long.

Fixes #2967.

⚠️ Make sure to also review FirelyTeam/fhir-codegen#47, as this generated the code for this PR.

Breaking changes

  • The type of ElementDefinition.constraint.requirements, ElementDefinition.binding.description, ElementDefinition.mapping.comment and CapabilityStatement.implementation.description have changed from Markdown to PrimitiveType. Set this property to Markdown to get the original behaviour, but you can now use the correct type depending on the version of FHIR you are writing against.
  • The type of Attachment.size has changed from Integer64 to PrimitiveType. Set this property to Integer64 to get the original behaviour, but you should now assign the correct type (i.e. UnsignedInteger before R5) depending on the version of FHIR you are writing against.
  • The type of Bundle.Link.relation has changed from FhirString to PrimitiveType. Set this property to Integer64 to get the original behaviour, but you can now use the correct type depending on the version of FHIR you are writing against.
  • The type of Meta.profile has changed from Canonical to Code. Set this property to Integer64 to get the original behaviour, but you can now use the correct type depending on the version of FHIR you are writing against.

@ewoutkramer ewoutkramer marked this pull request as ready for review November 27, 2024 17:50
@mmsmits mmsmits merged commit 69aa6cc into develop-6.0 Dec 3, 2024
16 checks passed
@mmsmits mmsmits deleted the 6.0/2967-better-reflect-shared-properties branch December 3, 2024 09:07
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

Successfully merging this pull request may close these issues.

3 participants