{
"description": "Kanta-palveluissa käytettävä Provenance-profiili. Profiilia käytetään resurssin mitätöimisessä.",
"_filename": "MitatointiProvenanceV2.StructureDefinition.json",
"package_name": "fi.kela.kanta.gen.r4",
"date": "2026-10-12",
"derivation": "constraint",
"publisher": "Kela",
"fhirVersion": "4.0.1",
"purpose": "Kanta-palveluissa käytettävä Provenance-profiili. Profiilia käytetään resurssin mitätöimisessä.",
"name": "MitatointiProvenanceV2",
"abstract": false,
"type": "Provenance",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "1.0.0",
"status": "active",
"id": "70b7e601-4dc5-4639-bb3b-ae8412f8b84f",
"kind": "resource",
"url": "https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenanceV2",
"version": "3.0.0",
"differential": {
"element": [ {
"id": "Provenance.meta",
"path": "Provenance.meta"
}, {
"id": "Provenance.meta.profile",
"max": "1",
"min": 1,
"path": "Provenance.meta.profile"
}, {
"id": "Provenance.implicitRules",
"max": "0",
"path": "Provenance.implicitRules"
}, {
"id": "Provenance.text",
"max": "0",
"path": "Provenance.text"
}, {
"id": "Provenance.target.reference",
"min": 1,
"path": "Provenance.target.reference",
"short": "Mitätöitävän pääresurssi-instanssin looginen id"
}, {
"id": "Provenance.target.display",
"path": "Provenance.target.display",
"short": "Nimeke",
"definition": "Mitätöitävän resurssin nimeke."
}, {
"id": "Provenance.occurred[x]",
"max": "0",
"path": "Provenance.occurred[x]"
}, {
"id": "Provenance.recorded",
"path": "Provenance.recorded",
"short": "Laatimis-/tallennusaika",
"definition": "Mitätöinnissä käytettävän Provenenance-resurssin laatimis-/tallennusaika."
}, {
"id": "Provenance.policy",
"max": "0",
"path": "Provenance.policy"
}, {
"id": "Provenance.location",
"max": "0",
"path": "Provenance.location"
}, {
"id": "Provenance.reason",
"max": "0",
"path": "Provenance.reason"
}, {
"id": "Provenance.activity",
"path": "Provenance.activity",
"short": "Mitätöinnin syy",
"definition": "Rakenteessa ilmoitetaan syy miksi resurssi mitätöidään."
}, {
"id": "Provenance.activity.coding",
"max": "1",
"path": "Provenance.activity.coding",
"short": "Mitätöinnin syy",
"definition": "Mitätöinnin syy koodiarvolla ilmoitettuna."
}, {
"id": "Provenance.activity.coding.system",
"path": "Provenance.activity.coding.system",
"short": "Käytettävä koodisto",
"definition": "Sosiaalihuollossa käytetään koodistoa Sosiaalihuolto - Asiakirjan mitätöinnin syy (1.2.246.537.6.1278.20170).\r\nTerveydenhuollossa käytetään koodistoa eArkisto - Asiakirjan korvauksen syy (1.2.246.537.5.40178.2008)."
}, {
"id": "Provenance.activity.coding.code",
"path": "Provenance.activity.coding.code",
"short": "Mitätöinnin syyn koodiarvo",
"definition": "Annetun koodiston mukainen koodiarvo.\r\n"
}, {
"id": "Provenance.activity.coding.display",
"path": "Provenance.activity.coding.display",
"short": "Mitätöinnin syy",
"definition": "Annetun koodiston koodiarvoa vastaava mitätöinnin syy."
}, {
"id": "Provenance.activity.text",
"path": "Provenance.activity.text",
"short": "Mitätöinnin syy",
"definition": "Resurssin mitätöinnin syy vapaatekstinä. \r\n"
}, {
"id": "Provenance.agent",
"path": "Provenance.agent",
"slicing": {
"rules": "open",
"discriminator": [ {
"path": "role.coding.code",
"type": "value"
} ]
}
}, {
"id": "Provenance.agent.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role",
"binding": {
"strength": "required",
"valueSet": "http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory"
}
}, {
"id": "Provenance.agent.who",
"path": "Provenance.agent.who",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2", "https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2", "https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID", "https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice" ]
} ]
}, {
"id": "Provenance.agent:Patient",
"max": "1",
"min": 1,
"path": "Provenance.agent",
"short": "Asiakas tai potilas",
"sliceName": "Patient",
"definition": "Sen asiakkaan tai potilaan tiedot, johon liittyvä resurssi mitätöidään."
}, {
"id": "Provenance.agent:Patient.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role",
"binding": {
"strength": "required",
"valueSet": "http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory"
}
}, {
"id": "Provenance.agent:Patient.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:Patient.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:Patient.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "3"
}, {
"id": "Provenance.agent:Patient.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:Patient.who",
"path": "Provenance.agent.who",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientV2", "https://gen.kanta.fi/fhir/StructureDefinition/KantaPatientOfficialID" ]
} ]
}, {
"id": "Provenance.agent:Patient.who.reference",
"min": 1,
"path": "Provenance.agent.who.reference"
}, {
"id": "Provenance.agent:Practitioner",
"max": "1",
"min": 1,
"path": "Provenance.agent",
"short": "Mitätöinnin tekijä",
"sliceName": "Practitioner",
"definition": "Sen sosiaali- ja terveydenhuollon ammattihenkilön tai arkistonhoitajan tiedot, joka mitätöi resurssin."
}, {
"id": "Provenance.agent:Practitioner.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role",
"binding": {
"strength": "required",
"valueSet": "http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory"
}
}, {
"id": "Provenance.agent:Practitioner.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:Practitioner.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:Practitioner.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "2"
}, {
"id": "Provenance.agent:Practitioner.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:Practitioner.who",
"path": "Provenance.agent.who",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://gen.kanta.fi/fhir/StructureDefinition/KantaPractitionerV2" ]
} ]
}, {
"id": "Provenance.agent:Practitioner.who.reference",
"min": 1,
"path": "Provenance.agent.who.reference",
"short": "Viittaus käytettävään resurssiin"
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit",
"max": "1",
"path": "Provenance.agent",
"short": "Palveluyksikkö",
"sliceName": "PractitionerOrganizationUnit",
"definition": "Resurssin mitätöivän sosiaali- tai terveydenhuollon ammattihenkilön palveluyksikön tai apteekin tiedot."
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role",
"binding": {
"strength": "required",
"valueSet": "http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory"
}
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "7"
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.who.identifier",
"min": 1,
"path": "Provenance.agent.who.identifier"
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.who.identifier.system",
"min": 1,
"path": "Provenance.agent.who.identifier.system",
"fixedUri": "urn:ietf:rfc:3986"
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.who.identifier.value",
"min": 1,
"path": "Provenance.agent.who.identifier.value"
}, {
"id": "Provenance.agent:PractitionerOrganizationUnit.who.display",
"min": 1,
"path": "Provenance.agent.who.display"
}, {
"id": "Provenance.agent:Device",
"max": "1",
"min": 1,
"path": "Provenance.agent",
"short": "Mitätöinnissä käytetty ohjelmisto",
"sliceName": "Device",
"definition": "Ohjelmisto, jossa mitätöinti on tehty"
}, {
"id": "Provenance.agent:Device.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role",
"binding": {
"strength": "required",
"valueSet": "http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory"
}
}, {
"id": "Provenance.agent:Device.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:Device.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:Device.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "4"
}, {
"id": "Provenance.agent:Device.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:Device.who",
"path": "Provenance.agent.who",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://gen.kanta.fi/fhir/StructureDefinition/KantaDevice" ]
} ]
}, {
"id": "Provenance.agent:Device.who.reference",
"min": 1,
"path": "Provenance.agent.who.reference",
"short": "Viittaus käytettävään resurssiin"
}, {
"id": "Provenance.agent:Custodian",
"max": "1",
"path": "Provenance.agent",
"short": "Rekisterinpitäjä",
"sliceName": "Custodian",
"definition": "Mitätöitävän resurssin rekisterinpitäjän tiedot."
}, {
"id": "Provenance.agent:Custodian.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role",
"binding": {
"strength": "required",
"valueSet": "http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory"
}
}, {
"id": "Provenance.agent:Custodian.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:Custodian.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:Custodian.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "1"
}, {
"id": "Provenance.agent:Custodian.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:Custodian.who.identifier",
"min": 1,
"path": "Provenance.agent.who.identifier"
}, {
"id": "Provenance.agent:Custodian.who.identifier.system",
"min": 1,
"path": "Provenance.agent.who.identifier.system",
"fixedUri": "urn:ietf:rfc:3986"
}, {
"id": "Provenance.agent:Custodian.who.identifier.value",
"min": 1,
"path": "Provenance.agent.who.identifier.value"
}, {
"id": "Provenance.agent:Custodian.who.display",
"min": 1,
"path": "Provenance.agent.who.display"
}, {
"id": "Provenance.agent:ServiceProvider",
"max": "1",
"path": "Provenance.agent",
"short": "Palveluntuottaja",
"sliceName": "ServiceProvider",
"definition": "Palveluntuottajana toimiva palvelunantaja, joka mitätöi resurssin.\r\n\r\n"
}, {
"id": "Provenance.agent:ServiceProvider.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role",
"binding": {
"strength": "required",
"valueSet": "http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory"
}
}, {
"id": "Provenance.agent:ServiceProvider.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:ServiceProvider.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:ServiceProvider.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "13"
}, {
"id": "Provenance.agent:ServiceProvider.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:ServiceProvider.who.identifier",
"min": 1,
"path": "Provenance.agent.who.identifier"
}, {
"id": "Provenance.agent:ServiceProvider.who.identifier.system",
"min": 1,
"path": "Provenance.agent.who.identifier.system",
"fixedUri": "urn:ietf:rfc:3986"
}, {
"id": "Provenance.agent:ServiceProvider.who.identifier.value",
"min": 1,
"path": "Provenance.agent.who.identifier.value"
}, {
"id": "Provenance.agent:ServiceProvider.who.display",
"min": 1,
"path": "Provenance.agent.who.display"
}, {
"id": "Provenance.agent:ServiceDeliverer",
"max": "1",
"path": "Provenance.agent",
"short": "Alihankkijana toimiva palveluntuottaja",
"sliceName": "ServiceDeliverer",
"definition": "Alihankkijana toimiva palveluntuottaja, joka mitätöi resurssin."
}, {
"id": "Provenance.agent:ServiceDeliverer.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role",
"binding": {
"strength": "required",
"valueSet": "http://gen.kanta.fi/ValueSet/figen-vs-provenancerolecategory"
}
}, {
"id": "Provenance.agent:ServiceDeliverer.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:ServiceDeliverer.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:ServiceDeliverer.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "15"
}, {
"id": "Provenance.agent:ServiceDeliverer.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:ServiceDeliverer.who.identifier",
"min": 1,
"path": "Provenance.agent.who.identifier"
}, {
"id": "Provenance.agent:ServiceDeliverer.who.identifier.system",
"min": 1,
"path": "Provenance.agent.who.identifier.system",
"fixedUri": "urn:ietf:rfc:3986"
}, {
"id": "Provenance.agent:ServiceDeliverer.who.identifier.value",
"min": 1,
"path": "Provenance.agent.who.identifier.value"
}, {
"id": "Provenance.agent:ServiceDeliverer.who.display",
"min": 1,
"path": "Provenance.agent.who.display"
}, {
"id": "Provenance.agent:ServiceOrganizer",
"max": "1",
"path": "Provenance.agent",
"short": "Palvelunjärjestäjä",
"sliceName": "ServiceOrganizer",
"definition": "Palvelunjärjestäjänä toimiva palvelunantaja, joka mitätöi resurssin."
}, {
"id": "Provenance.agent:ServiceOrganizer.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role"
}, {
"id": "Provenance.agent:ServiceOrganizer.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:ServiceOrganizer.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:ServiceOrganizer.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "10"
}, {
"id": "Provenance.agent:ServiceOrganizer.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:ServiceOrganizer.who.identifier",
"min": 1,
"path": "Provenance.agent.who.identifier"
}, {
"id": "Provenance.agent:ServiceOrganizer.who.identifier.system",
"min": 1,
"path": "Provenance.agent.who.identifier.system",
"fixedUri": "urn:ietf:rfc:3986"
}, {
"id": "Provenance.agent:ServiceOrganizer.who.identifier.value",
"min": 1,
"path": "Provenance.agent.who.identifier.value"
}, {
"id": "Provenance.agent:ServiceOrganizer.who.display",
"min": 1,
"path": "Provenance.agent.who.display"
}, {
"id": "Provenance.agent:HostOrganization",
"max": "1",
"path": "Provenance.agent",
"short": "Isännän tiedot",
"sliceName": "HostOrganization",
"definition": "Vuokralaisen isännän tiedot yksityisten yhteisliittymistilanteessa. "
}, {
"id": "Provenance.agent:HostOrganization.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role"
}, {
"id": "Provenance.agent:HostOrganization.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:HostOrganization.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:HostOrganization.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "8"
}, {
"id": "Provenance.agent:HostOrganization.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:HostOrganization.who.identifier",
"min": 1,
"path": "Provenance.agent.who.identifier"
}, {
"id": "Provenance.agent:HostOrganization.who.identifier.system",
"min": 1,
"path": "Provenance.agent.who.identifier.system",
"fixedUri": "urn:ietf:rfc:3986"
}, {
"id": "Provenance.agent:HostOrganization.who.identifier.value",
"min": 1,
"path": "Provenance.agent.who.identifier.value"
}, {
"id": "Provenance.agent:HostOrganization.who.display",
"min": 1,
"path": "Provenance.agent.who.display"
}, {
"id": "Provenance.agent:ActiveCustodian",
"max": "1",
"path": "Provenance.agent",
"short": "Aktiivi rekisterinpitäjän tiedot ",
"sliceName": "ActiveCustodian",
"definition": "Mitätöitävän resurssin voimassa olevan rekisterinpitäjä."
}, {
"id": "Provenance.agent:ActiveCustodian.role",
"max": "1",
"min": 1,
"path": "Provenance.agent.role"
}, {
"id": "Provenance.agent:ActiveCustodian.role.coding",
"max": "1",
"min": 1,
"path": "Provenance.agent.role.coding"
}, {
"id": "Provenance.agent:ActiveCustodian.role.coding.system",
"min": 1,
"path": "Provenance.agent.role.coding.system",
"fixedUri": "http://gen.kanta.fi/figen-cs-provenancerolecategory"
}, {
"id": "Provenance.agent:ActiveCustodian.role.coding.code",
"min": 1,
"path": "Provenance.agent.role.coding.code",
"fixedCode": "11"
}, {
"id": "Provenance.agent:ActiveCustodian.role.coding.display",
"min": 1,
"path": "Provenance.agent.role.coding.display"
}, {
"id": "Provenance.agent:ActiveCustodian.who.identifier",
"min": 1,
"path": "Provenance.agent.who.identifier"
}, {
"id": "Provenance.agent:ActiveCustodian.who.identifier.system",
"min": 1,
"path": "Provenance.agent.who.identifier.system",
"fixedUri": "urn:ietf:rfc:3986"
}, {
"id": "Provenance.agent:ActiveCustodian.who.identifier.value",
"min": 1,
"path": "Provenance.agent.who.identifier.value"
}, {
"id": "Provenance.agent:ActiveCustodian.who.display",
"min": 1,
"path": "Provenance.agent.who.display"
}, {
"id": "Provenance.entity",
"min": 1,
"path": "Provenance.entity"
}, {
"id": "Provenance.entity.role",
"path": "Provenance.entity.role",
"fixedCode": "removal"
}, {
"id": "Provenance.entity.what.reference",
"min": 1,
"path": "Provenance.entity.what.reference",
"short": "Mitätöitävän resurssi-instanssin looginen id",
"definition": "Sen resurssi-instanssin looginen id, joka mitätöidään."
}, {
"id": "Provenance.signature",
"max": "0",
"path": "Provenance.signature"
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Provenance"
}