-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSurvey.xsd
102 lines (97 loc) · 3.84 KB
/
Survey.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<xs:schema xmlns="http://www.rixg.org.uk/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.rixg.org.uk/">
<xs:include schemaLocation="../Types/Location.xsd"/>
<xs:include schemaLocation="../Types/CodedField.xsd"/>
<xs:include schemaLocation="../Types/CommonMetadata.xsd"/>
<xs:complexType name="Question">
<xs:sequence>
<xs:element name="QuestionType" type="CodedField" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Question Type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Response" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Score">
<xs:sequence>
<xs:element name="ScoreType" type="CodedField" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Score Type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Value" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Level">
<xs:sequence>
<xs:element name="LevelType" type="CodedField" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Score Type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Value" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Survey">
<xs:sequence>
<xs:element name="SurveyTime" type="xs:dateTime" minOccurs="1">
<xs:annotation>
<xs:documentation>When the survey was completed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="SurveyType" type="CodedField" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Survey Type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Questions">
<xs:complexType>
<xs:sequence>
<xs:element name="Question" type="Question" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Scores" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="Score" type="Score" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Levels" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="Level" type="Level" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EnteredBy" type="CodedField" minOccurs="0">
<xs:annotation>
<xs:documentation>Who completed the survey</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EnteredAt" type="Location" minOccurs="0">
<xs:annotation>
<xs:documentation>Where the Survey was completed</xs:documentation>
</xs:annotation>
</xs:element>
<!-- YourHealth only Fields -->
<xs:element name="TypeOfTreatment" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Current Modality</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="HDLocation" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>If Current Modality = HD, where is it performed?</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Template" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>This is currently only used to flag surveys which were submitted via the SharedHD project. Another field may be more appropriate.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="CommonMetadata"/>
</xs:sequence>
</xs:complexType>
</xs:schema>