PackagesCanonicalsLogsProblems
    Packages
    fhir.r4.nhsengland.programme@0.2.2-pre-release
    https://fhir.nhs.uk/England/StructureDefinition/England-Consent-National-Proxy
description: Consent - National Proxy from [NHS England Confluence - NPA Confirm Consent](https://nhsd-confluence.digital.nhs.uk/display/NPA/Confirm+consent)
package_name: fhir.r4.nhsengland.programme
derivation: constraint
name: EnglandConsentNationalProxy
type: Consent
elements:
  status: {short: Status of permission, index: 0}
  category:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: coding.system, type: value}
      min: null
      slices:
        information-access:
          match:
            coding: {system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: INFA, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
            _required: true
            type: CodeableConcept
            index: 2
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
                    type: uri
                    index: 3
                  code:
                    pattern: {type: code, value: INFA}
                    type: code
                    index: 4
  patient:
    type: Reference
    short: Patient NHS number
    refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient']
    index: 5
    elements:
      identifier: {type: Identifier, index: 6}
    required: [identifier]
  performer:
    min: 1
    short: Proxy NHS number and GMP/GMC/SDS User ID if also verified by GP
    index: 7
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: 1
      max: 2
      slices:
        proxy:
          match: {type: RelatedPerson}
          schema:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson']
            _required: true
            index: 11
            elements:
              type:
                pattern: {type: uri, value: RelatedPerson}
                type: uri
                index: 12
              identifier: {type: Identifier, index: 13}
        verifier:
          match: {type: Practitioner}
          schema:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner']
            index: 14
            elements:
              type:
                pattern: {type: uri, value: Practitioner}
                type: uri
                index: 15
              identifier: {type: Identifier, short: TODO SDS-User-Id is not part of NHS Data Dictionary and so should not be present here as an Identifier., index: 16}
    array: true
    elements:
      identifier:
        index: 8
        elements:
          system: {index: 9}
          value: {index: 10}
        required: [system, value]
    max: 2
    required: [identifier]
  source:
    choices: []
    index: 18
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: 1
      slices:
        sourceReference:
          match: {}
          schema:
            choices: [sourceReference]
            _required: true
            index: 20
          min: 1
  sourceReference:
    type: Reference
    choiceOf: source
    refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-QuestionnaireResponse']
    index: 21
    slicing:
      slices:
        sourceReference:
          match: {}
          schema:
            type: Reference
            choiceOf: source
            refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-QuestionnaireResponse']
            _required: true
            index: 21
          min: 1
  verification:
    short: Basis for access
    index: 22
    elements:
      verifiedWith:
        type: Reference
        short: Patient (if consent-based) or RelatedPerson.relationship (if based on a relationship)
        refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson']
        index: 23
        elements:
          identifier: {type: Identifier, index: 24}
    required: [verifiedWith]
  provision:
    short: Requested services
    index: 25
    elements:
      type: {mustSupport: true, index: 26}
      actor:
        short: The proxies access is controlled by these provisions
        index: 27
        elements:
          reference:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson']
            index: 28
            elements:
              type: {index: 29}
              identifier: {type: Identifier, index: 30}
            required: [type]
    required: [actor]
package_version: 0.2.2-pre-release
class: profile
kind: resource
url: https://fhir.nhs.uk/England/StructureDefinition/England-Consent-National-Proxy
base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-Consent
version: 0.0.1-current
required: [patient, performer, provision, source, sourceReference]