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