<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-resource-printableLabel" />
  <name value="extension-resource-printableLabel" />
  <status value="active" />
  <experimental value="false" />
  <description value="General purpose extension allowing to extend any resource with one or more labels that represents it." />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="datatype" />
  <context value="Resource" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:label">
      <path value="Extension.extension" />
      <sliceName value="label" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:label.url">
      <path value="Extension.extension.url" />
      <fixedUri value="label" />
    </element>
    <element id="Extension.extension:label.value[x]:valueAttachment">
      <path value="Extension.extension.valueAttachment" />
      <sliceName value="valueAttachment" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Attachment" />
        <profile value="http://apiframework.dedalus.eu/fhir/StructureDefinition/Attachment-ForPrintableLabel" />
      </type>
    </element>
    <element id="Extension.extension:numberOfCopiesToPrint">
      <path value="Extension.extension" />
      <sliceName value="numberOfCopiesToPrint" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:numberOfCopiesToPrint.url">
      <path value="Extension.extension.url" />
      <fixedUri value="numberOfCopiesToPrint" />
    </element>
    <element id="Extension.extension:numberOfCopiesToPrint.value[x]:valueUnsignedInt">
      <path value="Extension.extension.valueUnsignedInt" />
      <sliceName value="valueUnsignedInt" />
      <min value="1" />
      <type>
        <code value="unsignedInt" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-resource-printableLabel" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
      <type>
        <code value="base64Binary" />
      </type>
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="date" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="decimal" />
      </type>
      <type>
        <code value="id" />
      </type>
      <type>
        <code value="instant" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="markdown" />
      </type>
      <type>
        <code value="oid" />
      </type>
      <type>
        <code value="positiveInt" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="time" />
      </type>
      <type>
        <code value="unsignedInt" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="Address" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Annotation" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="ContactPoint" />
      </type>
      <type>
        <code value="Count" />
      </type>
      <type>
        <code value="Distance" />
      </type>
      <type>
        <code value="Duration" />
      </type>
      <type>
        <code value="HumanName" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="Money" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Ratio" />
      </type>
      <type>
        <code value="Reference" />
      </type>
      <type>
        <code value="SampledData" />
      </type>
      <type>
        <code value="Signature" />
      </type>
      <type>
        <code value="Timing" />
      </type>
    </element>
  </differential>
</StructureDefinition>