PackagesCanonicalsLogsProblems
    Packages
    fi.kela.kanta.pta.ajanvaraus.r4@0.1.0
    https://pta.kanta.fi/fhir/StructureDefinition/AppointmentBookerOnBehalfOf
description: Profiilia käytetään, kun ajanvarauksen on tehnyt asiakkaan puolesta-asioija.
package_name: fi.kela.kanta.pta.ajanvaraus.r4
derivation: constraint
name: AppointmentBookerOnBehalfOf
type: RelatedPerson
elements:
  patient:
    elements:
      reference: {index: 11}
      type: {index: 12}
      identifier: {index: 13}
      display: {index: 14}
    required: [reference]
  address: {index: 36}
  meta:
    index: 1
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://pta.kanta.fi/fhir/StructureDefinition/AppointmentBookerOnBehalfOf'}
        index: 2
    required: [profile]
  name:
    short: Puolesta-asioijan nimitiedot
    array: true
    min: 1
    max: 2
    index: 16
    slicing:
      rules: open
      discriminator:
      - {path: use, type: value}
      min: 1
      max: 2
      slices:
        OfficialName:
          match: {use: official}
          schema:
            short: Ajanvarauksen tekijän virallinen nimi
            _required: true
            index: 17
            elements:
              use:
                pattern: {type: Code, value: official}
                index: 18
              text: {index: 19}
              family: {short: Ajanvarauksen tekijän sukunimi, index: 20}
              given: {short: Ajanvarauksen tekijän etunimi, array: true, min: 1, max: 4, index: 21}
              prefix: {index: 22}
              suffix: {index: 23}
              period: {index: 24}
            required: [given, family, use]
        NickName:
          match: {use: nickname}
          schema:
            short: Ajanvarauksen tekijän kutsumanimi
            index: 25
            elements:
              use:
                pattern: {type: Code, value: nickname}
                index: 26
              text: {index: 27}
              family: {index: 28}
              given: {short: Ajanvarauksen tekijän kutsumanimi, index: 29}
              prefix: {index: 30}
              suffix: {index: 31}
              period: {index: 32}
            required: [given, use]
  birthDate: {index: 35}
  relationship: {index: 15}
  photo: {index: 37}
  active: {index: 10}
  communication: {index: 39}
  id: {index: 0}
  identifier:
    short: Ajanvarauksen tekijän henkilötunnus
    index: 3
    elements:
      use:
        pattern: {type: Code, value: official}
        index: 4
      type: {index: 5}
      system:
        pattern: {type: Uri, value: 'urn:oid:1.2.246.21'}
        index: 6
      value: {short: Henkilötunnus, index: 7}
      period: {index: 8}
      assigner: {index: 9}
    required: [value, system, use]
  telecom: {index: 33}
  gender: {index: 34}
  period: {index: 38}
package_version: 0.1.0
class: profile
kind: resource
url: https://pta.kanta.fi/fhir/StructureDefinition/AppointmentBookerOnBehalfOf
base: http://hl7.org/fhir/StructureDefinition/RelatedPerson
version: null
required: [id, name, identifier]