description: Potilastietovarantoon tallennettavien FHIR-asiakirjojen metatiedot sekä näiden pakollisuudet ja käyttö. package_name: fi.kela.kanta.pta.r4.ptayhteinen derivation: constraint name: PTAProvenance type: Provenance elements: meta: index: 1 elements: profile: pattern: {type: Canonical, value: 'https://pta.kanta.fi/fhir/StructureDefinition/PTAProvenance'} index: 2 required: [profile] signature: {index: 131} recorded: {short: Luontiaika, index: 16} agent: array: true max: 11 index: 25 elements: type: elements: coding: {index: 26} required: [coding] role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 27 elements: coding: {short: Kanta Provenance Role Category, index: 28} 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: 29 required: [role] slicing: rules: closed discriminator: - {path: role.coding.code, type: value} min: null max: 11 slices: RecordedByPatient: match: role: coding: {code: '12'} schema: index: 104 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 105 elements: coding: index: 106 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 107 code: short: Roolin koodiarvo pattern: {type: Code, value: '12'} index: 108 display: {index: 109} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2'] index: 110 elements: reference: {short: Viittaus käytettävään resurssiin, index: 111} required: [reference] required: [role] ActiveCustodian: match: role: coding: {code: '11'} schema: short: Aktiivi rekisterinpitäjä index: 120 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 121 elements: coding: short: Kanta Provenance Role Category index: 122 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 123 code: short: Roolin koodiarvo pattern: {type: Code, value: '11'} index: 124 display: {index: 125} required: [display, system, code] required: [coding] who: elements: identifier: index: 126 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 127 value: {short: Rekisterinpitäjän tunnus, index: 128} required: [value, system] display: {short: 'Rekisterinpitäjän nimi. ', index: 129} required: [identifier, display] required: [role] RecordedByRelatedPerson: match: role: coding: {code: '5'} schema: index: 112 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 113 elements: coding: index: 114 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 115 code: short: Roolin koodiarvo pattern: {type: Code, value: '5'} index: 116 display: {index: 117} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaRelatedPerson'] index: 118 elements: reference: {index: 119} required: [reference] required: [role] Patient: match: role: coding: {code: '3'} schema: short: Potilas _required: true index: 60 elements: role: short: Potilas binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 61 elements: coding: index: 62 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 63 code: short: Roolin koodiarvo pattern: {type: Code, value: '3'} index: 64 display: {short: Potilas, index: 65} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2'] index: 66 elements: reference: {index: 67} required: [reference] required: [role] ServiceProvider: match: role: coding: {code: '13'} schema: short: Palveluntuottaja _required: true index: 50 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 51 elements: coding: index: 52 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 53 code: short: Roolin koodiarvo pattern: {type: Code, value: '13'} index: 54 display: {index: 55} required: [display, system, code] required: [coding] who: elements: identifier: index: 56 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 57 value: {short: Palveluntuottajan tunnus, index: 58} required: [value, system] display: {short: Organisaation nimi, index: 59} required: [identifier, display] required: [role] RecordedByPractitioner: match: role: coding: {code: '2'} schema: short: Ammattihenkilö index: 96 elements: role: short: Amattihenkilö binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 97 elements: coding: short: Kanta Provenance Role Category index: 98 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 99 code: short: Roolin koodiarvo pattern: {type: Code, value: '2'} index: 100 display: {index: 101} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2'] index: 102 elements: reference: {short: Viittaus käytettävään rersurssiin, index: 103} required: [reference] required: [role] HostOrganization: match: role: coding: {code: '8'} schema: short: Vuokralaisen isäntä index: 86 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 87 elements: coding: index: 88 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 89 code: short: Roolin koodiarvo pattern: {type: Code, value: '8'} index: 90 display: {index: 91} required: [display, system, code] required: [coding] who: elements: identifier: index: 92 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 93 value: {short: Vuokralaisen isäntäorganisaation tunnus, index: 94} required: [value, system] display: {short: Organisaation nimi, index: 95} required: [identifier, display] required: [role] Custodian: match: role: coding: {code: '1'} schema: short: Rekisterinpitjä _required: true index: 30 elements: role: short: Asiakirjan rekisterinpitäjä binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 31 elements: coding: index: 32 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 33 code: short: Roolin koodiarvo pattern: {type: Code, value: '1'} index: 34 display: {short: Asiakirjan rekisterinpitäjä, index: 35} required: [display, system, code] required: [coding] who: elements: identifier: short: Rekisterinpitäjän tunniste index: 36 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 37 value: {short: Rekisterinpitäjän tunnus, index: 38} required: [value, system] display: {short: Rekisterinpitäjän nimi, index: 39} required: [identifier, display] required: [role] ServiceCenter: match: role: coding: {code: '7'} schema: short: Palveluyksikkö index: 76 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 77 elements: coding: index: 78 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 79 code: short: Roolin koodiarvo pattern: {type: Code, value: '7'} index: 80 display: {index: 81} required: [display, system, code] required: [coding] who: elements: identifier: index: 82 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 83 value: {short: Palveluyksikön tunnun, index: 84} required: [value, system] display: {short: Organisaation nimi, index: 85} required: [identifier, display] required: [role] Device: match: role: coding: {code: '4'} schema: short: Asiakirjan tuottaneen tietojärjestelmän nimi _required: true index: 68 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 69 elements: coding: index: 70 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 71 code: short: Roolin koodiarvo pattern: {type: Code, value: '4'} index: 72 display: {short: Resurssin tuottanut tietojärjestelmä, index: 73} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice'] index: 74 elements: reference: {short: Viittaus käytettävään resurssiin, index: 75} required: [reference] required: [role] ServiceOrganizer: match: role: coding: {code: '10'} schema: short: Palvelunjärjestäjä _required: true index: 40 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 41 elements: coding: index: 42 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 43 code: short: Roolin koodiarvo pattern: {type: Code, value: '10'} index: 44 display: {index: 45} required: [display, system, code] required: [coding] who: elements: identifier: index: 46 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 47 value: {short: Palvelunjärjestäjän tunnus, index: 48} required: [value, system] display: {short: 'Organisaation nimi. ', index: 49} required: [identifier, display] required: [role] policy: {index: 17} reason: {index: 19} activity: short: Asiakirjan korvauksen syy index: 20 elements: coding: short: Asiakirjan korvauksen syy binding: {strength: required, valueSet: 'https://pta.kanta.fi/fhir/ValueSet/fipta-vs-updatereason'} index: 21 elements: system: {index: 22} code: {short: Asiakirjan korvauksen syyn koodiarvo, index: 23} display: {short: Asiakirjan korvauksen syy, index: 24} required: [display, system, code] required: [coding] extension: array: true min: 4 index: 4 slicing: slices: registerSpecifier: match: {} schema: {type: Extension, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/RegisterSpecifier', index: 5} releaseDateForPatientViewing: match: {} schema: {type: Extension, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/ReleaseDateForPatientViewing', index: 6} max: 1 serviceEvent: match: {} schema: {type: Extension, isModifier: false, url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent', index: 7} min: 1 max: 1 status: match: {} schema: {type: Extension, isModifier: false, url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/Status', index: 8} registerType: match: {} schema: {type: Extension, isModifier: false, url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/RegisterType', index: 9} min: 1 max: 1 restrictionParent: match: {} schema: {type: Extension, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/RestrictionParent', index: 10} mainCategory: match: {} schema: {type: Extension, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/MainCategory', index: 11} additionalCategory: match: {} schema: {type: Extension, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/AdditionalCategory', index: 12} language: {short: Asiakirjan kieli, index: 3} id: {short: Resurssin yksilöivä tunnus, index: 0} target: short: Resurssi, johon PTAProvenance liittyy index: 13 elements: reference: {short: Pääresurssin yksilöivä tunnus, index: 14} display: {short: Asiakirjan nimi, index: 15} required: [reference, display] location: {index: 18} entity: {index: 130} package_version: 0.1.0-beta extensions: registerSpecifier: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/RegisterSpecifier', type: Extension, isModifier: false, index: 5} releaseDateForPatientViewing: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/ReleaseDateForPatientViewing', max: 1, type: Extension, isModifier: false, index: 6} serviceEvent: {url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/serviceEvent', min: 1, max: 1, type: Extension, isModifier: false, index: 7} status: {url: 'https://gen.kanta.fi/fhir/StructureDefinition/extension/Status', 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} restrictionParent: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/RestrictionParent', type: Extension, isModifier: false, index: 10} mainCategory: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/MainCategory', type: Extension, isModifier: false, index: 11} additionalCategory: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/AdditionalCategory', type: Extension, isModifier: false, index: 12} class: profile kind: resource url: https://pta.kanta.fi/fhir/StructureDefinition/PTAProvenance base: http://hl7.org/fhir/StructureDefinition/Provenance version: 0.0.1 required: [id, language]