PackagesCanonicalsLogsProblems
    Packages
    fi.kela.kanta.pta.ajanvaraus.r4@1.0.0-rc3
    https://pta.kanta.fi/fhir/StructureDefinition/AppointmentMitatointiProvenance
description: Ajanvarauksen mitätöinnissä käytettävä Provenance-profiili.
package_name: fi.kela.kanta.pta.ajanvaraus.r4
derivation: constraint
name: AppointmentMitatointiProvenance
type: Provenance
elements:
  meta:
    index: 1
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://pta.kanta.fi/fhir/StructureDefinition/AppointmentMitatointiProvenance'}
        index: 2
    required: [profile]
  occurred:
    choices: []
    index: 26
  signature: {index: 274}
  recorded: {short: Laatimis-/tallennusaika, index: 27}
  agent:
    index: 43
    elements:
      role:
        binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
        index: 44
        elements:
          id: {index: 45}
          text: {index: 46}
      who:
        elements:
          id: {index: 47}
          type: {index: 48}
    required: [role]
    slicing:
      rules: closed
      discriminator:
      - {path: role.coding.code, type: value}
      min: null
      slices:
        Palvelunjarjestaja:
          match:
            role:
              coding: {code: '10'}
          schema:
            _required: true
            index: 193
            elements:
              id: {index: 194}
              type: {index: 195}
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 196
                elements:
                  id: {index: 197}
                  coding:
                    index: 198
                    elements:
                      id: {index: 199}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 200
                      version: {index: 201}
                      code:
                        pattern: {type: Code, value: '10'}
                        index: 202
                      display: {index: 203}
                      userSelected: {index: 204}
                    required: [display, system, code]
                  text: {index: 205}
                required: [coding]
              who:
                elements:
                  id: {index: 206}
                  reference: {index: 207}
                  type: {index: 208}
                  identifier:
                    index: 209
                    elements:
                      id: {index: 210}
                      use: {index: 211}
                      type: {index: 212}
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 213
                      value:
                        binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-organization'}
                        index: 214
                      period: {index: 215}
                      assigner: {index: 216}
                    required: [value, system]
                  display: {index: 217}
                required: [identifier, display]
              onBehalfOf: {index: 218}
            required: [role]
        Patient:
          match:
            role:
              coding: {code: '3'}
          schema:
            short: Asiakas tai potilas
            _required: true
            index: 49
            elements:
              id: {index: 50}
              type: {index: 51}
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 52
                elements:
                  id: {index: 53}
                  coding:
                    index: 54
                    elements:
                      id: {index: 55}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 56
                      version: {index: 57}
                      code:
                        pattern: {type: Code, value: '3'}
                        index: 58
                      display: {index: 59}
                      userSelected: {index: 60}
                    required: [display, system, code]
                  text: {index: 61}
                required: [coding]
              who:
                type: Reference
                refers: ['https://pta.kanta.fi/fhir/StructureDefinition/AppointmentPatient']
                index: 62
                elements:
                  id: {index: 63}
                  reference: {short: Viittaus käytettävään resurssiin, index: 64}
                  type: {index: 65}
                  identifier: {index: 66}
                  display: {index: 67}
                required: [reference]
              onBehalfOf: {index: 68}
            required: [role]
        Palveluntuottaja:
          match:
            role:
              coding: {code: '13'}
          schema:
            _required: true
            index: 115
            elements:
              id: {index: 116}
              type: {index: 117}
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 118
                elements:
                  id: {index: 119}
                  coding:
                    index: 120
                    elements:
                      id: {index: 121}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 122
                      version: {index: 123}
                      code:
                        pattern: {type: Code, value: '13'}
                        index: 124
                      display: {index: 125}
                      userSelected: {index: 126}
                    required: [display, system, code]
                  text: {index: 127}
                required: [coding]
              who:
                elements:
                  id: {index: 128}
                  reference: {index: 129}
                  type: {index: 130}
                  identifier:
                    index: 131
                    elements:
                      id: {index: 132}
                      use: {index: 133}
                      type: {index: 134}
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 135
                      value: {index: 136}
                      period: {index: 137}
                      assigner: {index: 138}
                    required: [value, system]
                  display: {index: 139}
                required: [identifier, display]
              onBehalfOf: {index: 140}
            required: [role]
        Practitioner:
          match:
            role:
              coding: {code: '2'}
          schema:
            short: Mitätöinnin tekijä
            _required: true
            index: 69
            elements:
              id: {index: 70}
              type: {index: 71}
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 72
                elements:
                  id: {index: 73}
                  coding:
                    index: 74
                    elements:
                      id: {index: 75}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 76
                      version: {index: 77}
                      code:
                        pattern: {type: Code, value: '2'}
                        index: 78
                      display: {index: 79}
                      userSelected: {index: 80}
                    required: [display, system, code]
                  text: {index: 81}
                required: [coding]
              who:
                type: Reference
                refers: ['https://pta.kanta.fi/fhir/StructureDefinition/AppointmentPractitioner']
                index: 82
                elements:
                  id: {index: 83}
                  reference: {short: Viittaus käytettävään resurssiin, index: 84}
                  type: {index: 85}
                  identifier: {index: 86}
                  display: {index: 87}
                required: [reference]
              onBehalfOf: {index: 88}
            required: [role]
        Isantaorganisaatio:
          match:
            role:
              coding: {code: '8'}
          schema:
            index: 167
            elements:
              id: {index: 168}
              type: {index: 169}
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 170
                elements:
                  id: {index: 171}
                  coding:
                    index: 172
                    elements:
                      id: {index: 173}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 174
                      version: {index: 175}
                      code:
                        pattern: {type: Code, value: '8'}
                        index: 176
                      display: {index: 177}
                      userSelected: {index: 178}
                    required: [display, system, code]
                  text: {index: 179}
                required: [coding]
              who:
                elements:
                  id: {index: 180}
                  reference: {index: 181}
                  type: {index: 182}
                  identifier:
                    index: 183
                    elements:
                      id: {index: 184}
                      use: {index: 185}
                      type: {index: 186}
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 187
                      value:
                        binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-organization'}
                        index: 188
                      period: {index: 189}
                      assigner: {index: 190}
                    required: [value, system]
                  display: {index: 191}
                required: [identifier]
              onBehalfOf: {index: 192}
            required: [role]
        Tallentajan_palveluyksikko:
          match:
            role:
              coding: {code: '7'}
          schema:
            index: 141
            elements:
              id: {index: 142}
              type: {index: 143}
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 144
                elements:
                  id: {index: 145}
                  coding:
                    index: 146
                    elements:
                      id: {index: 147}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 148
                      version: {index: 149}
                      code:
                        pattern: {type: Code, value: '7'}
                        index: 150
                      display: {index: 151}
                      userSelected: {index: 152}
                    required: [display, system, code]
                  text: {index: 153}
                required: [coding]
              who:
                elements:
                  id: {index: 154}
                  reference: {index: 155}
                  type: {index: 156}
                  identifier:
                    index: 157
                    elements:
                      id: {index: 158}
                      use: {index: 159}
                      type: {index: 160}
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 161
                      value:
                        binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-organization'}
                        index: 162
                      period: {index: 163}
                      assigner: {index: 164}
                    required: [value, system]
                  display: {index: 165}
                required: [identifier, display]
              onBehalfOf: {index: 166}
            required: [role]
        Ohjelmisto:
          match:
            role:
              coding: {code: '4'}
          schema:
            _required: true
            index: 245
            elements:
              id: {index: 246}
              type: {index: 247}
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 248
                elements:
                  id: {index: 249}
                  coding:
                    index: 250
                    elements:
                      id: {index: 251}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 252
                      version: {index: 253}
                      code:
                        short: Tiedot tuottanut ohjelmisto
                        pattern: {type: Code, value: '4'}
                        index: 254
                      display: {index: 255}
                      userSelected: {index: 256}
                    required: [display, system, code]
                  text: {index: 257}
                required: [coding]
              who:
                type: Reference
                refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice']
                index: 258
                elements:
                  id: {index: 259}
                  reference: {index: 260}
                  type: {index: 261}
                  identifier: {index: 262}
                  display: {index: 263}
                required: [reference]
              onBehalfOf: {index: 264}
            required: [role]
        Aktiivi_rekisterinpitaja:
          match:
            role:
              coding: {code: '11'}
          schema:
            index: 219
            elements:
              id: {index: 220}
              type: {index: 221}
              role:
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 222
                elements:
                  id: {index: 223}
                  coding:
                    index: 224
                    elements:
                      id: {index: 225}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 226
                      version: {index: 227}
                      code:
                        pattern: {type: Code, value: '11'}
                        index: 228
                      display: {index: 229}
                      userSelected: {index: 230}
                    required: [display, system, code]
                  text: {index: 231}
                required: [coding]
              who:
                elements:
                  id: {index: 232}
                  reference: {index: 233}
                  type: {index: 234}
                  identifier:
                    index: 235
                    elements:
                      id: {index: 236}
                      use: {index: 237}
                      type: {index: 238}
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 239
                      value: {index: 240}
                      period: {index: 241}
                      assigner: {index: 242}
                    required: [value, system]
                  display: {index: 243}
                required: [identifier, display]
              onBehalfOf: {index: 244}
            required: [role]
        Rekisterinpitaja:
          match:
            role:
              coding: {code: '1'}
          schema:
            short: Rekisterinpitäjä
            _required: true
            index: 89
            elements:
              id: {index: 90}
              type: {index: 91}
              role:
                short: Rekisterinpitäjä
                binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'}
                index: 92
                elements:
                  id: {index: 93}
                  coding:
                    short: Kanta Provenance Role Category
                    index: 94
                    elements:
                      id: {index: 95}
                      system:
                        pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'}
                        index: 96
                      version: {index: 97}
                      code:
                        pattern: {type: Code, value: '1'}
                        index: 98
                      display: {index: 99}
                      userSelected: {index: 100}
                    required: [display, system, code]
                  text: {index: 101}
                required: [coding]
              who:
                elements:
                  id: {index: 102}
                  reference: {index: 103}
                  type: {index: 104}
                  identifier:
                    short: Rekisterinpitäjän tunniste
                    index: 105
                    elements:
                      id: {index: 106}
                      use: {index: 107}
                      type: {index: 108}
                      system:
                        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
                        index: 109
                      value: {short: Rekisterinpitäjän tunnus, index: 110}
                      period: {index: 111}
                      assigner: {index: 112}
                    required: [value, system]
                  display: {short: Rekisterinpitäjän nimi, index: 113}
                required: [identifier, display]
              onBehalfOf: {index: 114}
            required: [role]
  policy: {index: 28}
  reason:
    index: 30
    elements:
      id: {index: 31}
      coding: {index: 32}
  activity:
    short: Mitätöinnin syy
    binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-deletereason'}
    index: 33
    elements:
      id: {index: 34}
      coding:
        short: Mitätöinnin syy
        index: 35
        elements:
          id: {index: 36}
          system: {short: Käytettävä koodisto, index: 37}
          version: {index: 38}
          code: {short: Mitätöinnin syyn koodiarvo, index: 39}
          display: {short: Mitätöinnin syy, index: 40}
          userSelected: {index: 41}
        required: [display, system, code]
      text: {short: Mitätöinnin syy, index: 42}
    required: [coding, text]
  extension:
    array: true
    min: 3
    index: 4
    slicing:
      slices:
        status:
          match: {}
          schema:
            type: Extension
            isModifier: false
            url: https://gen.kanta.fi/fhir/StructureDefinition/extension/Status
            index: 5
            elements:
              value:
                choices: []
                index: 7
        registerSpecifier:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/RegisterSpecifier', index: 8}
        registerType:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/RegisterType', index: 9}
          min: 1
          max: 1
        serviceEvent:
          match: {}
          schema:
            type: Extension
            isModifier: false
            url: https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent
            index: 10
            elements:
              id: {index: 11}
              value:
                choices: []
                index: 13
              value[x]:
                elements:
                  id: {index: 14}
                  use: {index: 15}
                  type: {index: 16}
                  period: {index: 17}
                  assigner: {index: 18}
            required: [value]
  language: {index: 3}
  id: {short: Resurssin yksilöivä tunnus, index: 0}
  target:
    short: Mitätöitävän resurssin yksilöivä tunniste
    index: 19
    elements:
      id: {index: 20}
      reference: {short: Mitätöitävän pääresurssi-instanssin looginen id, index: 21}
      type: {index: 22}
      identifier: {index: 23}
      display:
        short: Nimike
        pattern: {type: String, value: Ajanvaraus}
        index: 24
    required: [reference]
  location: {index: 29}
  entity:
    index: 265
    elements:
      id: {index: 266}
      role:
        pattern: {type: Code, value: removal}
        index: 267
      what:
        elements:
          id: {index: 268}
          reference: {short: Mitätöitävän resurssi-instanssin looginen id, index: 269}
          type: {index: 270}
          identifier: {index: 271}
          display: {index: 272}
        required: [reference]
      agent: {index: 273}
package_version: 1.0.0-rc3
extensions:
  status:
    url: https://gen.kanta.fi/fhir/StructureDefinition/extension/Status
    type: Extension
    isModifier: false
    index: 5
    elements:
      value:
        choices: []
        index: 7
  registerSpecifier: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/RegisterSpecifier', type: Extension, isModifier: false, index: 8}
  registerType: {url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/RegisterType', min: 1, max: 1, type: Extension, isModifier: false, index: 9}
  serviceEvent:
    url: https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent
    type: Extension
    isModifier: false
    index: 10
    elements:
      id: {index: 11}
      value:
        choices: []
        index: 13
      value[x]:
        elements:
          id: {index: 14}
          use: {index: 15}
          type: {index: 16}
          period: {index: 17}
          assigner: {index: 18}
    required: [value]
class: profile
kind: resource
url: https://pta.kanta.fi/fhir/StructureDefinition/AppointmentMitatointiProvenance
base: http://hl7.org/fhir/StructureDefinition/Provenance
version: 0.5.0
required: [activity, language, entity]