{
  "resourceType": "StructureDefinition",
  "id": "training-referral-service-request-np",
  "url": "http://ontariohealth.ca/fhir/testing/StructureDefinition/training-referral-service-request-np",
  "name": "TrainingReferralServiceRequestNP",
  "title": "Training Referral ServiceRequest Profile - NP",
  "status": "draft",
  "description": "Sandbox ServiceRequest profile created during advanced standards training.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest",
        "path": "ServiceRequest",
        "constraint": [
          {
            "key": "training-sr-priority-reason-np",
            "severity": "warning",
            "human": "If priority is urgent, asap, or stat, a reason should be available.",
            "expression": "(priority = 'urgent' or priority = 'asap' or priority = 'stat') implies reasonCode.exists()",
            "source": "http://ontariohealth.ca/fhir/testing/StructureDefinition/training-referral-service-request-np"
          }
        ]
      },
      {
        "id": "ServiceRequest.extension",
        "path": "ServiceRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "ServiceRequest.extension:routingNote",
        "path": "ServiceRequest.extension",
        "sliceName": "routingNote",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://example.org/oh/training/StructureDefinition/referral-routing-note-np"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://example.org/oh/training/ValueSet/referral-category-np"
        }
      },
      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.authoredOn",
        "path": "ServiceRequest.authoredOn",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode",
        "path": "ServiceRequest.reasonCode",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.supportingInfo",
        "path": "ServiceRequest.supportingInfo",
        "mustSupport": true
      }
    ]
  }
}