PackagesCanonicalsLogsProblems
    Packages
    KBV.ITA.EAU@1.0.1
    https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle
{
  "description": null,
  "_filename": "KBV_PR_EAU_Bundle.json",
  "package_name": "KBV.ITA.EAU",
  "date": "2020-12-22",
  "derivation": "constraint",
  "publisher": "Kassenärztliche Bundesvereinigung",
  "fhirVersion": "4.0.1",
  "name": "KBV_PR_EAU_Bundle",
  "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": "false",
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "1.0.1",
  "status": "active",
  "id": "d2548e80-a3b3-4489-9508-0efa40bc18d5",
  "kind": "resource",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
  "version": "1.0.1",
  "differential": {
    "element": [ {
      "id": "Bundle",
      "path": "Bundle",
      "constraint": [ {
        "key": "Composition-pflicht",
        "human": "Die Ressource vom Typ Composition muss genau einmal vorhanden sein",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "entry.where(resource is Composition).count()=1"
      }, {
        "key": "Composition-Pruefnummer",
        "human": "Die Prüfnummer ist nicht vorhanden, ist aber bei den Kostentraegern vom Typ \"GKV\", \"BG\", \"SKT\" oder \"UK\" ein Pflichtelement.",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "( entry.where(resource is Coverage).resource.type.coding.code='GKV' or          entry.where(resource is Coverage).resource.type.coding.code='BG' or          entry.where(resource is Coverage).resource.type.coding.code='SKT' or          entry.where(resource is Coverage).resource.type.coding.code='UK') implies          entry.where(resource is Composition).resource.author.identifier.where(system='https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer').exists()"
      }, {
        "key": "PostalCode",
        "human": "Die Postleitzahl ist nicht vorhanden, sie ist aber bei den Kostentraegern vom Typ \"GKV\", \"BG\", \"SKT\" oder \"UK\" ein Pflichtelement.",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "(        entry.where(resource is Coverage).resource.type.coding.code='GKV' or         entry.where(resource is Coverage).resource.type.coding.code='BG' or         entry.where(resource is Coverage).resource.type.coding.code='SKT' or         entry.where(resource is Coverage).resource.type.coding.code='UK') implies                 entry.where(resource is Patient).resource.address.postalCode.exists()"
      }, {
        "key": "Rechtsgrundlage-Pflicht",
        "human": "Die Rechtsgrundlage ist nicht vorhanden, sie ist aber bei den Kostentraegern vom Typ \"GKV\", \"BG\", \"SKT\", \"PKV\" oder \"UK\" ein Pflichtelement.",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "(       entry.where(resource is Coverage).resource.type.coding.code='GKV' or        entry.where(resource is Coverage).resource.type.coding.code='BG' or        entry.where(resource is Coverage).resource.type.coding.code='SKT' or        entry.where(resource is Coverage).resource.type.coding.code='UK' or        entry.where(resource is Coverage).resource.type.coding.code='PKV') implies        entry.where(resource is Composition).resource.extension('https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis').exists()"
      }, {
        "key": "unique-ServiceRequest",
        "human": "Die Einträge für die Instanz ServiceRequest müssen im Dokument eindeutig sein.",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "entry.select(resource as ServiceRequest).code.coding.code.isDistinct()"
      }, {
        "key": "TypeComposition",
        "human": "Die Instanz der Composition muss vom Profil KBV_PR_EAU_Composition|1.0.1 sein",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "entry.where(resource is Composition).resource.meta.profile = 'https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Composition|1.0.1'"
      }, {
        "key": "angabeNrAusstellendePerson",
        "human": "Nummer der ausstellenden Person ist nicht vorhanden, aber Pflicht, wenn es sich um einen Arzt oder Zahnarzt handelt",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "(          (         entry.where(resource is Coverage).resource.type.coding.code='GKV' or          entry.where(resource is Coverage).resource.type.coding.code='BG' or          entry.where(resource is Coverage).resource.type.coding.code='SKT' or          entry.where(resource is Coverage).resource.type.coding.code='UK' or          entry.where(resource is Coverage).resource.type.coding.code='PKV') and (          entry.where(resource is Practitioner).resource.qualification.code.coding.code='00' or           entry.where(resource is Practitioner).resource.qualification.code.coding.code='01' or           entry.where(resource is Practitioner).resource.qualification.code.coding.code='04')        ) implies entry.where(resource is Practitioner).resource.identifier.exists()"
      }, {
        "key": "angabeBestriebsstaettennr",
        "human": "Betriebsstaettennummer nicht vorhanden, aber Pflicht, wenn es sich um einen Arzt, Zahnarzt oder Arzt in Weiterbildung handelt",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "(        (         entry.where(resource is Coverage).resource.type.coding.code='GKV' or          entry.where(resource is Coverage).resource.type.coding.code='BG' or          entry.where(resource is Coverage).resource.type.coding.code='SKT' or          entry.where(resource is Coverage).resource.type.coding.code='UK') and (          entry.where(resource is Practitioner).resource.qualification.code.coding.code='00' or           entry.where(resource is Practitioner).resource.qualification.code.coding.code='01' or           entry.where(resource is Practitioner).resource.qualification.code.coding.code='03' or           entry.where(resource is Practitioner).resource.qualification.code.coding.code='04')                  ) implies         entry.where(resource is Organization).resource.identifier.exists()"
      }, {
        "key": "angabeAUseit",
        "human": "Die Angabe arbeitsunfaehig seit ist nicht gesetzt, muss aber bei einer Erstbescheinigung gesetzt werden.",
        "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle",
        "severity": "error",
        "expression": "(         entry.where(resource is Composition).resource.type.coding.where(system = 'https://fhir.kbv.de/CodeSystem/KBV_CS_EAU_AU_Type').code = 'ERST'          or         entry.where(resource is Composition).resource.type.coding.where(system = 'https://fhir.kbv.de/CodeSystem/KBV_CS_EAU_AU_Type').code = 'ERST_END'         )implies(         entry.select(resource as Condition).where(meta.profile = 'https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Condition_AU|1.0.1').onsetPeriod.start.exists()        )"
      } ]
    }, {
      "id": "Bundle.id",
      "min": 1,
      "path": "Bundle.id",
      "mustSupport": true
    }, {
      "id": "Bundle.meta",
      "min": 1,
      "path": "Bundle.meta",
      "mustSupport": true
    }, {
      "id": "Bundle.meta.versionId",
      "max": "0",
      "path": "Bundle.meta.versionId"
    }, {
      "id": "Bundle.meta.lastUpdated",
      "path": "Bundle.meta.lastUpdated",
      "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_EAU_Bundle|1.0.1"
    }, {
      "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",
      "min": 1,
      "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": "urn:ietf:rfc:3986",
      "definition": "Festlegung damit eine UUID kommt",
      "mustSupport": true
    }, {
      "id": "Bundle.identifier.value",
      "min": 1,
      "path": "Bundle.identifier.value",
      "definition": "Eindeutige UUID",
      "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",
      "definition": "DateTime wann das Dokument technisch erstellt wurde. \r\nFachlich bildet das Ausstellungsdatum das entscheidende Datum ab",
      "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",
      "mustSupport": true
    }, {
      "id": "Bundle.entry.link",
      "max": "0",
      "path": "Bundle.entry.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"
    }, {
      "id": "Bundle.signature.who.reference",
      "min": 1,
      "path": "Bundle.signature.who.reference"
    }, {
      "id": "Bundle.signature.who.type",
      "max": "0",
      "path": "Bundle.signature.who.type"
    }, {
      "id": "Bundle.signature.who.identifier",
      "max": "0",
      "path": "Bundle.signature.who.identifier"
    }, {
      "id": "Bundle.signature.who.display",
      "max": "0",
      "path": "Bundle.signature.who.display"
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle"
}