{
  "resourceType": "StructureDefinition",
  "id": "e09dce4d-cc4f-4867-964f-4ade6d6fdf9a",
  "meta": {
    "lastUpdated": "2023-11-15T21:17:54.098+00:00"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-ProcedureRequest",
  "name": "ProcedureRequest",
  "status": "draft",
  "date": "2023-11-15T15:30:23.9371616+00:00",
  "description": "A record of a request for diagnostic investigations, treatments, or operations to be performed.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "OLIS-HL7-v2",
      "name": "OLIS HL7 v2"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ProcedureRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ProcedureRequest.id",
        "path": "ProcedureRequest.id",
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.extension",
        "path": "ProcedureRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "ProcedureRequest.extension:organization-orderingFacility",
        "path": "ProcedureRequest.extension",
        "sliceName": "organization-orderingFacility",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-ordering-facility"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ORC.21"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:organization-orderingFacility.value[x]",
        "path": "ProcedureRequest.extension.value[x]",
        "mustSupport": false
      },
      {
        "id": "ProcedureRequest.extension:practitioner-copied",
        "path": "ProcedureRequest.extension",
        "sliceName": "practitioner-copied",
        "max": "10",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-cc-list"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.28"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:organization-testPlacer",
        "path": "ProcedureRequest.extension",
        "sliceName": "organization-testPlacer",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-trq-placer"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBR.2"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:organization-destinationLab",
        "path": "ProcedureRequest.extension",
        "sliceName": "organization-destinationLab",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-dest-lab"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBR.8"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:request-block",
        "path": "ProcedureRequest.extension",
        "sliceName": "request-block",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-record-block"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBR.1"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:request-pointOfCareTestID",
        "path": "ProcedureRequest.extension",
        "sliceName": "request-pointOfCareTestID",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-poc-test-id"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.30"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:requets-replace",
        "path": "ProcedureRequest.extension",
        "sliceName": "requets-replace",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-record-replace"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBR.14"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:request-sortKey",
        "path": "ProcedureRequest.extension",
        "sliceName": "request-sortKey",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-trq-sort-key"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZBR.11"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:note",
        "path": "ProcedureRequest.extension",
        "sliceName": "note",
        "max": "5",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-note"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ZNT-NTE"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:request-eventTiming",
        "path": "ProcedureRequest.extension",
        "sliceName": "request-eventTiming",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/observation-eventTiming"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR-27.6",
            "comment": "This extension is used when OBR-27.6 contains P or T values"
          }
        ]
      },
      {
        "id": "ProcedureRequest.extension:ReportableTestIndicator",
        "path": "ProcedureRequest.extension",
        "sliceName": "ReportableTestIndicator",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-ext-ReportableTestIndicator"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.extension:ext-OrderDetail",
        "path": "ProcedureRequest.extension",
        "sliceName": "ext-OrderDetail",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/4.0/StructureDefinition/extension-ServiceRequest.OrderDetail"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.extension:ext-OrderDetail.valueCodeableConcept:valueCodeableConcept.coding.code",
        "path": "ProcedureRequest.extension.valueCodeableConcept.coding.code",
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.11"
          }
        ]
      },
      {
        "id": "ProcedureRequest.identifier",
        "path": "ProcedureRequest.identifier",
        "definition": "Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.\r\n\r\nMust contain a value assigned by the order-placing organization that uniquely identifies this test request among all test requests in OLIS.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.identifier.system",
        "path": "ProcedureRequest.identifier.system",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\nOLIS: The source of the lab requests (example URL [id-system-local-base] /lab/test-request-id-[type]-license-[id])",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.2.3"
          }
        ]
      },
      {
        "id": "ProcedureRequest.identifier.value",
        "path": "ProcedureRequest.identifier.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.2.1"
          }
        ]
      },
      {
        "id": "ProcedureRequest.identifier.assigner",
        "path": "ProcedureRequest.identifier.assigner",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Organization-assigner",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.identifier.assigner.reference",
        "path": "ProcedureRequest.identifier.assigner.reference",
        "definition": "A reference to a organization that issued id.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.2.3"
          }
        ]
      },
      {
        "id": "ProcedureRequest.requisition",
        "path": "ProcedureRequest.requisition",
        "definition": "Must contain an identifier for the entire order. Requisition number assigned to all test requests in an order by an organization",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.requisition.system",
        "path": "ProcedureRequest.requisition.system",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n\r\nOLIS: The source of the lab reports (example URL http://ehealthontario.ca/fhir/NamingSystem/lab/report-id-[type]-license-[id])",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ORC.4.3"
          }
        ]
      },
      {
        "id": "ProcedureRequest.requisition.value",
        "path": "ProcedureRequest.requisition.value",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ORC.4.1"
          }
        ]
      },
      {
        "id": "ProcedureRequest.requisition.assigner",
        "path": "ProcedureRequest.requisition.assigner",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Organization-assigner",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.requisition.assigner.reference",
        "path": "ProcedureRequest.requisition.assigner.reference",
        "definition": "Organization that issued id",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ORC.4.3"
          }
        ]
      },
      {
        "id": "ProcedureRequest.status",
        "path": "ProcedureRequest.status",
        "short": "active | completed | cancelled",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://ehealthontario.ca/fhir/ValueSet/lab/request-status"
          }
        },
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.25"
          }
        ]
      },
      {
        "id": "ProcedureRequest.intent",
        "path": "ProcedureRequest.intent",
        "fixedCode": "order",
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.priority",
        "path": "ProcedureRequest.priority",
        "short": "routine | asap | stat",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetUri": "http://ehealthontario.ca/fhir/ValueSet/lab/request-priority"
        },
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.27.6"
          }
        ]
      },
      {
        "id": "ProcedureRequest.code",
        "path": "ProcedureRequest.code",
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.code.coding",
        "path": "ProcedureRequest.code.coding",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSetUri": "http://ehealthontario.ca/fhir/ValueSet/lab/procedure-request-codes"
        }
      },
      {
        "id": "ProcedureRequest.code.coding.system",
        "path": "ProcedureRequest.code.coding.system",
        "fixedUri": "http://ehealthontario.ca/fhir/NamingSystem/lab/test-request-codes",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.4.3"
          }
        ]
      },
      {
        "id": "ProcedureRequest.code.coding.code",
        "path": "ProcedureRequest.code.coding.code",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.4.1"
          }
        ]
      },
      {
        "id": "ProcedureRequest.code.coding.display",
        "path": "ProcedureRequest.code.coding.display",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.4.2"
          }
        ]
      },
      {
        "id": "ProcedureRequest.subject",
        "path": "ProcedureRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.subject.reference",
        "path": "ProcedureRequest.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.context",
        "path": "ProcedureRequest.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Encounter",
            "aggregation": [
              "contained"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.context.reference",
        "path": "ProcedureRequest.context.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.occurrence[x]:occurrenceDateTime",
        "path": "ProcedureRequest.occurrenceDateTime",
        "sliceName": "occurrenceDateTime",
        "comment": "For routine orders, populate this field with the current date.\r\nFor timing-critical orders, populate this field with the date and time that the specimen is to be obtained.\r\nFor future-dated orders, populate this field with the scheduled future date (and time if applicable) when the laboratory test is to occur.",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.27.4"
          }
        ]
      },
      {
        "id": "ProcedureRequest.authoredOn",
        "path": "ProcedureRequest.authoredOn",
        "comment": "Populate this field with the date and time of the event that initiated the current transaction.",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "ORC.9"
          }
        ]
      },
      {
        "id": "ProcedureRequest.requester",
        "path": "ProcedureRequest.requester",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.requester.agent",
        "path": "ProcedureRequest.requester.agent",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Practitioner-ordering"
          },
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Organization-requesting"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.requester.agent:agent-practitioner",
        "path": "ProcedureRequest.requester.agent",
        "sliceName": "agent-practitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Practitioner-ordering"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.16"
          }
        ]
      },
      {
        "id": "ProcedureRequest.requester.agent:agent-practitioner.reference",
        "path": "ProcedureRequest.requester.agent.reference",
        "mustSupport": true
      },
      {
        "id": "ProcedureRequest.requester.agent:agent-organization",
        "path": "ProcedureRequest.requester.agent",
        "sliceName": "agent-organization",
        "definition": "In some emergency and urgent care environments, laboratory information is ordered under organizational protocols without identifying an ordering practitioner.\r\nIf OLIS returns provider unavailable as a first name, reference to organization resource.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-provider-profile-Organization-requesting"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "OLIS-HL7-v2",
            "map": "OBR.16"
          }
        ]
      },
      {
        "id": "ProcedureRequest.requester.agent:agent-organization.reference",
        "path": "ProcedureRequest.requester.agent.reference",
        "mustSupport": true
      }
    ]
  }
}