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

ShEx for FHIR primitive types is incorrect

    XMLWordPrintableJSON

Details

    • Icon: Technical Correction Technical Correction
    • Resolution: Persuasive
    • Icon: Highest Highest
    • FHIR Core (FHIR)
    • R5
    • FHIR Infrastructure
    • DomainResource
    • (NA)
    • Correction
    • R5

    Description

      The ShEx generation that is included in the resource definitions are incorrect.  As an example, the definition for "integer" in patient.shex is:

       

      Primitive Type integer
      <integer> CLOSED {
          fhir:Element.id @<string>?; # xml:id (or equivalent in JSON)
      {{    fhir:Element.extension @<Extension>*; # Additional content defined by }}
      {{    # implementations }}
          fhir:value @<integer>?; # Primitive value for integer
          fhir:index xsd:integer? # Relative position in a list
      }

      The fhir:value element should actually be:

      fhir:value xsd:integer.

       

      This applies to all generated shex and all datatypes

       

      Attachments

        Activity

          People

            GrahameGrieve Grahame Grieve
            hsolbrig Harold Solbrig (Inactive)
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: