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

Ability to define named tuple types

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Clinical Quality Language (FHIR)
    • 1.5 [deprecated]
    • Clinical Decision Support
    • Grammar

    Description

      Add the ability to define a named tuple type, with the following proposed addition to the grammar:

      library
          :
          libraryDefinition?
          usingDefinition*
          namedTypeDefinition*
          includeDefinition*
          codesystemDefinition*
          valuesetDefinition*
          codeDefinition*
          conceptDefinition*
          parameterDefinition*
          statement*
          EOF
          ;
      
      namedTypeDefinition
          : accessModifier? 'type' typeIdentifier ':' typeSpecifier
          ;
      
      typeIdentifier
          : identifier
          ;
      

      The simplest implementation would just be expansion of named type references.

      For discussion, see the Zulip thread here:

      https://chat.fhir.org/#narrow/stream/179220-cql/topic/Proposed.20New.20Feature.20-.20Named.20Types

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            bryn.rhodes Bryn Rhodes
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: