{
  "resourceType": "StructureDefinition",
  "id": "LaboratoryReport",
  "url": "https://demis.rki.de/fhir/StructureDefinition/LaboratoryReport",
  "version": "2.0.0",
  "name": "LaboratoryReport",
  "title": "Laborbericht",
  "status": "active",
  "date": "2025-02-20",
  "publisher": "Robert Koch-Institut",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "demis-support@rki.de"
        }
      ]
    }
  ],
  "description": "Der Laborbericht kann mehrere Erregernachweise zu einer Probe enthalten und beinhaltet eine Gesamtbewertung der Ergebnisse aller Einzeltests.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "version": "ALPHA-2",
          "code": "DE"
        }
      ]
    }
  ],
  "copyright": "Copyright (C) 2021-2025 Robert Koch-Institut",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": true,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.extension",
        "path": "DiagnosticReport.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "DiagnosticReport.extension:reasonForTesting",
        "path": "DiagnosticReport.extension",
        "sliceName": "reasonForTesting",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/workflow-reasonCode"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "DiagnosticReport.extension:reasonForTesting.value[x]",
        "path": "DiagnosticReport.extension.value[x]",
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "EventReason"
            }
          ],
          "strength": "required",
          "valueSet": "https://demis.rki.de/fhir/ValueSet/reasonForTesting"
        }
      },
      {
        "id": "DiagnosticReport.extension:reasonForTesting.value[x].coding",
        "path": "DiagnosticReport.extension.value[x].coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension:reasonForTesting.value[x].coding.system",
        "path": "DiagnosticReport.extension.value[x].coding.system",
        "min": 1,
        "patternUri": "http://snomed.info/sct",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension:reasonForTesting.value[x].coding.version",
        "path": "DiagnosticReport.extension.value[x].coding.version",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension:reasonForTesting.value[x].coding.code",
        "path": "DiagnosticReport.extension.value[x].coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension:reasonForTesting.value[x].text",
        "path": "DiagnosticReport.extension.value[x].text",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "short": "Laborauftragsnummer",
        "definition": "Es ist nicht ein echter ServiceRequest anzugeben, sondern eine logische Variante, die über die Laborauftragsnummer referenziert wird.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.basedOn.reference",
        "path": "DiagnosticReport.basedOn.reference",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.type",
        "path": "DiagnosticReport.basedOn.type",
        "min": 1,
        "fixedUri": "ServiceRequest",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.basedOn.identifier",
        "path": "DiagnosticReport.basedOn.identifier",
        "short": "Laborauftragsnummer",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.basedOn.identifier.type",
        "path": "DiagnosticReport.basedOn.identifier.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "code": "FILL"
            }
          ]
        }
      },
      {
        "id": "DiagnosticReport.basedOn.identifier.system",
        "path": "DiagnosticReport.basedOn.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.basedOn.identifier.value",
        "path": "DiagnosticReport.basedOn.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "short": "Status der Testergebnisse",
        "definition": "Status der Testergebnisse",
        "comment": "Der Status ist szenarienspezifisch folgendermaßen zu belegen.\r\nfinal - bei einer Meldung, bei der kein Bestätigungstest notwendig ist, bei einem erfolgten Bestätigungstest;\r\npreliminary - bei einer Meldung, bei der ein Bestätigungstest notwendig ist;\r\namended/corrected - bei einer Korrekturmeldung",
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DiagnosticReportStatus"
            }
          ],
          "strength": "required",
          "description": "Status des Laborberichts",
          "valueSet": "https://demis.rki.de/fhir/ValueSet/laboratoryReportStatus"
        }
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "short": "Meldetatbestand",
        "definition": "Angabe des Meldetatbestandes. Der jeweils zutreffende Meldetatbestand ist in abgeleiteten erregerspezifischen Laborbericht-Profilen vorgegeben.",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.code.coding",
        "path": "DiagnosticReport.code.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Meldetatbestand",
          "valueSet": "https://demis.rki.de/fhir/ValueSet/notificationCategory"
        }
      },
      {
        "id": "DiagnosticReport.code.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.code.coding.code",
        "path": "DiagnosticReport.code.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "short": "Verweis auf die in der Meldung benannte betroffene Person.",
        "definition": "Verweis auf die in der Meldung benannte betroffene Person. Hierbei handelt es sich grundsätzlich um den Verweis auf die in der Erregernachweismeldung als „subject“ referenzierte Patient Ressource.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://demis.rki.de/fhir/StructureDefinition/NotifiedPerson",
              "https://demis.rki.de/fhir/StructureDefinition/NotifiedPersonAnonymous"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.subject.reference",
        "path": "DiagnosticReport.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "short": "Zeitpunkt der Erstellung/Bearbeitung (der aktuellen Version) des Laborbefundes",
        "definition": "Zeitpunkt der Erstellung/Bearbeitung (der aktuellen Version) des Laborbefundes. Dieser ändert sich entsprechend bei Ergänzungen/Korrekturen.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "short": "Erregernachweis",
        "definition": "Referenziert einen Erregernachweis.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://demis.rki.de/fhir/StructureDefinition/PathogenDetection"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media",
        "path": "DiagnosticReport.media",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "short": "Textuelle Zusammenfassung der Testergebnisse",
        "definition": "Fasst die Ergebnisse der Einzeltests in textueller Form zusammen.",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "closed"
        },
        "short": "Kodierte Zusammenfassung der Testergebnisse",
        "definition": "Fasst die Ergebnisse der Einzeltests in kodierter Form zusammen und gibt damit an, ob der Meldetatbestand erfüllt ist.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusionCode:demisConclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "sliceName": "demisConclusionCode",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusionCode:demisConclusionCode.coding",
        "path": "DiagnosticReport.conclusionCode.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "Gesamttestergebnis",
          "valueSet": "https://demis.rki.de/fhir/ValueSet/conclusionCode"
        }
      },
      {
        "id": "DiagnosticReport.conclusionCode:demisConclusionCode.coding.system",
        "path": "DiagnosticReport.conclusionCode.coding.system",
        "min": 1,
        "fixedUri": "https://demis.rki.de/fhir/CodeSystem/conclusionCode",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusionCode:demisConclusionCode.coding.code",
        "path": "DiagnosticReport.conclusionCode.coding.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "0"
      }
    ]
  }
}