PackagesCanonicalsLogsProblems
    Packages
    fi.kela.kanta.gen.r4@1.0.0-rc5
    https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenanceV2
{
  "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": "2025-10-08",
  "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-rc5",
  "status": "draft",
  "id": "2f2078df-f374-4b91-9e71-73d6827e5532",
  "kind": "resource",
  "url": "https://gen.kanta.fi/fhir/StructureDefinition/MitatointiProvenanceV2",
  "version": "0.1",
  "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",
      "max": "1",
      "path": "Provenance.target"
    }, {
      "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 ja Tahdonilmaisupalvelussa 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",
      "sliceName": "PractitionerOrganizationUnit"
    }, {
      "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"
    }, {
      "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.entity",
      "max": "1",
      "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"
}