PackagesCanonicalsLogsProblems
    Packages
    fi.kela.kanta.gen.r4@1.0.0
    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: 7
  signature: {index: 118}
  implicitRules: {index: 2}
  recorded: {short: Laatimis-/tallennusaika, index: 8}
  agent:
    index: 18
    elements:
      role:
        binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
        index: 19
      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: 20
    required: [role]
    slicing:
      rules: open
      discriminator:
      - {path: role.coding.code, type: value}
      min: null
      slices:
        ActiveCustodian:
          match:
            role:
              coding: {code: '11'}
          schema:
            short: 'Aktiivi rekisterinpitäjän tiedot '
            index: 105
            elements:
              role:
                index: 106
                elements:
                  coding:
                    index: 107
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 108
                      code:
                        pattern: {type: Code, value: '11'}
                        index: 109
                      display: {index: 110}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    index: 111
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 112
                      value: {index: 113}
                    required: [value, system]
                  display: {index: 114}
                required: [identifier, display]
            required: [role]
        Patient:
          match:
            role:
              coding: {code: '3'}
          schema:
            short: Asiakas tai potilas
            _required: true
            index: 21
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 22
                elements:
                  coding:
                    index: 23
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 24
                      code:
                        pattern: {type: Code, value: '3'}
                        index: 25
                      display: {index: 26}
                    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: 27
                elements:
                  reference: {index: 28}
                required: [reference]
            required: [role]
        Practitioner:
          match:
            role:
              coding: {code: '2'}
          schema:
            short: Mitätöinnin tekijä
            _required: true
            index: 29
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 30
                elements:
                  coding:
                    index: 31
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 32
                      code:
                        pattern: {type: Code, value: '2'}
                        index: 33
                      display: {index: 34}
                    required: [display, system, code]
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2']
                index: 35
                elements:
                  reference: {short: Viittaus käytettävään resurssiin, index: 36}
                required: [reference]
            required: [role]
        ServiceProvider:
          match:
            role:
              coding: {code: '13'}
          schema:
            short: Palveluntuottaja
            index: 65
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 66
                elements:
                  coding:
                    index: 67
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 68
                      code:
                        pattern: {type: Code, value: '13'}
                        index: 69
                      display: {index: 70}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    index: 71
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 72
                      value: {index: 73}
                    required: [value, system]
                  display: {index: 74}
                required: [identifier, display]
            required: [role]
        ServiceDeliverer:
          match:
            role:
              coding: {code: '15'}
          schema:
            short: Alihankkijana toimiva palveluntuottaja
            index: 75
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 76
                elements:
                  coding:
                    index: 77
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 78
                      code:
                        pattern: {type: Code, value: '15'}
                        index: 79
                      display: {index: 80}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    index: 81
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 82
                      value: {index: 83}
                    required: [value, system]
                  display: {index: 84}
                required: [identifier, display]
            required: [role]
        PractitionerOrganizationUnit:
          match:
            role:
              coding: {code: '7'}
          schema:
            short: Palveluyksikkö
            index: 37
            elements:
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 38
                elements:
                  coding:
                    index: 39
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 40
                      code:
                        pattern: {type: Code, value: '7'}
                        index: 41
                      display: {index: 42}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    index: 43
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 44
                      value: {index: 45}
                    required: [value, system]
                  display: {index: 46}
                required: [identifier, display]
            required: [role]
        HostOrganization:
          match:
            role:
              coding: {code: '8'}
          schema:
            short: Isännän tiedot
            index: 95
            elements:
              role:
                index: 96
                elements:
                  coding:
                    index: 97
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 98
                      code:
                        pattern: {type: Code, value: '8'}
                        index: 99
                      display: {index: 100}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    index: 101
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 102
                      value: {index: 103}
                    required: [value, system]
                  display: {index: 104}
                required: [identifier, display]
            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:
                elements:
                  identifier:
                    index: 61
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 62
                      value: {index: 63}
                    required: [value, system]
                  display: {index: 64}
                required: [identifier, display]
            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]
        ServiceOrganizer:
          match:
            role:
              coding: {code: '10'}
          schema:
            short: Palvelunjärjestäjä
            index: 85
            elements:
              role:
                index: 86
                elements:
                  coding:
                    index: 87
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 88
                      code:
                        pattern: {type: Code, value: '10'}
                        index: 89
                      display: {index: 90}
                    required: [display, system, code]
                required: [coding]
              who:
                elements:
                  identifier:
                    index: 91
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 92
                      value: {index: 93}
                    required: [value, system]
                  display: {index: 94}
                required: [identifier, display]
            required: [role]
  policy: {index: 9}
  reason: {index: 11}
  activity:
    short: Mitätöinnin syy
    index: 12
    elements:
      coding:
        short: Mitätöinnin syy
        index: 13
        elements:
          system: {short: Käytettävä koodisto, index: 14}
          code: {short: Mitätöinnin syyn koodiarvo, index: 15}
          display: {short: Mitätöinnin syy, index: 16}
      text: {short: Mitätöinnin syy, index: 17}
  target:
    elements:
      reference: {short: Mitätöitävän pääresurssi-instanssin looginen id, index: 4}
      display: {short: Nimeke, index: 5}
    required: [reference]
  location: {index: 10}
  entity:
    index: 115
    elements:
      role:
        pattern: {type: Code, value: removal}
        index: 116
      what:
        elements:
          reference: {short: Mitätöitävän resurssi-instanssin looginen id, index: 117}
        required: [reference]
  text: {index: 3}
package_version: 1.0.0
class: profile
kind: resource
url: https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenanceV2
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: 3.0.0
required: [entity]