<?xml version="1.0" encoding="UTF-8"?>

<Observation xmlns="http://hl7.org/fhir">
  <id value="janusync-dtx-result-observation-example"/>
  <meta>
    <profile value="http://connectdtx.kr/fhir/StructureDefinition/janusync-dtx-result-observation"/>
  </meta>
  <identifier>
    <system value="https://connectdtx.net/phicode"/>
    <value value="sMbAFvHPH1rS58kTHAkbZ82Xq8kjxVZQYjvN-_-InRU"/>
  </identifier>
  <basedOn>
    <reference value="ServiceRequest/dtx-servicerequest-example"/>
  </basedOn>
  <status value="preliminary"/>
  <category>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/observation-category"/>
      <code value="activity"/>
      <display value="Activity"/>
    </coding>
  </category>
  <code>
    <coding>
      <system value="http://connectdtx.kr/fhir/CodeSystem/janusync-dtx-code"/>
      <code value="service-code-001"/>
      <display value="수면 DTx (Sleep DTx)"/>
    </coding>
  </code>
  <subject>
    <reference value="Patient/janusync-patient-example"/>
  </subject>
  <effectivePeriod>
    <start value="2000-01-01T17:05:00+09:00"/>
  </effectivePeriod>
  <performer>
    <reference value="Patient/janusync-patient-example"/>
  </performer>
  <device>
    <reference value="Device/janusync-dtx-device-example"/>
  </device>
  <component>
    <code>
      <coding>
        <system value="http://loinc.org"/>
        <code value="LP33126-1"/>
      </coding>
    </code>
    <valueQuantity>
      <value value="73"/>
      <system value="http://unitsofmeasure.org"/>
      <code value="%"/>
    </valueQuantity>
    <interpretation>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"/>
        <code value="L"/>
        <display value="Low"/>
      </coding>
    </interpretation>
  </component>
  <component>
    <code>
      <coding>
        <system value="http://loinc.org"/>
        <code value="LP173213-2"/>
        <display value="Progress"/>
      </coding>
    </code>
    <valueRatio>
      <numerator>
        <value value="1"/>
      </numerator>
      <denominator>
        <value value="42"/>
      </denominator>
    </valueRatio>
  </component>
</Observation>