{
  "resourceType" : "Observation",
  "id" : "pghd-sleep-episode-2",
  "meta" : {
    "profile" : ["http://hl7.org/fhir/uv/phr/StructureDefinition/pghd-sleep-episode"]
  },
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Observation pghd-sleep-episode-2</b></p><a name=\"pghd-sleep-episode-2\"> </a><a name=\"hcpghd-sleep-episode-2\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-pghd-sleep-episode.html\">PGHD Sleep Episode Profile</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social History</span></p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/phr/CodeSystem/observation-pghd-codes sleepEpisode}\">Sleep episode</span></p><p><b>subject</b>: <a href=\"Patient-1.html\">John Doe Male, DoB: 1990-01-01</a></p><p><b>effective</b>: 2016-02-05 21:35:00+0900 --&gt; 2016-02-06 06:15:00+0900</p><p><b>performer</b>: <a href=\"Patient-1.html\">John Doe Male, DoB: 1990-01-01</a></p><p><b>device</b>: <a href=\"#hcpghd-sleep-episode-2/device\">Device: manufacturer = Apple</a></p><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes latencyToSleepOnset}\">Latency to sleep onset</span></p><p><b>value</b>: 17.5 min<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemin = 'min')</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes latencyToArising}\">Latency to arising</span></p><p><b>value</b>: 5.2 min<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemin = 'min')</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes totalSleepTime}\">Total sleep time</span></p><p><b>value</b>: 510 min<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemin = 'min')</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes wakeAfterSleepOnset}\">Wake after sleep onset</span></p><p><b>value</b>: 10.3 min<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemin = 'min')</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes numberOfAwakenings}\">Number of awakenings</span></p><p><b>value</b>: 1</p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes sleepEfficiencyPercentage}\">Sleep efficiency percentage</span></p><p><b>value</b>: 94.4 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Device #device</b></p><a name=\"pghd-sleep-episode-2/device\"> </a><a name=\"hcpghd-sleep-episode-2/device\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-pghd-device.html\">PGHD Device Profile</a></p></div><p><b>manufacturer</b>: Apple</p><blockquote><p><b>deviceName</b></p><p><b>name</b>: iPhone</p><p><b>type</b>: User Friendly name</p></blockquote><blockquote><p><b>deviceName</b></p><p><b>name</b>: iPhone</p><p><b>type</b>: Model name</p></blockquote><blockquote><p><b>version</b></p><p><b>type</b>: <span title=\"Codes:\">heardware</span></p><p><b>value</b>: iPhone13,1</p></blockquote><blockquote><p><b>version</b></p><p><b>type</b>: <span title=\"Codes:\">software</span></p><p><b>value</b>: 16.1.1</p></blockquote></blockquote></div>"
  },
  "contained" : [{
    "resourceType" : "Device",
    "id" : "device",
    "meta" : {
      "profile" : ["http://hl7.org/fhir/uv/phr/StructureDefinition/pghd-device"]
    },
    "manufacturer" : "Apple",
    "deviceName" : [{
      "name" : "iPhone",
      "type" : "user-friendly-name"
    },
    {
      "name" : "iPhone",
      "type" : "model-name"
    }],
    "version" : [{
      "type" : {
        "text" : "heardware"
      },
      "value" : "iPhone13,1"
    },
    {
      "type" : {
        "text" : "software"
      },
      "value" : "16.1.1"
    }]
  }],
  "status" : "final",
  "category" : [{
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
      "code" : "social-history",
      "display" : "Social History"
    }]
  }],
  "code" : {
    "coding" : [{
      "system" : "http://hl7.org/fhir/uv/phr/CodeSystem/observation-pghd-codes",
      "code" : "sleepEpisode"
    }]
  },
  "subject" : {
    "reference" : "Patient/1"
  },
  "effectivePeriod" : {
    "start" : "2016-02-05T21:35:00+09:00",
    "end" : "2016-02-06T06:15:00+09:00"
  },
  "performer" : [{
    "reference" : "Patient/1"
  }],
  "device" : {
    "reference" : "#device"
  },
  "component" : [{
    "code" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes",
        "code" : "latencyToSleepOnset"
      }]
    },
    "valueQuantity" : {
      "value" : 17.5,
      "unit" : "min",
      "system" : "http://unitsofmeasure.org",
      "code" : "min"
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes",
        "code" : "latencyToArising"
      }]
    },
    "valueQuantity" : {
      "value" : 5.2,
      "unit" : "min",
      "system" : "http://unitsofmeasure.org",
      "code" : "min"
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes",
        "code" : "totalSleepTime"
      }]
    },
    "valueQuantity" : {
      "value" : 510,
      "unit" : "min",
      "system" : "http://unitsofmeasure.org",
      "code" : "min"
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes",
        "code" : "wakeAfterSleepOnset"
      }]
    },
    "valueQuantity" : {
      "value" : 10.3,
      "unit" : "min",
      "system" : "http://unitsofmeasure.org",
      "code" : "min"
    }
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes",
        "code" : "numberOfAwakenings"
      }]
    },
    "valueInteger" : 1
  },
  {
    "code" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/phr/CodeSystem/sleep-episode-codes",
        "code" : "sleepEfficiencyPercentage"
      }]
    },
    "valueQuantity" : {
      "value" : 94.4,
      "unit" : "%",
      "system" : "http://unitsofmeasure.org",
      "code" : "%"
    }
  }]
}