epb_view_models 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/api/schemas/data/orchestrate.json +4 -0
  3. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  4. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  5. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationRequest_1.xsd → RdSAP-Schema-S-12.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd} +24 -15
  6. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC → RdSAP-Schema-S-12.0/RdSAP}/Templates/EPC-Certificate.xsd +48 -105
  7. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/EPC-CollectedData.xsd +445 -0
  8. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  9. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  10. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  11. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  12. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  13. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  14. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-Report.xsd → RdSAP-Schema-S-12.0/RdSAP/Templates/HIP-Reports.xsd} +64 -56
  15. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC → RdSAP-Schema-S-12.0/RdSAP}/Templates/Property.xsd +14 -9
  16. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC → RdSAP-Schema-S-12.0/RdSAP}/Templates/UserManagement.xsd +100 -63
  17. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC → RdSAP-Schema-S-12.0/RdSAP}/UDT/BaseDataTypes.xsd +28 -26
  18. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/EPC-Domains.xsd +68 -0
  19. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  20. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SAP-Domains.xsd +1101 -0
  21. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SharedDomains.xsd +596 -0
  22. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  23. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +2 -2
  24. data/lib/epb_view_models/version.rb +5 -0
  25. data/lib/epb_view_models.rb +1 -3
  26. data/lib/helper/rrn_helper.rb +4 -4
  27. data/lib/view_model/cs63/common_schema.rb +18 -18
  28. data/lib/view_model/factory.rb +1 -0
  29. data/lib/view_model/rd_sap_schema_s_120/common_schema.rb +547 -0
  30. data/lib/view_model/rd_sap_wrapper.rb +2 -0
  31. metadata +26 -36
  32. data/.buildspec.yml +0 -13
  33. data/.gitignore +0 -19
  34. data/.rspec +0 -2
  35. data/.rubocop.yml +0 -8
  36. data/.ruby-version +0 -1
  37. data/Gemfile +0 -15
  38. data/Gemfile.lock +0 -122
  39. data/Makefile +0 -17
  40. data/Rakefile +0 -12
  41. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/ExternalDefinitions.xsd +0 -147
  42. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessRequest_1.xsd +0 -44
  43. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessResponse_1.xsd +0 -47
  44. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusRequest_1.xsd +0 -44
  45. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusResponse_1.xsd +0 -47
  46. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateResponse_1.xsd +0 -52
  47. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveRequest_1.xsd +0 -52
  48. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveResponse_1.xsd +0 -87
  49. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateRequest_1.xsd +0 -44
  50. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateResponse_1.xsd +0 -28
  51. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusRequest_1.xsd +0 -30
  52. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusResponse_1.xsd +0 -52
  53. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationResponse_1.xsd +0 -46
  54. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-CollectedData.xsd +0 -1188
  55. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/EPC-Domains.xsd +0 -703
  56. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SAP05-Domains.xsd +0 -3007
  57. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SharedDomains.xsd +0 -311
  58. data/epb_view_models.gemspec +0 -27
@@ -0,0 +1,297 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema targetNamespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" xmlns:pfdt="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/BaseDataTypes" xmlns:HIP="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" version="LIG-12.0">
3
+ <xs:annotation>
4
+ <xs:documentation>© Department of Communities and Local Government. © Crown copyright, 2007. The Home Condition Report logo and associated wording is a registered trade mark - any unlicensed use is not permitted. Copyright in the typographical arrangement of this document rests with the Crown. This publication, excluding logos, may be reproduced free of charge in any format or medium for research, private study, for internal circulation within an organisation or by registered scheme users. This is subject to it being reproduced accurately and not used in a misleading context. </xs:documentation>
5
+ </xs:annotation>
6
+ <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/BaseDataTypes" schemaLocation="../UDT/BaseDataTypes.xsd"/>
7
+ <xs:include schemaLocation="../UDT/HCR-Domains.xsd"/>
8
+ <xs:element name="Risk-Assessment" type="Risk-Assessment"/>
9
+ <xs:complexType name="Risk-Assessment">
10
+ <xs:annotation>
11
+ <xs:documentation>Part of a Home Condition Report identifying, in the Home Inspectors opinion, the types of risks that may affect the value of the inspected property or place restrictions on the use of the inspected property.</xs:documentation>
12
+ </xs:annotation>
13
+ <xs:all>
14
+ <xs:element name="Conveyancing-Risks" type="Conveyancing-Risks" minOccurs="0" maxOccurs="1"/>
15
+ <xs:element name="Environmental-Risks" type="Environmental-Risks" minOccurs="0" maxOccurs="1"/>
16
+ <xs:element name="Health-Risks" type="Health-Risks" minOccurs="0" maxOccurs="1"/>
17
+ </xs:all>
18
+ </xs:complexType>
19
+ <xs:element name="Conveyancing-Risks" type="Conveyancing-Risks"/>
20
+ <xs:complexType name="Conveyancing-Risks">
21
+ <xs:choice maxOccurs="unbounded">
22
+ <xs:element name="Highway-Adoption-Risk" type="HighwayAdoptionRiskType" minOccurs="0" maxOccurs="1">
23
+ <xs:annotation>
24
+ <xs:documentation>Indicates whether the Home Inspector believes that there is a risk of the Highways or Footpaths not being adopted.
25
+
26
+ Not being adopted means that the maintenance cost of the road or footpath must be carried by the Owners of the Properties adjoining the highway or footpath.</xs:documentation>
27
+ </xs:annotation>
28
+ </xs:element>
29
+ <xs:element name="Statutory-Consents-Risk" type="pfdt:Sentence" minOccurs="0" maxOccurs="1">
30
+ <xs:annotation>
31
+ <xs:documentation>A description of the alteration that the Home Inspector believes required a statutory consent to be given.</xs:documentation>
32
+ </xs:annotation>
33
+ </xs:element>
34
+ <xs:element name="Freehold-Consents-Risk" type="pfdt:Sentence" minOccurs="0" maxOccurs="1">
35
+ <xs:annotation>
36
+ <xs:documentation>A description of the alteration that the Home Inspectors believes required a Freehold Owner Consent to have been obtained.</xs:documentation>
37
+ </xs:annotation>
38
+ </xs:element>
39
+ <xs:element name="Flying-Freehold-Risk" type="pfdt:Flag" minOccurs="0" maxOccurs="1">
40
+ <xs:annotation>
41
+ <xs:documentation>Indicates that the Home Inspector believes that their may be some risk with Flying Freeholds hat may be associated with the Property.</xs:documentation>
42
+ </xs:annotation>
43
+ </xs:element>
44
+ <xs:element name="Mining-Risk" type="MiningTypeCode" minOccurs="0" maxOccurs="1">
45
+ <xs:annotation>
46
+ <xs:documentation>Indicates whether the Home Inspector believes that there is a some risk to the Property Owner relating to Mining rights in the land.</xs:documentation>
47
+ </xs:annotation>
48
+ </xs:element>
49
+ <xs:element name="Rights-Of-Way-Risk" type="RightsOfWayRiskType" minOccurs="0" maxOccurs="unbounded">
50
+ <xs:annotation>
51
+ <xs:documentation>Details of any Rights of Way that the Home Inspector believes encroach on the Property.</xs:documentation>
52
+ </xs:annotation>
53
+ </xs:element>
54
+ <xs:element name="Boundary-Risk" type="pfdt:Sentence" minOccurs="0" maxOccurs="1">
55
+ <xs:annotation>
56
+ <xs:documentation>Indicates that the Home Inspector believes that there may be some risk associated with the boundaries (including Party Walls) of the Property.</xs:documentation>
57
+ </xs:annotation>
58
+ </xs:element>
59
+ <xs:element name="Easements-Risk" type="EasementsRiskType" minOccurs="0" maxOccurs="unbounded">
60
+ <xs:annotation>
61
+ <xs:documentation>Details of any easements that the Home Inspector believes relate to the Property.</xs:documentation>
62
+ </xs:annotation>
63
+ </xs:element>
64
+ <xs:element name="Structural-Repairs-Risk" type="StructuralWorkRiskType" minOccurs="0" maxOccurs="1">
65
+ <xs:annotation>
66
+ <xs:documentation>Indicates that the Home Inspector believes that there may be some risk with some of the structural repairs that may previously have been carried out on the Property.</xs:documentation>
67
+ </xs:annotation>
68
+ </xs:element>
69
+ <xs:element name="Property-Warranty-Risk" type="PropertyWarrantyCode" minOccurs="0" maxOccurs="1">
70
+ <xs:annotation>
71
+ <xs:documentation>Identifies the type of property warranty that the Home Inspector believes is covering the entire property such as an NHBC Buildmark Certificate.</xs:documentation>
72
+ </xs:annotation>
73
+ </xs:element>
74
+ <xs:element name="Building-Insurance-Risk" type="pfdt:Flag" minOccurs="0" maxOccurs="1">
75
+ <xs:annotation>
76
+ <xs:documentation>Indicates that the Home Inspector believes that their may be some risk with on-going claims against the Property's Building Insurance.</xs:documentation>
77
+ </xs:annotation>
78
+ </xs:element>
79
+ <xs:element name="Tree-Preservation-Risk" type="TreeLocationCode" minOccurs="0" maxOccurs="1">
80
+ <xs:annotation>
81
+ <xs:documentation>Indicates that the Home Inspector believes that there may be some risk of Tree Preservation Orders affecting the Property.</xs:documentation>
82
+ </xs:annotation>
83
+ </xs:element>
84
+ <xs:element name="Property-Let-Risk" type="pfdt:Flag" minOccurs="0" maxOccurs="1">
85
+ <xs:annotation>
86
+ <xs:documentation>Indicates that </xs:documentation>
87
+ </xs:annotation>
88
+ </xs:element>
89
+ <xs:element name="Radon-Gas-Risk" type="pfdt:Flag" minOccurs="1" maxOccurs="1">
90
+ <xs:annotation>
91
+ <xs:documentation>Indicates that the property is in an area where Radon gas is know yto occur.</xs:documentation>
92
+ </xs:annotation>
93
+ </xs:element>
94
+ <xs:element name="Shared-Parts-Repaired" type="pfdt:Sentence" minOccurs="0" maxOccurs="1">
95
+ <xs:annotation>
96
+ <xs:documentation>Describes any repairs to shared parts that may have been carried out.</xs:documentation>
97
+ </xs:annotation>
98
+ </xs:element>
99
+ </xs:choice>
100
+ </xs:complexType>
101
+ <xs:element name="Environmental-Risks" type="Environmental-Risks"/>
102
+ <xs:complexType name="Environmental-Risks">
103
+ <xs:choice maxOccurs="unbounded">
104
+ <xs:element name="Contamination-Risk" type="ContaminationRiskType" minOccurs="0" maxOccurs="1">
105
+ <xs:annotation>
106
+ <xs:documentation>Indicates whether the Home Inspector believes that there is an existing risk of contamination to the land or property.</xs:documentation>
107
+ </xs:annotation>
108
+ </xs:element>
109
+ <xs:element name="Flooding-Risk" type="FloodingRiskType" minOccurs="0" maxOccurs="1">
110
+ <xs:annotation>
111
+ <xs:documentation>Indicates whether the Home Inspector believes that there is a risk of flooding of the property in the future.</xs:documentation>
112
+ </xs:annotation>
113
+ </xs:element>
114
+ </xs:choice>
115
+ </xs:complexType>
116
+ <xs:element name="Health-Risks" type="Health-Risks"/>
117
+ <xs:complexType name="Health-Risks">
118
+ <xs:choice maxOccurs="unbounded">
119
+ <xs:element name="Escape-Windows-Risk" type="EscapeWindowLocationCode" minOccurs="0" maxOccurs="unbounded">
120
+ <xs:annotation>
121
+ <xs:documentation>Location where the Home Inspector thinks the lack of an escape window poses a fire risk.</xs:documentation>
122
+ </xs:annotation>
123
+ </xs:element>
124
+ <xs:element name="Fire-Control-Risk" type="pfdt:Flag" minOccurs="0" maxOccurs="unbounded">
125
+ <xs:annotation>
126
+ <xs:documentation>Indicates that the Home Inspector believes that there are inadequate measures to control the spread of fire.</xs:documentation>
127
+ </xs:annotation>
128
+ </xs:element>
129
+ <xs:element name="No-Fire-Doors-Location" type="pfdt:Sentence" minOccurs="0" maxOccurs="unbounded"/>
130
+ <xs:element name="Safety-Glass-Risk" type="SafetyGlassType" minOccurs="0" maxOccurs="unbounded"/>
131
+ <xs:element name="Gas-Leak-Detected" type="GasLeakType" minOccurs="0" maxOccurs="unbounded">
132
+ <xs:annotation>
133
+ <xs:documentation>Indicates that the Home inspector believes that there is a gas leak in the property
134
+ </xs:documentation>
135
+ </xs:annotation>
136
+ </xs:element>
137
+ <xs:element name="Handrail-Risk" type="HandrailRiskCode" minOccurs="0" maxOccurs="unbounded">
138
+ <xs:annotation>
139
+ <xs:documentation>Identifies where the Home Inspector believes a lack of hand-rails may be present and health risk.</xs:documentation>
140
+ </xs:annotation>
141
+ </xs:element>
142
+ <xs:element name="Unsafe-Fitting" type="UnsafeFittingsCode" minOccurs="0" maxOccurs="unbounded">
143
+ <xs:annotation>
144
+ <xs:documentation>indicates the type of unsafe fittings that may be present at the property.</xs:documentation>
145
+ </xs:annotation>
146
+ </xs:element>
147
+ <xs:element name="Untested-Service" type="UntestedServiceCode" minOccurs="0" maxOccurs="unbounded">
148
+ <xs:annotation>
149
+ <xs:documentation>Indicates appliances and services that present a safety risk because they have not been recently tested.</xs:documentation>
150
+ </xs:annotation>
151
+ </xs:element>
152
+ <xs:element name="Unsafe-Room" type="UnsafeRoomType" minOccurs="0" maxOccurs="unbounded"/>
153
+ <xs:element name="Nest-Location" type="pfdt:Sentence" minOccurs="0" maxOccurs="unbounded">
154
+ <xs:annotation>
155
+ <xs:documentation>Location of the Bees / Wasp Hornets nest if one is present at the property.</xs:documentation>
156
+ </xs:annotation>
157
+ </xs:element>
158
+ <xs:element name="Flagged-Health-Risk" type="FlaggedHealthRiskCode" minOccurs="0" maxOccurs="unbounded">
159
+ <xs:annotation>
160
+ <xs:documentation>Identifies health risks that the inspector believes may exist at the property</xs:documentation>
161
+ </xs:annotation>
162
+ </xs:element>
163
+ </xs:choice>
164
+ </xs:complexType>
165
+ <xs:element name="FloodingRiskType" type="FloodingRiskType"/>
166
+ <xs:complexType name="FloodingRiskType">
167
+ <xs:annotation>
168
+ <xs:documentation>Details of any flooding risk that may affect a property</xs:documentation>
169
+ </xs:annotation>
170
+ <xs:all>
171
+ <xs:element name="Flooding-Category" type="FloodingRiskCode" minOccurs="1" maxOccurs="1">
172
+ <xs:annotation>
173
+ <xs:documentation>The type of flooding that might occur</xs:documentation>
174
+ </xs:annotation>
175
+ </xs:element>
176
+ <xs:element name="Location" type="FloodingLocationCode" minOccurs="1" maxOccurs="1"/>
177
+ </xs:all>
178
+ </xs:complexType>
179
+ <xs:element name="RightsOfWayRiskType" type="RightsOfWayRiskType"/>
180
+ <xs:complexType name="RightsOfWayRiskType">
181
+ <xs:all>
182
+ <xs:element name="RoW-Access" type="RightOfWayAccessCode" minOccurs="1" maxOccurs="1">
183
+ <xs:annotation>
184
+ <xs:documentation>Identifies the type of access for the Right of Way e.g. Shared or Public.</xs:documentation>
185
+ </xs:annotation>
186
+ </xs:element>
187
+ <xs:element name="RoW-Type" type="RightOfWayTypeCode" minOccurs="1" maxOccurs="1">
188
+ <xs:annotation>
189
+ <xs:documentation>The type of Right of Way e.g. Bridleway or Footpath</xs:documentation>
190
+ </xs:annotation>
191
+ </xs:element>
192
+ </xs:all>
193
+ </xs:complexType>
194
+ <xs:element name="EasementsRiskType" type="EasementsRiskType"/>
195
+ <xs:complexType name="EasementsRiskType">
196
+ <xs:all>
197
+ <xs:element name="Location" type="EasementLocationCode" minOccurs="1" maxOccurs="1"/>
198
+ <xs:element name="Easement-Type" type="EasementTypeCode" minOccurs="1" maxOccurs="1"/>
199
+ </xs:all>
200
+ </xs:complexType>
201
+ <xs:element name="HighwayAdoptionRiskType" type="HighwayAdoptionRiskType"/>
202
+ <xs:complexType name="HighwayAdoptionRiskType">
203
+ <xs:all>
204
+ <xs:element name="Adopted-Scope" type="AdoptedStatusLocationCode" minOccurs="1" maxOccurs="1">
205
+ <xs:annotation>
206
+ <xs:documentation>Identifies whether it is the roads, footpaths or both that at adopted.</xs:documentation>
207
+ </xs:annotation>
208
+ </xs:element>
209
+ <xs:element name="Adopted-Status" type="AdoptedStatusCode" minOccurs="1" maxOccurs="1">
210
+ <xs:annotation>
211
+ <xs:documentation>Identifies the adopted status of the roads and/or footpaths.</xs:documentation>
212
+ </xs:annotation>
213
+ </xs:element>
214
+ <xs:element name="Location" type="pfdt:Sentence" minOccurs="0" maxOccurs="1">
215
+ <xs:annotation>
216
+ <xs:documentation>Text description of the location of the unmade roads e.g. "North, South and East", "Front", "Front and Sides" etc.
217
+ It is a sentence rather than an enumerated domain because the possible values and combinations required to described the standard scenarios are excessively large.</xs:documentation>
218
+ </xs:annotation>
219
+ </xs:element>
220
+ </xs:all>
221
+ </xs:complexType>
222
+ <xs:element name="StructuralWorkRiskType" type="StructuralWorkRiskType"/>
223
+ <xs:complexType name="StructuralWorkRiskType">
224
+ <xs:all>
225
+ <xs:element name="Warranty" type="StructuralWarrantyCode" minOccurs="1" maxOccurs="1">
226
+ <xs:annotation>
227
+ <xs:documentation>Identifies the type of warranty that applies to the structural work that was carried out.</xs:documentation>
228
+ </xs:annotation>
229
+ </xs:element>
230
+ <xs:element name="Work-Type" type="StructuralWorkCode" minOccurs="1" maxOccurs="1">
231
+ <xs:annotation>
232
+ <xs:documentation>Identifies the type of Structural Work that was carried out.</xs:documentation>
233
+ </xs:annotation>
234
+ </xs:element>
235
+ <xs:element name="Other-Work-Description" type="pfdt:Sentence" minOccurs="0" maxOccurs="1">
236
+ <xs:annotation>
237
+ <xs:documentation>Description of the other work that was carried out if Work-Type = 'other'.</xs:documentation>
238
+ </xs:annotation>
239
+ </xs:element>
240
+ <xs:element name="Work-Scope" type="StructuralWorkScopeCode" minOccurs="1" maxOccurs="1">
241
+ <xs:annotation>
242
+ <xs:documentation>Identifies the scope of the building that was affected by the structural work that was carried out e.g. whole building</xs:documentation>
243
+ </xs:annotation>
244
+ </xs:element>
245
+ </xs:all>
246
+ </xs:complexType>
247
+ <xs:element name="ContaminationRiskType" type="ContaminationRiskType"/>
248
+ <xs:complexType name="ContaminationRiskType">
249
+ <xs:all>
250
+ <xs:element name="Location" type="ContaminationLocationCode" minOccurs="1" maxOccurs="1">
251
+ <xs:annotation>
252
+ <xs:documentation>Identifies the location of the contamination risk relative to the Property.</xs:documentation>
253
+ </xs:annotation>
254
+ </xs:element>
255
+ </xs:all>
256
+ </xs:complexType>
257
+ <xs:element name="UnsafeRoomType" type="UnsafeRoomType"/>
258
+ <xs:complexType name="UnsafeRoomType">
259
+ <xs:all>
260
+ <xs:element name="Location" type="UnsafeRoomCode" minOccurs="1" maxOccurs="1">
261
+ <xs:annotation>
262
+ <xs:documentation>Identifies the location of the suspected unsafe room.</xs:documentation>
263
+ </xs:annotation>
264
+ </xs:element>
265
+ <xs:element name="Reason" type="UnsafeRoomReasonCode" minOccurs="1" maxOccurs="1">
266
+ <xs:annotation>
267
+ <xs:documentation>Identifies the reason that the Home Inspector suspects the room is unsafe to live in.</xs:documentation>
268
+ </xs:annotation>
269
+ </xs:element>
270
+ </xs:all>
271
+ </xs:complexType>
272
+ <xs:element name="GasLeakType" type="GasLeakType"/>
273
+ <xs:complexType name="GasLeakType">
274
+ <xs:all>
275
+ <xs:element name="InformedPerson" type="GasLeakInformedCode" minOccurs="1" maxOccurs="1">
276
+ <xs:annotation>
277
+ <xs:documentation>Identifies who the Home Inspector informed about the suspected Gas Leak</xs:documentation>
278
+ </xs:annotation>
279
+ </xs:element>
280
+ <xs:element name="Location" type="GasLeakLocationCode" minOccurs="1" maxOccurs="1">
281
+ <xs:annotation>
282
+ <xs:documentation>Identifies the location of the suspected Gas Leak.</xs:documentation>
283
+ </xs:annotation>
284
+ </xs:element>
285
+ </xs:all>
286
+ </xs:complexType>
287
+ <xs:element name="SafetyGlassType" type="SafetyGlassType"/>
288
+ <xs:complexType name="SafetyGlassType">
289
+ <xs:sequence>
290
+ <xs:element name="Location" type="pfdt:Sentence" minOccurs="1" maxOccurs="unbounded">
291
+ <xs:annotation>
292
+ <xs:documentation>The location of the property feature that the Home Inspector believes should have safety glass installed.</xs:documentation>
293
+ </xs:annotation>
294
+ </xs:element>
295
+ </xs:sequence>
296
+ </xs:complexType>
297
+ </xs:schema>
@@ -1,28 +1,48 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema targetNamespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-SAP05" xmlns="http://www.est.org.uk/epc/lodgement/estV20/DCLG-SAP05" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bdt="http://www.est.org.uk/epc/lodgement/estV20/DCLG-SAP05/BaseDataTypes" xmlns:SAP05="http://www.est.org.uk/epc/lodgement/estV20/DCLG-SAP05" elementFormDefault="qualified" version="LIG-14.0">
3
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-SAP05/BaseDataTypes" schemaLocation="../UDT/BaseDataTypes.xsd"/>
2
+ <xs:schema targetNamespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" xmlns="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pfdt="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/BaseDataTypes" xmlns:HIP="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" attributeFormDefault="qualified" version="LIG-12.0">
3
+ <xs:annotation>
4
+ <xs:documentation>© Department of Communities and Local Government. © Crown copyright, 2007. The Home Condition Report logo and associated wording is a registered trade mark - any unlicensed use is not permitted. Copyright in the typographical arrangement of this document rests with the Crown. This publication, excluding logos, may be reproduced free of charge in any format or medium for research, private study, for internal circulation within an organisation or by registered scheme users. This is subject to it being reproduced accurately and not used in a misleading context.</xs:documentation>
5
+ </xs:annotation>
6
+ <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/BaseDataTypes" schemaLocation="../UDT/BaseDataTypes.xsd"/>
4
7
  <xs:include schemaLocation="../UDT/SharedDomains.xsd"/>
