description: null package_name: fi.kela.kanta.gen.r4.tahdonilmaisut derivation: constraint name: SoTeConsent type: Consent elements: patient: type: Reference short: Henkilö, jonka luvasta on kyse refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID'] index: 17 category: short: Luovutusluvan tunniste binding: {strength: required, valueSet: 'https://gen.kanta.fi/fhir/tahdonilmaisut/ValueSet/figen-vs-consentcategory-soteconsent'} index: 12 elements: coding: index: 13 elements: system: {index: 14} code: {index: 15} display: {index: 16} required: [display, system, code] required: [coding] provision: short: Onko lupa annettu kaikkeen vai kohdistaen index: 31 elements: provision: short: Luvassa annetut kohdistukset index: 42 slicing: rules: open discriminator: - {path: type, type: value} min: null max: 1 slices: Kohdistukset: match: {type: permit} schema: index: 43 elements: provision: {index: 67} purpose: {index: 58} dataPeriod: {index: 65} type: short: Sote-luvassa käytössä vain "permit" pattern: {type: Code, value: permit} index: 44 class: short: Tiedot, joiden luovutus on sallittu binding: {strength: required, valueSet: 'https://gen.kanta.fi/fhir/tahdonilmaisut/ValueSet/figen-vs-ProvisionClassDataType'} array: true max: 3 index: 59 extensions: functionCode: {url: 'https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/FunctionCode', type: Extension, index: 60} elements: extension: type: Extension url: https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/FunctionCode index: 60 slicing: slices: functionCode: match: {} schema: {type: Extension, url: 'https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/FunctionCode', index: 60} system: {index: 61} code: {index: 62} display: {index: 63} required: [display, system, code] code: {index: 64} action: {index: 56} period: {short: Alku- ja/tai loppuaika, index: 45} securityLabel: {index: 57} actor: short: Organisaatiot, joille tietoja saa luovuttaa constraint: TIP-CON-14: {human: 'Jos on annettu lupa luovuttaa tietoja hyvinvointialue-valinnalla, ei saa tuoda organisaatiotietoja erikseen.', severity: error, expression: 'reference.identifier.value.exists() implies extension.where(url=''https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/ProvisionActorOrganizationTypeExtension'').value.where(code = ''2'' or code = ''3'' or code = ''5'' or code = ''6'')'} index: 46 extensions: provisionActorOrganizationTypeExtension: {url: 'https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/ProvisionActorOrganizationTypeExtension', type: Extension, index: 47} elements: extension: type: Extension url: https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/ProvisionActorOrganizationTypeExtension index: 47 slicing: slices: provisionActorOrganizationTypeExtension: match: {} schema: {type: Extension, url: 'https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/ProvisionActorOrganizationTypeExtension', index: 47} role: short: Pakollinen elementti index: 48 elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-RoleClass'} index: 49 code: pattern: {type: Code, value: AGNT} index: 50 display: pattern: {type: String, value: agent} index: 51 reference: type: Reference short: Organisaatio, joille saa luovuttaa tietoja refers: ['http://hl7.org/fhir/StructureDefinition/Organization'] index: 52 elements: identifier: elements: system: short: Ilmaisee, että organisaation OID tulee Sote-organisaatiokoodistosta pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 53 value: {short: OID Sote-organisaatiokoodistosta, index: 54} required: [value, system] display: {short: Organisaation nimi, index: 55} required: [display] data: {index: 66} required: [type] purpose: {index: 37} dataPeriod: {index: 40} type: {index: 32} class: {index: 38} code: {index: 39} action: {index: 35} period: {index: 33} securityLabel: {index: 36} actor: {index: 34} data: {index: 41} meta: index: 1 elements: profile: pattern: {type: Canonical, value: 'https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/soteluovutuslupa'} index: 2 required: [profile] organization: {index: 24} verification: {index: 30} source: choices: [] index: 26 scope: short: Luvan kohdistuminen index: 8 elements: coding: elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/consentscope'} index: 9 code: pattern: {type: Code, value: patient-privacy} index: 10 display: pattern: {type: String, value: Privacy Consent} index: 11 required: [display, system, code] policy: {index: 27} dateTime: {index: 18} status: {short: active | rejected, index: 7} language: short: Luvan kieli binding: {strength: required, valueSet: 'https://gen.kanta.fi/fhir/tahdonilmaisut/ValueSet/figen-vs-languages-soteconsent'} index: 3 id: {short: Sote-luovutusluvan yksilöivä tunnus, index: 0} policyRule: short: Viittaus lakiin, mistä tarve luvalle tulee index: 28 elements: text: pattern: {type: String, value: Laki sosiaali- ja terveydenhuollon asiakastietojen käsittelystä 703/2023} index: 29 performer: min: 1 short: Luovutusluvan asettaja index: 19 refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID', 'https://gen.kanta.fi/fhir/StructureDefinition/KantaRelatedPerson'] slicing: rules: open discriminator: - {path: resolve(), type: profile} min: 1 max: 5 slices: PatientPerformer: match: {} schema: type: Reference short: Luvan asettajan tiedot refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID'] index: 20 elements: reference: {short: Viittaus käytettävään resurssiin, index: 21} required: [reference] RelatedPersonPerformer: match: {} schema: type: Reference short: Luvan asettaja refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaRelatedPerson'] array: true max: 5 index: 22 elements: reference: {short: Viittaus käytettävään resurssiin, index: 23} required: [reference] type: Reference array: true max: 5 text: short: Luvan teksti index: 4 elements: status: pattern: {type: Code, value: additional} index: 5 div: {short: Luvan tai perumisen teksti luvan kielellä, index: 6} package_version: 1.0.0-rc1 class: profile kind: resource url: https://gen.kanta.fi/fhir/tahdonilmaisut/StructureDefinition/soteluovutuslupa base: http://hl7.org/fhir/StructureDefinition/Consent version: null required: [policyRule, text, patient, language, performer]