Need guidance on when aggregationMode applies

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Persuasive
    • Priority: Medium
    • FHIR Core (FHIR)
    • STU3
    • FHIR Infrastructure
    • Account
    • ElementDefinition
    • Hide

      Add a usage notes section to ElementDefinition and reference it from the comments on ElementDefinition.type.aggregation and .versioning:

      "If an aggregationMode is present, the reference SHALL be aggregated as defined and the 'reference' and 'reference.value' elements SHALL be present. Similarly, if type.versioning is present, 'reference' and 'reference.value' elements SHALL be present and populated as the versioning constraint dictates."

      Show
      Add a usage notes section to ElementDefinition and reference it from the comments on ElementDefinition.type.aggregation and .versioning: "If an aggregationMode is present, the reference SHALL be aggregated as defined and the 'reference' and 'reference.value' elements SHALL be present. Similarly, if type.versioning is present, 'reference' and 'reference.value' elements SHALL be present and populated as the versioning constraint dictates."
    • Josh Mandel/Eric Haas: 5-0-0
    • Enhancement
    • Compatible, substantive
    • STU3

      It's not clear whether it's an error if an element with a type Reference and an aggregationMode of "contained" or "bundled" is present but doesn't actually have a "reference/@value" that resolves. For example, is it legal to do this:

      1.
      <subject><display value="foo"/></subject>

      or

      2.
      <subject><reference><extension url="...whatever"><valueString value="foo"/></extension></reference></subject>

      I see three possibilities:
      a) If the aggregation mode is "contained" or "bundled", then it must always resolve to a resource that's either contained or in the same bundle. (So both #1 and #2 are errors)

      b) If the aggregation mode is "contained" or "bundled" AND the Reference.reference element is present, then it must resolve to a resource that's either contained or in the same bundle. (So #1 is fine, but #2 is an error)

      c) Aggregation mode is only relevant if the Reference.reference.value element is present. (So both #1 and #2 are fine.)

            Assignee:
            Unassigned
            Reporter:
            Lloyd McKenzie
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: