PackagesCanonicalsLogsProblems
    Packages
    kbv.ita.vos@2.1.0
    https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Bundle_PVS_VoS
{
  "description": "Bundle zum Aufruf der Verordnungssoftware, enthält die Composition mit dem Profil KBV_PR_VoS_Composition und alle darin referenzierten Ressourcen.",
  "_filename": "KBV_PR_VoS_Bundle_PVS_VoS.json",
  "package_name": "kbv.ita.vos",
  "date": "2023-02-01",
  "derivation": "constraint",
  "publisher": "Kassenärztliche Bundesvereinigung",
  "fhirVersion": "4.0.1",
  "name": "KBV_PR_VoS_Bundle_PVS_VoS",
  "mapping": [ {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/v3/cda",
    "name": "CDA (R2)",
    "identity": "cda"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  } ],
  "abstract": false,
  "type": "Bundle",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "KBV_PR_VoS_Bundle_PVS_VoS",
  "package_version": "2.1.0",
  "status": "active",
  "id": "489ffe09-2902-490e-9e60-bce1265e69f6",
  "kind": "resource",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Bundle_PVS_VoS",
  "version": "2.1.0",
  "differential": {
    "element": [ {
      "id": "Bundle",
      "path": "Bundle",
      "short": "Aufruf-Bundle",
      "constraint": [ {
        "key": "compositionPflicht",
        "human": "Die Ressource vom Typ Composition muss genau einmal vorhanden sein",
        "severity": "error",
        "expression": "entry.where(resource is Composition).count()=1"
      }, {
        "key": "versionComposition",
        "human": "Die Instanz der Composition muss vom Profil KBV_PR_VoS_Composition|2.1.0 sein",
        "severity": "error",
        "expression": "entry.where(resource is Composition).resource.meta.profile = 'https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Composition|2.1.0'"
      }, {
        "key": "practitionerPflicht",
        "human": "Die Übergabe einer Instanz zur behandelnden Person (KBV_PR_VoS_Practitioner|2.1.0) ist Pflicht.",
        "severity": "error",
        "expression": "entry.where(resource.meta.profile = 'https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Practitioner|2.1.0').exists()"
      }, {
        "key": "ASV-Teamnummer",
        "human": "Die ASV-Teamnummer muss in der PractitionerRole genau dann vorliegen, wenn die VoS im Rahmen eines ASV-Falls (Statuskennzeichen 01 oder 11) aufgerufen wird.",
        "severity": "error",
        "expression": "entry.where(resource is Composition).resource.author.where(type='PractitionerRole').reference.resolve().organization.identifier.exists() xor (entry.where(resource is Composition).resource.extension('https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis').value as Coding).code.endsWith('1').not()"
      } ],
      "definition": "Bundle mit kID und den Ressourcen, die für den Aufruf der VoS nötig sind"
    }, {
      "id": "Bundle.id",
      "min": 1,
      "path": "Bundle.id",
      "short": "BundleID",
      "definition": "Die ID des Bundles wird als kID beim Aufruf der VoS übertragen",
      "mustSupport": true
    }, {
      "id": "Bundle.meta",
      "min": 1,
      "path": "Bundle.meta",
      "mustSupport": true
    }, {
      "id": "Bundle.meta.source",
      "max": "0",
      "path": "Bundle.meta.source"
    }, {
      "id": "Bundle.meta.profile",
      "max": "1",
      "min": 1,
      "path": "Bundle.meta.profile",
      "mustSupport": true,
      "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Bundle_PVS_VoS|2.1.0"
    }, {
      "id": "Bundle.meta.security",
      "max": "0",
      "path": "Bundle.meta.security"
    }, {
      "id": "Bundle.meta.tag",
      "max": "0",
      "path": "Bundle.meta.tag"
    }, {
      "id": "Bundle.implicitRules",
      "max": "0",
      "path": "Bundle.implicitRules"
    }, {
      "id": "Bundle.language",
      "max": "0",
      "path": "Bundle.language"
    }, {
      "id": "Bundle.identifier",
      "path": "Bundle.identifier",
      "mustSupport": true
    }, {
      "id": "Bundle.identifier.use",
      "max": "0",
      "path": "Bundle.identifier.use"
    }, {
      "id": "Bundle.identifier.type",
      "max": "0",
      "path": "Bundle.identifier.type"
    }, {
      "id": "Bundle.identifier.system",
      "min": 1,
      "path": "Bundle.identifier.system",
      "fixedUri": "https://fhir.kbv.de/NamingSystem/KBV_NS_VoS_BundleID",
      "mustSupport": true
    }, {
      "id": "Bundle.identifier.value",
      "min": 1,
      "path": "Bundle.identifier.value",
      "mustSupport": true
    }, {
      "id": "Bundle.identifier.period",
      "max": "0",
      "path": "Bundle.identifier.period"
    }, {
      "id": "Bundle.identifier.assigner",
      "max": "0",
      "path": "Bundle.identifier.assigner"
    }, {
      "id": "Bundle.type",
      "path": "Bundle.type",
      "fixedCode": "document",
      "mustSupport": true
    }, {
      "id": "Bundle.timestamp",
      "min": 1,
      "path": "Bundle.timestamp",
      "mustSupport": true
    }, {
      "id": "Bundle.total",
      "max": "0",
      "path": "Bundle.total"
    }, {
      "id": "Bundle.link",
      "max": "0",
      "path": "Bundle.link"
    }, {
      "id": "Bundle.entry",
      "min": 1,
      "path": "Bundle.entry",
      "short": "Ressourcen",
      "constraint": [ {
        "key": "erlaubteRessourcen",
        "human": "Es dürfen nur Ressourcen aus der VoS-SST und E-Rezept-Bundles übertragen werden.",
        "severity": "error",
        "expression": "resource.meta.profile.startsWith('https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS') or resource.meta.profile.startsWith('https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle')"
      } ],
      "definition": "Ressourcen, die für den Aufruf der VoS benötigt werden, inklusive der mandatorischen Composition-Ressource",
      "mustSupport": true
    }, {
      "id": "Bundle.entry.link",
      "max": "0",
      "path": "Bundle.entry.link",
      "contentReference": "http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"
    }, {
      "id": "Bundle.entry.fullUrl",
      "min": 1,
      "path": "Bundle.entry.fullUrl",
      "mustSupport": true
    }, {
      "id": "Bundle.entry.resource",
      "min": 1,
      "path": "Bundle.entry.resource",
      "mustSupport": true
    }, {
      "id": "Bundle.entry.search",
      "max": "0",
      "path": "Bundle.entry.search"
    }, {
      "id": "Bundle.entry.request",
      "max": "0",
      "path": "Bundle.entry.request"
    }, {
      "id": "Bundle.entry.response",
      "max": "0",
      "path": "Bundle.entry.response"
    }, {
      "id": "Bundle.signature",
      "max": "0",
      "path": "Bundle.signature"
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle"
}