Skip to content

FHIR-58774: set BodyStructure includedStructure extension to 1..* - #21

Merged
patrick-werner merged 1 commit into
masterfrom
FHIR-58774-bodystructure-includedstructure-cardinality
Sep 1, 2026
Merged

FHIR-58774: set BodyStructure includedStructure extension to 1..*#21
patrick-werner merged 1 commit into
masterfrom
FHIR-58774-bodystructure-includedstructure-cardinality

Conversation

@patrick-werner

Copy link
Copy Markdown
Collaborator

TC: https://jira.hl7.org/browse/FHIR-58774

BodyStructureEuCore constrained extension:includedStructure to 0..*, while the cross-version extension http://hl7.org/fhir/5.0/StructureDefinition/extension-BodyStructure.includedStructure defines its root element as 1..*, derived from the R5 source element BodyStructure.includedStructure 1..*.

The mismatch is not reported by any tooling: SUSHI validates the contains cardinality only against the base element BodyStructure.extension (0..*), the snapshot generator takes min/max from the differential slice, and the validator evaluates an extension definition only when an extension instance is actually present.

The constraint is also the only way to express the body site in this profile, since location and locationQualifier are 0..0 — so a BodyStructureEuCore instance without includedStructure carries no anatomic location at all.

Changes

  • R4 profile: extension:includedStructure set to 1..*. The R5 variant needs no change, BodyStructure.includedStructure is 1..* in the base resource.
  • Added BodyStructureMultipleIncludedStructuresExample: a lesion extending over the left wrist and the distal left forearm, with two includedStructure entries, multiple qualifier values and a business identifier. Rendered for both R4 (extension syntax) and R5 (native element).
  • Changelog entry under 2.0.1.

Both variants render and build with SUSHI: 0 errors, 0 warnings.

The R5 cross-version extension BodyStructure.includedStructure defines its
root element as 1..*, derived from the R5 source element. The R4 profile
constrained the slice to 0..*, which no tooling reports because the extension
definition's root cardinality is not enforced at the point of use.

The R5 variant needs no change: BodyStructure.includedStructure is 1..* in
the base resource.

Also adds an example with two included structures, multiple qualifiers and a
business identifier.
@patrick-werner
patrick-werner merged commit 697bb31 into master Sep 1, 2026
6 checks passed
@patrick-werner
patrick-werner deleted the FHIR-58774-bodystructure-includedstructure-cardinality branch September 4, 2026 08:02
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.

1 participant