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

All backbone element in core resource have an incorrent FHIR type for "id"

    XMLWordPrintableJSON

Details

    • Icon: Technical Correction Technical Correction
    • Resolution: Persuasive
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • R4B
    • FHIR Infrastructure
    • Backbone Element
    • Hide

      Tooling issue

      Show
      Tooling issue
    • Correction
    • R5

    Description

      All Backbone elements in every resource have an incorrect "FHIR type".

      Example:
      Patient.contact.id has "FHIR type" of "id" (see the extension)

      <element id="Patient.contact.id">
                  <path value="Patient.contact.id" />
                  <representation value="xmlAttr" />
                  <short value="Unique id for inter-element referencing" />
                  <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
                  <min value="0" />
                  <max value="1" />
                  <base>
                    <path value="Element.id" />
                    <min value="0" />
                    <max value="1" />
                  </base>
                  <!-- Note: special primitive values have a FHIRPath system type. e.g. this is compiler magic (j) -->
                  <type>
                    <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
                      <valueUrl value="id" />
                    </extension>
                    <code value="http://hl7.org/fhirpath/System.String" />
                  </type>
                  <isModifier value="false" />
                  <isSummary value="false" />
                  <mapping>
                    <identity value="rim" />
                    <map value="n/a" />
                  </mapping>
                </element>

      But this should be "string". See the definition of BackboneElement.id:

       <element id="BackboneElement.id">
                  <path value="BackboneElement.id" />
                  <representation value="xmlAttr" />
                  <short value="Unique id for inter-element referencing" />
                  <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
                  <min value="0" />
                  <max value="1" />
                  <base>
                    <path value="Element.id" />
                    <min value="0" />
                    <max value="1" />
                  </base>
                  <!-- Note: special primitive values have a FHIRPath system type. e.g. this is compiler magic (j) -->
                  <type>
                    <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
                      <valueUrl value="string" />
                    </extension>
                    <code value="http://hl7.org/fhirpath/System.String" />
                  </type>
                  <isModifier value="false" />
                  <isSummary value="false" />
                  <mapping>
                    <identity value="rim" />
                    <map value="n/a" />
                  </mapping>
                </element>

      This is the case in all backbone elements in both R4B and R5

      Attachments

        Activity

          People

            lloyd Lloyd McKenzie
            martensmits Marten Smits
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: