PackagesCanonicalsLogsProblems
    Packages
    fi.kela.kanta.gen.r4.tahdonilmaisut@1.0.0-rc1
    https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/TahdonilmaisuProvenance
description: null
package_name: fi.kela.kanta.gen.r4.tahdonilmaisut
derivation: constraint
name: TahdonilmaisuProvenance
type: Provenance
elements:
  meta:
    index: 1
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/TahdonilmaisuProvenance'}
        index: 2
    required: [profile]
  occurred:
    choices: []
    index: 9
  signature: {index: 90}
  implicitRules: {index: 3}
  recorded: {short: Luontiaika, index: 10}
  agent:
    index: 15
    slicing:
      rules: closed
      discriminator:
      - {path: role.coding.code, type: value}
      min: null
      slices:
        Custodian:
          match:
            role:
              coding: {code: '1'}
          schema:
            short: Rekisterinpitäjä
            _required: true
            index: 16
            elements:
              role:
                short: Rekisterinpitäjä
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 17
                elements:
                  coding:
                    short: Kanta Provenance Role Category
                    index: 18
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 19
                      code:
                        short: Roolin koodiarvo
                        pattern: {type: Code, value: '1'}
                        index: 20
                      display: {short: Koodiarvon mukainen kuvaus, index: 21}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    short: Rekisterinpitäjän tunniste
                    index: 22
                    elements:
                      value:
                        short: Rekisterinpitäjän tunnus
                        pattern: {type: String, value: 1.2.246.10.2462460.19.1}
                        index: 23
                    required: [value]
                  display:
                    short: Rekisterinpitäjän nimi
                    pattern: {type: String, value: Kansaneläkelaitos}
                    index: 24
                required: [identifier, display]
            required: [role]
        Device:
          match:
            role:
              coding: {code: '4'}
          schema:
            short: Resurssin tuottanut tietojärjestelmä
            _required: true
            index: 25
            elements:
              role:
                short: Resurssin tuottanut ohjelmisto
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 26
                elements:
                  coding:
                    short: Kanta Provenance Role Category
                    index: 27
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 28
                      version: {index: 29}
                      code:
                        short: Roolin koodiarvo
                        pattern: {type: Code, value: '4'}
                        index: 30
                      display: {short: Koodiarvon mukainen kuvaus, index: 31}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice']
                index: 32
                elements:
                  reference: {short: Viittaus käytettävään resurssiin, index: 33}
                  type: {index: 34}
                  identifier: {index: 35}
                  display: {index: 36}
                required: [reference]
            required: [role]
        Patient:
          match:
            role:
              coding: {code: '3'}
          schema:
            short: Asiakas
            _required: true
            index: 37
            elements:
              role:
                short: Asiakas
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 38
                elements:
                  coding:
                    short: Kanta Provenance Role Category
                    index: 39
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 40
                      code:
                        short: Roolin koodiarvo
                        pattern: {type: Code, value: '3'}
                        index: 41
                      display: {short: Koodiarvon mukainen kuvaus, index: 42}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID']
                index: 43
                elements:
                  reference: {short: Viittaus käytettävään resurssiin, index: 44}
                required: [reference]
            required: [role]
        RecordedByPatient:
          match:
            role:
              coding: {code: '12'}
          schema:
            short: Tahdonilmaisun tallentajana asiakas
            index: 45
            elements:
              role:
                short: Luovutusluvan tallentanut asiakas
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 46
                elements:
                  coding:
                    short: Kanta Provenance Role Category
                    index: 47
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 48
                      code:
                        short: Roolin koodiarvo
                        pattern: {type: Code, value: '12'}
                        index: 49
                      display: {short: Koodiarvon mukainen kuvaus, index: 50}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID']
                index: 51
                elements:
                  reference: {short: Viittaus käytettävään resurssiin, index: 52}
                required: [reference]
            required: [role]
        RecordedByRelatedPerson:
          match:
            role:
              coding: {code: '5'}
          schema:
            short: Tahdonilmaisun tallentajana laillinen ediustaja
            index: 53
            elements:
              role:
                short: Tahdonilmaisun tallentanut puolesta-asioija
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 54
                elements:
                  coding:
                    index: 55
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 56
                      code:
                        short: Roolin koodiarvo
                        pattern: {type: Code, value: '5'}
                        index: 57
                      display: {short: Koodiarvon mukainen kuvaus, index: 58}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaRelatedPerson']
                index: 59
                elements:
                  reference: {index: 60}
                required: [reference]
            required: [role]
        RecordedByPractitioner:
          match:
            role:
              coding: {code: '2'}
          schema:
            short: Tahdonilmaisun tallentajana ammattihenkilö
            index: 61
            elements:
              role:
                short: Tahdonilmaisun tallentanut ammattihenkilö
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 62
                elements:
                  coding:
                    short: Kanta Provenance Role Category
                    index: 63
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 64
                      code:
                        short: Roolin koodiarvo
                        pattern: {type: Code, value: '2'}
                        index: 65
                      display: {short: Koodiarvon mukainen kuvaus, index: 66}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2']
                index: 67
                elements:
                  reference: {short: Viittaus käytettävään resurssiin, index: 68}
                required: [reference]
            required: [role]
        PractitionerOrganizationUnit:
          match:
            role:
              coding: {code: '7'}
          schema:
            short: Tahdonilmaisun talletaneen ammattilaisen palveluyksikkö
            index: 69
            elements:
              role:
                short: Tahdonilmaisun tallentaneen ammattihenkilön palveluyksikkö
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 70
                elements:
                  coding:
                    short: Kanta Provenance Role Category
                    index: 71
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 72
                      code:
                        short: Roolin koodiarvo
                        pattern: {type: Code, value: '7'}
                        index: 73
                      display: {short: Koodiarvon mukainen kuvaus, index: 74}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    short: Luovutusluvan tallentaneen ammattihenkilön palveluyksikkö
                    index: 75
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 76
                      value: {short: Palveluyksikön tunnus, index: 77}
                    required: [value, system]
                  display: {short: Organisaation nimi, index: 78}
                required: [identifier, display]
            required: [role]
        ServiceProvider:
          match:
            role:
              coding: {code: '13'}
          schema:
            short: Palvelunantaja
            _required: true
            index: 79
            elements:
              role:
                short: Palvelunantaja
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 80
                elements:
                  coding:
                    short: Kanta Provenance Role Category
                    index: 81
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 82
                      code:
                        short: Roolin koodiarvo
                        pattern: {type: Code, value: '13'}
                        index: 83
                      display: {short: Koodiarvon mukainen kuvaus, index: 84}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    short: Palvelunantajan tunniste
                    index: 85
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 86
                      value: {short: Palvelunantajan tunnus, index: 87}
                    required: [value]
                  display: {short: Organisaation nimi, index: 88}
                required: [identifier, display]
            required: [role]
  policy: {index: 11}
  reason: {index: 13}
  activity: {index: 14}
  language:
    short: Tahdonilmaisun kieli
    binding: {strength: required, valueSet: 'https://gen.kanta.fi/fhir/tahdonilmaisut/ValueSet/figen-vs-languages-soteconsent'}
    index: 4
  id: {short: Resurssin yksilöivä tunnus, index: 0}
  target:
    short: Consent-resurssi
    index: 6
    elements:
      reference: {short: Viittaus Consent-resurssin yksilöivään tunnukseen, index: 7}
    required: [reference]
  location: {index: 12}
  entity: {index: 89}
  text: {index: 5}
package_version: 1.0.0-rc1
class: profile
kind: resource
url: https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/TahdonilmaisuProvenance
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: null