Open-Nursing-Validator / docs /StructureDefinition-onc-sleep-pattern.md
NurseCitizenDeveloper's picture
Deploy Open Nursing Validator (Docker)
6d12932 verified
# Sleep Pattern - Open Nursing Core FHIR Implementation Guide (ONC-IG) v0.1.0
* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **Sleep Pattern**
## Resource Profile: Sleep Pattern
| | |
| :--- | :--- |
| *Official URL*:https://fhir.clinyq.ai/StructureDefinition/onc-sleep-pattern | *Version*:0.1.0 |
| Draft as of 2026-01-01 | *Computable Name*:ONCSleepPattern |
Observation of sleep quality, duration, and disturbances. Sleep pattern disturbance is a key indicator for delirium and general wellbeing.
**Usages:**
* This Profile is not used by any profiles in this Implementation Guide
You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/onc.ig|current/StructureDefinition/onc-sleep-pattern)
### Formal Views of Profile Content
[Description of Profiles, Differentials, Snapshots and how the different presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions).
 
Other representations of profile: [CSV](StructureDefinition-onc-sleep-pattern.csv), [Excel](StructureDefinition-onc-sleep-pattern.xlsx), [Schematron](StructureDefinition-onc-sleep-pattern.sch)
## Resource Content
```json
{
"resourceType" : "StructureDefinition",
"id" : "onc-sleep-pattern",
"url" : "https://fhir.clinyq.ai/StructureDefinition/onc-sleep-pattern",
"version" : "0.1.0",
"name" : "ONCSleepPattern",
"title" : "Sleep Pattern",
"status" : "draft",
"date" : "2026-01-01T13:37:23+00:00",
"description" : "Observation of sleep quality, duration, and disturbances. Sleep pattern disturbance is a key indicator for delirium and general wellbeing.",
"fhirVersion" : "4.0.1",
"mapping" : [
{
"identity" : "workflow",
"uri" : "http://hl7.org/fhir/workflow",
"name" : "Workflow Pattern"
},
{
"identity" : "sct-concept",
"uri" : "http://snomed.info/conceptdomain",
"name" : "SNOMED CT Concept Domain Binding"
},
{
"identity" : "v2",
"uri" : "http://hl7.org/v2",
"name" : "HL7 v2 Mapping"
},
{
"identity" : "rim",
"uri" : "http://hl7.org/v3",
"name" : "RIM Mapping"
},
{
"identity" : "w5",
"uri" : "http://hl7.org/fhir/fivews",
"name" : "FiveWs Pattern Mapping"
},
{
"identity" : "sct-attr",
"uri" : "http://snomed.org/attributebinding",
"name" : "SNOMED CT Attribute Binding"
}
],
"kind" : "resource",
"abstract" : false,
"type" : "Observation",
"baseDefinition" : "https://clinyqai.github.io/open-nursing-core-ig/StructureDefinition/onc-nursing-assessment",
"derivation" : "constraint",
"differential" : {
"element" : [
{
"id" : "Observation",
"path" : "Observation"
},
{
"id" : "Observation.category",
"path" : "Observation.category",
"patternCodeableConcept" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/observation-category",
"code" : "exam"
}
]
}
},
{
"id" : "Observation.code",
"path" : "Observation.code",
"patternCodeableConcept" : {
"coding" : [
{
"system" : "https://clinyqai.github.io/open-nursing-core-ig/CodeSystem/onc-observation-codes",
"code" : "sleep-record"
}
]
}
},
{
"id" : "Observation.value[x]",
"path" : "Observation.value[x]",
"short" : "Overall summary of sleep period",
"type" : [
{
"code" : "string"
}
]
},
{
"id" : "Observation.component",
"path" : "Observation.component",
"slicing" : {
"discriminator" : [
{
"type" : "pattern",
"path" : "code"
}
],
"ordered" : false,
"rules" : "open"
},
"mustSupport" : true
},
{
"id" : "Observation.component:quality",
"path" : "Observation.component",
"sliceName" : "quality",
"min" : 0,
"max" : "1",
"mustSupport" : true
},
{
"id" : "Observation.component:quality.code",
"path" : "Observation.component.code",
"patternCodeableConcept" : {
"coding" : [
{
"system" : "https://clinyqai.github.io/open-nursing-core-ig/CodeSystem/onc-observation-codes",
"code" : "sleep-quality"
}
]
}
},
{
"id" : "Observation.component:quality.value[x]",
"path" : "Observation.component.value[x]",
"short" : "e.g., 'Restful', 'Fitful', 'Broken'",
"type" : [
{
"code" : "string"
}
]
},
{
"id" : "Observation.component:hours",
"path" : "Observation.component",
"sliceName" : "hours",
"min" : 0,
"max" : "1",
"mustSupport" : true
},
{
"id" : "Observation.component:hours.code",
"path" : "Observation.component.code",
"patternCodeableConcept" : {
"coding" : [
{
"system" : "https://clinyqai.github.io/open-nursing-core-ig/CodeSystem/onc-observation-codes",
"code" : "sleep-hours"
}
]
}
},
{
"id" : "Observation.component:hours.value[x]",
"path" : "Observation.component.value[x]",
"type" : [
{
"code" : "Quantity"
}
]
},
{
"id" : "Observation.component:hours.value[x].unit",
"path" : "Observation.component.value[x].unit",
"patternString" : "h"
},
{
"id" : "Observation.component:hours.value[x].system",
"path" : "Observation.component.value[x].system",
"patternUri" : "http://unitsofmeasure.org"
},
{
"id" : "Observation.component:hours.value[x].code",
"path" : "Observation.component.value[x].code",
"patternCode" : "h"
},
{
"id" : "Observation.component:disturbances",
"path" : "Observation.component",
"sliceName" : "disturbances",
"min" : 0,
"max" : "1",
"mustSupport" : true
},
{
"id" : "Observation.component:disturbances.code",
"path" : "Observation.component.code",
"patternCodeableConcept" : {
"coding" : [
{
"system" : "https://clinyqai.github.io/open-nursing-core-ig/CodeSystem/onc-observation-codes",
"code" : "sleep-disturbances"
}
]
}
},
{
"id" : "Observation.component:disturbances.value[x]",
"path" : "Observation.component.value[x]",
"type" : [
{
"code" : "string"
}
]
}
]
}
}
```