{
  "resourceType": "StructureDefinition",
  "id": "ServiceRequestABeOrderLab",
  "url": "https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/ServiceRequestABeOrderLab",
  "version": "1.1.0",
  "name": "ServiceRequestABeOrderLab",
  "title": "ServiceRequest (AB:eOrder-Lab)",
  "status": "draft",
  "description": "This profile defines a set of constraints to the FHIR ServiceRequest resource for use in Alberta eOrder Laboratory (AB:eOrder-Lab). It re-profiles the CA-eReC ServiceRequest profile and it includes constraints that represent the minimum expectations for the ServiceRequest resource when used in the AB:eOrder-Lab.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest",
        "path": "ServiceRequest",
        "comment": "ServiceRequest resources included in Alberta eOrder Laboratory Bundles have rules that certain attributes are not to be contained in QuestionnaireResponse resources. These are mechanically enforced through invariants at the AB:eOrder-Lab Bundle level."
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "min": 1
      },
      {
        "id": "ServiceRequest.basedOn",
        "path": "ServiceRequest.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/ServiceRequestABeOrderLab"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.priority",
        "path": "ServiceRequest.priority",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://www.alberta.ca/fhir/ValueSet/laboratory-orderable-code"
        }
      },
      {
        "id": "ServiceRequest.code.coding",
        "path": "ServiceRequest.code.coding",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.system",
        "path": "ServiceRequest.code.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.code",
        "path": "ServiceRequest.code.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PatientABeOrderLab"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "ServiceRequest.occurrence[x]:occurrenceTiming",
        "path": "ServiceRequest.occurrence[x]",
        "sliceName": "occurrenceTiming",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Timing"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.occurrence[x]:occurrenceTiming.code",
        "path": "ServiceRequest.occurrence[x].code",
        "binding": {
          "strength": "extensible",
          "valueSet": "https://www.alberta.ca/fhir/ValueSet/repeat-pattern-code"
        }
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/PractitionerRoleABeOrderLab"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/HealthcareServiceABeOrderLab"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.supportingInfo",
        "path": "ServiceRequest.supportingInfo",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/DocumentReferenceABeOrderLab",
              "https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/QuestionnaireResponseABeOrderLab"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.specimen",
        "path": "ServiceRequest.specimen",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/ab-eorder-lab/StructureDefinition/SpecimenABeOrderLab"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}