PackagesCanonicalsLogsProblems
    Packages
    uk.nhsengland.genomics.r4@0.6.1-pre-release
    https://fhir.nhs.uk/StructureDefinition/NHSEngland-Consent-GenomicsPCF
description: 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).
package_name: uk.nhsengland.genomics.r4
derivation: constraint
name: NHSEngland_Consent_GenomicsPCF
type: Consent
elements:
  patient:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'https://fhir.nhs.uk/StructureDefinition/NHSEngland-Patient-Genomics']
    index: 10
  category:
    index: 6
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        categoryRoD:
          match:
            coding:
            - {code: RESEARCH, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode', display: research information access}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: RESEARCH, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode', display: research information access}
            index: 7
          max: 1
        categoryUGRDataAccess:
          match:
            coding:
            - {code: INFA, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode', display: information access}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: INFA, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode', display: information access}
            index: 8
          max: 1
        categoryUGRDataSharing:
          match:
            coding:
            - {code: IDSCL, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode', display: information disclosure}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: IDSCL, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode', display: information disclosure}
            index: 9
          max: 1
  provision:
    index: 23
    elements:
      data:
        index: 24
        slicing:
          slices:
            iData:
              match: {}
              schema:
                index: 24
                elements:
                  reference:
                    type: Reference
                    refers: ['http://hl7.org/fhir/StructureDefinition/Resource', 'https://fhir.nhs.uk/StructureDefinition/NHSEngland-ServiceRequest-Genomics']
                    index: 25
      provision:
        index: 26
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: null
          slices:
            provisionUGR:
              match: {}
              schema:
                index: 27
                elements:
                  purpose:
                    index: 33
                    slicing:
                      rules: open
                      discriminator:
                      - {path: code, type: value}
                      min: 1
                      slices:
                        purposeDirectCare:
                          match: {code: TREAT}
                          schema:
                            index: 34
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActReason'}
                                index: 35
                              code:
                                pattern: {type: Code, value: TREAT}
                                index: 36
                            required: [system, code]
                        purposeResearch:
                          match: {code: HRESCH}
                          schema:
                            index: 37
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActReason'}
                                index: 38
                              code:
                                pattern: {type: Code, value: HRESCH}
                                index: 39
                            required: [system, code]
                        purposePopulationHealth:
                          match: {code: POPHLTH}
                          schema:
                            index: 40
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActReason'}
                                index: 41
                              code:
                                pattern: {type: Code, value: POPHLTH}
                                index: 42
                            required: [system, code]
                        purposeManagementInformation:
                          match: {code: HOPERAT}
                          schema:
                            index: 43
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActReason'}
                                index: 44
                              code:
                                pattern: {type: Code, value: HOPERAT}
                                index: 45
                            required: [system, code]
                        purposeFamilyLinkage:
                          match: {code: FAMRQT}
                          schema:
                            index: 46
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActReason'}
                                index: 47
                              code:
                                pattern: {type: Code, value: FAMRQT}
                                index: 48
                            required: [system, code]
                  dataPeriod: {index: 51}
                  type: {index: 28}
                  class: {index: 49}
                  code: {index: 50}
                  action: {index: 31}
                  period: {index: 29}
                  securityLabel: {index: 32}
                  actor: {index: 30}
                  data: {index: 52}
                required: [type, purpose]
  organization:
    index: 13
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        organizationUGR:
          match:
            identifier: {value: X26, system: 'https://fhir.nhs.uk/Id/ods-organization-code'}
          schema:
            pattern:
              type: Reference
              value:
                identifier: {value: X26, system: 'https://fhir.nhs.uk/Id/ods-organization-code'}
            index: 14
          max: 1
  source:
    choices: []
    index: 16
  scope:
    elements:
      coding:
        index: 1
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: null
          slices:
            codingGenomics:
              match: {}
              schema:
                index: 2
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/consentscope'}
                    index: 3
                  code:
                    pattern: {type: Code, value: patient-privacy}
                    index: 4
                  display:
                    pattern: {type: String, value: Privacy Consent}
                    index: 5
  policy:
    index: 17
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        policyRoD:
          match: {}
          schema:
            index: 18
            elements:
              authority:
                pattern: {type: Uri, value: 'https://www.england.nhs.uk'}
                index: 19
              uri:
                pattern: {type: Uri, value: 'https://www.england.nhs.uk/publication/nhs-genomic-medicine-service-record-of-discussion-form'}
                index: 20
        policyUGR:
          match: {}
          schema:
            index: 21
            elements:
              uri:
                pattern: {type: Uri, value: 'https://www.england.nhs.uk/wp-content/uploads/2018/05/nhs-england-privacy-notice-v1.77.pdf'}
                index: 22
  dateTime: {index: 11}
  status: {index: 0}
  performer:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://fhir.nhs.uk/StructureDefinition/NHSEngland-PractitionerRole-Genomics']
    index: 12
package_version: 0.6.1-pre-release
class: profile
kind: resource
url: https://fhir.nhs.uk/StructureDefinition/NHSEngland-Consent-GenomicsPCF
base: https://profiles.ihe.net/ITI/PCF/StructureDefinition/IHE.PCF.consentIntermediate
version: 0.3.0