Skip to content

Generate Element.Id/Extension.Url as normal FHIR primitive properties, not primitives. - #46

Merged
Kasdejong merged 3 commits into
devfrom
spike/primitiveprops-as-element
Dec 3, 2024
Merged

Generate Element.Id/Extension.Url as normal FHIR primitive properties, not primitives.#46
Kasdejong merged 3 commits into
devfrom
spike/primitiveprops-as-element

Conversation

@ewoutkramer

@ewoutkramer ewoutkramer commented Nov 26, 2024

Copy link
Copy Markdown
Member

Tuned the code generator so it no longer generates Element.id and Extension.url as special primitive .NET properties, they are now normal FHIR primitives instead.

It also contains an (unrelated) hack to make sure the ObjectValue of the FHIR Integer64 type is a bit more flexible. This is temporary and will be removed when we are done with FirelyTeam/firely-net-sdk#2967. It is necessary to add this hack for now, since I had inadvertedly made a manual change of the same intent in generated code, which of course otherwise would be lost after running codegen with this PR again.

# Conflicts:
#	src/Microsoft.Health.Fhir.CodeGen/Language/Firely/CSharpFirely2.cs
@Kasdejong
Kasdejong merged commit 7e87931 into dev Dec 3, 2024
@Kasdejong
Kasdejong deleted the spike/primitiveprops-as-element branch December 3, 2024 08:48
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.

2 participants