{
  "resourceType": "StructureDefinition",
  "id": "Ro-Specimen",
  "meta": {
    "lastUpdated": "2017-11-23T00:03:50.313+00:00"
  },
  "url": "https://simplifier.net/SAM-TST/Ro-Specimen",
  "name": "Ro-Specimen",
  "status": "draft",
  "date": "2017-11-17T10:24:11.93+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Specimen",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Specimen",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Specimen.accessionIdentifier",
        "path": "Specimen.accessionIdentifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Specimen.accessionIdentifier:specimenGroupID",
        "path": "Specimen.accessionIdentifier",
        "sliceName": "specimenGroupID",
        "label": "Specimen Group ID",
        "code": [
          {
            "system": "http://ro.test.org",
            "code": "specimenGroupID",
            "display": "Specimen Group ID"
          }
        ]
      },
      {
        "id": "Specimen.accessionIdentifier:pathologyNumber",
        "path": "Specimen.accessionIdentifier",
        "sliceName": "pathologyNumber",
        "label": "Pathology Number",
        "code": [
          {
            "system": "http://ro.test.org",
            "code": "pathologyNumber",
            "display": "Pathology Number"
          }
        ]
      },
      {
        "id": "Specimen.accessionIdentifier:RRID",
        "path": "Specimen.accessionIdentifier",
        "sliceName": "RRID",
        "label": "Ro Reference ID",
        "code": [
          {
            "system": "http://ro.test.org",
            "code": "RRID",
            "display": "Ro Reference ID"
          }
        ]
      },
      {
        "id": "Specimen.accessionIdentifier:surgicalPathologyNumber",
        "path": "Specimen.accessionIdentifier",
        "sliceName": "surgicalPathologyNumber",
        "label": "Surgical Pathology Number",
        "code": [
          {
            "system": "http://ro.test.org",
            "code": "surgicalPathologyNumber",
            "display": "Surgical Pathology Number"
          }
        ],
        "alias": [
          "Surg Path Number"
        ]
      },
      {
        "id": "Specimen.type",
        "path": "Specimen.type",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SpecimenType"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://ontology-services.ro.com/ROX1464167799432"
          }
        }
      },
      {
        "id": "Specimen.subject",
        "path": "Specimen.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://simplifier.net/SAM-TST/Ro-Patient"
          }
        ]
      },
      {
        "id": "Specimen.parent",
        "path": "Specimen.parent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://simplifier.net/SAM-TST/Ro-Specimen"
          }
        ]
      },
      {
        "id": "Specimen.request",
        "path": "Specimen.request",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://simplifier.net/SAM-TST/Ro-ProcedureRequest"
          }
        ]
      },
      {
        "id": "Specimen.collection.extension",
        "path": "Specimen.collection.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Specimen.collection.extension:bodySiteInstance",
        "path": "Specimen.collection.extension",
        "sliceName": "bodySiteInstance",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/body-site-instance"
          }
        ]
      },
      {
        "id": "Specimen.collection.collector",
        "path": "Specimen.collection.collector",
        "max": "0"
      },
      {
        "id": "Specimen.collection.method",
        "path": "Specimen.collection.method",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SpecimenCollectionMethod"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://ontology-services.ro.com/ROX1452095789073"
          }
        }
      },
      {
        "id": "Specimen.collection.bodySite",
        "path": "Specimen.collection.bodySite",
        "max": "0"
      },
      {
        "id": "Specimen.processing.procedure",
        "path": "Specimen.processing.procedure",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SpecimenProcessingProcedure"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://ontology-services.ro.com/ROX1467908801252"
          }
        }
      },
      {
        "id": "Specimen.processing.additive",
        "path": "Specimen.processing.additive",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://simplifier.net/SAM-TST/Ro-Substance"
          }
        ]
      },
      {
        "id": "Specimen.container.type",
        "path": "Specimen.container.type",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SpecimenContainerType"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://ontology-services.ro.com/ROX1481641631389"
          }
        }
      },
      {
        "id": "Specimen.container.additive[x]",
        "path": "Specimen.container.additive[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "https://simplifier.net/SAM-TST/Ro-Substance"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SpecimenContainerAdditive"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://ontology-services.ro.com/ROX1481047924588"
          }
        }
      }
    ]
  }
}