<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-Consent" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Consent" />
  <version value="2.4.0" />
  <name value="UKCoreConsent" />
  <title value="UK Core Consent" />
  <status value="draft" />
  <date value="2023-12-16" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the UK constraints and extensions on the International FHIR resource [Consent](https://hl7.org/fhir/R4/Consent.html)." />
  <purpose value="The purpose of this profile is to be used to express a Consent regarding Healthcare. There are four anticipated uses for the Consent Resource, all of which are written or verbal agreements by a healthcare consumer [grantor] or a personal representative, made to an authorised entity [grantee] concerning authorised or restricted actions with any limitations on purpose of use, and handling instructions to which the authorised entity SHALL comply: &#xD;&#xA;- **Privacy Consent Directive**: Agreement to collect, access, use or disclose (share) information. &#xD;&#xA;- **Medical Treatment Consent Directive**: Consent to undergo a specific treatment (or record of refusal to consent). &#xD;&#xA;- **Research Consent Directive**: Consent to participate in research protocol and information sharing required. &#xD;&#xA;- **Advance Care Directives**: Consent to instructions for potentially needed medical treatment (e.g. DNR)." />
  <copyright value="Copyright © 2021+ HL7 UK 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" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Consent" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Consent" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent.status">
      <path value="Consent.status" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.scope">
      <path value="Consent.scope" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.category">
      <path value="Consent.category" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.patient">
      <path value="Consent.patient" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.dateTime">
      <path value="Consent.dateTime" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.performer">
      <path value="Consent.performer" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.organization">
      <path value="Consent.organization" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.source[x]">
      <path value="Consent.source[x]" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.provision.code">
      <path value="Consent.provision.code" />
      <binding>
        <strength value="preferred" />
        <description value="A code from the SNOMED Clinical Terminology UK coding system that describes a trigger for an exception to a base policy." />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-ConsentException" />
      </binding>
    </element>
  </differential>
</StructureDefinition>