<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="f307d7de-82bf-4e1d-80e5-5e6a9b0ee067" />
  <meta>
    <lastUpdated value="2022-03-08T09:31:07.122+00:00" />
  </meta>
  <url value="https://fhir.cambio.se/StructureDefinition/ObservationOxygenSaturationLite/v1" />
  <version value="1.1.0" />
  <name value="ObservationOxygenSaturationLite" />
  <status value="active" />
  <date value="2021-11-18T09:03:36.8108027+00:00" />
  <description value="Cambio Lite profile for communicating the vital parameter, oxygen saturation, between an external system and COSMIC. The oxygen saturation profile includes the value of the percentage of oxygen and a if the patient has a hypercapnic respiratory failure. It also includes a contained resource for the inspired oxygen to be included if the patient is breathing delivered oxygen. It also includes contextuel data and meta data." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="sct-concept" />
    <uri value="http://snomed.info/conceptdomain" />
    <name value="SNOMED CT Concept Domain Binding" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="sct-attr" />
    <uri value="http://snomed.org/attributebinding" />
    <name value="SNOMED CT Attribute Binding" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="https://fhir.cambio.se/StructureDefinition/observationOxygenSaturationCore/v1" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.meta">
      <path value="Observation.meta" />
    </element>
    <element id="Observation.meta.source">
      <path value="Observation.meta.source" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.meta.profile">
      <path value="Observation.meta.profile" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.extension">
      <path value="Observation.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Observation.extension:saturation-hypercapnicRespiratoryFailure">
      <path value="Observation.extension" />
      <sliceName value="saturation-hypercapnicRespiratoryFailure" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/saturation-hypercapnicRespiratoryFailure/v1" />
      </type>
    </element>
    <element id="Observation.identifier.use">
      <path value="Observation.identifier.use" />
      <max value="0" />
    </element>
    <element id="Observation.identifier.type">
      <path value="Observation.identifier.type" />
      <max value="0" />
    </element>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <max value="0" />
    </element>
    <element id="Observation.partOf">
      <path value="Observation.partOf" />
      <max value="0" />
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <short value="preliminary | final | entered in error | cancelled" />
      <definition value="The status of th result value. &#xD;&#xA;FHIR - Cambio&#xD;&#xA;preliminary -&gt; unsigned&#xA;final -&gt; signed and completednonSignable&#xA;amended -&gt; not supported&#xA;entered in error -&gt; invalidated&#xA;cancelled -&gt; removed" />
      <binding>
        <strength value="required" />
        <description value="Subset of Codes providing the status of an observation." />
        <valueSet value="https://cambio.codes/fhir/vs/vital-sign-status/v1" />
      </binding>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <max value="2" />
    </element>
    <element id="Observation.encounter.identifier.system">
      <path value="Observation.encounter.identifier.system" />
      <min value="1" />
    </element>
    <element id="Observation.encounter.identifier.value">
      <path value="Observation.encounter.identifier.value" />
      <min value="1" />
    </element>
    <element id="Observation.issued">
      <path value="Observation.issued" />
      <max value="0" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <max value="2" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Observation.performer:patient">
      <path value="Observation.performer" />
      <sliceName value="patient" />
      <max value="1" />
    </element>
    <element id="Observation.performer:Practitioner">
      <path value="Observation.performer" />
      <sliceName value="Practitioner" />
      <max value="1" />
    </element>
    <element id="Observation.performer:organization">
      <path value="Observation.performer" />
      <sliceName value="organization" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://commonprofiles.care/StructureDefinition/OrganizationSEVendorLite/v1" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <slicing>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.value[x]:valueQuantity">
      <path value="Observation.value[x]" />
      <sliceName value="valueQuantity" />
      <min value="1" />
    </element>
    <element id="Observation.value[x]:valueQuantity.value">
      <path value="Observation.value[x].value" />
      <definition value="The value of the measured amount. The value for the oxygen saturation must be within the range of 0.0.. 100.0." />
      <minValueDecimal value="0" />
      <maxValueDecimal value="100.0" />
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <max value="0" />
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <max value="0" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <max value="1" />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.coding">
      <path value="Observation.bodySite.coding" />
      <max value="0" />
    </element>
    <element id="Observation.bodySite.text">
      <path value="Observation.bodySite.text" />
      <min value="1" />
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <max value="0" />
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <comment value="Could be used for referensing to Inspired oxygen" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.cambio.se/StructureDefinition/ObservationInspiredOxygenLite/v1" />
        <aggregation value="contained" />
      </type>
    </element>
    <element id="Observation.derivedFrom">
      <path value="Observation.derivedFrom" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>