description: 'Provenance-profiili, jota käytetään Sosiaalihuollon asiakastietovarantoon tallennettavien FHIR-muotoisten asiakirjojen metatietojen tallentamisessa. ' package_name: fi.kela.kanta.gen.r4.toimintakyky derivation: constraint name: SocialWelfareProvenance type: Provenance elements: meta: index: 1 elements: profile: pattern: {type: Canonical, value: 'https://shark.kanta.fi/fhir/StructureDefinition/SocialWelfareProvenance'} index: 2 required: [profile] signature: {index: 133} recorded: {short: Laatimisaika, index: 40} agent: array: true min: 3 index: 49 elements: type: elements: coding: {index: 50} required: [coding] role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 51 elements: coding: {short: Kanta Provenance Role Category, index: 52} who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaOrganization', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2'] index: 53 required: [role] slicing: rules: closed discriminator: - {path: role.coding.code, type: value} min: 3 slices: Custodian: match: role: coding: {code: '1'} schema: short: Rekisterinpitäjä _required: true index: 54 elements: role: short: Asiakirjan rekisterinpitäjä binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 55 elements: coding: index: 56 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 57 version: {index: 58} code: short: Roolin koodiarvo pattern: {type: Code, value: '1'} index: 59 display: {short: Resurssin rekisterinpitäjä, index: 60} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaOrganization'] index: 61 elements: reference: {index: 62} required: [reference] required: [role] RecordedByPractitioner: match: role: coding: {code: '2'} schema: short: Ammattihenkilö index: 63 elements: role: short: Ammattihenkilö binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 64 elements: id: {index: 65} coding: short: Kanta Provenance Role Category index: 66 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 67 version: {index: 68} code: short: Roolin koodiarvo pattern: {type: Code, value: '2'} index: 69 display: {short: Resurssin tallentanut ammattihenkilö, index: 70} required: [display, system, code] text: {index: 71} required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2'] index: 72 elements: id: {index: 73} reference: {short: Viittaus käytettävään rersurssiin, index: 74} type: {index: 75} identifier: {index: 76} display: {index: 77} required: [reference] required: [role] Patient: match: role: coding: {code: '3'} schema: short: Asiakas _required: true index: 78 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 79 elements: coding: index: 80 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 81 version: {index: 82} code: short: Roolin koodiarvo pattern: {type: Code, value: '3'} index: 83 display: {short: Asiakas, index: 84} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2'] index: 85 elements: reference: {short: Viittaus käytettävään resurssiin, index: 86} required: [reference] required: [role] Device: match: role: coding: {code: '4'} schema: short: Asiakirjan tuottaneen tietojärjestelmän nimi _required: true index: 87 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 88 elements: coding: short: Kanta Provenance Role Category index: 89 elements: id: {index: 90} system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 91 code: short: Roolin koodiarvo pattern: {type: Code, value: '4'} index: 92 display: {short: Resurssin tuottanut tietojärjestelmä, index: 93} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice'] index: 94 elements: reference: {short: Viittaus käytettävään resurssiin, index: 95} required: [reference] required: [role] ServiceProvider: match: role: coding: {code: '13'} schema: short: Palveluntuottaja index: 96 elements: type: extensions: {} elements: extension: {index: 97} role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 98 elements: coding: index: 99 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 100 code: short: Palveluntuottaja pattern: {type: Code, value: '13'} index: 101 display: {short: Palveluntuottaja, index: 102} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaOrganization'] index: 103 elements: reference: {short: Viittaus käytettävään resurssiin, index: 104} required: [reference] required: [role] ServiceDeliverer: match: role: coding: {code: '15'} schema: short: Alihankkijana toimiva palveluntuottaja 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: '15'} index: 109 display: {short: Alihankkijana toimiva palveluntuottaja, index: 110} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaOrganization'] index: 111 elements: reference: {index: 112} required: [reference] required: [role] ServiceCenter: match: role: coding: {code: '14'} schema: short: Palveluyksikkö index: 113 elements: role: index: 114 elements: coding: index: 115 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 116 code: pattern: {type: Code, value: '14'} index: 117 display: {short: Palveluyksikkö, index: 118} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaOrganization'] index: 119 elements: reference: {short: Viittaus käytettävään resurssiin, index: 120} required: [reference] required: [role] policy: {index: 41} reason: {index: 43} activity: short: Asiakirjan korjaamisen peruste index: 44 elements: coding: short: Asiakirjan korjaamisen tai versioinnin peruste binding: {strength: required, valueSet: 'https://shark.kanta.fi/ValueSet/fishark-vs-reasonofcorrection'} index: 45 elements: system: {index: 46} code: {short: Korjaamisen tai versionnin syyn koodiarvo, index: 47} display: {short: Korjaamisen tai versionnin syyn koodiarvon nimi, index: 48} required: [display, system, code] required: [coding] extension: array: true min: 7 index: 4 slicing: slices: relatedEncompassingEncounterId: match: {} schema: {type: Extension, isModifier: false, url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/RelatedEncompassingEncounterId', index: 25} specificDocumentType: match: {} schema: type: Extension isModifier: false url: https://shark.kanta.fi/fhir/StructureDefinition/extension/SpecificDocumentType index: 28 elements: value[x]: elements: system: {short: Luokituksen oid-tunniste, index: 29} provenanceAuthorizationConsent: match: {} schema: {type: Extension, isModifier: false, url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/ProvenanceAuthorizationConsent', index: 23} socialService: match: {} schema: {type: Extension, isModifier: false, url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/SocialService', index: 35} serviceProcess: match: {} schema: type: Extension isModifier: false url: https://shark.kanta.fi/fhir/StructureDefinition/extension/ServiceProcess index: 30 elements: value: short: Asiakirjan palveluprosessi choices: [] index: 32 value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 33} code: {short: Palveluprosessi koodiarvona, index: 34} documentType: match: {} schema: {type: Extension, isModifier: false, url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/DocumentType', index: 26} min: 1 provenanceSpecialContent: match: {} schema: type: Extension isModifier: false url: https://shark.kanta.fi/fhir/StructureDefinition/extension/ProvenanceSpecialContent index: 5 extensions: ProvenanceSpecialContent: url: null index: 6 elements: value: short: Erityissisältö -ilmaisin choices: [] index: 8 ReasonForRestriction: url: null short: Perustelu erityisisisältötiedon asettamiselle index: 9 elements: value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 10} code: {short: Perusteen koodiarvo, index: 11} display: {short: Asetettu perustelu tekstinä, index: 12} elements: extension: index: 6 slicing: slices: ProvenanceSpecialContent: match: {} schema: index: 6 elements: value: short: Erityissisältö -ilmaisin choices: [] index: 8 ReasonForRestriction: match: {} schema: short: Perustelu erityisisisältötiedon asettamiselle index: 9 elements: value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 10} code: {short: Perusteen koodiarvo, index: 11} display: {short: Asetettu perustelu tekstinä, index: 12} functionCode: match: {} schema: {type: Extension, isModifier: false, url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/FunctionCode', index: 27} registerType: match: {} schema: {type: Extension, isModifier: false, url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/RegisterType', index: 36} min: 1 max: 1 serviceEvent: match: {} schema: {type: Extension, isModifier: false, url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent', index: 24} min: 1 max: 1 provenanceReleaseForPatientViewing: match: {} schema: type: Extension isModifier: false url: https://shark.kanta.fi/fhir/StructureDefinition/extension/ProvenanceReleaseForPatientViewing index: 13 extensions: ReleaseDateForPatientViewing: url: null index: 14 elements: value: short: Viivästämisen päättymispvm choices: [] index: 16 ReasonForRestriction: url: null index: 17 elements: value: short: Viivästämisen perustelu choices: [] index: 19 value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 20} code: {short: Viivästämisen perusteen koodiarvo, index: 21} display: {short: Perustelu tekstimuodossa, index: 22} elements: extension: index: 14 slicing: slices: ReleaseDateForPatientViewing: match: {} schema: index: 14 elements: value: short: Viivästämisen päättymispvm choices: [] index: 16 ReasonForRestriction: match: {} schema: index: 17 elements: value: short: Viivästämisen perustelu choices: [] index: 19 value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 20} code: {short: Viivästämisen perusteen koodiarvo, index: 21} display: {short: Perustelu tekstimuodossa, index: 22} language: {short: Asiakirjan kieli, index: 3} id: {short: yksilöivä tunnus, index: 0} target: short: Resurssi, johon SocialWelfareProvenance liittyy index: 37 elements: reference: {short: Pääresurssin yksilöivä tunnus, index: 38} display: {short: Asiakirjan nimi, index: 39} required: [reference, display] location: {index: 42} entity: index: 121 elements: id: {index: 122} extension: {index: 123} role: pattern: {type: Code, value: source} index: 124 what: pattern: type: Reference value: {type: Meta} index: 125 elements: id: {index: 126} extension: type: Extension isModifier: false url: https://shark.kanta.fi/fhir/StructureDefinition/extension/DocumentType index: 127 slicing: slices: documentType: match: {} schema: {type: Extension, isModifier: false, url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/DocumentType', index: 127} reference: {short: Viittaus resurssiin, index: 128} type: {index: 129} identifier: {index: 130} display: {index: 131} extensions: documentType: {url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/DocumentType', type: Extension, isModifier: false, index: 127} agent: {index: 132} extensions: {} package_version: 1.0.0-rc6 extensions: relatedEncompassingEncounterId: {url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/RelatedEncompassingEncounterId', type: Extension, isModifier: false, index: 25} specificDocumentType: url: https://shark.kanta.fi/fhir/StructureDefinition/extension/SpecificDocumentType type: Extension isModifier: false index: 28 elements: value[x]: elements: system: {short: Luokituksen oid-tunniste, index: 29} provenanceAuthorizationConsent: {url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/ProvenanceAuthorizationConsent', type: Extension, isModifier: false, index: 23} socialService: {url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/SocialService', type: Extension, isModifier: false, index: 35} serviceProcess: url: https://shark.kanta.fi/fhir/StructureDefinition/extension/ServiceProcess type: Extension isModifier: false index: 30 elements: value: short: Asiakirjan palveluprosessi choices: [] index: 32 value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 33} code: {short: Palveluprosessi koodiarvona, index: 34} documentType: {url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/DocumentType', min: 1, type: Extension, isModifier: false, index: 26} provenanceSpecialContent: url: https://shark.kanta.fi/fhir/StructureDefinition/extension/ProvenanceSpecialContent type: Extension isModifier: false index: 5 extensions: ProvenanceSpecialContent: url: null index: 6 elements: value: short: Erityissisältö -ilmaisin choices: [] index: 8 ReasonForRestriction: url: null short: Perustelu erityisisisältötiedon asettamiselle index: 9 elements: value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 10} code: {short: Perusteen koodiarvo, index: 11} display: {short: Asetettu perustelu tekstinä, index: 12} elements: extension: index: 6 slicing: slices: ProvenanceSpecialContent: match: {} schema: index: 6 elements: value: short: Erityissisältö -ilmaisin choices: [] index: 8 ReasonForRestriction: match: {} schema: short: Perustelu erityisisisältötiedon asettamiselle index: 9 elements: value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 10} code: {short: Perusteen koodiarvo, index: 11} display: {short: Asetettu perustelu tekstinä, index: 12} functionCode: {url: 'https://shark.kanta.fi/fhir/StructureDefinition/extension/FunctionCode', type: Extension, isModifier: false, index: 27} registerType: {url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/RegisterType', min: 1, max: 1, type: Extension, isModifier: false, index: 36} serviceEvent: {url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent', min: 1, max: 1, type: Extension, isModifier: false, index: 24} provenanceReleaseForPatientViewing: url: https://shark.kanta.fi/fhir/StructureDefinition/extension/ProvenanceReleaseForPatientViewing type: Extension isModifier: false index: 13 extensions: ReleaseDateForPatientViewing: url: null index: 14 elements: value: short: Viivästämisen päättymispvm choices: [] index: 16 ReasonForRestriction: url: null index: 17 elements: value: short: Viivästämisen perustelu choices: [] index: 19 value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 20} code: {short: Viivästämisen perusteen koodiarvo, index: 21} display: {short: Perustelu tekstimuodossa, index: 22} elements: extension: index: 14 slicing: slices: ReleaseDateForPatientViewing: match: {} schema: index: 14 elements: value: short: Viivästämisen päättymispvm choices: [] index: 16 ReasonForRestriction: match: {} schema: index: 17 elements: value: short: Viivästämisen perustelu choices: [] index: 19 value[x]: elements: system: {short: Luokituksen yksilöintitunnus, index: 20} code: {short: Viivästämisen perusteen koodiarvo, index: 21} display: {short: Perustelu tekstimuodossa, index: 22} class: profile kind: resource url: https://shark.kanta.fi/fhir/StructureDefinition/SocialWelfareProvenance base: http://hl7.org/fhir/StructureDefinition/Provenance version: 2.0.0 required: [id, language]