{
  "resourceType": "StructureDefinition",
  "id": "f65f348e-6306-4f0a-90c3-10d27697d7b4",
  "meta": {
    "lastUpdated": "2018-10-26T14:21:39.512+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/SpecimenLabel",
  "name": "SpecimenLabel",
  "status": "draft",
  "date": "2018-10-26T14:21:39.4157354+00:00",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "extension",
  "context": [
    "Specimen"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Infos about labels",
        "definition": "Infos about labels (type and number)",
        "max": "1"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:pdfAttachment",
        "path": "Extension.extension",
        "sliceName": "pdfAttachment",
        "short": "PDF attachment",
        "definition": "The PDF attachment that has been generated"
      },
      {
        "id": "Extension.extension:pdfAttachment.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:pdfAttachment.extension:attachment",
        "path": "Extension.extension.extension",
        "sliceName": "attachment",
        "short": "PDF attachment",
        "definition": "The PDF attachment",
        "max": "1"
      },
      {
        "id": "Extension.extension:pdfAttachment.extension:attachment.url",
        "path": "Extension.extension.extension.url",
        "fixedUri": "attachment"
      },
      {
        "id": "Extension.extension:pdfAttachment.extension:attachment.value[x]:valueAttachment",
        "path": "Extension.extension.extension.valueAttachment",
        "sliceName": "valueAttachment",
        "type": [
          {
            "code": "Attachment"
          }
        ]
      },
      {
        "id": "Extension.extension:pdfAttachment.extension:printFormat",
        "path": "Extension.extension.extension",
        "sliceName": "printFormat",
        "short": "Attachment Format",
        "definition": "The Attachment Format",
        "max": "1"
      },
      {
        "id": "Extension.extension:pdfAttachment.extension:printFormat.url",
        "path": "Extension.extension.extension.url",
        "fixedUri": "printFormat"
      },
      {
        "id": "Extension.extension:pdfAttachment.extension:printFormat.value[x]:valueCodeableConcept",
        "path": "Extension.extension.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Extension.extension:pdfAttachment.url",
        "path": "Extension.extension.url",
        "fixedUri": "pdfAttachment"
      },
      {
        "id": "Extension.extension:pdfAttachment.value[x]",
        "path": "Extension.extension.value[x]",
        "max": "0",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          }
        ]
      },
      {
        "id": "Extension.extension:stringLabel",
        "path": "Extension.extension",
        "sliceName": "stringLabel",
        "short": "ZPL/PL label",
        "definition": "The ZPL/PL string representation of the label"
      },
      {
        "id": "Extension.extension:stringLabel.extension",
        "path": "Extension.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:stringLabel.extension:valueString",
        "path": "Extension.extension.extension",
        "sliceName": "valueString",
        "short": "ZPL/PL string representation of the label",
        "definition": "The ZPL/PL string representation of the label",
        "max": "1"
      },
      {
        "id": "Extension.extension:stringLabel.extension:valueString.url",
        "path": "Extension.extension.extension.url",
        "fixedUri": "valueString"
      },
      {
        "id": "Extension.extension:stringLabel.extension:valueString.value[x]:valueString",
        "path": "Extension.extension.extension.valueString",
        "sliceName": "valueString",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:stringLabel.extension:printFormat",
        "path": "Extension.extension.extension",
        "sliceName": "printFormat",
        "short": "Attachment Format",
        "definition": "The Attachment Format",
        "max": "1"
      },
      {
        "id": "Extension.extension:stringLabel.extension:printFormat.url",
        "path": "Extension.extension.extension.url",
        "fixedUri": "printFormat"
      },
      {
        "id": "Extension.extension:stringLabel.extension:printFormat.value[x]:valueCodeableConcept",
        "path": "Extension.extension.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Extension.extension:stringLabel.extension:printerLanguage",
        "path": "Extension.extension.extension",
        "sliceName": "printerLanguage",
        "max": "1"
      },
      {
        "id": "Extension.extension:stringLabel.extension:printerLanguage.url",
        "path": "Extension.extension.extension.url",
        "fixedUri": "printerLanguage"
      },
      {
        "id": "Extension.extension:stringLabel.extension:printerLanguage.value[x]:valueCodeableConcept",
        "path": "Extension.extension.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Extension.extension:stringLabel.url",
        "path": "Extension.extension.url",
        "fixedUri": "stringLabel"
      },
      {
        "id": "Extension.extension:stringLabel.value[x]",
        "path": "Extension.extension.value[x]",
        "max": "0",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          }
        ]
      },
      {
        "id": "Extension.extension:numberOfLabelsToPrint",
        "path": "Extension.extension",
        "sliceName": "numberOfLabelsToPrint",
        "short": "Number of labels to print",
        "definition": "Specifies the total number of labels that must be printed",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:numberOfLabelsToPrint.url",
        "path": "Extension.extension.url",
        "fixedUri": "numberOfLabelsToPrint"
      },
      {
        "id": "Extension.extension:numberOfLabelsToPrint.value[x]:valueInteger",
        "path": "Extension.extension.valueInteger",
        "sliceName": "valueInteger",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://example.org/fhir/StructureDefinition/SpecimenLabel"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0",
        "type": [
          {
            "code": "base64Binary"
          },
          {
            "code": "boolean"
          },
          {
            "code": "code"
          },
          {
            "code": "date"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "decimal"
          },
          {
            "code": "id"
          },
          {
            "code": "instant"
          },
          {
            "code": "integer"
          },
          {
            "code": "markdown"
          },
          {
            "code": "oid"
          },
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          },
          {
            "code": "time"
          },
          {
            "code": "unsignedInt"
          },
          {
            "code": "uri"
          },
          {
            "code": "Address"
          },
          {
            "code": "Age"
          },
          {
            "code": "Annotation"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Coding"
          },
          {
            "code": "ContactPoint"
          },
          {
            "code": "Count"
          },
          {
            "code": "Distance"
          },
          {
            "code": "Duration"
          },
          {
            "code": "HumanName"
          },
          {
            "code": "Identifier"
          },
          {
            "code": "Money"
          },
          {
            "code": "Period"
          },
          {
            "code": "Quantity"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Reference"
          },
          {
            "code": "SampledData"
          },
          {
            "code": "Signature"
          },
          {
            "code": "Timing"
          }
        ]
      }
    ]
  }
}