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: 130} 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} 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: 103 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 104 elements: coding: index: 105 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 106 code: short: Roolin koodiarvo pattern: {type: Code, value: '12'} index: 107 display: {index: 108} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2'] index: 109 elements: reference: {short: Viittaus käytettävään resurssiin, index: 110} required: [reference] required: [role] ActiveCustodian: match: role: coding: {code: '11'} schema: short: Aktiivi rekisterinpitäjä index: 119 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 120 elements: coding: short: Kanta Provenance Role Category index: 121 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 122 code: short: Roolin koodiarvo pattern: {type: Code, value: '11'} index: 123 display: {index: 124} required: [display, system, code] required: [coding] who: elements: identifier: index: 125 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 126 value: {short: Rekisterinpitäjän tunnus, index: 127} required: [value, system] display: {short: 'Rekisterinpitäjän nimi. ', index: 128} required: [identifier, display] required: [role] RecordedByRelatedPerson: match: role: coding: {code: '5'} schema: index: 111 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 112 elements: coding: index: 113 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 114 code: short: Roolin koodiarvo pattern: {type: Code, value: '5'} index: 115 display: {index: 116} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaRelatedPerson'] index: 117 elements: reference: {index: 118} required: [reference] required: [role] Patient: match: role: coding: {code: '3'} schema: short: Potilas _required: true index: 59 elements: role: short: Potilas binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 60 elements: coding: index: 61 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 62 code: short: Roolin koodiarvo pattern: {type: Code, value: '3'} index: 63 display: {short: Potilas, index: 64} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2'] index: 65 elements: reference: {index: 66} required: [reference] required: [role] ServiceProvider: match: role: coding: {code: '13'} schema: short: Palveluntuottaja _required: true index: 49 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 50 elements: coding: index: 51 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 52 code: short: Roolin koodiarvo pattern: {type: Code, value: '13'} index: 53 display: {index: 54} required: [display, system, code] required: [coding] who: elements: identifier: index: 55 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 56 value: {short: Palveluntuottajan tunnus, index: 57} required: [value, system] display: {short: Organisaation nimi, index: 58} required: [identifier, display] required: [role] RecordedByPractitioner: match: role: coding: {code: '2'} schema: short: Ammattihenkilö index: 95 elements: role: short: Amattihenkilö binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 96 elements: coding: short: Kanta Provenance Role Category index: 97 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 98 code: short: Roolin koodiarvo pattern: {type: Code, value: '2'} index: 99 display: {index: 100} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2'] index: 101 elements: reference: {short: Viittaus käytettävään rersurssiin, index: 102} required: [reference] required: [role] HostOrganization: match: role: coding: {code: '8'} schema: short: Vuokralaisen isäntä index: 85 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 86 elements: coding: index: 87 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 88 code: short: Roolin koodiarvo pattern: {type: Code, value: '8'} index: 89 display: {index: 90} required: [display, system, code] required: [coding] who: elements: identifier: index: 91 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 92 value: {short: Vuokralaisen isäntäorganisaation tunnus, index: 93} required: [value, system] display: {short: Organisaation nimi, index: 94} required: [identifier, display] required: [role] Custodian: match: role: coding: {code: '1'} schema: short: Rekisterinpitjä _required: true index: 29 elements: role: short: Asiakirjan rekisterinpitäjä binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 30 elements: coding: index: 31 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 32 code: short: Roolin koodiarvo pattern: {type: Code, value: '1'} index: 33 display: {short: Asiakirjan rekisterinpitäjä, index: 34} required: [display, system, code] required: [coding] who: elements: identifier: short: Rekisterinpitäjän tunniste index: 35 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 36 value: {short: Rekisterinpitäjän tunnus, index: 37} required: [value, system] display: {short: Rekisterinpitäjän nimi, index: 38} required: [identifier, display] required: [role] ServiceCenter: match: role: coding: {code: '7'} schema: short: Palveluyksikkö index: 75 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 76 elements: coding: index: 77 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 78 code: short: Roolin koodiarvo pattern: {type: Code, value: '7'} index: 79 display: {index: 80} required: [display, system, code] required: [coding] who: elements: identifier: index: 81 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 82 value: {short: Palveluyksikön tunnun, index: 83} required: [value, system] display: {short: Organisaation nimi, index: 84} required: [identifier, display] required: [role] Device: match: role: coding: {code: '4'} schema: short: Asiakirjan tuottaneen tietojärjestelmän nimi _required: true index: 67 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 68 elements: coding: index: 69 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 70 code: short: Roolin koodiarvo pattern: {type: Code, value: '4'} index: 71 display: {short: Resurssin tuottanut tietojärjestelmä, index: 72} required: [display, system, code] required: [coding] who: type: Reference refers: ['https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice'] index: 73 elements: reference: {short: Viittaus käytettävään resurssiin, index: 74} required: [reference] required: [role] ServiceOrganizer: match: role: coding: {code: '10'} schema: short: Palvelunjärjestäjä _required: true index: 39 elements: role: binding: {strength: required, valueSet: 'http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory'} index: 40 elements: coding: index: 41 elements: system: pattern: {type: Uri, value: 'http://gen.kanta.fi/figen-cs-provenancerolecategory'} index: 42 code: short: Roolin koodiarvo pattern: {type: Code, value: '10'} index: 43 display: {index: 44} required: [display, system, code] required: [coding] who: elements: identifier: index: 45 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 46 value: {short: Palvelunjärjestäjän tunnus, index: 47} required: [value, system] display: {short: 'Organisaation nimi. ', index: 48} 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/PTARegisterSpecifier', index: 5} releaseDateForPatientViewing: match: {} schema: {type: Extension, short: Viivästämisen päättymispäivä, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/PTAReleaseDateForPatientViewing', 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/PTARestrictionParent', index: 10} mainCategory: match: {} schema: {type: Extension, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/PTAMainCategory', index: 11} additionalCategory: match: {} schema: {type: Extension, isModifier: false, url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/PTAAdditionalCategory', 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: 129} package_version: 0.1.1-beta extensions: registerSpecifier: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/PTARegisterSpecifier', type: Extension, isModifier: false, index: 5} releaseDateForPatientViewing: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/PTAReleaseDateForPatientViewing', max: 1, type: Extension, short: Viivästämisen päättymispäivä, 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/PTARestrictionParent', type: Extension, isModifier: false, index: 10} mainCategory: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/PTAMainCategory', type: Extension, isModifier: false, index: 11} additionalCategory: {url: 'https://pta.kanta.fi/fhir/StructureDefinition/extension/PTAAdditionalCategory', 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: [language]