PackagesCanonicalsLogsProblems
    Packages
    fhir.r4.nhsengland.programme@0.2.2-pre-release
    https://fhir.nhs.uk/England/StructureDefinition/England-PersonalRelationship-National-Proxy
description: PersonalRelationship from National Proxy elaboration. This is a profile on RelatedPerson to match FHIR R6 PersonalRelationship
package_name: fhir.r4.nhsengland.programme
derivation: constraint
name: EnglandPersonalRelationshipNationalProxy
type: RelatedPerson
elements:
  patient:
    short: The patient this person is related to. R6 PersonalRelationship.target
    index: 6
    elements:
      identifier: {type: Identifier, index: 7}
  address: {index: 16}
  name: {index: 12}
  birthDate: {mustSupport: true, index: 15}
  relationship:
    array: true
    min: 1
    max: 3
    index: 8
    elements:
      coding:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype'}
        index: 9
    slicing:
      rules: openAtEnd
      discriminator:
      - {path: coding.system, type: pattern}
      min: 1
      max: 3
      slices:
        Type:
          match:
            coding: {system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
          schema:
            index: 10
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: uri, value: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
                    type: uri
                    index: 11
                required: [system]
  extension:
    index: 0
    slicing:
      slices:
        contactPreference:
          match: {}
          schema: {index: 0}
          max: 0
        copyCorrespondenceIndicator:
          match: {}
          schema: {index: 1}
          max: 0
        englandExtensionPersonalRelationship:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://fhir.nhs.uk/England/StructureDefinition/England-Extension-PersonalRelationship', index: 2}
  photo: {index: 17}
  active: {index: 5}
  communication: {index: 18}
  identifier:
    short: This relates to R6 PersonalRelationship.source, note reference is not supported
    mustSupport: true
    index: 3
    slicing:
      rules: closed
      discriminator:
      - {path: system, type: pattern}
      min: null
      max: 1
      slices:
        NHSNumber:
          match: {system: null}
          schema: {type: Identifier, index: 4}
          max: 1
  telecom: {index: 13}
  gender: {index: 14}
package_version: 0.2.2-pre-release
extensions:
  contactPreference: {url: null, max: 0, index: 0}
  copyCorrespondenceIndicator: {url: null, max: 0, index: 1}
  englandExtensionPersonalRelationship: {url: 'https://fhir.nhs.uk/England/StructureDefinition/England-Extension-PersonalRelationship', type: Extension, isModifier: false, index: 2}
class: profile
kind: resource
url: https://fhir.nhs.uk/England/StructureDefinition/England-PersonalRelationship-National-Proxy
base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson
version: 0.0.1-current
required: [relationship]