5
- <xs:include schemaLocation="../UDT/SAP05-Domains.xsd"/>
6
- <xs:include schemaLocation="../Templates/UserManagement.xsd"/>
7
- <xs:include schemaLocation="../Templates/Property.xsd"/>
8
- <xs:include schemaLocation="../Templates/SAP05-CollectedData.xsd"/>
8
+ <xs:include schemaLocation="../UDT/SAP-Domains.xsd"/>
9
+ <xs:include schemaLocation="../UDT/HCR-Domains.xsd"/>
10
+ <xs:include schemaLocation="../Templates/EPC-CollectedData.xsd"/>
11
+ <xs:include schemaLocation="../Templates/HCR-FeaturesInternal.xsd"/>
12
+ <xs:include schemaLocation="../Templates/HCR-FeaturesGrounds.xsd"/>
13
+ <xs:include schemaLocation="../Templates/HCR-FeaturesExternal.xsd"/>
14
+ <xs:include schemaLocation="../Templates/HCR-FeaturesServices.xsd"/>
15
+ <xs:include schemaLocation="../Templates/HCR-PropertyDetails.xsd"/>
16
+ <xs:include schemaLocation="../Templates/HCR-RiskAssessment.xsd"/>
9
17
  <xs:include schemaLocation="../Templates/EPC-Certificate.xsd"/>
