<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="f65f348e-6306-4f0a-90c3-10d27697d7b4" />
  <meta>
    <lastUpdated value="2018-10-26T14:21:39.512+00:00" />
  </meta>
  <url value="http://example.org/fhir/StructureDefinition/SpecimenLabel" />
  <name value="SpecimenLabel" />
  <status value="draft" />
  <date value="2018-10-26T14:21:39.4157354+00:00" />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="extension" />
  <context value="Specimen" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Infos about labels" />
      <definition value="Infos about labels (type and number)" />
      <max value="1" />
    </element>
    <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:pdfAttachment">
      <path value="Extension.extension" />
      <sliceName value="pdfAttachment" />
      <short value="PDF attachment" />
      <definition value="The PDF attachment that has been generated" />
    </element>
    <element id="Extension.extension:pdfAttachment.extension">
      <path value="Extension.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:pdfAttachment.extension:attachment">
      <path value="Extension.extension.extension" />
      <sliceName value="attachment" />
      <short value="PDF attachment" />
      <definition value="The PDF attachment" />
      <max value="1" />
    </element>
    <element id="Extension.extension:pdfAttachment.extension:attachment.url">
      <path value="Extension.extension.extension.url" />
      <fixedUri value="attachment" />
    </element>
    <element id="Extension.extension:pdfAttachment.extension:attachment.value[x]:valueAttachment">
      <path value="Extension.extension.extension.valueAttachment" />
      <sliceName value="valueAttachment" />
      <type>
        <code value="Attachment" />
      </type>
    </element>
    <element id="Extension.extension:pdfAttachment.extension:printFormat">
      <path value="Extension.extension.extension" />
      <sliceName value="printFormat" />
      <short value="Attachment Format" />
      <definition value="The Attachment Format" />
      <max value="1" />
    </element>
    <element id="Extension.extension:pdfAttachment.extension:printFormat.url">
      <path value="Extension.extension.extension.url" />
      <fixedUri value="printFormat" />
    </element>
    <element id="Extension.extension:pdfAttachment.extension:printFormat.value[x]:valueCodeableConcept">
      <path value="Extension.extension.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Extension.extension:pdfAttachment.url">
      <path value="Extension.extension.url" />
      <fixedUri value="pdfAttachment" />
    </element>
    <element id="Extension.extension:pdfAttachment.value[x]">
      <path value="Extension.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>
    <element id="Extension.extension:stringLabel">
      <path value="Extension.extension" />
      <sliceName value="stringLabel" />
      <short value="ZPL/PL label" />
      <definition value="The ZPL/PL string representation of the label" />
    </element>
    <element id="Extension.extension:stringLabel.extension">
      <path value="Extension.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:stringLabel.extension:valueString">
      <path value="Extension.extension.extension" />
      <sliceName value="valueString" />
      <short value="ZPL/PL string representation of the label" />
      <definition value="The ZPL/PL string representation of the label" />
      <max value="1" />
    </element>
    <element id="Extension.extension:stringLabel.extension:valueString.url">
      <path value="Extension.extension.extension.url" />
      <fixedUri value="valueString" />
    </element>
    <element id="Extension.extension:stringLabel.extension:valueString.value[x]:valueString">
      <path value="Extension.extension.extension.valueString" />
      <sliceName value="valueString" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.extension:stringLabel.extension:printFormat">
      <path value="Extension.extension.extension" />
      <sliceName value="printFormat" />
      <short value="Attachment Format" />
      <definition value="The Attachment Format" />
      <max value="1" />
    </element>
    <element id="Extension.extension:stringLabel.extension:printFormat.url">
      <path value="Extension.extension.extension.url" />
      <fixedUri value="printFormat" />
    </element>
    <element id="Extension.extension:stringLabel.extension:printFormat.value[x]:valueCodeableConcept">
      <path value="Extension.extension.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Extension.extension:stringLabel.extension:printerLanguage">
      <path value="Extension.extension.extension" />
      <sliceName value="printerLanguage" />
      <max value="1" />
    </element>
    <element id="Extension.extension:stringLabel.extension:printerLanguage.url">
      <path value="Extension.extension.extension.url" />
      <fixedUri value="printerLanguage" />
    </element>
    <element id="Extension.extension:stringLabel.extension:printerLanguage.value[x]:valueCodeableConcept">
      <path value="Extension.extension.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Extension.extension:stringLabel.url">
      <path value="Extension.extension.url" />
      <fixedUri value="stringLabel" />
    </element>
    <element id="Extension.extension:stringLabel.value[x]">
      <path value="Extension.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>
    <element id="Extension.extension:numberOfLabelsToPrint">
      <path value="Extension.extension" />
      <sliceName value="numberOfLabelsToPrint" />
      <short value="Number of labels to print" />
      <definition value="Specifies the total number of labels that must be printed" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:numberOfLabelsToPrint.url">
      <path value="Extension.extension.url" />
      <fixedUri value="numberOfLabelsToPrint" />
    </element>
    <element id="Extension.extension:numberOfLabelsToPrint.value[x]:valueInteger">
      <path value="Extension.extension.valueInteger" />
      <sliceName value="valueInteger" />
      <type>
        <code value="integer" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://example.org/fhir/StructureDefinition/SpecimenLabel" />
    </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>