{
  "resourceType": "StructureDefinition",
  "id": "ObservationMicrobiology-1",
  "meta": {
    "lastUpdated": "2020-10-28T15:14:07.471+00:00"
  },
  "url": "http://metait.de/fhir/STU3/ObservationMicrobiology-1",
  "name": "ObservationMicrobiology-1",
  "status": "active",
  "date": "2020-10-05T12:59:55.7866977Z",
  "publisher": "metait",
  "description": "Results of microbiology test for one substance: Specimen + BodySite + TestMethod + Test results + Antibiogram.\r\nIf many substances requested - must be returned a bundle of ObservationMicrobiology-1: one for each substance.",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "Results for one substance",
        "comment": "Used for complex observations such as microbiology tests, etc. \r\nRepresent result of tests for one substance. If many substances belongs to one request - must be produced one ObservationMicrobiology for one substance (in this case a requestIdentifier must be set mandatory)."
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:inlinedSpecimen",
        "path": "Observation.extension",
        "sliceName": "inlinedSpecimen",
        "short": "Specimen data inlined to Observation profile",
        "comment": "In original",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://metait.de/fhir/STU3/MEX-Observation-SpecimenEmbedded-1"
          }
        ]
      },
      {
        "id": "Observation.extension:inlinedSpecimen.extension",
        "path": "Observation.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:inlinedSpecimen.extension:substance",
        "path": "Observation.extension.extension",
        "sliceName": "substance",
        "short": "Substance code/description"
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.identifier:resultIdentifier",
        "path": "Observation.identifier",
        "sliceName": "resultIdentifier",
        "short": "Identifier for observation/material from Labor",
        "definition": "A unique identifier assigned to this observation. Can be same as substance identifier (see \"inlinedSpecimen\").",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.identifier:resultIdentifier.type",
        "path": "Observation.identifier.type",
        "min": 1
      },
      {
        "id": "Observation.identifier:resultIdentifier.type.coding",
        "path": "Observation.identifier.type.coding",
        "min": 1
      },
      {
        "id": "Observation.identifier:resultIdentifier.type.coding.code",
        "path": "Observation.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "result"
      },
      {
        "id": "Observation.identifier:resultIdentifier.period",
        "path": "Observation.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.identifier:requestIdentifier",
        "path": "Observation.identifier",
        "sliceName": "requestIdentifier",
        "short": "Identifier for ObservationRequest/Anforderung",
        "max": "1"
      },
      {
        "id": "Observation.identifier:requestIdentifier.type.coding",
        "path": "Observation.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.identifier:requestIdentifier.type.coding.code",
        "path": "Observation.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "request"
      },
      {
        "id": "Observation.identifier:requestIdentifier.period",
        "path": "Observation.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.identifier:receiverIdentifier",
        "path": "Observation.identifier",
        "sliceName": "receiverIdentifier",
        "short": "Identifier of receiver for observation: praxis or hospital",
        "definition": "Receiver of LaborResult: Hospital/Praxis Identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.identifier:receiverIdentifier.type.coding.code",
        "path": "Observation.identifier.type.coding.code",
        "fixedCode": "receiver"
      },
      {
        "id": "Observation.identifier:laborIdentifier",
        "path": "Observation.identifier",
        "sliceName": "laborIdentifier",
        "short": "Labor Identifier for observation, where test are made.",
        "definition": "Labor identification. Labor can be one of many external labors, one of the many hospital labors, one of many ward labors etc.\r\nLabor must send own identity.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.identifier:laborIdentifier.type.coding.code",
        "path": "Observation.identifier.type.coding.code",
        "fixedCode": "labor"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "definition": "Describes what was observed. Sometimes this is called the observation \"name\".\r\nHere will be placed material identifier."
      },
      {
        "id": "Observation.context",
        "path": "Observation.context",
        "short": "reference to encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          }
        ]
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "short": "timestamp of observation result.",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "short": "Date/Time this test results approved"
      },
      {
        "id": "Observation.value[x]:valueString",
        "path": "Observation.valueString",
        "sliceName": "valueString",
        "max": "0",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "short": "Why the result is missing - comment"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "short": "positiv/negativ/unknown"
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "short": "Comments about all test results."
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "short": "test method (z.b. PCR)"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "short": "Observation results: bacterium, other results"
      },
      {
        "id": "Observation.component.extension",
        "path": "Observation.component.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component.extension:antibiogram",
        "path": "Observation.component.extension",
        "sliceName": "antibiogram",
        "short": "if code is a bacteria - a antibiogram can be placed here",
        "type": [
          {
            "code": "Extension",
            "profile": "http://metait.de/fhir/STU3/MEX-AntibioticResistance-1"
          }
        ]
      },
      {
        "id": "Observation.component.extension:resultComment",
        "path": "Observation.component.extension",
        "sliceName": "resultComment",
        "short": "comment for bacteria or result",
        "type": [
          {
            "code": "Extension",
            "profile": "http://metait.de/fhir/STU3/MEX-ComponentComment-1"
          }
        ]
      },
      {
        "id": "Observation.component.extension:resultType",
        "path": "Observation.component.extension",
        "sliceName": "resultType",
        "comment": "Result Type - \"bacteria identification\", \"microscopy\", \"PCR result\", \"other result\" etc.\r\nHere can be placed chapter of result group.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://metait.de/fhir/STU3/MEX-ResultType-1"
          }
        ]
      },
      {
        "id": "Observation.component.extension:resultIdentifier",
        "path": "Observation.component.extension",
        "sliceName": "resultIdentifier",
        "comment": "Result identifier from labor. Result identifier - if exists - will be placed here. Sometimes is a combination from material identifier and some identifier part for result.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://metait.de/fhir/STU3/MEX-ResultIdentifier-1"
          }
        ]
      },
      {
        "id": "Observation.component.extension:resultStatus",
        "path": "Observation.component.extension",
        "sliceName": "resultStatus",
        "short": "Status of result item. Each item has own status. P.e. microscopy is in final status, bacteria identification is in preliminary.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://metait.de/fhir/STU3/MEX-ResultStatus-1"
          }
        ]
      },
      {
        "id": "Observation.component.extension:componentMethod",
        "path": "Observation.component.extension",
        "sliceName": "componentMethod",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://metait.de/fhir/STU3/MEX-ComponentMethod-1"
          }
        ]
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "short": "observation result or bacteria",
        "comment": "Observation result (\"not detected\", \"no grow\", etc..) or bacteria"
      },
      {
        "id": "Observation.component.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "MHK value",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component.dataAbsentReason",
        "path": "Observation.component.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.component.interpretation",
        "path": "Observation.component.interpretation",
        "short": "codes: pathogen/non-pathogen, MRGN, MRSA, ESBL, etc."
      },
      {
        "id": "Observation.component.referenceRange",
        "path": "Observation.component.referenceRange",
        "short": "range of MHK"
      }
    ]
  }
}