{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ReferralRequest-1",
  "version": "1.2.0",
  "name": "CareConnect-GPC-ReferralRequest-1",
  "status": "draft",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "publisher": "NHS Digital",
  "contact": [
    {
      "name": "Interoperability Team",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization.",
  "purpose": "CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/ on the 5th July 2019.",
  "copyright": "Copyright © 2020 HL7 UK\r \r Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r \r http://www.apache.org/licenses/LICENSE-2.0\r \r Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\r \r HL7® FHIR® standard Copyright © 2011+ HL7\r \r The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r \r https://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ReferralRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ReferralRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ReferralRequest.meta.profile",
        "path": "ReferralRequest.meta.profile",
        "min": 1
      },
      {
        "id": "ReferralRequest.identifier",
        "path": "ReferralRequest.identifier",
        "min": 1
      },
      {
        "id": "ReferralRequest.identifier.system",
        "path": "ReferralRequest.identifier.system",
        "min": 1
      },
      {
        "id": "ReferralRequest.identifier.value",
        "path": "ReferralRequest.identifier.value",
        "min": 1
      },
      {
        "id": "ReferralRequest.basedOn",
        "path": "ReferralRequest.basedOn",
        "short": "Indicates any plans or prior referrals that this referral is intended to fulfill",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ReferralRequest-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-CarePlan-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.replaces",
        "path": "ReferralRequest.replaces",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ReferralRequest-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.groupIdentifier.assigner",
        "path": "ReferralRequest.groupIdentifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.status",
        "path": "ReferralRequest.status",
        "fixedCode": "unknown"
      },
      {
        "id": "ReferralRequest.intent",
        "path": "ReferralRequest.intent",
        "fixedCode": "order"
      },
      {
        "id": "ReferralRequest.priority",
        "path": "ReferralRequest.priority",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralPriority"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://fhir.nhs.uk/STU3/ValueSet/GPConnect-RequestPriority-1"
          }
        }
      },
      {
        "id": "ReferralRequest.subject",
        "path": "ReferralRequest.subject",
        "short": "A reference to the patient who is the subject of the referral",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.context",
        "path": "ReferralRequest.context",
        "short": "The consultation within which the referral was recorded",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-EpisodeOfCare-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ReferralRequest.authoredOn",
        "path": "ReferralRequest.authoredOn",
        "short": "The user entered date for the referral",
        "mustSupport": true
      },
      {
        "id": "ReferralRequest.requester",
        "path": "ReferralRequest.requester",
        "short": "Who has administered the referral request",
        "mustSupport": true
      },
      {
        "id": "ReferralRequest.requester.agent",
        "path": "ReferralRequest.requester.agent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-RelatedPerson-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.requester.onBehalfOf",
        "path": "ReferralRequest.requester.onBehalfOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.recipient",
        "path": "ReferralRequest.recipient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-HealthcareService-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ReferralRequest.reasonCode",
        "path": "ReferralRequest.reasonCode",
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralReason"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://fhir.nhs.uk/STU3/ValueSet/ReasonForReferralSnCT-1"
          }
        }
      },
      {
        "id": "ReferralRequest.reasonReference",
        "path": "ReferralRequest.reasonReference",
        "short": "The problem(s) linked to the referral",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Condition-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProblemHeader-Condition-1"
          }
        ]
      },
      {
        "id": "ReferralRequest.description",
        "path": "ReferralRequest.description",
        "short": "The free text description for the referral",
        "mustSupport": true
      },
      {
        "id": "ReferralRequest.supportingInfo",
        "path": "ReferralRequest.supportingInfo",
        "short": "The referral letter(s) and any other supporting documents or linked detail with relates to another resource which is not specifically defined to another referralRequest element",
        "mustSupport": true
      },
      {
        "id": "ReferralRequest.note",
        "path": "ReferralRequest.note",
        "short": "Any additional information recorded against the referral",
        "definition": "This could include additional categorisation of the referral or notes recorded post referral such as details of progress or outcomes.",
        "mustSupport": true
      },
      {
        "id": "ReferralRequest.note.author[x]",
        "path": "ReferralRequest.note.author[x]",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-RelatedPerson-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1"
          }
        ]
      }
    ]
  }
}