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