Add sliceName constraints

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Persuasive with Modification
    • Priority: Medium
    • FHIR Core (FHIR)
    • STU3
    • FHIR Infrastructure
    • StructureDefinition
    • Hide
      • 1. In a diff the first element may have a slicename, since it need not be the root element as a differential may immediately jump to a subnode by path. If the element is the root, then indeed there may be no slice name
      • 2. is correct.

      We can male an invariant for (1) If the path has no '.' (a real root), it cannot have a slicename (true for both snapshot and differential)

      For (2), we need to group by path, and then enforce conditions per-group. I see no way to do that in FhirPath. Alternatively, we would need an axis to get to the "previous" nodes from the current one, having the same path. We don't have that option either. So on first sight, I don't think we can enforce this rule.

      Show
      1. In a diff the first element may have a slicename, since it need not be the root element as a differential may immediately jump to a subnode by path. If the element is the root, then indeed there may be no slice name 2. is correct. We can male an invariant for (1) If the path has no '.' (a real root), it cannot have a slicename (true for both snapshot and differential) For (2), we need to group by path, and then enforce conditions per-group. I see no way to do that in FhirPath. Alternatively, we would need an axis to get to the "previous" nodes from the current one, having the same path. We don't have that option either. So on first sight, I don't think we can enforce this rule.
    • Richard Ettema/Grahame Grieve: 4-0-0
    • Enhancement
    • Non-substantive
    • STU3

      1. No slicename on the root element (snapshot or differential)
      2. No slicename on snapshot elements unless a preceding element (within same path hierarchy) has the same path and declares slicing

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

              Created:
              Updated:
              Resolved: