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: id: {short: Resurssin yksilöivä tunnus, index: 0} meta: index: 1 elements: profile: pattern: {type: Canonical, value: 'https://pta.kanta.fi/fhir/StructureDefinition/AppointmentMitatointiProvenance'} index: 2 language: {index: 3} extension: array: true min: 3 index: 4 slicing: slices: status: match: {} schema: 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] target: elements: display: pattern: {type: String, value: Ajanvaraus} index: 19 activity: binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-deletereason'} index: 20 elements: coding: index: 21 elements: code: {index: 22} text: {index: 23} required: [coding, text] agent: index: 24 slicing: rules: closed discriminator: - {path: role.coding.code, type: value} min: null slices: Palvelunjarjestaja: match: role: coding: {code: '10'} schema: _required: true index: 114 elements: id: {index: 115} type: {index: 116} role: elements: coding: index: 117 elements: id: {index: 118} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 119 version: {index: 120} code: pattern: {type: Code, value: '10'} index: 121 display: {index: 122} userSelected: {index: 123} required: [display, system, code] required: [coding] who: elements: reference: {index: 124} identifier: index: 125 elements: id: {index: 126} use: {index: 127} type: {index: 128} system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 129 value: binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-organization'} index: 130 period: {index: 131} assigner: {index: 132} required: [value, system] display: {index: 133} required: [identifier, display] onBehalfOf: {index: 134} Patient: match: role: coding: {code: null} schema: index: 25 elements: who: type: Reference refers: ['https://pta.kanta.fi/fhir/StructureDefinition/AppointmentPatient'] index: 26 Palveluntuottaja: match: role: coding: {code: '13'} schema: _required: true index: 51 elements: id: {index: 52} type: {index: 53} role: elements: 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: '13'} index: 58 display: {index: 59} userSelected: {index: 60} required: [display, system] required: [coding] who: elements: reference: {index: 61} identifier: index: 62 elements: id: {index: 63} use: {index: 64} type: {index: 65} system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 66 value: {index: 67} period: {index: 68} assigner: {index: 69} required: [value, system] display: {index: 70} required: [identifier, display] onBehalfOf: {index: 71} Practitioner: match: role: coding: {code: null} schema: index: 27 elements: who: type: Reference refers: ['https://pta.kanta.fi/fhir/StructureDefinition/AppointmentPractitioner'] index: 28 Isantaorganisaatio: match: role: coding: {code: '8'} schema: index: 93 elements: id: {index: 94} type: {index: 95} role: elements: coding: index: 96 elements: id: {index: 97} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 98 version: {index: 99} code: pattern: {type: Code, value: '8'} index: 100 display: {index: 101} userSelected: {index: 102} required: [display, system, code] required: [coding] who: elements: reference: {index: 103} identifier: index: 104 elements: id: {index: 105} use: {index: 106} type: {index: 107} system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 108 value: binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-organization'} index: 109 period: {index: 110} assigner: {index: 111} required: [value, system] display: {index: 112} required: [identifier] onBehalfOf: {index: 113} Tallentajan_palveluyksikko: match: role: coding: {code: '7'} schema: index: 72 elements: id: {index: 73} type: {index: 74} role: elements: coding: index: 75 elements: id: {index: 76} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 77 version: {index: 78} code: pattern: {type: Code, value: '7'} index: 79 display: {index: 80} userSelected: {index: 81} required: [display, system, code] required: [coding] who: elements: reference: {index: 82} identifier: index: 83 elements: id: {index: 84} use: {index: 85} type: {index: 86} system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 87 value: binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-organization'} index: 88 period: {index: 89} assigner: {index: 90} required: [value, system] display: {index: 91} required: [identifier, display] onBehalfOf: {index: 92} Ohjelmisto: match: role: coding: {code: '4'} schema: _required: true index: 156 elements: id: {index: 157} type: {index: 158} role: elements: coding: index: 159 elements: id: {index: 160} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 161 version: {index: 162} code: short: Tiedot tuottanut ohjelmisto pattern: {type: Code, value: '4'} index: 163 display: {index: 164} userSelected: {index: 165} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice'] index: 166 elements: reference: {index: 167} identifier: {index: 168} display: {index: 169} required: [reference] onBehalfOf: {index: 170} Aktiivi_rekisterinpitaja: match: role: coding: {code: '11'} schema: index: 135 elements: id: {index: 136} type: {index: 137} role: elements: coding: index: 138 elements: id: {index: 139} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 140 version: {index: 141} code: pattern: {type: Code, value: '11'} index: 142 display: {index: 143} userSelected: {index: 144} required: [display, system, code] required: [coding] who: elements: reference: {index: 145} identifier: index: 146 elements: id: {index: 147} use: {index: 148} type: {index: 149} system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 150 value: {index: 151} period: {index: 152} assigner: {index: 153} required: [value, system] display: {index: 154} required: [identifier, display] onBehalfOf: {index: 155} Rekisterinpitaja: match: role: coding: {code: '1'} schema: short: Rekisterinpitäjä _required: true index: 29 elements: id: {index: 30} type: {index: 31} role: short: Rekisterinpitäjä index: 32 elements: coding: short: Kanta Provenance Role Category index: 33 elements: id: {index: 34} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 35 version: {index: 36} code: pattern: {type: Code, value: '1'} index: 37 display: {index: 38} userSelected: {index: 39} required: [display, system, code] required: [coding] who: elements: reference: {index: 40} identifier: short: Rekisterinpitäjän tunniste index: 41 elements: id: {index: 42} use: {index: 43} type: {index: 44} system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 45 value: {short: Rekisterinpitäjän tunnus, index: 46} period: {index: 47} assigner: {index: 48} required: [system] display: {short: Rekisterinpitäjän nimi, index: 49} required: [identifier, display] onBehalfOf: {index: 50} package_version: 1.0.0-rc2 extensions: status: url: null 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: https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenance version: 0.4.0 required: [language]