{
  "resourceType": "StructureDefinition",
  "id": "BARSServiceRequestRequestReferral",
  "url": "https://fhir.nhs.uk/StructureDefinition/BARSServiceRequest-request-referral",
  "version": "1.0.5",
  "name": "BARSServiceRequestRequestReferral",
  "title": "BARS ServiceRequest-Request Referral",
  "status": "active",
  "date": "2023-07-03",
  "description": "BARS ServiceRequest-request Referral profile",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "fixedCode": "plan"
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient"
            ]
          }
        ]
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "ServiceRequest.authoredOn",
        "path": "ServiceRequest.authoredOn",
        "comment": "DateTime the Referral Request was generated",
        "min": 1
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "comment": "Referral To"
      }
    ]
  }
}