{
  "resourceType": "StructureDefinition",
  "id": "9ca17e0f-6ec8-4ed0-9929-f6609ad8bc2f",
  "meta": {
    "lastUpdated": "2019-03-16T22:52:00.1911476+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/cd_Specimen",
  "name": "ca-bc-CD-profile-Specimen",
  "status": "draft",
  "date": "2019-03-16T22:51:59.5504385+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.meta",
        "path": "Specimen.meta",
        "max": "0"
      },
      {
        "id": "Specimen.implicitRules",
        "path": "Specimen.implicitRules",
        "max": "0"
      },
      {
        "id": "Specimen.language",
        "path": "Specimen.language",
        "max": "0"
      },
      {
        "id": "Specimen.text",
        "path": "Specimen.text",
        "max": "0"
      },
      {
        "id": "Specimen.contained",
        "path": "Specimen.contained",
        "max": "0"
      },
      {
        "id": "Specimen.extension",
        "path": "Specimen.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Specimen.extension:recordType",
        "path": "Specimen.extension",
        "sliceName": "recordType",
        "short": "Record Type",
        "definition": "A|R|W",
        "comment": "none",
        "type": [
          {
            "code": "Extension",
            "profile": "http://infoway-inforoute.ca/StructureDefinition/recordType"
          }
        ]
      },
      {
        "id": "Specimen.extension:recordType.id",
        "path": "Specimen.extension.id",
        "max": "0"
      },
      {
        "id": "Specimen.extension:recordType.valueCode:valueCode",
        "path": "Specimen.extension.valueCode",
        "sliceName": "valueCode",
        "short": "Record Type - Lab Specimen",
        "definition": "CM: Mandatory if data element (1) Lab Specimen Type provided\r\nRecord Type - Lab Specimen",
        "comment": "CD_Mandate_Dataset_Specifications Data Element ID: \r\n1.2",
        "min": 1,
        "fixedCode": "A|R|W"
      },
      {
        "id": "Specimen.extension:recordType.valueCode:valueCode.id",
        "path": "Specimen.extension.valueCode.id",
        "max": "0"
      },
      {
        "id": "Specimen.identifier",
        "path": "Specimen.identifier",
        "short": "Lab Specimen ID",
        "definition": "CM: Mandatory if data element (1) specimen provided\r\nLab Specimen ID"
      },
      {
        "id": "Specimen.identifier.use",
        "path": "Specimen.identifier.use",
        "max": "0"
      },
      {
        "id": "Specimen.identifier.type",
        "path": "Specimen.identifier.type",
        "max": "0"
      },
      {
        "id": "Specimen.identifier.system",
        "path": "Specimen.identifier.system",
        "definition": "FHA: https://ehealthontario.ca/API/FHIR/NamingSystem/ca-bc-fha ;\r\nNHA: https://ehealthontario.ca/API/FHIR/NamingSystem/ca-bc-nha ;\r\nVCH: https://fhir.infoway-inforoute.ca/registry/NamingSystem/bc-vcha .",
        "comment": "Refer to Valid URIs listed in Definition"
      },
      {
        "id": "Specimen.identifier.value",
        "path": "Specimen.identifier.value",
        "short": "Lab Specimen ID",
        "definition": "Lab Specimen ID",
        "comment": "CD_Mandate_Dataset_Specifications Data Element ID: \r\n1.3"
      },
      {
        "id": "Specimen.identifier.period",
        "path": "Specimen.identifier.period",
        "max": "0"
      },
      {
        "id": "Specimen.identifier.assigner",
        "path": "Specimen.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Specimen.accessionIdentifier",
        "path": "Specimen.accessionIdentifier",
        "max": "0"
      },
      {
        "id": "Specimen.status",
        "path": "Specimen.status",
        "max": "0"
      },
      {
        "id": "Specimen.type",
        "path": "Specimen.type",
        "definition": "Lab Specimen Type"
      },
      {
        "id": "Specimen.type.id",
        "path": "Specimen.type.id",
        "max": "0"
      },
      {
        "id": "Specimen.type.coding.id",
        "path": "Specimen.type.coding.id",
        "max": "0"
      },
      {
        "id": "Specimen.type.coding.system",
        "path": "Specimen.type.coding.system",
        "max": "0"
      },
      {
        "id": "Specimen.type.coding.version",
        "path": "Specimen.type.coding.version",
        "max": "0"
      },
      {
        "id": "Specimen.type.coding.code",
        "path": "Specimen.type.coding.code",
        "short": "Lab Specimen Type",
        "definition": "Lab Specimen Type",
        "comment": "CD_Mandate_Dataset_Specifications Data Element ID: \r\n1"
      },
      {
        "id": "Specimen.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Specimen.type.coding.display",
        "short": "Lab Specimen Type",
        "definition": "Lab Specimen Type",
        "comment": "none"
      },
      {
        "id": "Specimen.type.coding.userSelected",
        "path": "Specimen.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Specimen.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Specimen.type.text",
        "max": "0"
      },
      {
        "id": "Specimen.subject",
        "path": "Specimen.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Specimen.subject.id",
        "path": "Specimen.subject.id",
        "max": "0"
      },
      {
        "id": "Specimen.subject.identifier",
        "path": "Specimen.subject.identifier",
        "max": "0"
      },
      {
        "id": "Specimen.subject.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Specimen.subject.display",
        "max": "0"
      },
      {
        "id": "Specimen.receivedTime",
        "path": "Specimen.receivedTime",
        "max": "0"
      },
      {
        "id": "Specimen.parent",
        "path": "Specimen.parent",
        "max": "0"
      },
      {
        "id": "Specimen.request",
        "path": "Specimen.request",
        "max": "0"
      },
      {
        "id": "Specimen.collection.id",
        "path": "Specimen.collection.id",
        "max": "0"
      },
      {
        "id": "Specimen.collection.collector",
        "path": "Specimen.collection.collector",
        "max": "0"
      },
      {
        "id": "Specimen.collection.collected[x]:collectedDateTime",
        "path": "Specimen.collection.collectedDateTime",
        "sliceName": "collectedDateTime",
        "short": "Collection Date Time",
        "definition": "Lab Specimen Collection DateTime\r\nCM: Mandatory if Specimen Type (1) is provided",
        "comment": "CD_Mandate_Dataset_Specifications Data Element ID: \r\n3",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Specimen.collection.collected[x]:collectedDateTime.id",
        "path": "Specimen.collection.collectedDateTime.id",
        "max": "0"
      },
      {
        "id": "Specimen.collection.quantity:SimpleQuantity",
        "path": "Specimen.collection.quantity",
        "sliceName": "SimpleQuantity",
        "max": "0"
      },
      {
        "id": "Specimen.collection.method",
        "path": "Specimen.collection.method",
        "max": "0"
      },
      {
        "id": "Specimen.collection.bodySite",
        "path": "Specimen.collection.bodySite",
        "definition": "Specimen Site",
        "comment": "none"
      },
      {
        "id": "Specimen.collection.bodySite.id",
        "path": "Specimen.collection.bodySite.id",
        "max": "0"
      },
      {
        "id": "Specimen.collection.bodySite.coding.id",
        "path": "Specimen.collection.bodySite.coding.id",
        "max": "0"
      },
      {
        "id": "Specimen.collection.bodySite.coding.system",
        "path": "Specimen.collection.bodySite.coding.system",
        "max": "0"
      },
      {
        "id": "Specimen.collection.bodySite.coding.version",
        "path": "Specimen.collection.bodySite.coding.version",
        "max": "0"
      },
      {
        "id": "Specimen.collection.bodySite.coding.code",
        "path": "Specimen.collection.bodySite.coding.code",
        "short": "Specimen Site",
        "definition": "Specimen Site",
        "comment": "CD_Mandate_Dataset_Specifications Data Element ID: \r\n16"
      },
      {
        "id": "Specimen.collection.bodySite.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Specimen.collection.bodySite.coding.display",
        "short": "Specimen Site",
        "definition": "Specimen Site",
        "comment": "none"
      },
      {
        "id": "Specimen.collection.bodySite.coding.userSelected",
        "path": "Specimen.collection.bodySite.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Specimen.collection.bodySite.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Specimen.collection.bodySite.text",
        "max": "0"
      },
      {
        "id": "Specimen.processing",
        "path": "Specimen.processing",
        "max": "0"
      },
      {
        "id": "Specimen.container",
        "path": "Specimen.container",
        "max": "0"
      },
      {
        "id": "Specimen.note",
        "path": "Specimen.note",
        "short": "Specimen Description",
        "definition": "Specimen Description",
        "comment": "none"
      },
      {
        "id": "Specimen.note.id",
        "path": "Specimen.note.id",
        "max": "0"
      },
      {
        "id": "Specimen.note.author[x]",
        "path": "Specimen.note.author[x]",
        "max": "0"
      },
      {
        "id": "Specimen.note.time",
        "path": "Specimen.note.time",
        "max": "0"
      },
      {
        "id": "Specimen.note.text",
        "path": "Specimen.note.text",
        "short": "Specimen Description",
        "definition": "Specimen Description",
        "comment": "CD_Mandate_Dataset_Specifications Data Element ID: \r\n1.1"
      }
    ]
  }
}