PackagesCanonicalsLogsProblems
    Packages
    fi.kela.kanta.gen.r4@1.0.0-rc7
    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:
        pattern: {type: Canonical, value: 'https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenanceV2'}
        index: 1
    required: [profile]
  occurred:
    choices: []
    index: 8
  signature: {index: 79}
  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:
            short: Palveluyksikkö
            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:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
                index: 44
                elements:
                  identifier:
                    index: 45
                    elements:
                      system: {index: 46}
                    required: [system]
                required: [identifier]
            required: [role]
        Device:
          match:
            role:
              coding: {code: '4'}
          schema:
            short: Mitätöinnissä käytetty ohjelmisto
            _required: true
            index: 47
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 48
                elements:
                  coding:
                    index: 49
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 50
                      code:
                        pattern: {type: Code, value: '4'}
                        index: 51
                      display: {index: 52}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice']
                index: 53
                elements:
                  reference: {short: Viittaus käytettävään resurssiin, index: 54}
                required: [reference]
            required: [role]
        Custodian:
          match:
            role:
              coding: {code: '1'}
          schema:
            short: Rekisterinpitäjä
            index: 55
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 56
                elements:
                  coding:
                    index: 57
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 58
                      code:
                        pattern: {type: Code, value: '1'}
                        index: 59
                      display: {index: 60}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
                index: 61
            required: [role]
        ServiceProvider:
          match:
            role:
              coding: {code: '13'}
          schema:
            short: Palveluntuottaja
            index: 62
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 63
                elements:
                  coding:
                    index: 64
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 65
                      code:
                        pattern: {type: Code, value: '13'}
                        index: 66
                      display: {index: 67}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
                index: 68
            required: [role]
        ServiceDeliverer:
          match:
            role:
              coding: {code: '15'}
          schema:
            short: Alihankkijana toimiva palveluntuottaja
            index: 69
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 70
                elements:
                  coding:
                    index: 71
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 72
                      code:
                        pattern: {type: Code, value: '15'}
                        index: 73
                      display: {index: 74}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
                index: 75
            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: 76
    elements:
      role:
        pattern: {type: Code, value: removal}
        index: 77
      what:
        elements:
          reference: {short: Mitätöitävän resurssi-instanssin looginen id, index: 78}
        required: [reference]
  text: {index: 3}
package_version: 1.0.0-rc7
class: profile
kind: resource
url: https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenanceV2
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: 1.0.0
required: [entity]