Clarify string and markdown datatype definitions - 2018-May Core Norm Infrastructure #32

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Persuasive
    • Priority: High
    • FHIR Core (FHIR)
    • STU3
    • Modeling & Methodology
    • Datatypes
    • 2.23.0.1
    • Hide
      • clarify that markdown is subject to same rules as string. no leading or trailing whitespace cause of schema rules about white space normalization - it will be eliminated by any valid processor
      • clarify that limit is 1 million characters
      • will attempt to improve the regex but it might not fully enforce all the rules (don't want to enumerate all invalid unicode characters)
      Show
      clarify that markdown is subject to same rules as string. no leading or trailing whitespace cause of schema rules about white space normalization - it will be eliminated by any valid processor clarify that limit is 1 million characters will attempt to improve the regex but it might not fully enforce all the rules (don't want to enumerate all invalid unicode characters)
    • Grahame Grieve/Ron Shapiro: 2-0-0
    • Non-substantive
    • STU3

      Existing Wording: string: ... String should not contain Unicode character points below 32, except for u0009 (horizontal tab), u0010 (carriage return) and u0013 (line feed) ? Regex: \s*(\S|\s)*

      ...

      markdown: A string that may contain markdown syntax for optional processing by a markdown presentation engine, in the GFM extension of CommonMark format (see below) xs:string JSON string

      Regex: \s*(\S|\s)* (can't put size limit in the regex - too large)

      ...

      ...Primitive types other than string SHALL NOT have leading or trailing whitespace...

      Comment:

      Regex definitions I've found include vertical tab in \s, so regex does not match definition. Further, since \s* matches zero characters, the leading term doesn't provide any restriction. And since most definitions of \S are "match what \s doesn't", the term "(\S|\s)*" means match anything. So, the regex imposes no restrictions and is useless.

      Clarify regex on string and markdown.

      Clarify if the string 1MB limit is character count, codepoints, or bytes.

      Clarify if markdown a specialization of the FHIR string type or independent, and thus if the string character set and length restrictions apply.

      Link to CommonMark discussion.

      Clarify if leading/trailing whitespace is allowed for markdown.

      Summary:

      Clarify string and markdown datatype definitions

            Assignee:
            Unassigned
            Reporter:
            Elliot Silver
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: