{
  "resourceType": "StructureDefinition",
  "id": "Profile-HiGHmed-InfectionControl-DiagnosticReportLab",
  "url": "http://highmed.org/fhir/StructureDefinition/ic/DiagnosticReportLab",
  "version": "1.0.0",
  "name": "Profile_HiGHmed_InfectionControl_DiagnosticReportLab",
  "title": "Profile - HiGHmed - Infection Control - DiagnosticReportLab",
  "status": "active",
  "publisher": "https://highmed.org/",
  "description": "Dieses Profil beschreibt einen Laborbefund in HiGHmed Use Case Infection Control",
  "purpose": "Dieses Profil beschreibt einen Laborbefund in HiGHmed Use Case Infection Control",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/DiagnosticReportLab",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://highmed.org/fhir/StructureDefinition/ic/ServiceRequestLab"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.category.coding",
        "path": "DiagnosticReport.category.coding",
        "min": 3
      },
      {
        "id": "DiagnosticReport.category.coding:loinc-report-studies",
        "path": "DiagnosticReport.category.coding",
        "sliceName": "loinc-microbiology-studies",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://highmed.org/fhir/ValueSet/ic/DiagnosticReportStudies"
        }
      },
      {
        "id": "DiagnosticReport.category.coding:loinc-microbiology-specialization",
        "path": "DiagnosticReport.category.coding",
        "sliceName": "loinc-microbiology-specialization",
        "max": "1",
        "constraint": [
          {
            "key": "dia-ic-highmed-1",
            "severity": "error",
            "human": "Microbiology LOINC Spezialisierungen dürfen nur ausgewählt werden, falls der Report als Microbiology studies kodiert wurde",
            "expression": "%resource.category.where(coding.where(code = '18725-2' and system = 'http://loinc.org').exists()).exists()",
            "source": "http://highmed.org/fhir/StructureDefinition/ic/DiagnosticReportLab"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://highmed.org/fhir/ValueSet/ic/MicrobiologySpecializationDiagnosticReport"
        }
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://highmed.org/fhir/StructureDefinition/ic/Specimen"
            ]
          }
        ]
      }
    ]
  }
}