<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Profile-HiGHmed-InfectionControl-MolekulareDiagnostik" />
  <url value="http://highmed.org/fhir/StructureDefinition/ic/MolekulareDiagnostik" />
  <version value="1.0.0" />
  <name value="Profile_HiGHmed_InfectionControl_MolekulareDiagnostik" />
  <title value="HiGHmed - Infection Control - Molekulare Diagnostik" />
  <status value="active" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.category.coding">
      <path value="Observation.category.coding" />
      <min value="3" />
    </element>
    <element id="Observation.category.coding:loinc-microbiology-studies">
      <path value="Observation.category.coding" />
      <sliceName value="loinc-microbiology-studies" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://loinc.org" />
        <code value="18725-2" />
      </patternCoding>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding:molekularediagnostik-allgemein">
      <path value="Observation.code.coding" />
      <sliceName value="molekularediagnostik-allgemein" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://loinc.org" />
        <code value="92253-4" />
      </patternCoding>
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding:molekulare-nachweistests-spezialisierung-loinc">
      <path value="Observation.code.coding" />
      <sliceName value="molekulare-nachweistests-spezialisierung-loinc" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://highmed.org/ValueSet/ic/molekulare-nachweistests-spezialisierung-loinc" />
      </binding>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.value[x]:valueQuantity">
      <path value="Observation.value[x]" />
      <sliceName value="valueQuantity" />
      <max value="0" />
    </element>
    <element id="Observation.value[x]:valueCodeableConcept">
      <path value="Observation.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <binding>
        <strength value="required" />
        <valueSet value="http://highmed.org/fhir/ValueSet/ic/positive-weaklypositive-negative-inconclusive-snomed" />
      </binding>
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://highmed.org/fhir/StructureDefinition/ic/Specimen" />
        <targetProfile value="http://highmed.org/fhir/StructureDefinition/ic/Specimen2" />
      </type>
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <max value="3" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisBakterien">
      <path value="Observation.component" />
      <sliceName value="NachweisBakterien" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisBakterien.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="118146008" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisBakterien.value[x]">
      <path value="Observation.component.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisBakterien.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://highmed.org/fhir/ValueSet/ic/mikrobiologische-erreger-bakterien-snomedct-explizit" />
      </binding>
    </element>
    <element id="Observation.component:NachweisPilze">
      <path value="Observation.component" />
      <sliceName value="NachweisPilze" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisPilze.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="118148009" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisPilze.value[x]">
      <path value="Observation.component.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisPilze.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://highmed.org/fhir/ValueSet/ic/mikrobiologische-erreger-pilze-snomedct-explizit" />
      </binding>
    </element>
    <element id="Observation.component:NachweisVirus">
      <path value="Observation.component" />
      <sliceName value="NachweisVirus" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisVirus.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="118147004" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisVirus.value[x]">
      <path value="Observation.component.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NachweisVirus.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://highmed.org/fhir/ValueSet/ic/mikrobiologische-viren-snomedct-explizit" />
      </binding>
    </element>
    <element id="Observation.component:NucleicAcidAssay">
      <path value="Observation.component" />
      <sliceName value="NucleicAcidAssay" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NucleicAcidAssay.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="398545005" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NucleicAcidAssay.value[x]">
      <path value="Observation.component.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NucleicAcidAssay.value[x]:valueQuantity">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueQuantity" />
      <min value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://highmed.org/fhir/ValueSet/ic/NucleicAcidAssayEinheit" />
      </binding>
    </element>
    <element id="Observation.component:NucleicAcidAssay.value[x]:valueQuantity.value">
      <path value="Observation.component.value[x].value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NucleicAcidAssay.value[x]:valueQuantity.system">
      <path value="Observation.component.value[x].system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NucleicAcidAssay.value[x]:valueQuantity.code">
      <path value="Observation.component.value[x].code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:PCR-CycleThreashold">
      <path value="Observation.component" />
      <sliceName value="PCR-CycleThreashold" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:PCR-CycleThreashold.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="9718006" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:PCR-CycleThreashold.value[x]">
      <path value="Observation.component.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:PCR-CycleThreashold.value[x]:valueQuantity">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueQuantity" />
      <min value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <patternQuantity>
        <system value="http://unitsofmeasure.org" />
        <code value="{Ct_value}" />
      </patternQuantity>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:PCR-CycleThreashold.value[x]:valueQuantity.value">
      <path value="Observation.component.value[x].value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:PCR-CycleThreashold.value[x]:valueQuantity.system">
      <path value="Observation.component.value[x].system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:PCR-CycleThreashold.value[x]:valueQuantity.code">
      <path value="Observation.component.value[x].code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>