18
+ <xs:include schemaLocation="../Templates/Property.xsd"/>
19
+ <xs:include schemaLocation="../Templates/UserManagement.xsd"/>
20
+ <xs:element name="Home-Condition-Report" type="Home-Condition-Report"/>
21
+ <xs:complexType name="Home-Condition-Report">
22
+ <xs:annotation>
23
+ <xs:documentation>The Home Condition Report summarises the results of an inspection of a Property carried out by a Home Inspector.
24
+
25
+ A Home Condition Report is initially Commissioned by a Seller (or their Agent) through a Home Inspection Organisation who then assigned it to a Home Inspector. Once the Home Inspector has completed the Commissioned Report, they finalise it with the Seller and the completed report is then Lodged in the HCR-Register via a HCR Registration Organisation.
26
+
27
+ Once the Home Condition Report has been lodged it is available for access by all interested parties.</xs:documentation>
28
+ </xs:annotation>
29
+ <xs:all>
30
+ <xs:element name="Weather-Conditions" type="WeatherConditionCode" minOccurs="1" maxOccurs="1"/>
31
+ <xs:element name="Property-Details" type="Property-Details" minOccurs="1" maxOccurs="1"/>
32
+ <xs:element name="Risk-Assessment" type="Risk-Assessment" minOccurs="0" maxOccurs="1"/>
33
+ <xs:element name="Further-Investigations" type="Further-Investigations" minOccurs="0" maxOccurs="1"/>
34
+ <xs:element name="Utility-Services" type="Utility-Services" minOccurs="0" maxOccurs="1"/>
35
+ <xs:element name="External-Features" type="External-Features" minOccurs="0" maxOccurs="1"/>
36
+ <xs:element name="Grounds" type="Grounds" minOccurs="0" maxOccurs="1"/>
37
+ <xs:element name="Internal-Features" type="Internal-Features" minOccurs="0" maxOccurs="1"/>
38
+ <xs:element name="Report-Header" type="Report-Header" minOccurs="1" maxOccurs="1"/>
39
+ <xs:element name="Insurance-Details" type="Insurance-Details" minOccurs="0" maxOccurs="1"/>
40
+ <xs:element name="Structural-Concerns" type="Structural-Concerns" minOccurs="0" maxOccurs="1"/>
41
+ </xs:all>
42
+ </xs:complexType>
10
43
  <xs:element name="Energy-Performance-Certificate" type="Energy-Performance-Certificate"/>
