epb_view_models 1.0.12 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +10 -10
- data/Gemfile.lock +32 -39
- data/api/schemas/data/orchestrate.json +4 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/ExternalDefinitions.xml +1352 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/ExternalDefinitions.xsd +236 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/AssessorManagement.xsd +207 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/EPC-Certificate.xsd +476 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/ExceptionList.xsd +18 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/Property.xsd +71 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/ReportList.xsd +25 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/SAP-CollectedData.xsd +1793 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/SAP-Compliance-Report.xsd +36 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/SAP-Report.xsd +196 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/UDT/EPC-Domains.xsd +558 -0
- data/api/schemas/xml/SAP-Schema-19.0.0/SAP/UDT/SAP-Domains.xsd +3127 -0
- data/lib/epb_view_models.rb +1 -1
- data/lib/presenter/ac_cert/export_configuration.rb +7 -0
- data/lib/presenter/ac_report/export_configuration.rb +7 -0
- data/lib/presenter/cepc/export_configuration.rb +7 -0
- data/lib/presenter/cepc_rr/export_configuration.rb +7 -0
- data/lib/presenter/dec/export_configuration.rb +7 -0
- data/lib/presenter/dec_rr/export_configuration.rb +7 -0
- data/lib/presenter/export/statistics.rb +18 -0
- data/lib/presenter/rd_sap/export_configuration.rb +57 -0
- data/lib/presenter/sap/export_configuration.rb +7 -0
- data/lib/presenter/to_warehouse/base_configuration.rb +23 -0
- data/lib/presenter/xml/parser.rb +226 -0
- data/lib/view_model/factory.rb +1 -0
- data/lib/view_model/sap_schema_1900/common_schema.rb +587 -0
- data/lib/view_model/sap_wrapper.rb +2 -0
- data/lib/view_model_gateway/xsd_files_gateway.rb +4 -3
- metadata +26 -2
@@ -0,0 +1,476 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns="https://epbr.digital.communities.gov.uk/xsd/sap" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="https://epbr.digital.communities.gov.uk/xsd/sap" elementFormDefault="qualified" attributeFormDefault="unqualified" version="19.0.0">
|
3
|
+
<xs:include schemaLocation="../UDT/EPC-Domains.xsd"/>
|
4
|
+
<xs:include schemaLocation="../UDT/SAP-Domains.xsd"/>
|
5
|
+
<xs:element name="LZC-Energy-Sources" type="LZC-Energy-Sources"/>
|
6
|
+
<xs:complexType name="LZC-Energy-Sources">
|
7
|
+
<xs:annotation>
|
8
|
+
<xs:documentation>Details of low and zero carbon energy source(s) for the property, if any.</xs:documentation>
|
9
|
+
</xs:annotation>
|
10
|
+
<xs:sequence>
|
11
|
+
<xs:element name="LZC-Energy-Source" type="SAP-LZCEnergySourceCode" maxOccurs="unbounded">
|
12
|
+
<xs:annotation>
|
13
|
+
<xs:documentation>Low and zero carbon energy source(s) for the property.</xs:documentation>
|
14
|
+
</xs:annotation>
|
15
|
+
</xs:element>
|
16
|
+
</xs:sequence>
|
17
|
+
</xs:complexType>
|
18
|
+
<xs:simpleType name="EnergyRatingType">
|
19
|
+
<xs:restriction base="xs:integer">
|
20
|
+
<xs:minInclusive value="0"/>
|
21
|
+
</xs:restriction>
|
22
|
+
</xs:simpleType>
|
23
|
+
<xs:element name="Energy-Assessment" type="Energy-Assessment"/>
|
24
|
+
<xs:complexType name="Energy-Assessment">
|
25
|
+
<xs:annotation>
|
26
|
+
<xs:documentation>Energy Efficiency Assessment Report is an inspection report whose purpose is to assess the energy efficiency of the inspected property and provide energy ratings for the significant heat-loss features of the property.
|
27
|
+
|
28
|
+
The report also identifies a number of potential improvements that may be made to the property in order to increase the energy efficiency.
|
29
|
+
</xs:documentation>
|
30
|
+
</xs:annotation>
|
31
|
+
<xs:all>
|
32
|
+
<xs:element name="Assessment-Date" type="xs:date">
|
33
|
+
<xs:annotation>
|
34
|
+
<xs:documentation>Date of assessment.</xs:documentation>
|
35
|
+
</xs:annotation>
|
36
|
+
</xs:element>
|
37
|
+
<xs:element name="Property-Summary" type="Property-Summary"/>
|
38
|
+
<xs:element name="Energy-Use" type="Energy-Use">
|
39
|
+
<xs:annotation>
|
40
|
+
<xs:documentation>Calculated results from the energy assessment.</xs:documentation>
|
41
|
+
</xs:annotation>
|
42
|
+
</xs:element>
|
43
|
+
<xs:element name="Suggested-Improvements" type="Suggested-Improvements" minOccurs="0">
|
44
|
+
<xs:annotation>
|
45
|
+
<xs:documentation>Improvement measures listed on the EPC.</xs:documentation>
|
46
|
+
</xs:annotation>
|
47
|
+
</xs:element>
|
48
|
+
<xs:element name="LZC-Energy-Sources" type="LZC-Energy-Sources" minOccurs="0"/>
|
49
|
+
<xs:element name="Renewable-Heat-Incentive" type="Renewable-Heat-Incentive" minOccurs="0"/>
|
50
|
+
<xs:element name="Green-Deal-Package" type="Green-Deal-Package" minOccurs="0">
|
51
|
+
<xs:annotation>
|
52
|
+
<xs:documentation>Improvements that can form a Green Deal package</xs:documentation>
|
53
|
+
</xs:annotation>
|
54
|
+
</xs:element>
|
55
|
+
<xs:element name="Alternative-Improvements" type="Suggested-Improvements" minOccurs="0">
|
56
|
+
<xs:annotation>
|
57
|
+
<xs:documentation>Alternative improvements to some of those given in Suggested-Improvements</xs:documentation>
|
58
|
+
</xs:annotation>
|
59
|
+
</xs:element>
|
60
|
+
<xs:element name="Addendum" type="Addendum" minOccurs="0"/>
|
61
|
+
</xs:all>
|
62
|
+
</xs:complexType>
|
63
|
+
<xs:element name="Property-Summary" type="Property-Summary"/>
|
64
|
+
<xs:complexType name="Property-Summary">
|
65
|
+
<xs:sequence>
|
66
|
+
<xs:element name="Walls" type="PropertySummaryType" maxOccurs="unbounded"/>
|
67
|
+
<xs:element name="Roof" type="PropertySummaryType" maxOccurs="unbounded"/>
|
68
|
+
<xs:element name="Floor" type="PropertySummaryType" maxOccurs="unbounded"/>
|
69
|
+
<xs:element name="Windows" type="PropertySummaryType"/>
|
70
|
+
<xs:element name="Main-Heating" type="PropertySummaryType" maxOccurs="2"/>
|
71
|
+
<xs:element name="Main-Heating-Controls" type="PropertySummaryType" maxOccurs="2"/>
|
72
|
+
<xs:element name="Secondary-Heating" type="PropertySummaryType"/>
|
73
|
+
<xs:element name="Hot-Water" type="PropertySummaryType"/>
|
74
|
+
<xs:element name="Lighting" type="PropertySummaryType"/>
|
75
|
+
<xs:element name="Air-Tightness" type="PropertySummaryType" minOccurs="0"/>
|
76
|
+
<xs:element name="Has-Fixed-Air-Conditioning" type="xs:boolean" default="false" minOccurs="0">
|
77
|
+
<xs:annotation>
|
78
|
+
<xs:documentation>Fixed air conditioning?</xs:documentation>
|
79
|
+
</xs:annotation>
|
80
|
+
</xs:element>
|
81
|
+
<xs:element name="Has-Hot-Water-Cylinder" type="xs:boolean" default="false" minOccurs="0">
|
82
|
+
<xs:annotation>
|
83
|
+
<xs:documentation>Hot water cylinder?</xs:documentation>
|
84
|
+
</xs:annotation>
|
85
|
+
</xs:element>
|
86
|
+
<xs:element name="Has-Heated-Separate-Conservatory" type="xs:boolean" default="false" minOccurs="0">
|
87
|
+
<xs:annotation>
|
88
|
+
<xs:documentation>Heated separate conservatory?</xs:documentation>
|
89
|
+
</xs:annotation>
|
90
|
+
</xs:element>
|
91
|
+
<xs:element name="Dwelling-Type" type="Sentence" minOccurs="0">
|
92
|
+
<xs:annotation>
|
93
|
+
<xs:documentation>Is a string such as Detached house or Top-floor flat</xs:documentation>
|
94
|
+
</xs:annotation>
|
95
|
+
</xs:element>
|
96
|
+
<xs:element name="Total-Floor-Area" type="xs:positiveInteger" minOccurs="0">
|
97
|
+
<xs:annotation>
|
98
|
+
<xs:documentation>Is a number such as 125</xs:documentation>
|
99
|
+
</xs:annotation>
|
100
|
+
</xs:element>
|
101
|
+
<xs:choice>
|
102
|
+
<xs:element name="Multiple-Glazed-Percentage" type="Percentage">
|
103
|
+
<xs:annotation>
|
104
|
+
<xs:documentation>Fraction of windows that are multiply glazed to nearest 1%.</xs:documentation>
|
105
|
+
</xs:annotation>
|
106
|
+
</xs:element>
|
107
|
+
<xs:element name="Multiple-Glazed-Percentage-NR" type="xs:string" fixed="NR">
|
108
|
+
<xs:annotation>
|
109
|
+
<xs:documentation>For backward compatibility only, do not use.</xs:documentation>
|
110
|
+
</xs:annotation>
|
111
|
+
</xs:element>
|
112
|
+
</xs:choice>
|
113
|
+
<xs:element name="Is-Zero-Carbon-Home" type="xs:boolean" default="false" minOccurs="0">
|
114
|
+
<xs:annotation>
|
115
|
+
<xs:documentation>Is dwelling a Zero Carbon Home?</xs:documentation>
|
116
|
+
</xs:annotation>
|
117
|
+
</xs:element>
|
118
|
+
</xs:sequence>
|
119
|
+
</xs:complexType>
|
120
|
+
<xs:element name="Energy-Use" type="Energy-Use"/>
|
121
|
+
<xs:complexType name="Energy-Use">
|
122
|
+
<xs:annotation>
|
123
|
+
<xs:documentation>Part of an Energy Report summarising the results of the various energy calculations made by the Home Inspector.</xs:documentation>
|
124
|
+
</xs:annotation>
|
125
|
+
<xs:all>
|
126
|
+
<xs:element name="DER" type="xs:decimal" minOccurs="0">
|
127
|
+
<xs:annotation>
|
128
|
+
<xs:documentation>The DER of the Property</xs:documentation>
|
129
|
+
</xs:annotation>
|
130
|
+
</xs:element>
|
131
|
+
<xs:element name="TER" type="xs:decimal" minOccurs="0">
|
132
|
+
<xs:annotation>
|
133
|
+
<xs:documentation>The TER of the Property</xs:documentation>
|
134
|
+
</xs:annotation>
|
135
|
+
</xs:element>
|
136
|
+
<xs:element name="DPER" type="xs:decimal" minOccurs="0">
|
137
|
+
<xs:annotation>
|
138
|
+
<xs:documentation>The DPER of the Property</xs:documentation>
|
139
|
+
</xs:annotation>
|
140
|
+
</xs:element>
|
141
|
+
<xs:element name="TPER" type="xs:decimal" minOccurs="0">
|
142
|
+
<xs:annotation>
|
143
|
+
<xs:documentation>The TPER of the Property</xs:documentation>
|
144
|
+
</xs:annotation>
|
145
|
+
</xs:element>
|
146
|
+
<xs:element name="DFEE" type="xs:decimal" minOccurs="0">
|
147
|
+
<xs:annotation>
|
148
|
+
<xs:documentation>The DFEE of the Property</xs:documentation>
|
149
|
+
</xs:annotation>
|
150
|
+
</xs:element>
|
151
|
+
<xs:element name="TFEE" type="xs:decimal" minOccurs="0">
|
152
|
+
<xs:annotation>
|
153
|
+
<xs:documentation>The TFEE of the Property</xs:documentation>
|
154
|
+
</xs:annotation>
|
155
|
+
</xs:element>
|
156
|
+
<xs:element name="Energy-Rating-Current" type="EnergyRatingType">
|
157
|
+
<xs:annotation>
|
158
|
+
<xs:documentation>The Current Energy Rating of the Property</xs:documentation>
|
159
|
+
</xs:annotation>
|
160
|
+
</xs:element>
|
161
|
+
<xs:element name="Energy-Rating-Potential" type="EnergyRatingType">
|
162
|
+
<xs:annotation>
|
163
|
+
<xs:documentation>The overall Energy Rating for the Property being assessed.</xs:documentation>
|
164
|
+
</xs:annotation>
|
165
|
+
</xs:element>
|
166
|
+
<xs:element name="Energy-Rating-Average" type="EnergyRatingType">
|
167
|
+
<xs:annotation>
|
168
|
+
<xs:documentation>Average SAP rating for the country concerned. 0 if unknown or not applicable</xs:documentation>
|
169
|
+
</xs:annotation>
|
170
|
+
</xs:element>
|
171
|
+
<xs:element name="Environmental-Impact-Current" type="EnergyRatingType">
|
172
|
+
<xs:annotation>
|
173
|
+
<xs:documentation>The estimated current Environmental Impact Rating of the property</xs:documentation>
|
174
|
+
</xs:annotation>
|
175
|
+
</xs:element>
|
176
|
+
<xs:element name="Environmental-Impact-Potential" type="EnergyRatingType">
|
177
|
+
<xs:annotation>
|
178
|
+
<xs:documentation>The estimated potential Environmental Impact Rating of the property</xs:documentation>
|
179
|
+
</xs:annotation>
|
180
|
+
</xs:element>
|
181
|
+
<xs:element name="Energy-Consumption-Current" type="Measurement">
|
182
|
+
<xs:annotation>
|
183
|
+
<xs:documentation>Estimated total energy consumption for the Property in a 12 month period. Value is Kilowatt Hours per Square Metre (kWh/m2)</xs:documentation>
|
184
|
+
</xs:annotation>
|
185
|
+
</xs:element>
|
186
|
+
<xs:element name="Energy-Consumption-Potential" type="Measurement">
|
187
|
+
<xs:annotation>
|
188
|
+
<xs:documentation>Estimated total energy consumption for the Property in a 12 month period. Value is Kilowatt Hours per Square Metre (kWh/m2)</xs:documentation>
|
189
|
+
</xs:annotation>
|
190
|
+
</xs:element>
|
191
|
+
<xs:element name="CO2-Emissions-Current" type="Measurement">
|
192
|
+
<xs:annotation>
|
193
|
+
<xs:documentation>CO2 emissions per year in tonnes/year.</xs:documentation>
|
194
|
+
</xs:annotation>
|
195
|
+
</xs:element>
|
196
|
+
<xs:element name="CO2-Emissions-Current-Per-Floor-Area" type="Measurement">
|
197
|
+
<xs:annotation>
|
198
|
+
<xs:documentation>CO2 emissions per square metre floor area per year in kg/m².</xs:documentation>
|
199
|
+
</xs:annotation>
|
200
|
+
</xs:element>
|
201
|
+
<xs:element name="CO2-Emissions-Potential" type="Measurement">
|
202
|
+
<xs:annotation>
|
203
|
+
<xs:documentation>Estimated value in Tonnes per Year of the total CO2 emissions produced by the Property in 12 month period.</xs:documentation>
|
204
|
+
</xs:annotation>
|
205
|
+
</xs:element>
|
206
|
+
<xs:element name="Lighting-Cost-Current" type="Money">
|
207
|
+
<xs:annotation>
|
208
|
+
<xs:documentation>The current estimated cost of Lighting for the property</xs:documentation>
|
209
|
+
</xs:annotation>
|
210
|
+
</xs:element>
|
211
|
+
<xs:element name="Lighting-Cost-Potential" type="Money">
|
212
|
+
<xs:annotation>
|
213
|
+
<xs:documentation>The current estimated cost of Lighting for the property</xs:documentation>
|
214
|
+
</xs:annotation>
|
215
|
+
</xs:element>
|
216
|
+
<xs:element name="Heating-Cost-Current" type="Money">
|
217
|
+
<xs:annotation>
|
218
|
+
<xs:documentation>The current estimated cost of Heating for the property</xs:documentation>
|
219
|
+
</xs:annotation>
|
220
|
+
</xs:element>
|
221
|
+
<xs:element name="Heating-Cost-Potential" type="Money">
|
222
|
+
<xs:annotation>
|
223
|
+
<xs:documentation>The current estimated cost of Heating for the property</xs:documentation>
|
224
|
+
</xs:annotation>
|
225
|
+
</xs:element>
|
226
|
+
<xs:element name="Hot-Water-Cost-Current" type="Money">
|
227
|
+
<xs:annotation>
|
228
|
+
<xs:documentation>|The current estimated cost of Hot Water for the property</xs:documentation>
|
229
|
+
</xs:annotation>
|
230
|
+
</xs:element>
|
231
|
+
<xs:element name="Hot-Water-Cost-Potential" type="Money">
|
232
|
+
<xs:annotation>
|
233
|
+
<xs:documentation>|The current estimated cost of Hot Water for the property</xs:documentation>
|
234
|
+
</xs:annotation>
|
235
|
+
</xs:element>
|
236
|
+
</xs:all>
|
237
|
+
</xs:complexType>
|
238
|
+
<xs:element name="Suggested-Improvements" type="Suggested-Improvements"/>
|
239
|
+
<xs:complexType name="Suggested-Improvements">
|
240
|
+
<xs:annotation>
|
241
|
+
<xs:documentation>Part of an Energy Report that describes the a set of improvements that the Home Inspector considers would contribute to the overall energy rating of the property.</xs:documentation>
|
242
|
+
</xs:annotation>
|
243
|
+
<xs:sequence>
|
244
|
+
<xs:element name="Improvement" type="Improvement" maxOccurs="unbounded"/>
|
245
|
+
</xs:sequence>
|
246
|
+
</xs:complexType>
|
247
|
+
<xs:element name="Improvement" type="Improvement"/>
|
248
|
+
<xs:complexType name="Improvement">
|
249
|
+
<xs:all>
|
250
|
+
<xs:element name="Sequence" type="xs:integer">
|
251
|
+
<xs:annotation>
|
252
|
+
<xs:documentation>Sequence of the Suggested Improvements within the set of Suggested Improvements. This is used to order the Recommendations on the output HCR / EPC so that the cumulative Ratings make sense.
|
253
|
+
|
254
|
+
The Improved Energy Ratings that result from carrying out a Suggested Improvement are cumulative and assume that the improvements have been installed in the order they appear in the list. Hence they must be sequenced.</xs:documentation>
|
255
|
+
</xs:annotation>
|
256
|
+
</xs:element>
|
257
|
+
<xs:element name="Improvement-Category" type="RecommendationCategoryCode">
|
258
|
+
<xs:annotation>
|
259
|
+
<xs:documentation>The category of improvement. This identifies where on the report the recommendation is printed.</xs:documentation>
|
260
|
+
</xs:annotation>
|
261
|
+
</xs:element>
|
262
|
+
<xs:element name="Improvement-Type" type="SAP-ImprovementMeasureCode">
|
263
|
+
<xs:annotation>
|
264
|
+
<xs:documentation>Suggested work to be carried out on the Property to improve its energy efficiency. This should be a enumerated list of acceptable improvements but it hasn't yet been defined.</xs:documentation>
|
265
|
+
</xs:annotation>
|
266
|
+
</xs:element>
|
267
|
+
<xs:element name="Typical-Saving" type="Money">
|
268
|
+
<xs:annotation>
|
269
|
+
<xs:documentation>Typical savings (in British Pounds) per year if the suggested improvement is carried out. 0 if not assessed</xs:documentation>
|
270
|
+
</xs:annotation>
|
271
|
+
</xs:element>
|
272
|
+
<xs:element name="Energy-Performance-Rating" type="EnergyRatingType">
|
273
|
+
<xs:annotation>
|
274
|
+
<xs:documentation>The estimated Energy performance rating of the Property after the Suggested Improvement has been carried out providing any preceding Suggested Improvement has also been carried out. 0 if not assessed</xs:documentation>
|
275
|
+
</xs:annotation>
|
276
|
+
</xs:element>
|
277
|
+
<xs:element name="Environmental-Impact-Rating" type="EnergyRatingType">
|
278
|
+
<xs:annotation>
|
279
|
+
<xs:documentation>The estimated Environmental Impact rating of the Property after the Suggested Improvement has been carried out providing any preceding Suggested Improvement has also been carried out. 0 if not assessed</xs:documentation>
|
280
|
+
</xs:annotation>
|
281
|
+
</xs:element>
|
282
|
+
<xs:element name="Improvement-Details">
|
283
|
+
<xs:complexType>
|
284
|
+
<xs:choice>
|
285
|
+
<xs:element name="Improvement-Texts" type="ImprovementTexts">
|
286
|
+
<xs:annotation>
|
287
|
+
<xs:documentation>For backward compatability only</xs:documentation>
|
288
|
+
</xs:annotation>
|
289
|
+
</xs:element>
|
290
|
+
<xs:element name="Improvement-Number" type="RecommendationSummaryCode"/>
|
291
|
+
</xs:choice>
|
292
|
+
</xs:complexType>
|
293
|
+
</xs:element>
|
294
|
+
<xs:element name="Indicative-Cost" type="xs:string" minOccurs="0"/>
|
295
|
+
<xs:element name="Green-Deal-Category" type="GreenDealCategoryCode" minOccurs="0"/>
|
296
|
+
</xs:all>
|
297
|
+
</xs:complexType>
|
298
|
+
<xs:element name="ImprovementTexts" type="ImprovementTexts"/>
|
299
|
+
<xs:complexType name="ImprovementTexts">
|
300
|
+
<xs:sequence>
|
301
|
+
<xs:element name="Improvement-Summary" type="Sentence" minOccurs="0">
|
302
|
+
<xs:annotation>
|
303
|
+
<xs:documentation>A short description of the suggested improvement.</xs:documentation>
|
304
|
+
</xs:annotation>
|
305
|
+
</xs:element>
|
306
|
+
<xs:element name="Improvement-Heading" type="Sentence" minOccurs="0">
|
307
|
+
<xs:annotation>
|
308
|
+
<xs:documentation>Text to precede the improvement description. If this field is not provided the 'Improvement-Summary' is used instead.</xs:documentation>
|
309
|
+
</xs:annotation>
|
310
|
+
</xs:element>
|
311
|
+
<xs:element name="Improvement-Description" type="Sentence">
|
312
|
+
<xs:annotation>
|
313
|
+
<xs:documentation>Detailed description of the suggested improvement.</xs:documentation>
|
314
|
+
</xs:annotation>
|
315
|
+
</xs:element>
|
316
|
+
</xs:sequence>
|
317
|
+
</xs:complexType>
|
318
|
+
<xs:element name="PropertySummaryType" type="PropertySummaryType"/>
|
319
|
+
<xs:complexType name="PropertySummaryType">
|
320
|
+
<xs:all>
|
321
|
+
<xs:element name="Description" type="Sentence" minOccurs="0">
|
322
|
+
<xs:annotation>
|
323
|
+
<xs:documentation>Overall description of the property feature</xs:documentation>
|
324
|
+
</xs:annotation>
|
325
|
+
</xs:element>
|
326
|
+
<xs:element name="Energy-Efficiency-Rating" type="EnergyEfficiencySummaryCode">
|
327
|
+
<xs:annotation>
|
328
|
+
<xs:documentation>Overall summary of the energy effiocuemcy of the property feature.</xs:documentation>
|
329
|
+
</xs:annotation>
|
330
|
+
</xs:element>
|
331
|
+
<xs:element name="Environmental-Efficiency-Rating" type="EnergyEfficiencySummaryCode">
|
332
|
+
<xs:annotation>
|
333
|
+
<xs:documentation>Summary of the environmental efficiency of the property feature</xs:documentation>
|
334
|
+
</xs:annotation>
|
335
|
+
</xs:element>
|
336
|
+
</xs:all>
|
337
|
+
</xs:complexType>
|
338
|
+
<xs:element name="Renewable-Heat-Incentive" type="Renewable-Heat-Incentive">
|
339
|
+
<xs:annotation>
|
340
|
+
<xs:documentation>Data for RHI</xs:documentation>
|
341
|
+
</xs:annotation>
|
342
|
+
</xs:element>
|
343
|
+
<xs:complexType name="Renewable-Heat-Incentive">
|
344
|
+
<xs:choice>
|
345
|
+
<xs:element name="RHI-New-Dwelling">
|
346
|
+
<xs:complexType>
|
347
|
+
<xs:all>
|
348
|
+
<xs:element name="Space-Heating" type="Measurement">
|
349
|
+
<xs:annotation>
|
350
|
+
<xs:documentation>Space heating requirement.</xs:documentation>
|
351
|
+
</xs:annotation>
|
352
|
+
</xs:element>
|
353
|
+
<xs:element name="Water-Heating" type="Measurement">
|
354
|
+
<xs:annotation>
|
355
|
+
<xs:documentation>Water heating requirement.</xs:documentation>
|
356
|
+
</xs:annotation>
|
357
|
+
</xs:element>
|
358
|
+
</xs:all>
|
359
|
+
</xs:complexType>
|
360
|
+
</xs:element>
|
361
|
+
<xs:element name="RHI-Existing-Dwelling">
|
362
|
+
<xs:complexType>
|
363
|
+
<xs:all>
|
364
|
+
<xs:element name="Space-Heating-Existing-Dwelling" type="Measurement">
|
365
|
+
<xs:annotation>
|
366
|
+
<xs:documentation>Space heating requirement for existing dwelling.</xs:documentation>
|
367
|
+
</xs:annotation>
|
368
|
+
</xs:element>
|
369
|
+
<xs:element name="Space-Heating-With-Loft-Insulation" type="Measurement" minOccurs="0">
|
370
|
+
<xs:annotation>
|
371
|
+
<xs:documentation>Space heating requirement after implementation of loft insulation recommendation, omit if loft insulation not recommended. For backwards compatibility only, do not use</xs:documentation>
|
372
|
+
</xs:annotation>
|
373
|
+
</xs:element>
|
374
|
+
<xs:element name="Space-Heating-With-Cavity-Insulation" type="Measurement" minOccurs="0">
|
375
|
+
<xs:annotation>
|
376
|
+
<xs:documentation>Space heating requirement after implementation of cavity insulation recommendation, omit if cavity insulation not recommended. For backwards compatibility only, do not use</xs:documentation>
|
377
|
+
</xs:annotation>
|
378
|
+
</xs:element>
|
379
|
+
<xs:element name="Space-Heating-With-Loft-And-Cavity-Insulation" type="Measurement" minOccurs="0">
|
380
|
+
<xs:annotation>
|
381
|
+
<xs:documentation>Space heating requirement after implementation of loft and cavity insulation recommendations, same as existing dwelling if neither is recommended. For backwards compatibility only, do not use</xs:documentation>
|
382
|
+
</xs:annotation>
|
383
|
+
</xs:element>
|
384
|
+
<xs:element name="Water-Heating" type="Measurement">
|
385
|
+
<xs:annotation>
|
386
|
+
<xs:documentation>Water heating requirement.</xs:documentation>
|
387
|
+
</xs:annotation>
|
388
|
+
</xs:element>
|
389
|
+
<xs:element name="Impact-Of-Loft-Insulation" type="xs:nonPositiveInteger" minOccurs="0">
|
390
|
+
<xs:annotation>
|
391
|
+
<xs:documentation>Reduction in space heating requirement with loft insulation (as negative value). Omit if not applicable</xs:documentation>
|
392
|
+
</xs:annotation>
|
393
|
+
</xs:element>
|
394
|
+
<xs:element name="Impact-Of-Cavity-Insulation" type="xs:nonPositiveInteger" minOccurs="0">
|
395
|
+
<xs:annotation>
|
396
|
+
<xs:documentation>Reduction in space heating requirement with cavity insulation (as negative value). Omit if not applicable</xs:documentation>
|
397
|
+
</xs:annotation>
|
398
|
+
</xs:element>
|
399
|
+
<xs:element name="Impact-Of-Solid-Wall-Insulation" type="xs:nonPositiveInteger" minOccurs="0">
|
400
|
+
<xs:annotation>
|
401
|
+
<xs:documentation>Reduction in space heating requirement with solid wall insulation (as negative value). Omit if not applicable</xs:documentation>
|
402
|
+
</xs:annotation>
|
403
|
+
</xs:element>
|
404
|
+
</xs:all>
|
405
|
+
</xs:complexType>
|
406
|
+
</xs:element>
|
407
|
+
</xs:choice>
|
408
|
+
</xs:complexType>
|
409
|
+
<xs:element name="Green-Deal-Package" type="Green-Deal-Package"/>
|
410
|
+
<xs:complexType name="Green-Deal-Package">
|
411
|
+
<xs:sequence>
|
412
|
+
<xs:element name="Green-Deal-Improvement" type="Green-Deal-Improvement" maxOccurs="unbounded">
|
413
|
+
<xs:annotation>
|
414
|
+
<xs:documentation>Improvements from Suggested-Improvements in the Green Deal package</xs:documentation>
|
415
|
+
</xs:annotation>
|
416
|
+
</xs:element>
|
417
|
+
<xs:element name="Electricity-Saving" type="Money">
|
418
|
+
<xs:annotation>
|
419
|
+
<xs:documentation>Total electricity saving for the package</xs:documentation>
|
420
|
+
</xs:annotation>
|
421
|
+
</xs:element>
|
422
|
+
<xs:element name="Gas-Saving" type="Money">
|
423
|
+
<xs:annotation>
|
424
|
+
<xs:documentation>Total gas saving for the package</xs:documentation>
|
425
|
+
</xs:annotation>
|
426
|
+
</xs:element>
|
427
|
+
<xs:element name="Other-Fuel-Saving" type="Money">
|
428
|
+
<xs:annotation>
|
429
|
+
<xs:documentation>Total other saving for the package</xs:documentation>
|
430
|
+
</xs:annotation>
|
431
|
+
</xs:element>
|
432
|
+
</xs:sequence>
|
433
|
+
</xs:complexType>
|
434
|
+
<xs:element name="Green-Deal-Improvement" type="Green-Deal-Improvement"/>
|
435
|
+
<xs:complexType name="Green-Deal-Improvement">
|
436
|
+
<xs:sequence>
|
437
|
+
<xs:element name="Improvement-Type" type="SAP-ImprovementMeasureCode"/>
|
438
|
+
<xs:element name="Improvement-Number" type="RecommendationSummaryCode"/>
|
439
|
+
</xs:sequence>
|
440
|
+
</xs:complexType>
|
441
|
+
<xs:element name="Addendum" type="Addendum"/>
|
442
|
+
<xs:complexType name="Addendum">
|
443
|
+
<xs:sequence>
|
444
|
+
<xs:element name="Cavity-Fill-Recommended" type="xs:boolean" minOccurs="0">
|
445
|
+
<xs:annotation>
|
446
|
+
<xs:documentation>Cavity fill is recommended</xs:documentation>
|
447
|
+
</xs:annotation>
|
448
|
+
</xs:element>
|
449
|
+
<xs:element name="Stone-Walls" type="xs:boolean" minOccurs="0">
|
450
|
+
<xs:annotation>
|
451
|
+
<xs:documentation>Stone walls present, not insulated</xs:documentation>
|
452
|
+
</xs:annotation>
|
453
|
+
</xs:element>
|
454
|
+
<xs:element name="System-Build" type="xs:boolean" minOccurs="0">
|
455
|
+
<xs:annotation>
|
456
|
+
<xs:documentation>System build present</xs:documentation>
|
457
|
+
</xs:annotation>
|
458
|
+
</xs:element>
|
459
|
+
<xs:element name="Access-Issues" type="xs:boolean" minOccurs="0">
|
460
|
+
<xs:annotation>
|
461
|
+
<xs:documentation>Dwelling has access issues for cavity wall insulation. Include only when at least one of Cavity-Fill-Recommended, Stone-Walls, System-Build is also present</xs:documentation>
|
462
|
+
</xs:annotation>
|
463
|
+
</xs:element>
|
464
|
+
<xs:element name="High-Exposure" type="xs:boolean" minOccurs="0">
|
465
|
+
<xs:annotation>
|
466
|
+
<xs:documentation>Dwelling may be exposed to wind-driven rain. Include only when at least one of Cavity-Fill-Recommended, Stone-Walls, System-Build is also present</xs:documentation>
|
467
|
+
</xs:annotation>
|
468
|
+
</xs:element>
|
469
|
+
<xs:element name="Narrow-Cavities" type="xs:boolean" minOccurs="0">
|
470
|
+
<xs:annotation>
|
471
|
+
<xs:documentation>Dwelling may have narrow cavities. Include only when Cavity-Fill-Recommended is also present</xs:documentation>
|
472
|
+
</xs:annotation>
|
473
|
+
</xs:element>
|
474
|
+
</xs:sequence>
|
475
|
+
</xs:complexType>
|
476
|
+
</xs:schema>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<xs:schema xmlns="https://epbr.digital.communities.gov.uk/xsd/sap" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
2
|
+
targetNamespace="https://epbr.digital.communities.gov.uk/xsd/sap" elementFormDefault="qualified"
|
3
|
+
attributeFormDefault="unqualified" version="19.0.0">
|
4
|
+
<xs:element name="ExceptionList">
|
5
|
+
<xs:complexType>
|
6
|
+
<xs:sequence>
|
7
|
+
<xs:element maxOccurs="unbounded" name="Exception">
|
8
|
+
<xs:complexType>
|
9
|
+
<xs:all>
|
10
|
+
<xs:element name="ErrorCode" type="xs:int"/>
|
11
|
+
<xs:element name="ErrorMessage" type="xs:string"/>
|
12
|
+
</xs:all>
|
13
|
+
</xs:complexType>
|
14
|
+
</xs:element>
|
15
|
+
</xs:sequence>
|
16
|
+
</xs:complexType>
|
17
|
+
</xs:element>
|
18
|
+
</xs:schema>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns="https://epbr.digital.communities.gov.uk/xsd/sap" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
3
|
+
targetNamespace="https://epbr.digital.communities.gov.uk/xsd/sap" elementFormDefault="qualified"
|
4
|
+
attributeFormDefault="unqualified" version="19.0.0">
|
5
|
+
<xs:element name="Property" type="Property"/>
|
6
|
+
<xs:complexType name="Property">
|
7
|
+
<xs:annotation>
|
8
|
+
<xs:documentation>A discrete identifiable possession, such as a piece of real-estate, to which its owner has legal title. For the Home Information Pack legislation the types of property are restricted to residential properties.
|
9
|
+
|
10
|
+
It should be observed that "a property is a property is a property" and all real-estate properties, whether residential or commercial or whether being sold for the first or the nth time will have a very similar conceptual structure and similar rules and constraints.
|
11
|
+
|
12
|
+
As such the broad description of a Property can be regarded as a framework, containing a set of extension points, that can be expanded as necessary to cover additional detail.
|
13
|
+
</xs:documentation>
|
14
|
+
</xs:annotation>
|
15
|
+
<xs:all>
|
16
|
+
<xs:element name="Address" type="AddressType">
|
17
|
+
<xs:annotation>
|
18
|
+
<xs:documentation>Address for the property.</xs:documentation>
|
19
|
+
</xs:annotation>
|
20
|
+
</xs:element>
|
21
|
+
<xs:element name="UPRN" type="UPRNType">
|
22
|
+
<xs:annotation>
|
23
|
+
<xs:documentation>Unique Property Reference Number</xs:documentation>
|
24
|
+
</xs:annotation>
|
25
|
+
</xs:element>
|
26
|
+
<xs:element name="Site-Reference" type="xs:string" minOccurs="0">
|
27
|
+
<xs:annotation>
|
28
|
+
<xs:documentation>A site reference</xs:documentation>
|
29
|
+
</xs:annotation>
|
30
|
+
</xs:element>
|
31
|
+
<xs:element name="Plot-Reference" type="xs:string" minOccurs="0">
|
32
|
+
<xs:annotation>
|
33
|
+
<xs:documentation>A plot reference</xs:documentation>
|
34
|
+
</xs:annotation>
|
35
|
+
</xs:element>
|
36
|
+
</xs:all>
|
37
|
+
</xs:complexType>
|
38
|
+
<xs:element name="AddressType" type="AddressType"/>
|
39
|
+
<xs:complexType name="AddressType">
|
40
|
+
<xs:annotation>
|
41
|
+
<xs:documentation>An address is composed of a number of structured elements such as Postcode, Post-Town, Street etc.
|
42
|
+
|
43
|
+
</xs:documentation>
|
44
|
+
</xs:annotation>
|
45
|
+
<xs:sequence>
|
46
|
+
<xs:element name="Address-Line-1" type="xs:string" minOccurs="0"/>
|
47
|
+
<xs:element name="Address-Line-2" type="xs:string" minOccurs="0"/>
|
48
|
+
<xs:element name="Address-Line-3" type="xs:string" minOccurs="0"/>
|
49
|
+
<xs:element name="Post-Town" type="xs:string"/>
|
50
|
+
<xs:element name="Postcode" type="PostcodeType">
|
51
|
+
<xs:annotation>
|
52
|
+
<xs:documentation>The Postcode for the Address
|
53
|
+
</xs:documentation>
|
54
|
+
</xs:annotation>
|
55
|
+
</xs:element>
|
56
|
+
</xs:sequence>
|
57
|
+
</xs:complexType>
|
58
|
+
<xs:simpleType name="UPRNType">
|
59
|
+
<xs:annotation>
|
60
|
+
<xs:documentation>Unique Property Reference Number - a 10-digit numeric string unmiquely identifuying each Property that may have a HCR registered against it.</xs:documentation>
|
61
|
+
</xs:annotation>
|
62
|
+
<xs:restriction base="xs:string">
|
63
|
+
<xs:pattern value="[0-9]{10}"/>
|
64
|
+
</xs:restriction>
|
65
|
+
</xs:simpleType>
|
66
|
+
<xs:simpleType name="PostcodeType">
|
67
|
+
<xs:restriction base="xs:string">
|
68
|
+
<xs:pattern value="[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][A-Z]{2}"/>
|
69
|
+
</xs:restriction>
|
70
|
+
</xs:simpleType>
|
71
|
+
</xs:schema>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema xmlns="https://epbr.digital.communities.gov.uk/xsd/sap" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
3
|
+
targetNamespace="https://epbr.digital.communities.gov.uk/xsd/sap" elementFormDefault="qualified"
|
4
|
+
attributeFormDefault="unqualified" version="19.0.0">
|
5
|
+
<xs:include schemaLocation="AssessorManagement.xsd"/>
|
6
|
+
<xs:include schemaLocation="../UDT/EPC-Domains.xsd"/>
|
7
|
+
|
8
|
+
<xs:element name="ReportList">
|
9
|
+
<xs:complexType>
|
10
|
+
<xs:sequence>
|
11
|
+
<xs:element name="Report-Summary" maxOccurs="unbounded">
|
12
|
+
<xs:complexType>
|
13
|
+
<xs:all>
|
14
|
+
<xs:element name="RRN" type="RRNType"/>
|
15
|
+
<xs:element name="Inspection-Date" type="xs:date"/>
|
16
|
+
<xs:element name="HI-Name" type="PersonNameType"/>
|
17
|
+
<xs:element name="HI-Certificate" type="CertificateNumberType"/>
|
18
|
+
<xs:element name="Report-Status" type="ReportStatusCode"/>
|
19
|
+
</xs:all>
|
20
|
+
</xs:complexType>
|
21
|
+
</xs:element>
|
22
|
+
</xs:sequence>
|
23
|
+
</xs:complexType>
|
24
|
+
</xs:element>
|
25
|
+
</xs:schema>
|