{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-AW-Provenienz",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Provenienz",
  "version": "1.3.0",
  "name": "KBV_PR_AW_Provenienz",
  "status": "draft",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "copyright": "Copyright © [2022], Kassenärztliche Bundesvereinigung (KBV). All rights reserved.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w3c.prov",
      "uri": "http://www.w3.org/ns/prov",
      "name": "W3C PROV"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "fhirauditevent",
      "uri": "http://hl7.org/fhir/auditevent",
      "name": "FHIR AuditEvent Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Provenance",
  "baseDefinition": "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Provenance|1.3.0",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Provenance.id",
        "path": "Provenance.id",
        "min": 1
      },
      {
        "id": "Provenance.meta",
        "path": "Provenance.meta",
        "min": 1
      },
      {
        "id": "Provenance.meta.versionId",
        "path": "Provenance.meta.versionId",
        "min": 1
      },
      {
        "id": "Provenance.meta.lastUpdated",
        "path": "Provenance.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Provenance.meta.profile",
        "path": "Provenance.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Provenienz|1.3.0"
      },
      {
        "id": "Provenance.text",
        "path": "Provenance.text",
        "min": 1
      },
      {
        "id": "Provenance.text.status",
        "path": "Provenance.text.status",
        "short": "extensions",
        "fixedCode": "extensions"
      },
      {
        "id": "Provenance.target",
        "path": "Provenance.target",
        "mustSupport": true
      },
      {
        "id": "Provenance.target.reference",
        "path": "Provenance.target.reference",
        "min": 1
      },
      {
        "id": "Provenance.target.type",
        "path": "Provenance.target.type",
        "max": "0"
      },
      {
        "id": "Provenance.target.identifier",
        "path": "Provenance.target.identifier",
        "max": "0"
      },
      {
        "id": "Provenance.target.display",
        "path": "Provenance.target.display",
        "max": "0"
      },
      {
        "id": "Provenance.occurred[x]",
        "path": "Provenance.occurred[x]",
        "max": "0"
      },
      {
        "id": "Provenance.recorded",
        "path": "Provenance.recorded",
        "mustSupport": true
      },
      {
        "id": "Provenance.policy",
        "path": "Provenance.policy",
        "max": "0"
      },
      {
        "id": "Provenance.location",
        "path": "Provenance.location",
        "max": "0"
      },
      {
        "id": "Provenance.reason",
        "path": "Provenance.reason",
        "max": "0"
      },
      {
        "id": "Provenance.activity",
        "path": "Provenance.activity",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "Provenance.activity.coding",
        "path": "Provenance.activity.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Provenance.activity.coding.system",
        "path": "Provenance.activity.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Provenance.activity.coding.code",
        "path": "Provenance.activity.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Provenance.activity.text",
        "path": "Provenance.activity.text",
        "max": "0"
      },
      {
        "id": "Provenance.agent",
        "path": "Provenance.agent",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Provenance.agent.type",
        "path": "Provenance.agent.type",
        "max": "0"
      },
      {
        "id": "Provenance.agent.role",
        "path": "Provenance.agent.role",
        "mustSupport": true,
        "binding": {
          "strength": "extensible"
        }
      },
      {
        "id": "Provenance.agent.role.coding",
        "path": "Provenance.agent.role.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Provenance.agent.role.coding.system",
        "path": "Provenance.agent.role.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Provenance.agent.role.coding.code",
        "path": "Provenance.agent.role.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Provenance.agent.role.text",
        "path": "Provenance.agent.role.text",
        "max": "0"
      },
      {
        "id": "Provenance.agent.who",
        "path": "Provenance.agent.who",
        "definition": "Die Person, die an der Änderung beteiligt ist.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_BehandelnderFunktion|1.3.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Mitarbeiter|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Provenance.agent.who.reference",
        "path": "Provenance.agent.who.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Provenance.agent.who.type",
        "path": "Provenance.agent.who.type",
        "max": "0"
      },
      {
        "id": "Provenance.agent.who.identifier",
        "path": "Provenance.agent.who.identifier",
        "max": "0"
      },
      {
        "id": "Provenance.agent.who.display",
        "path": "Provenance.agent.who.display",
        "max": "0"
      },
      {
        "id": "Provenance.agent.onBehalfOf",
        "path": "Provenance.agent.onBehalfOf",
        "definition": "Die Person oder Organisation in dessen Namen gehandelt wird.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_BehandelnderFunktion|1.3.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Betriebsstaette|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Provenance.agent.onBehalfOf.reference",
        "path": "Provenance.agent.onBehalfOf.reference",
        "min": 1
      },
      {
        "id": "Provenance.agent.onBehalfOf.type",
        "path": "Provenance.agent.onBehalfOf.type",
        "max": "0"
      },
      {
        "id": "Provenance.agent.onBehalfOf.identifier",
        "path": "Provenance.agent.onBehalfOf.identifier",
        "max": "0"
      },
      {
        "id": "Provenance.agent.onBehalfOf.display",
        "path": "Provenance.agent.onBehalfOf.display",
        "max": "0"
      },
      {
        "id": "Provenance.entity",
        "path": "Provenance.entity",
        "max": "0"
      },
      {
        "id": "Provenance.signature",
        "path": "Provenance.signature",
        "mustSupport": true
      },
      {
        "id": "Provenance.signature.type",
        "path": "Provenance.signature.type",
        "mustSupport": true
      },
      {
        "id": "Provenance.signature.type.system",
        "path": "Provenance.signature.type.system",
        "mustSupport": true
      },
      {
        "id": "Provenance.signature.type.code",
        "path": "Provenance.signature.type.code",
        "mustSupport": true
      },
      {
        "id": "Provenance.signature.when",
        "path": "Provenance.signature.when",
        "mustSupport": true
      },
      {
        "id": "Provenance.signature.who",
        "path": "Provenance.signature.who",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_BehandelnderFunktion|1.3.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Betriebsstaette|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Provenance.signature.onBehalfOf",
        "path": "Provenance.signature.onBehalfOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_BehandelnderFunktion|1.3.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Betriebsstaette|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}