11
44
  <xs:complexType name="Energy-Performance-Certificate">
12
- <xs:sequence>
13
- <xs:element name="SAP-Version" type="SAP-VersionCode" minOccurs="1" maxOccurs="1">
14
- <xs:annotation>
15
- <xs:documentation>SAP version that was used for the assessment.</xs:documentation>
16
- </xs:annotation>
17
- </xs:element>
18
- <xs:element name="BEDF-Revision-Number" type="xs:nonNegativeInteger" minOccurs="0" maxOccurs="1">
19
- <xs:annotation>
20
- <xs:documentation>BEDF Revision Number from SEDBUK database if boiler details retrieved from database (as on the $001 line in bedf2005.dat); if boiler or other data (mechanical vent system, PFGHRD) from database. This must be included if any item is from database. At the moment it can be
21
- - boilers
22
- - mech vent system
23
- but others things will be added in future revisions.</xs:documentation>
24
- </xs:annotation>
25
- </xs:element>
45
+ <xs:all>
26
46
  <xs:element name="Calculation-Software-Name" type="xs:string" minOccurs="1" maxOccurs="1">
27
47
  <xs:annotation>
28
48
  <xs:documentation>Name of the software used to perform the SAP calculation.</xs:documentation>
@@ -33,25 +53,24 @@ but others things will be added in future revisions.</xs:documentation>
33
53
  <xs:documentation>Version of the software used to perform the SAP calculation.</xs:documentation>
