Question Answer
Return to types list
Type Properties
Properties
| Property | Value |
| id | 55d33791-58de-4cae-8c78-819e12ba5059 |
| name | Question Answer |
| uncreatable | false |
| immutable | false |
| singleton | false |
| transforms | form, mtt, stt |
|
Type Details
|
|
|
|
question-answer A question that was asked and the answers given.
| Name | Type | IsRequired | Description |
| when | d:date-time | Yes | Date and time the question was asked. |
| question | t:codable-value | Yes | The question that was asked. A list of vocabularies may be found in the preferred vocabulary.
Contact the HealthVault team to help define the preferred vocabulary. |
| answer-choice | t:codable-value | No | The list of possible answers to this question. Questions that are answered using free-form text will not specify answer choices.
The answer vocabulary used is typically one related to the vocabulary used for the question.
For example, the choice for "High blood pressure" would code for that condition.
Standard answers (such as yes/no) can be coded using the preferred vocabulary. |
| answer | t:codable-value | No | The recorded answers. In many cases, the coding of the answer is identical to the coding of the selected answer-choices. |
|
Schema
Open schema as a file
Verify XML against this schema
<schema xmlns:this="urn:com.microsoft.wc.thing.question-answer" 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.question-answer">
<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>55d33791-58de-4cae-8c78-819e12ba5059</type-id>
<type-name>Question Answer</type-name>
<wrapper-class-name>QuestionAnswer</wrapper-class-name>
<wrapper-class-fwlink>136221</wrapper-class-fwlink>
<sample-xml-fwlink>136222</sample-xml-fwlink>
<data-type-guide-fwlink>136220</data-type-guide-fwlink>
<summary>A question that was asked and the answers given. </summary>
<effective-date-element>when</effective-date-element>
</documentation>
</annotation>
<element name="question-answer">
<complexType>
<annotation>
<documentation>
<summary>A question that was asked and the answers given.</summary>
</documentation>
</annotation>
<sequence>
<element name="when" type="d:date-time">
<annotation>
<documentation>
<summary>Date and time the question was asked.</summary>
</documentation>
</annotation>
</element>
<element name="question" type="t:codable-value">
<annotation>
<documentation>
<summary>The question that was asked.</summary>
<remarks>A list of vocabularies may be found in the preferred vocabulary. Contact the HealthVault team to help define the preferred vocabulary.</remarks>
<preferred-vocabulary>question-sets</preferred-vocabulary>
</documentation>
</annotation>
</element>
<element name="answer-choice" type="t:codable-value" minOccurs="0" maxOccurs="unbounded">
<annotation>
<documentation>
<summary>The list of possible answers to this question. </summary>
<remarks>Questions that are answered using free-form text will not specify answer choices.<br />The answer vocabulary used is typically one related to the vocabulary used for the question.<br />For example, the choice for "High blood pressure" would code for that condition. <br />Standard answers (such as yes/no) can be coded using the preferred vocabulary.</remarks>
<preferred-vocabulary>answer-choice-sets</preferred-vocabulary>
</documentation>
</annotation>
</element>
<element name="answer" type="t:codable-value" minOccurs="0" maxOccurs="unbounded">
<annotation>
<documentation>
<summary>The recorded answers. </summary>
<remarks>In many cases, the coding of the answer is identical to the coding of the selected answer-choices.</remarks>
</documentation>
</annotation>
</element>
</sequence>
</complexType>
</element>
</schema>
Columns
Columns describe this type in the STT and MTT transformations.
Columns
| Tag | Label | Type | Width |
| when | When | String | 100 |
| question | Question | String | 100 |
| answer-choice | Answer Choices | String | 100 |
| answer | Answers | 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 |
|