Skip to content

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

Merged
mmsmits merged 9 commits into
develop-6.0from
6.0/2967-better-reflect-shared-properties
Dec 3, 2024
Merged

Generalize handling of Base/Conformance properties that changed type#2981
mmsmits merged 9 commits into
develop-6.0from
6.0/2967-better-reflect-shared-properties

Conversation

@ewoutkramer

@ewoutkramer ewoutkramer commented Nov 26, 2024

Copy link
Copy Markdown
Member

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
@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