34
54
  </xs:annotation>
35
55
  </xs:element>
36
- <xs:element name="Report-Header" type="Report-Header" minOccurs="1" maxOccurs="1"/>
37
- <xs:element name="Energy-Assessment" type="Energy-Assessment" minOccurs="1" maxOccurs="1"/>
38
- <xs:element name="SAP05-Data" type="SAP05-Data" minOccurs="1" maxOccurs="1"/>
39
- <xs:element name="PDF" type="xs:base64Binary" minOccurs="1" maxOccurs="1"/>
40
- <xs:element name="Insurance-Details" type="Insurance-Details" minOccurs="0" maxOccurs="1"/>
41
- <xs:element name="ExternalDefinitions-Revision-Number" type="xs:string" minOccurs="1" maxOccurs="1">
56
+ <xs:element name="SAP-Version" type="SAP-VersionCode" minOccurs="1" maxOccurs="1">
42
57
  <xs:annotation>
43
- <xs:documentation>A number indicating the version of related ExternalDefinitions.xsd</xs:documentation>
58
+ <xs:documentation>SAP version that was used for the assessment.</xs:documentation>
44
59
  </xs:annotation>
45
60
  </xs:element>
46
- </xs:sequence>
61
+ <xs:element name="Energy-Assessment" type="Energy-Assessment" minOccurs="1" maxOccurs="1"/>
62
+ <xs:element name="SAP-Data" type="SAP-Data" minOccurs="0" maxOccurs="1"/>
63
+ <xs:element name="Report-Header" type="Report-Header" minOccurs="1" maxOccurs="1"/>
64
+ <xs:element name="Insurance-Details" type="Insurance-Details" minOccurs="1" maxOccurs="1"/>
65
+ </xs:all>
47
66
  </xs:complexType>
48
67
  <xs:element name="ReportKeyFields" type="ReportKeyFields"/>
49
68
  <xs:complexType name="ReportKeyFields">
50
69
  <xs:annotation>
