PackagesCanonicalsLogsProblems
    Packages
    koppeltaalv2.00@0.15.0
    http://koppeltaal.nl/fhir/StructureDefinition/KT2RelatedPerson
description: The RelatedPerson resource represents an individual who has a personal or professional relationship with a patient and may be involved in their care. This includes family members, caregivers, legal guardians, and other support persons who assist in the patient's therapy and treatment. The profile extends the NlcoreContactPerson profile with Koppeltaal-specific requirements.
package_name: koppeltaalv2.00
derivation: constraint
name: KT2_RelatedPerson
type: RelatedPerson
elements:
  patient:
    type: Reference
    refers: ['http://koppeltaal.nl/fhir/StructureDefinition/KT2Patient']
    index: 4
  name:
    index: 7
    slicing:
      slices:
        nameInformation:
          match: {}
          schema: {index: 8}
  birthDate: {index: 10}
  relationship:
    index: 5
    slicing:
      rules: closed
      discriminator:
      - {path: $this, type: value}
      min: 1
      slices:
        role:
          match: {}
          schema:
            constraint:
              kt2-role-display-validation:
                human: Display values for role codes 21 and 24 (COD472) must match the CodeSystem definitions exactly
                source: http://koppeltaal.nl/fhir/StructureDefinition/KT2RelatedPerson
                severity: error
                expression: |-
                  coding.where(system='urn:oid:2.16.840.1.113883.2.4.3.11.22.472').all(
                    (code='23' and display='Contactpersoon') or
                    (code='24' and display='Wettelijke vertegenwoordiger') or
                    code!='23' and code!='24'
                  )
            index: 6
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        resource-origin:
          match: {url: null}
          schema: {type: Extension, url: 'http://koppeltaal.nl/fhir/StructureDefinition/resource-origin', index: 1}
          min: 0
          max: 1
  photo: {index: 11}
  active: {index: 3}
  identifier: {index: 2}
  gender: {index: 9}
package_version: 0.15.0
extensions:
  resource-origin: {url: 'http://koppeltaal.nl/fhir/StructureDefinition/resource-origin', min: 0, max: 1, type: Extension, index: 1}
class: profile
kind: resource
url: http://koppeltaal.nl/fhir/StructureDefinition/KT2RelatedPerson
base: http://nictiz.nl/fhir/StructureDefinition/nl-core-ContactPerson
version: null
required: [gender, relationship, name, identifier, birthDate, active]