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

2930 Clean up IsNested/BackboneType attribute information #2939

Merged
merged 25 commits into from
Oct 23, 2024

Conversation

ewoutkramer
Copy link
Member

@ewoutkramer ewoutkramer commented Oct 18, 2024

Fixes #2930.

  • I removed the old IsResource attribute parameter, since that is not necessary anymore, resources will always be derived from Resource.
  • I changed FhirType.IsNestedType to FhirType.IsBackboneType to align with common terminology.
  • I changed the name of the FhirType to be the definition path of the BackboneElement, since that is generally considered to be its name. This also means we don't need a separate BackboneTypeAttribute(.DefinitionPath) anymore.

⚠️ This removes IsResource from the FhirTypeAttribute. One can just check against the Resource subtype instead.
⚠️ This renames the IsNestedType parameter on FhirTypeAttribute to IsBackboneType.
⚠️ This removes the BackboneTypeAttribute class. Check IsBackboneType, the type's name is the definition path.
⚠️ The DefinitionPath property of ClassMapping is now gone, since it is the same as the ClassMapping.Name for backbone types.

Kas: Also changed the signature of an evaluation context method, which seemed like the right thing to do to fix a failing unit test.

richfirely and others added 8 commits October 14, 2024 17:11
Minor doc fix on Parameters Get operations.
Update Parameters.cs for Get from remove to retrieve
Remove the Charset from the Accept Header and replace it with the Accept-Charset Header.
Also fixed some obsolete warnings that no one seems to care about.
@ewoutkramer
Copy link
Member Author

Review FirelyTeam/fhir-codegen#43 too.

@ewoutkramer ewoutkramer marked this pull request as draft October 18, 2024 15:20
@ewoutkramer ewoutkramer marked this pull request as ready for review October 18, 2024 15:53
@ewoutkramer ewoutkramer changed the title 2930 Remove IsNested type 2930 Clean up IsNested/BackboneType attribute information Oct 18, 2024
… old behaviour. There is still a key difference in root elementDef handling
… old behaviour. There is still a key difference in root elementDef handling
…ration-settings' into feature/use-proper-snapshot-generation-settings

# Conflicts:
#	src/Hl7.Fhir.Conformance/Specification/Snapshot/SnapshotGenerator.cs
#	src/Hl7.Fhir.STU3/Specification/Snapshot/SnapshotGenerator.cs
…nto 6.0/2930-remove-isnested-type

# Conflicts:
#	src/Hl7.Fhir.Base/CompatibilitySuppressions.xml
….0/2930-remove-isnested-type

# Conflicts:
#	src/Hl7.Fhir.Shared.Tests/Validation/SearchDataExtraction.cs
#	src/Hl7.FhirPath.Tests/Tests/EnviromentTests.cs
# Conflicts:
#	src/Hl7.Fhir.Base/CompatibilitySuppressions.xml
ewoutkramer and others added 3 commits October 22, 2024 17:30
# Conflicts:
#	src/Hl7.Fhir.Base/CompatibilitySuppressions.xml
#	src/Hl7.Fhir.Base/FhirPath/FhirEvaluationContext.cs
#	src/Hl7.FhirPath.R4.Tests/PocoTests/FhirPathTest.cs
@Kasdejong Kasdejong merged commit f530fdd into develop-6.0 Oct 23, 2024
14 checks passed
@Kasdejong Kasdejong deleted the 6.0/2930-remove-isnested-type branch October 23, 2024 12:16
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.

Remove IsNested property from the FhirTypeAttribute
4 participants