51
- <xs:documentation>Primary Key Fields definition for a Report - used when a message requires a reference tio a report to be passed.</xs:documentation>
70
+ <xs:documentation>Primary Key Fields definition for Home Condition Report - used when a message requires a reference tio a report to be passed.</xs:documentation>
52
71
  </xs:annotation>
53
72
  <xs:sequence>
54
- <xs:element name="RRN" type="bdt:RRNType" minOccurs="1" maxOccurs="1"/>
73
+ <xs:element name="RRN" type="pfdt:RRNType" minOccurs="1" maxOccurs="1"/>
55
74
  </xs:sequence>
56
75
  </xs:complexType>
57
76
  <xs:element name="Insurance-Details" type="Insurance-Details"/>
@@ -64,7 +83,7 @@ A particular Home Condition Report may be covered by an Professional Indemnity I
64
83
  * The Home Condition Report is covered by an umbrella Professional Indemnity Insurance policy held by the Home Condition Report Supplier that assigned the inspection to the Home Inspector.
65
84
  * An individual insurance policy is taken out to cover the individual report such as the case where the property is unusual and falls outside the Home Inspectors normal Professional Indemnity Insurance policy.
66
85
 
67
- A Home Inspector may use any or all of these methods to providing Professional Indemnity Insurance for a Home Condition Report on a case-by-case basis.
86
+ A Home Inspector may use any or all of these methods to providing Professional Indemnity Insurance for a Report on a case-by-case basis.
68
87
  </xs:documentation>
69
88
  </xs:annotation>
70
89
  <xs:all>
@@ -88,7 +107,7 @@ A Home Inspector may use any or all of these methods to providing Professional I
88
107
  <xs:documentation>The date that the insurance policy is supposed to expire.</xs:documentation>
89
108
  </xs:annotation>
90
109
  </xs:element>
91
- <xs:element name="PI-Limit" type="bdt:Money" minOccurs="1" maxOccurs="1">
110
+ <xs:element name="PI-Limit" type="pfdt:Money" minOccurs="1" maxOccurs="1">
92
111
  <xs:annotation>
93
112
  <xs:documentation>The upper limit of the Professional Indemnity cover provided by the insurance policy.</xs:documentation>
94
113
  </xs:annotation>
@@ -100,8 +119,8 @@ A Home Inspector may use any or all of these methods to providing Professional I
100
119
  <xs:annotation>
101
120
  <xs:documentation>Report Header contains all the identification and searchable details for the Report.</xs:documentation>
102
121
  </xs:annotation>
103
- <xs:sequence>
104
- <xs:element name="RRN" type="bdt:RRNType" minOccurs="1" maxOccurs="1">
122
+ <xs:all>
123
+ <xs:element name="RRN" type="pfdt:RRNType" minOccurs="1" maxOccurs="1">
105
124
  <xs:annotation>
106
125
  <xs:documentation>Report Reference Number is the unique report Identifier that the report will be publicly known by.
107
126
 
@@ -137,7 +156,7 @@ Initially the only allowed type will be a Home Condition Report inspection but t
137
156
  A Home Condition Report can have a number of distinct states depending on whereabouts in its overall lifecycle the HCR is - see Home Condition Report Statechart for more details.</xs:documentation>
138
157
  </xs:annotation>
139
158
  </xs:element>
140
- <xs:element name="Language-Code" type="bdt:LanguageCode" minOccurs="1" maxOccurs="1">
159
+ <xs:element name="Language-Code" type="pfdt:LanguageCode" minOccurs="1" maxOccurs="1">
141
160
  <xs:annotation>
142
161
  <xs:documentation>The language that the report is written in. </xs:documentation>
143
162
  </xs:annotation>
@@ -151,8 +170,12 @@ Some members of the public have a moral / religious objection to money lending a
151
170
  However anyone with access to the Report Reference Number (RRN) can retrieve the PDF version of the Home Condition Report via the public access mechanism which cannot be restricted in this way.</xs:documentation>
152
171
  </xs:annotation>
153
172
  </xs:element>
154
- <xs:element name="Transaction-Type" type="TransactionType" minOccurs="1" maxOccurs="1"/>
155
- <xs:element name="Seller-Commission-Report" type="bdt:Flag" minOccurs="1" maxOccurs="1">
173
+ <xs:element name="Related-Party-Disclosure" type="pfdt:Sentence" minOccurs="1" maxOccurs="1">
174
+ <xs:annotation>
175
+ <xs:documentation>Any statement that the Home Inspector might want to make about potential conflicts of interest or commercial relationships with other parties.</xs:documentation>
176
+ </xs:annotation>
177
+ </xs:element>
178
+ <xs:element name="Seller-Commission-Report" type="pfdt:Flag" minOccurs="1" maxOccurs="1">
156
179
  <xs:annotation>
157
180
  <xs:documentation>Indicates that the HCR was commissioned by the Seller of the Property or their Agent. This is required in order to differentiate these reports from Buyer commisioned reports which are not eligible for inclusion in a Home Information Pack</xs:documentation>
158
181
  </xs:annotation>
@@ -162,8 +185,6 @@ However anyone with access to the Report Reference Number (RRN) can retrieve the
162
185
  <xs:documentation>Describes the type of Property that is being inspected. This should be the same as the Property-Type recorded in the Property-Details section.</xs:documentation>
163
186
  </xs:annotation>
164
187
  </xs:element>
