Sleep Related Activity
Return to types list
Type Properties
Properties
| Property | Value |
| id | 031f5706-7f1a-11db-ad56-7bd355d89593 |
| name | Sleep Related Activity |
| uncreatable | false |
| immutable | false |
| singleton | false |
| transforms | form, mtt, stt |
|
Type Details
|
|
|
|
sleep-pm Defines an evening sleep journal.
| Name | Type | IsRequired | Description |
| when | d:date-time | Yes | The date and time that the journal entry refers
to. |
| caffeine | d:time | No | The time of each caffeine consumed for the day. |
| alcohol | d:time | No | The time of each alcohol consumed for the day. |
| nap | sjpm:Activity | No | The time and duration of each nap taken in the
day. |
| exercise | sjpm:Activity | No | The time and duration of each exercise session
in the day. Note, an application should (but is not required)
to query the aerobic sessions in the person's
health record to fill in this information. |
| sleepiness | | Yes | |
|
Activity Defines an activity taken by the person before laying down
for the night.
| Name | Type | IsRequired | Description |
| when | d:time | Yes | The time when the activity occurred. |
| minutes | nonNegativeInteger | Yes | The duration of the activity in minutes. |
|
Schema
Open schema as a file
Verify XML against this schema
<schema xmlns:sjpm="urn:com.microsoft.wc.thing.sjpm" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:com.microsoft.wc.thing.sjpm">
<import namespace="urn:com.microsoft.wc.thing.types" schemaLocation="base.xsd" />
<import namespace="urn:com.microsoft.wc.dates" schemaLocation="dates.xsd" />
<annotation>
<documentation>
<type-id>031F5706-7F1A-11DB-AD56-7BD355D89593</type-id>
<type-name>Sleep Related Activity</type-name>
<wrapper-class-name>SleepJournalPM</wrapper-class-name>
<wrapper-class-fwlink>136230</wrapper-class-fwlink>
<sample-xml-fwlink>136231</sample-xml-fwlink>
<data-type-guide-fwlink>136229</data-type-guide-fwlink>
<summary>Defines an evening sleep journal.</summary>
<remarks>The data items in this schema are adapted from NIHpublication #06-5271, November 2005, "Your Guide toHealthy Sleep", ISBN 1-933236-05-1.</remarks>
<effective-date-element>when</effective-date-element>
</documentation>
</annotation>
<complexType name="Activity">
<annotation>
<documentation>
<summary>Defines an activity taken by the person before laying downfor the night.</summary>
</documentation>
</annotation>
<sequence>
<element name="when" type="d:time">
<annotation>
<documentation>
<summary>The time when the activity occurred.</summary>
</documentation>
</annotation>
</element>
<element name="minutes" type="nonNegativeInteger">
<annotation>
<documentation>
<summary>The duration of the activity in minutes.</summary>
</documentation>
</annotation>
</element>
</sequence>
</complexType>
<element name="sleep-pm">
<complexType>
<annotation>
<documentation>
<summary>Defines an evening sleep journal.</summary>
<remarks>The data items in this schema are adapted from NIHpublication #06-5271, November 2005, "Your Guide toHealthy Sleep", ISBN 1-933236-05-1.</remarks>
</documentation>
</annotation>
<sequence>
<element name="when" type="d:date-time">
<annotation>
<documentation>
<summary>The date and time that the journal entry refersto.</summary>
</documentation>
</annotation>
</element>
<element name="caffeine" type="d:time" minOccurs="0" maxOccurs="unbounded">
<annotation>
<documentation>
<summary>The time of each caffeine consumed for the day.</summary>
</documentation>
</annotation>
</element>
<element name="alcohol" type="d:time" minOccurs="0" maxOccurs="unbounded">
<annotation>
<documentation>
<summary>The time of each alcohol consumed for the day.</summary>
</documentation>
</annotation>
</element>
<element name="nap" type="sjpm:Activity" minOccurs="0" maxOccurs="unbounded">
<annotation>
<documentation>
<summary>The time and duration of each nap taken in theday.</summary>
</documentation>
</annotation>
</element>
<element name="exercise" type="sjpm:Activity" minOccurs="0" maxOccurs="unbounded">
<annotation>
<documentation>
<summary>The time and duration of each exercise session in the day.</summary>
<remarks>Note, an application should (but is not required)to query the aerobic sessions in the person's health record to fill in this information.</remarks>
</documentation>
</annotation>
</element>
<element name="sleepiness">
<simpleType>
<annotation>
<documentation>
<summary>How sleepy the person felt during the day.</summary>
<remarks>1 = So sleepy had to struggle to stay awayduring much of the day,2 = Somewhat tired3 = Fairly alert4 = Wide awake</remarks>
</documentation>
</annotation>
<restriction base="int">
<minInclusive value="1" />
<maxInclusive value="4" />
</restriction>
</simpleType>
</element>
</sequence>
</complexType>
</element>
</schema>
Columns
Columns describe this type in the STT and MTT transformations.
Columns
| Tag | Label | Type | Width |
| when | Date | String | 50 |
| caffeine | Caffeine | String | 100 |
| alcohol | Alcohol | String | 100 |
| nap | Nap | String | 100 |
| exercise | Exercise | String | 100 |
| wc-id | ID | String | 50 |
| wc-version | Version Stamp | String | 50 |
| wc-note | Note | String | 100 |
| wc-tags | Tags | String | 100 |
| wc-date | Effective Date | DateTime | 50 |
| wc-type | Type Name | String | 50 |
| wc-typeid | Type ID | String | 50 |
| wc-source | Source | String | 100 |
| wc-brands | Brands | String | 100 |
| wc-relatedthings | Related Items | String | 100 |
| wc-ispersonal | Is Personal | Boolean | 40 |
| wc-audit-personname | Changed by | String | 100 |
| wc-audit-date | Date | DateTime | 100 |
| wc-audit-action | Action | String | 100 |
| wc-audit-appname | Program | String | 100 |
| wc-issigned | Signed | Boolean | 50 |
| wc-isdownversioned | Down Versioned | Boolean | 50 |
| wc-isupversioned | Up Versioned | Boolean | 50 |
| wc-state | Item State | String | 50 |
|