{
  "resourceType" : "ValueSet",
  "id" : "sleep-code-v1.0",
  "meta" : {
    "tag" : [{
      "system" : "https://wiki.mobilehealth.va.gov/x/Onc1C",
      "code" : "07542190-470a-4043-af42-aaac98406d57",
      "display" : "PGD Terminology Governance"
    }]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ValueSet sleep-code-v1.0</b></p><a name=\"sleep-code-v1.0\"> </a><a name=\"hcsleep-code-v1.0\"> </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\">Tag: PGD Terminology Governance (Details: Onc1C code 07542190-470a-4043-af42-aaac98406d57 = 'PGD Terminology Governance')</p></div><p>This value set includes codes based on the following rules:</p><ul><li>Include these codes as defined in <a href=\"http://loinc.org\"><code>http://loinc.org</code></a><span title=\"Version is not explicitly stated. No matching Code System found\"> version Not Stated (use latest from terminology server)</span><table class=\"none\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td></tr><tr><td><a href=\"https://loinc.org/93832-4/\">93832-4</a></td><td>Total Sleep Duration</td></tr><tr><td><a href=\"https://loinc.org/93831-6/\">93831-6</a></td><td>Deep Sleep Duration</td></tr></table></li><li>Include these codes as defined in <a href=\"CodeSystem-va-pghd-codesystem.html\"><code>https://connectedcare.va.gov/pghd/code-system</code></a><span title=\"Version is not explicitly stated, which means it is fixed to the version provided in this specification\"> version &#x1F4E6;2.1.27</span><table class=\"none\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-sleep-summary-code\">sleep-summary-code</a></td><td>Sleep Summary Code</td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-restless-count\">restless-count</a></td><td>Times Spent Restless</td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-awake-duration\">awake-duration</a></td><td>Time Spent Awake</td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-in-bed-duration\">in-bed-duration</a></td><td>In Bed Duration</td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-time-to-fall-asleep\">time-to-fall-asleep</a></td><td>Time Taken to Fall Asleep</td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-rem-sleep\">rem-sleep</a></td><td>Time in REM Sleep</td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-awake-count\">awake-count</a></td><td>Times Awakened</td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-sleep-score\">sleep-score</a></td><td>Sleep Score (Overall Quality)</td></tr><tr><td><a href=\"CodeSystem-va-pghd-codesystem.html#va-pghd-codesystem-light-sleep\">light-sleep</a></td><td>Light Sleep Duration</td></tr></table></li></ul></div>"
  },
  "url" : "https://veteran.apps.va.gov/smart-pgd-fhir/v2/ValueSet/sleep-code-v1.0",
  "version" : "2.1.27",
  "name" : "SleepCode",
  "title" : "Sleep Code",
  "status" : "active",
  "experimental" : false,
  "date" : "2023-03-01",
  "publisher" : "Department of Veterans Affairs, Veterans Health Administration, Office of Connected Care",
  "contact" : [{
    "name" : "Department of Veterans Affairs, Veterans Health Administration, Office of Connected Care",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.va.gov"
    }]
  }],
  "description" : "Sleep Codes for observations captured as Patient Generated Data via wearable devices. Types of measurements that are part of a sleep episode.",
  "compose" : {
    "include" : [{
      "system" : "http://loinc.org",
      "concept" : [{
        "code" : "93832-4",
        "display" : "Total Sleep Duration"
      },
      {
        "code" : "93831-6",
        "display" : "Deep Sleep Duration"
      }]
    },
    {
      "system" : "https://connectedcare.va.gov/pghd/code-system",
      "concept" : [{
        "code" : "sleep-summary-code",
        "display" : "Sleep Summary Code"
      },
      {
        "code" : "restless-count",
        "display" : "Times Spent Restless"
      },
      {
        "code" : "awake-duration",
        "display" : "Time Spent Awake"
      },
      {
        "code" : "in-bed-duration",
        "display" : "In Bed Duration"
      },
      {
        "code" : "time-to-fall-asleep",
        "display" : "Time Taken to Fall Asleep"
      },
      {
        "code" : "rem-sleep",
        "display" : "Time in REM Sleep"
      },
      {
        "code" : "awake-count",
        "display" : "Times Awakened"
      },
      {
        "code" : "sleep-score",
        "display" : "Sleep Score (Overall Quality)"
      },
      {
        "code" : "light-sleep",
        "display" : "Light Sleep Duration"
      }]
    }]
  }
}