{
  "resourceType": "StructureDefinition",
  "id": "Profile-HiGHmed-InfectionControl-Kulturdiagnostik",
  "url": "http://highmed.org/fhir/StructureDefinition/ic/Kulturdiagnostik",
  "version": "1.0.0",
  "name": "Profile_HiGHmed_InfectionControl_Kulturdiagnostik",
  "title": "Profile - HiGHmed - Infection Control - Kulturdiagnostik",
  "status": "active",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "min": 3
      },
      {
        "id": "Observation.category.coding:loinc-microbiology-studies",
        "path": "Observation.category.coding",
        "sliceName": "loinc-microbiology-studies",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://loinc.org",
          "code": "18725-2"
        }
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding:loinc-microorganism",
        "path": "Observation.code.coding",
        "sliceName": "loinc-microorganism",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://loinc.org",
          "code": "11475-1"
        },
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.value[x]",
        "sliceName": "valueQuantity",
        "max": "0"
      },
      {
        "id": "Observation.value[x]:valueCodeableConcept",
        "path": "Observation.value[x]",
        "sliceName": "valueCodeableConcept",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://highmed.org/fhir/ValueSet/ic/detected-not-detected-inconclusive"
        }
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://highmed.org/fhir/StructureDefinition/ic/Specimen"
            ]
          }
        ]
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://highmed.org/fhir/StructureDefinition/ic/Keimzahl",
              "http://highmed.org/fhir/StructureDefinition/ic/Virulenzfaktor",
              "http://highmed.org/fhir/StructureDefinition/ic/Resistenzmechanismus",
              "http://highmed.org/fhir/StructureDefinition/ic/AntibiogrammPanel"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisBakterien",
        "path": "Observation.component",
        "sliceName": "NachweisBakterien",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisBakterien.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "6463-4"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisBakterien.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisBakterien.value[x]:valueCodeableConcept",
        "path": "Observation.component.value[x]",
        "sliceName": "valueCodeableConcept",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://highmed.org/fhir/ValueSet/ic/mikrobiologische-erreger-bakterien-snomedct-explizit"
        }
      },
      {
        "id": "Observation.component:NachweisPilze",
        "path": "Observation.component",
        "sliceName": "NachweisPilze",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisPilze.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "42805-2"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisPilze.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisPilze.value[x]:valueCodeableConcept",
        "path": "Observation.component.value[x]",
        "sliceName": "valueCodeableConcept",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://highmed.org/fhir/ValueSet/ic/mikrobiologische-erreger-pilze-snomedct-explizit"
        }
      },
      {
        "id": "Observation.component:NachweisVirus",
        "path": "Observation.component",
        "sliceName": "NachweisVirus",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisVirus.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "6584-7"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisVirus.value[x]",
        "path": "Observation.component.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:NachweisVirus.value[x]:valueCodeableConcept",
        "path": "Observation.component.value[x]",
        "sliceName": "valueCodeableConcept",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://highmed.org/fhir/ValueSet/ic/mikrobiologische-viren-snomedct-explizit"
        }
      }
    ]
  }
}