165
- <xs:element name="Home-Inspector" type="Home-Inspector" minOccurs="1" maxOccurs="1"/>
166
- <xs:element name="Property" type="Property" minOccurs="1" maxOccurs="1"/>
167
188
  <xs:element name="Region-Code" type="UKRegionCode" minOccurs="0" maxOccurs="1">
168
189
  <xs:annotation>
169
190
  <xs:documentation>Region within the UK. This field is optional.</xs:documentation>
@@ -174,22 +195,9 @@ However anyone with access to the Report Reference Number (RRN) can retrieve the
174
195
  <xs:documentation>Country within the UK. This field is optional.</xs:documentation>
175
196
  </xs:annotation>
176
197
  </xs:element>
177
- <xs:element name="Related-Party-Disclosure">
178
- <xs:complexType>
179
- <xs:choice>
180
- <xs:element name="Related-Party-Disclosure-Text" type="bdt:Sentence" minOccurs="1" maxOccurs="1">
181
- <xs:annotation>
182
- <xs:documentation>For backward compatibility only.</xs:documentation>
183
- </xs:annotation>
184
- </xs:element>
185
- <xs:element name="Related-Party-Disclosure-Number" type="DisclosureCode" minOccurs="1" maxOccurs="1">
186
- <xs:annotation>
187
- <xs:documentation>Code indicating any potential conflicts of interest or commercial relationships with other parties.</xs:documentation>
188
- </xs:annotation>
189
- </xs:element>
190
- </xs:choice>
191
- </xs:complexType>
192
- </xs:element>
193
- </xs:sequence>
198
+ <xs:element name="Transaction-Type" type="TransactionType" minOccurs="1" maxOccurs="1" default="1"/>
199
+ <xs:element name="Home-Inspector" type="Home-Inspector" minOccurs="1" maxOccurs="1"/>
200
+ <xs:element name="Property" type="Property" minOccurs="1" maxOccurs="1"/>
201
+ </xs:all>
194
202
  </xs:complexType>
195
203
  </xs:schema>
@@ -1,5 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema targetNamespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-SAP05" xmlns="http://www.est.org.uk/epc/lodgement/estV20/DCLG-SAP05" xmlns:SAP05="http://www.est.org.uk/epc/lodgement/estV20/DCLG-SAP05" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="LIG-14.0">
2
+ <xs:schema targetNamespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" xmlns="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" xmlns:HIP="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="LIG-12.0">
3
+ <xs:annotation>
4
+ <xs:documentation>© Department of Communities and Local Government. © Crown copyright, 2007. The Home Condition Report logo and associated wording is a registered trade mark - any unlicensed use is not permitted. Copyright in the typographical arrangement of this document rests with the Crown. This publication, excluding logos, may be reproduced free of charge in any format or medium for research, private study, for internal circulation within an organisation or by registered scheme users. This is subject to it being reproduced accurately and not used in a misleading context. </xs:documentation>
5
+ </xs:annotation>
3
6
  <xs:element name="Property" type="Property"/>
4
7
  <xs:complexType name="Property">
5
8
  <xs:annotation>
@@ -11,11 +14,7 @@ As such the broad description of a Property can be regarded as a framework, cont
11
14
  </xs:documentation>
12
15
  </xs:annotation>
13
16
  <xs:all>
14
- <xs:element name="Address" type="AddressType" minOccurs="1" maxOccurs="1">
15
- <xs:annotation>
16
- <xs:documentation>Address for the property.</xs:documentation>
17
- </xs:annotation>
18
- </xs:element>
17
+ <xs:element name="Address" type="AddressType" minOccurs="1" maxOccurs="1"/>
19
18
  <xs:element name="UPRN" type="UPRNType" minOccurs="1" maxOccurs="1">
20
19
  <xs:annotation>
21
20
  <xs:documentation>Unique Property Reference Number</xs:documentation>
@@ -32,10 +31,16 @@ As such the broad description of a Property can be regarded as a framework, cont
32
31
  </xs:annotation>
33
32
  <xs:sequence>
34
33
  <xs:element name="Address-Line-1" type="xs:string" minOccurs="0" maxOccurs="1"/>
35
- <xs:element name="Address-Line-2" type="xs:string" minOccurs="0" maxOccurs="1"/>
34
+ <xs:element name="Address-Line-2" type="xs:string" minOccurs="0" maxOccurs="1">
35
+ <xs:annotation>
36
+ <xs:documentation>The District part of the Address.
37
+
38
+ A District is an optional sub-part of the Post Town e.g. "Kings Heath" in "Birmingham" or "Ellington" in London.</xs:documentation>
39
+ </xs:annotation>
40
+ </xs:element>
36
41
  <xs:element name="Address-Line-3" type="xs:string" minOccurs="0" maxOccurs="1"/>
37
- <xs:element name="Post-Town" type="xs:string" minOccurs="1" maxOccurs="1"/>
38
- <xs:element name="Postcode" type="PostcodeType" minOccurs="1" maxOccurs="1">
42
+ <xs:element name="Post-Town" type="xs:string" minOccurs="0" maxOccurs="1"/>
43
+ <xs:element name="Postcode" type="PostcodeType" minOccurs="0" maxOccurs="1">
39
44
  <xs:annotation>
40
45
  <xs:documentation>The Postcode for the Address
41
46
  </xs:documentation>