<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://hs-osnabrueck.de/fhir/eWundbericht/StructureDefinition/WoundExudate" />
  <version value="0.9" />
  <name value="WoundExudate" />
  <status value="draft" />
  <publisher value="Hochschule Osnabrück" />
  <contact>
    <name value="Mareike Przysucha" />
    <telecom>
      <system value="email" />
      <value value="ewundbericht@hs-osnabrueck.de" />
      <use value="work" />
    </telecom>
    <telecom>
      <system value="phone" />
      <value value="+49 541 969 3354" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This resource contains information about the wound exudate in quality and quantity." />
  <copyright value="Forschungsgruppe Informatik im Gesundheitswesen, Fakultät Wirtschafts- und Sozialwissenschaften, Hochschule Osnabrück" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.category.coding.system">
      <path value="Observation.category.coding.system" />
      <fixedUri value="http://hl7.org/fhir/ValueSet/observation-category" />
    </element>
    <element id="Observation.category.coding.code">
      <path value="Observation.category.coding.code" />
      <fixedCode value="exam" />
    </element>
    <element id="Observation.category.coding.display">
      <path value="Observation.category.coding.display" />
      <fixedString value="Exam" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.code.coding:LOINC">
      <path value="Observation.code.coding" />
      <sliceName value="LOINC" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding:LOINC.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.code.coding:LOINC.code">
      <path value="Observation.code.coding.code" />
      <fixedCode value="89259-6" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hs-osnabrueck.de/fhir/eWundbericht/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
        <targetProfile value="http://hs-osnabrueck.de/fhir/eWundbericht/StructureDefinition/BodyStructure" />
        <targetProfile value="http://hs-osnabrueck.de/fhir/eWundbericht/StructureDefinition/Wound" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <max value="0" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <max value="0" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="code.coding" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="2" />
    </element>
    <element id="Observation.component:amountOfExudate">
      <path value="Observation.component" />
      <sliceName value="amountOfExudate" />
      <max value="1" />
    </element>
    <element id="Observation.component:amountOfExudate.code">
      <path value="Observation.component.code" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:amountOfExudate.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.component:amountOfExudate.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="39116-9" />
    </element>
    <element id="Observation.component:amountOfExudate.code.coding.display">
      <path value="Observation.component.code.coding.display" />
      <fixedString value="Amount of Exudate / Exsudatmenge" />
    </element>
    <element id="Observation.component:amountOfExudate.value[x]">
      <path value="Observation.component.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:amountOfExudate.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <valueSet value="http://hs-osnabrueck.de/fhir/eWundbericht/ValueSet/Exsudatmenge" />
      </binding>
    </element>
    <element id="Observation.component:amountOfExudate.interpretation">
      <path value="Observation.component.interpretation" />
      <max value="0" />
    </element>
    <element id="Observation.component:amountOfExudate.referenceRange">
      <path value="Observation.component.referenceRange" />
      <max value="0" />
    </element>
    <element id="Observation.component:colorOfExudate">
      <path value="Observation.component" />
      <sliceName value="colorOfExudate" />
      <max value="1" />
    </element>
    <element id="Observation.component:colorOfExudate.code">
      <path value="Observation.component.code" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:colorOfExudate.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="http://loinc.org" />
    </element>
    <element id="Observation.component:colorOfExudate.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="72289-2" />
    </element>
    <element id="Observation.component:colorOfExudate.code.coding.display">
      <path value="Observation.component.code.coding.display" />
      <fixedString value="Quality of exudate / Exsudatbeschaffenheit" />
    </element>
    <element id="Observation.component:colorOfExudate.value[x]">
      <path value="Observation.component.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:colorOfExudate.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <valueSet value="http://hs-osnabrueck.de/fhir/eWundbericht/ValueSet/Exsudatfarbe" />
      </binding>
    </element>
    <element id="Observation.component:colorOfExudate.interpretation">
      <path value="Observation.component.interpretation" />
      <max value="0" />
    </element>
    <element id="Observation.component:colorOfExudate.referenceRange">
      <path value="Observation.component.referenceRange" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>