{
  "resourceType": "StructureDefinition",
  "id": "NotificationBundleLaboratory",
  "url": "https://demis.rki.de/fhir/StructureDefinition/NotificationBundleLaboratory",
  "version": "1.3.0",
  "name": "NotificationBundleLaboratory",
  "title": "Erregernachweismeldevorgang",
  "status": "active",
  "date": "2023-10-30",
  "description": "Der Erregernachweismeldevorgang ist vom Meldevorgang abgeleitet und bildet den Container für eine Erregernachweismeldung und die darin referenzierten Ressourcen.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "https://demis.rki.de/fhir/StructureDefinition/NotificationBundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle",
        "constraint": [
          {
            "key": "maxOneNotifiedPerson",
            "severity": "error",
            "human": "Im NotificationBundle darf maximal eine betroffene Person enthalten sein.",
            "expression": "entry.where(resource.meta.profile='https://demis.rki.de/fhir/StructureDefinition/NotifiedPerson').count()<=1"
          },
          {
            "key": "exactlyOneSubmittingRole",
            "severity": "error",
            "human": "Im NotificationBundle muss genau eine Einsender-Rolle enthalten sein.",
            "expression": "entry.where(resource.meta.profile='https://demis.rki.de/fhir/StructureDefinition/SubmittingRole').count()=1"
          }
        ]
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.profile",
        "path": "Bundle.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://demis.rki.de/fhir/StructureDefinition/NotificationBundleLaboratory",
        "mustSupport": true
      },
      {
        "id": "Bundle.identifier.system",
        "path": "Bundle.identifier.system",
        "fixedUri": "https://demis.rki.de/fhir/NamingSystem/NotificationBundleId"
      },
      {
        "id": "Bundle.entry:notification",
        "path": "Bundle.entry",
        "sliceName": "notification",
        "definition": "Enthaltene Meldungen. In einem Erregernachweismeldevorgang muss genau eine Erregernachweismeldung enthalten sein.",
        "max": "1"
      },
      {
        "id": "Bundle.entry:notification.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Composition",
            "profile": [
              "https://demis.rki.de/fhir/StructureDefinition/NotificationLaboratory"
            ]
          }
        ]
      }
    ]
  }
}