<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="England-Task-National-Proxy" />
  <url value="https://fhir.nhs.uk/England/StructureDefinition/England-Task-National-Proxy" />
  <version value="0.0.1-current" />
  <name value="EnglandTaskNationalProxy" />
  <title value="England Task National Proxy" />
  <status value="draft" />
  <date value="2024-10-25T07:31:19+00:00" />
  <publisher value="NHS England" />
  <contact>
    <name value="NHS England" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="Task" />
  <purpose value="This documents requirement for NHS England National Proxy" />
  <copyright value="Copyright © 2024+ NHS England 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  http://www.apache.org/licenses/LICENSE-2.0 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. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Task" />
  <baseDefinition value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Task" />
  <derivation value="constraint" />
  <differential>
    <element id="Task.identifier">
      <path value="Task.identifier" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Task.businessStatus">
      <path value="Task.businessStatus" />
      <mustSupport value="true" />
    </element>
    <element id="Task.code">
      <path value="Task.code" />
      <min value="1" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.nhs.uk/England/ValueSet/England-TaskCode" />
      </binding>
    </element>
    <element id="Task.focus">
      <path value="Task.focus" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-CodeableReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
    </element>
    <element id="Task.for">
      <path value="Task.for" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" />
      </type>
    </element>
    <element id="Task.for.identifier">
      <path value="Task.for.identifier" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-Identifier-NHS-Number" />
      </type>
    </element>
    <element id="Task.requester">
      <path value="Task.requester" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" />
      </type>
    </element>
    <element id="Task.requester.identifier">
      <path value="Task.requester.identifier" />
      <short value="SDS-User-Id is not part of NHS Data Dictionary and so should not be present here as an identifier." />
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-Identifier-General-Medical-Practitioner-Code" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-Identifier-General-Medical-Council-Reference-Number" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-Identifier-Organisation-Code" />
      </type>
    </element>
    <element id="Task.owner">
      <path value="Task.owner" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-HealthcareService" />
      </type>
    </element>
    <element id="Task.owner.identifier">
      <path value="Task.owner.identifier" />
      <short value="SDS-User-Id is not part of NHS Data Dictionary and so should not be present here as an identifer." />
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-Identifier-General-Medical-Practitioner-Code" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-Identifier-General-Medical-Council-Reference-Number" />
        <profile value="https://fhir.nhs.uk/England/StructureDefinition/England-Identifier-Organisation-Code" />
      </type>
    </element>
    <element id="Task.note">
      <path value="Task.note" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>