Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-28441

Create a extension to control "inheritance" of extensions.

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Very High Very High
    • FHIR Core (FHIR)
    • R5
    • FHIR Infrastructure
    • StructureDefinition
    • Extensibility
    • Hide

      We will define an extension on StructureDefinition (which itself will be type 4 - inherited, non-overrideable) of type 0..1 code called 'snapshot-behavior' that indicates what rules a snapshot generator must follow when creating a derived StructureDefinition when the extension appears on an element in the base.  The rules will be those listed in the comment below.  Will define an extension invariant that indicates the extension may only be used when the base type is ElementDefinition or StructureDefinition or one of the components there-of.

      Note: elements of type 1 must be repeating.  All other types can apply to both repeating and non-repeating extensions.

      Show
      We will define an extension on StructureDefinition (which itself will be type 4 - inherited, non-overrideable) of type 0..1 code called 'snapshot-behavior' that indicates what rules a snapshot generator must follow when creating a derived StructureDefinition when the extension appears on an element in the base.  The rules will be those listed in the comment below.  Will define an extension invariant that indicates the extension may only be used when the base type is ElementDefinition or StructureDefinition or one of the components there-of. Note: elements of type 1 must be repeating.  All other types can apply to both repeating and non-repeating extensions.
    • Grahame Grieve/Ewout Kramer: 11-0-0
    • Enhancement
    • Compatible, substantive
    • R5

    Description

      By default, when creating a new derived profile, the constraints from the base profile become part of the new derived profile. This is also true for all extensions.

      There is however a (growing) list of extensions that should not be "inherited" from a base profile to a new derived profile.

      We have agreed (see https://chat.fhir.org/#narrow/stream/179239-tooling/topic/Forge.20added.20extension.20explicit-type-name for a discussion) that authors of an extension (familiar with its scope and meaning) should be responsible for determining whether an extension should be inherited or not.

      To make this possible, we should create an extension on StructureDefinition.

      Attachments

        Activity

          People

            GrahameGrieve Grahame Grieve
            ewout Ewout Kramer
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: