slice names cannot be numbers

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Persuasive with Modification
    • Priority: Low
    • Shorthand (FHIR)
    • 0.12.0 [deprecated]
    • FHIR Infrastructure
    • Language Reference
    • 3.2.7
    • Hide

      The ANTLR4 grammar will not allow a name to be entirely numeric, so there will not be confusion between a name and an index. SUSHI will signal an error:

      error mismatched input '1234567' expecting SEQUENCE

      However, we haven't made this clear in the specification, so we will add a short sentence to the spec to indicate that slicenames must not be purely numeric (must contain at least one letter).

      Show
      The ANTLR4 grammar will not allow a name to be entirely numeric, so there will not be confusion between a name and an index. SUSHI will signal an error: error mismatched input '1234567' expecting SEQUENCE However, we haven't made this clear in the specification, so we will add a short sentence to the spec to indicate that slicenames must not be purely numeric (must contain at least one letter).
    • Kramer/Rhodes: 14-0-0
    • Clarification
    • Non-substantive

      The use of slice identifiers as array indices requires the slice name to consist of at least one non decimals. Otherwise one cannot not differentiate from a slice and a index. I do not think this is enforced by the grammar.

            Assignee:
            Unassigned
            Reporter:
            Bas van den Heuvel
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: