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