{
  "resourceType": "StructureDefinition",
  "id": "DGUV-OPER-PR-HistoMibiUntersuchung",
  "url": "http://fhir.dguv.de/OPER/Observation/DGUV-OPER-PR-HistoMibiUntersuchung",
  "version": "0.1",
  "name": "DGUV_OPER_PR_HistoMibiUntersuchung",
  "title": "Histo -/mikrobiologische Untersuchung",
  "status": "draft",
  "publisher": "Deutsche Gesetzliche Unfallversicherung e.V. (DGUV)",
  "description": "Hier werden die histologischen bzw. mikrobiologischen Untersuchungen angegeben.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Hier können die Informationen zur veranlassten histologischen und mikrobiologischen Untersuchung hinterlegt werden",
        "constraint": [
          {
            "key": "dguv-HistoMibi-1",
            "severity": "error",
            "human": "Wenn Histo -/Mibi-Untersuchung veranlasst boolean=true muss Observation.value befuellt sein",
            "expression": "extension.where(url = 'http://fhir.dguv.de/OPER/Extension/DGUV-OPER-EX-HistoMibiUntersuchungVeranlasst').valueBoolean.first() = true implies valueString.exists()"
          },
          {
            "key": "dguv-HistoMibi-2",
            "severity": "error",
            "human": "Wenn Histo-/Mibi-Untersuchung veranlasst = false ist darf Observation.value nicht befuellt sein",
            "expression": "extension.where(url = 'http://fhir.dguv.de/OPER/Extension/DGUV-OPER-EX-HistoMibiUntersuchungVeranlasst').valueBoolean.first() = false implies valueString.empty()"
          }
        ]
      },
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "mustSupport": true
      },
      {
        "id": "Observation.meta",
        "path": "Observation.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://fhir.dguv.de/OPER/Observation/DGUV-OPER-PR-HistoMibiUntersuchung",
        "mustSupport": true
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.extension:HistoMibiUntersuchungVeranlasst",
        "path": "Observation.extension",
        "sliceName": "HistoMibiUntersuchungVeranlasst",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.dguv.de/OPER/Extension/DGUV-OPER-EX-HistoMibiUntersuchungVeranlasst"
            ]
          }
        ],
        "mustSupport": true,
        "isModifier": false
      },
      {
        "id": "Observation.extension:HistoMibiUntersuchungVeranlasst.value[x]",
        "path": "Observation.extension.value[x]",
        "comment": "Wenn „true“ eingetragen ist, muss in Observation.value[x] zwingend eine Beschreibung der veranlassten histologischen oder mikrobiologischen Untersuchungen angegeben werden.",
        "mustSupport": true
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.dguv.de/OPER/Procedure/DGUV-OPER-PR-OPProzedur"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.partOf.reference",
        "path": "Observation.partOf.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "fixedCode": "final",
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.dguv.de/OPER/CodeSystem/DGUV-OPER-CS-Teilberichtsinhalt",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "min": 1,
        "fixedCode": "HMUN",
        "mustSupport": true
      },
      {
        "id": "Observation.code.coding.display",
        "path": "Observation.code.coding.display",
        "min": 1,
        "fixedString": "HistologischeMikrobiologischeUntersuchung",
        "mustSupport": true
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.dguv.de/OPER/Patient/DGUV-OPER-PR-VersichertePerson"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.subject.reference",
        "path": "Observation.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "short": "Freitext zu veranlassten histologischen und mikrobiologischen Untersuchungen",
        "definition": "Hier können die Informationen zur veranlassten histologischen und mikrobiologischen Untersuchung hinterlegt werden. Die Beschreibung muss insbesondere auch die Art des Untersuchungsmaterials (histologisch und/oder mikrobiologisch) enthalten.",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      }
    ]
  }
}