<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NHSEngland-Consent-GenomicsPCF" />
  <url value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Consent-GenomicsPCF" />
  <version value="0.3.0" />
  <name value="NHSEngland_Consent_GenomicsPCF" />
  <title value="NHSEngland Consent GenomicsPCF" />
  <status value="active" />
  <date value="2026-04-16" />
  <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 defines the Genomics constraints and extensions on the Privacy and Consent on FHIR FHIR resource [Intermediate Consent](https://profiles.ihe.net/ITI/PCF/StructureDefinition/IHE.PCF.consentIntermediate)." />
  <purpose value="Only expected to be used for wrapping Record of Discussion resources within the WGS pathway. Consent for testing is implied through submission of a test to the Genomic Order Management service. Consent for Data Access as part of the UGR SHOULD follow guidance provided within Consent guidance page and the IHE PCF Framework.&#xD;&#xA;&#xD;&#xA;Only a minimal amount of mandatory information needs to be populated for Order Management recording of RoDs." />
  <copyright value="Copyright © 2026+ 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="Consent" />
  <baseDefinition value="https://profiles.ihe.net/ITI/PCF/StructureDefinition/IHE.PCF.consentIntermediate" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent.status">
      <path value="Consent.status" />
      <definition value="SHALL be present. Fixed code of 'proposed' where consent discussion has taken place but RoD form has not been provided alongside test order. 'draft' if discussion has not yet taken place and 'active' for completed RoD, regardless of whether the patient has consented to information sharing (responses to specific consent statements SHOULD be recorded in the RoD itself)." />
    </element>
    <element id="Consent.scope.coding">
      <path value="Consent.scope.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Consent.scope.coding:codingRoD">
      <path value="Consent.scope.coding" />
      <sliceName value="codingRoD" />
      <definition value="For WGS RoD this SHALL be fixed to the below code:" />
    </element>
    <element id="Consent.scope.coding:codingRoD.system">
      <path value="Consent.scope.coding.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/consentscope" />
    </element>
    <element id="Consent.scope.coding:codingRoD.code">
      <path value="Consent.scope.coding.code" />
      <fixedCode value="research" />
    </element>
    <element id="Consent.scope.coding:codingRoD.display">
      <path value="Consent.scope.coding.display" />
      <fixedString value="Research" />
    </element>
    <element id="Consent.category">
      <path value="Consent.category" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Consent.category:categoryRoD">
      <path value="Consent.category" />
      <sliceName value="categoryRoD" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/consentcategorycodes" />
          <code value="research" />
          <display value="Research Information Access" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Consent.patient">
      <path value="Consent.patient" />
      <definition value="SHALL be present. Reference to the associated Patient. This MAY be through a resource reference if the ID on the central service is known (or provided within the transaction bundle) or through NHS number where this is known and has been traced through PDS." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Patient-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="Consent.performer">
      <path value="Consent.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-PractitionerRole-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="Consent.source[x]">
      <path value="Consent.source[x]" />
      <definition value="SHALL be present for RoD entities (where the Consent resource provides metadata wrapping around a [Record of Discussion Form](https://www.england.nhs.uk/publication/nhs-genomic-medicine-service-record-of-discussion-form/). The Source element MAY either be:&#xD;&#xA;A pointer to the location of the PDF version of the RoD, either hosted by the source/client system&#xD;&#xA;Accessed via NRL (via a DocumentReference resource)&#xD;&#xA;Embedded within the message payload, base64 encoded (using sourceAttachment)&#xD;&#xA;A reference to a QuestionnaireResponse resource (using sourceReference), if this has been collected in a structured format, using the Questionnaire-Genomic Testing RoD template." />
    </element>
    <element id="Consent.policy">
      <path value="Consent.policy" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Consent.policy:policyRoD">
      <path value="Consent.policy" />
      <sliceName value="policyRoD" />
    </element>
    <element id="Consent.policy:policyRoD.authority">
      <path value="Consent.policy.authority" />
      <fixedUri value="https://www.england.nhs.uk" />
    </element>
    <element id="Consent.policy:policyRoD.uri">
      <path value="Consent.policy.uri" />
      <fixedUri value="https://www.england.nhs.uk/publication/nhs-genomic-medicine-service-record-of-discussion-form" />
    </element>
    <element id="Consent.provision">
      <path value="Consent.provision" />
      <definition value="Used to reference the ServiceRequest the Consent applies to. SHALL be present where the consent only applies to a specific test." />
    </element>
    <element id="Consent.provision.data:iData">
      <path value="Consent.provision.data" />
      <sliceName value="iData" />
    </element>
    <element id="Consent.provision.data:iData.reference">
      <path value="Consent.provision.data.reference" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-ServiceRequest-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
  </differential>
</StructureDefinition>