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

Consider a syntax to add to / access the end of an array

    XMLWordPrintableJSON

    Details

    • Type: Change Request
    • Status: Triaged (View Workflow)
    • Priority: High
    • Resolution: Unresolved

      Description

      Consider a syntax to allow authors to create a new item at the end of an array and/or reference the last item in an array. (Both are probably needed for a complete solution). This would be useful when the array length is not known (or may change). For example, mixins the add array elements but might not know the index to use (because it depends on where/how the mixin is applied).

      Perhaps redefining the omitted index to mean the last item in the array would make this more feasible. Then you could do something like:

      • name[+].given = "John"
      • name.family = "Doe"
      • name[+].given = "Jean"
      • name.family = "Does"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cmoesel Chris Moesel
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: