<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="England-Consent-Healthcare-Worker" />
  <url value="https://fhir.nhs.uk/England/StructureDefinition/England-Consent-Healthcare-Worker" />
  <version value="0.1.0" />
  <name value="EnglandConsentHealthcareWorker" />
  <title value="England Consent Healthcare Worker" />
  <status value="draft" />
  <date value="2026-05-05" />
  <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="This profile constrains the FHIR Consent resource for the NHS England Healthcare Worker use case. It supports representation of allowed actions, directly assigned to a PractitionerRole." />
  <purpose value="This documents requirement for NHS England Healthcare Worker API" />
  <copyright value="Copyright © 2026+ 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" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Consent" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Consent" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent.scope">
      <path value="Consent.scope" />
      <fixedCodeableConcept>
        <coding>
          <system value="https://fhir.nhs.uk/England/CodeSystem/England-ConsentScope" />
          <code value="rbac" />
          <display value="RBAC" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Consent.category">
      <path value="Consent.category" />
      <max value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="https://fhir.nhs.uk/England/CodeSystem/England-ConsentCategory" />
          <code value="allowable-actions" />
          <display value="Allowable Actions" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Consent.patient">
      <path value="Consent.patient" />
      <max value="0" />
    </element>
    <element id="Consent.policy">
      <path value="Consent.policy" />
      <min value="1" />
    </element>
    <element id="Consent.policy.uri">
      <path value="Consent.policy.uri" />
      <min value="1" />
      <fixedUri value="https://digital.nhs.uk/services/care-identity-service/registration-authority-users/registration-authority-help/registration-authority-key-documents-and-forms" />
    </element>
    <element id="Consent.provision.type">
      <path value="Consent.provision.type" />
      <min value="1" />
      <fixedCode value="permit" />
    </element>
    <element id="Consent.provision.actor">
      <path value="Consent.provision.actor" />
      <min value="1" />
    </element>
    <element id="Consent.provision.actor.role">
      <path value="Consent.provision.actor.role" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v3-RoleClass" />
          <code value="EMP" />
          <display value="employee" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Consent.provision.action">
      <path value="Consent.provision.action" />
      <binding>
        <strength value="extensible" />
        <description value="Activity Codes from the NHS England National RBAC" />
        <valueSet value="https://fhir.nhs.uk/England/ValueSet/England-ConsentSDSActivityCode" />
      </binding>
    </element>
  </differential>
</StructureDefinition>