PackagesCanonicalsLogsProblems
    Packages
    fi.kela.kanta.gen.r4@1.0.0-rc5
    https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenanceV2
description: Kanta-palveluissa käytettävä Provenance-profiili. Profiilia käytetään resurssin mitätöimisessä.
package_name: fi.kela.kanta.gen.r4
derivation: constraint
name: MitatointiProvenanceV2
type: Provenance
elements:
  meta:
    index: 0
    elements:
      profile: {index: 1}
    required: [profile]
  occurred:
    choices: []
    index: 8
  signature: {index: 57}
  implicitRules: {index: 2}
  recorded: {short: Laatimis-/tallennusaika, index: 9}
  agent:
    index: 19
    elements:
      role:
        binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
        index: 20
      who:
        type: Reference
        refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2']
        index: 21
    required: [role]
    slicing:
      rules: open
      discriminator:
      - {path: role.coding.code, type: value}
      min: null
      slices:
        Patient:
          match:
            role:
              coding: {code: '3'}
          schema:
            short: Asiakas tai potilas
            _required: true
            index: 22
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 23
                elements:
                  coding:
                    index: 24
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 25
                      code:
                        pattern: {type: Code, value: '3'}
                        index: 26
                      display: {index: 27}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2']
                index: 28
                elements:
                  reference: {index: 29}
                required: [reference]
            required: [role]
        Practitioner:
          match:
            role:
              coding: {code: '2'}
          schema:
            short: Mitätöinnin tekijä
            _required: true
            index: 30
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 31
                elements:
                  coding:
                    index: 32
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 33
                      code:
                        pattern: {type: Code, value: '2'}
                        index: 34
                      display: {index: 35}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2']
                index: 36
                elements:
                  reference: {short: Viittaus käytettävään resurssiin, index: 37}
                required: [reference]
            required: [role]
        PractitionerOrganizationUnit:
          match:
            role:
              coding: {code: '7'}
          schema:
            index: 38
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 39
                elements:
                  coding:
                    index: 40
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 41
                      code:
                        pattern: {type: Code, value: '7'}
                        index: 42
                      display: {index: 43}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    index: 44
                    elements:
                      system: {index: 45}
                    required: [system]
                required: [identifier]
            required: [role]
        Device:
          match:
            role:
              coding: {code: '4'}
          schema:
            short: Mitätöinnissä käytetty ohjelmisto
            _required: true
            index: 46
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 47
                elements:
                  coding:
                    index: 48
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 49
                      code:
                        pattern: {type: Code, value: '4'}
                        index: 50
                      display: {index: 51}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice']
                index: 52
                elements:
                  reference: {short: Viittaus käytettävään resurssiin, index: 53}
                required: [reference]
            required: [role]
  policy: {index: 10}
  reason: {index: 12}
  activity:
    short: Mitätöinnin syy
    index: 13
    elements:
      coding:
        short: Mitätöinnin syy
        index: 14
        elements:
          system: {short: Käytettävä koodisto, index: 15}
          code: {short: Mitätöinnin syyn koodiarvo, index: 16}
          display: {short: Mitätöinnin syy, index: 17}
      text: {short: Mitätöinnin syy, index: 18}
  target:
    index: 4
    elements:
      reference: {short: Mitätöitävän pääresurssi-instanssin looginen id, index: 5}
      display: {short: Nimeke, index: 6}
    required: [reference]
  location: {index: 11}
  entity:
    index: 54
    elements:
      role:
        pattern: {type: Code, value: removal}
        index: 55
      what:
        elements:
          reference: {short: Mitätöitävän resurssi-instanssin looginen id, index: 56}
        required: [reference]
  text: {index: 3}
package_version: 1.0.0-rc5
class: profile
kind: resource
url: https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenanceV2
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: '0.1'
required: [entity]