description: Potilastiedon arkistossa ja Sosiaalihuollon asiakastiedon arkistossa käytettävä Provenance-profiili. Profiilia käytetään resurssin mitätöimisessä. package_name: fi.kela.kanta.gen.r4 derivation: constraint name: MitatointiProvenance type: Provenance elements: meta: index: 0 elements: profile: {index: 1} required: [profile] occurred: choices: [] index: 11 signature: {index: 84} recorded: {short: Laatimis-/tallennusaika, index: 12} agent: index: 28 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 29 elements: id: {index: 30} text: {index: 31} who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitioner', 'https://pta.kanta.fi/fhir/StructureDefinition/AppointmentPatient', 'https://pta.kanta.fi/fhir/StructureDefinition/AppointmentPractitioner', 'https://shark.kanta.fi/fhir/StructureDefinition/SocialWelfarePatient', 'https://shark.kanta.fi/fhir/StructureDefinition/SocialWelfarePractitioner'] index: 32 elements: id: {index: 33} type: {index: 34} required: [role] slicing: rules: closed discriminator: - {path: role.coding.code, type: value} min: null slices: Patient: match: role: coding: {code: '3'} schema: short: Asiakas tai potilas _required: true index: 35 elements: id: {index: 36} type: {index: 37} role: code: - {system: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} binding: {strength: required, valueSet: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 38 elements: id: {index: 39} coding: index: 40 elements: id: {index: 41} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 42 version: {index: 43} code: pattern: {type: Code, value: '3'} index: 44 display: {index: 45} userSelected: {index: 46} required: [display, system, code] text: {index: 47} required: [coding] who: type: Reference refers: ['https://pta.kanta.fi/fhir/StructureDefinition/AppointmentPatient', 'https://shark.kanta.fi/fhir/StructureDefinition/SocialWelfarePatient'] index: 48 elements: id: {index: 49} reference: {short: Viittaus käytettävään resurssiin, index: 50} type: {index: 51} identifier: {index: 52} display: {index: 53} required: [reference] onBehalfOf: {index: 54} required: [role] Practitioner: match: role: coding: {code: '2'} schema: short: Mitätöinnin tekijä _required: true index: 55 elements: id: {index: 56} type: {index: 57} role: code: - {system: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 58 elements: id: {index: 59} coding: index: 60 elements: id: {index: 61} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 62 version: {index: 63} code: pattern: {type: Code, value: '2'} index: 64 display: {index: 65} userSelected: {index: 66} required: [display, system, code] text: {index: 67} required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitioner', 'https://pta.kanta.fi/fhir/StructureDefinition/AppointmentPractitioner', 'https://shark.kanta.fi/fhir/StructureDefinition/SocialWelfarePractitioner'] index: 68 elements: id: {index: 69} reference: {short: Viittaus käytettävään resurssiin, index: 70} type: {index: 71} identifier: {index: 72} display: {index: 73} required: [reference] onBehalfOf: {index: 74} required: [role] policy: {index: 13} reason: index: 15 elements: id: {index: 16} coding: {index: 17} activity: short: Mitätöinnin syy index: 18 elements: id: {index: 19} coding: short: Mitätöinnin syy index: 20 elements: id: {index: 21} system: {short: Käytettävä koodisto, index: 22} version: {index: 23} code: {short: Mitätöinnin syyn koodiarvo, index: 24} display: {short: Mitätöinnin syy, index: 25} userSelected: {index: 26} required: [display, system, code] text: {short: Mitätöinnin syy, index: 27} extension: index: 2 slicing: slices: status: match: {} schema: {type: Extension, isModifier: false, url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/Status', index: 3} target: short: Mitätöitävän resurssin yksilöivä tunniste index: 4 elements: id: {index: 5} reference: {short: Mitätöitävän pääresurssi-instanssin looginen id, index: 6} type: {index: 7} identifier: {index: 8} display: {short: Nimike, index: 9} required: [reference] location: {index: 14} entity: index: 75 elements: id: {index: 76} role: pattern: {type: Code, value: removal} index: 77 what: elements: id: {index: 78} reference: {short: Mitätöitävän resurssi-instanssin looginen id, index: 79} type: {index: 80} identifier: {index: 81} display: {short: Nimike, index: 82} required: [reference] agent: {index: 83} package_version: 1.0.0-RC3 extensions: status: {url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/Status', type: Extension, isModifier: false, index: 3} class: profile kind: resource url: https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenance base: http://hl7.org/fhir/StructureDefinition/Provenance version: '0.5' required: [activity, extension, entity]