epb_view_models 2.2.20 → 2.3.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 (140) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +21 -21
  5. data/api/schemas/data/orchestrate.json +4 -0
  6. data/api/schemas/xml/CEPC-S-7.0/Reports/BaseDataTypes.xsd +296 -296
  7. data/api/schemas/xml/CEPC-S-7.0/Reports/CEPC-Reports.xsd +63 -63
  8. data/api/schemas/xml/CEPC-S-7.0/Reports/Input-Data.xsd +34 -34
  9. data/api/schemas/xml/CEPC-S-7.0/Reports/Performance-Summary.xsd +120 -120
  10. data/api/schemas/xml/CEPC-S-7.0/Reports/Property.xsd +67 -67
  11. data/api/schemas/xml/CEPC-S-7.0/Reports/Report-Header.xsd +178 -178
  12. data/api/schemas/xml/CEPC-S-7.0/Reports/Reported-Data.xsd +391 -391
  13. data/api/schemas/xml/CEPC-S-7.0/Reports/UserManagement.xsd +171 -171
  14. data/api/schemas/xml/CEPC-S-7.1/Reports/BaseDataTypes.xsd +300 -300
  15. data/api/schemas/xml/CEPC-S-7.1/Reports/CEPC-Reports.xsd +66 -66
  16. data/api/schemas/xml/CEPC-S-7.1/Reports/Input-Data.xsd +34 -34
  17. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd +125 -125
  18. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd.bak +123 -123
  19. data/api/schemas/xml/CEPC-S-7.1/Reports/Property.xsd +67 -67
  20. data/api/schemas/xml/CEPC-S-7.1/Reports/Report-Header.xsd +178 -178
  21. data/api/schemas/xml/CEPC-S-7.1/Reports/Reported-Data.xsd +406 -406
  22. data/api/schemas/xml/CEPC-S-7.1/Reports/UserManagement.xsd +174 -174
  23. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  24. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  25. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/ExternalDefinitions.xsd +147 -0
  26. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessRequest_1.xsd +44 -0
  27. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessResponse_1.xsd +47 -0
  28. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusRequest_1.xsd +44 -0
  29. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusResponse_1.xsd +47 -0
  30. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +41 -0
  31. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateResponse_1.xsd +52 -0
  32. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveRequest_1.xsd +52 -0
  33. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveResponse_1.xsd +87 -0
  34. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateRequest_1.xsd +44 -0
  35. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateResponse_1.xsd +28 -0
  36. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusRequest_1.xsd +30 -0
  37. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusResponse_1.xsd +52 -0
  38. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationRequest_1.xsd +44 -0
  39. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationResponse_1.xsd +46 -0
  40. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/EPC-Certificate.xsd +270 -0
  41. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/Property.xsd +68 -0
  42. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-CollectedData.xsd +1188 -0
  43. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-Report.xsd +195 -0
  44. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/UserManagement.xsd +215 -0
  45. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/BaseDataTypes.xsd +175 -0
  46. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/EPC-Domains.xsd +703 -0
  47. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SAP05-Domains.xsd +3007 -0
  48. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SharedDomains.xsd +311 -0
  49. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd +252 -0
  50. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd +444 -0
  51. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  52. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  53. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  54. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  55. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  56. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  57. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HIP-Reports.xsd +220 -0
  58. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/Property.xsd +73 -0
  59. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/UserManagement.xsd +257 -0
  60. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/BaseDataTypes.xsd +176 -0
  61. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/EPC-Domains.xsd +743 -0
  62. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  63. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SAP-Domains.xsd +1134 -0
  64. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SharedDomains.xsd +660 -0
  65. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  66. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -1456
  67. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -236
  68. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -16
  69. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -388
  70. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -784
  71. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -283
  72. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -222
  73. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -205
  74. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -311
  75. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -380
  76. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -298
  77. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -67
  78. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -201
  79. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -259
  80. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -176
  81. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -881
  82. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -1779
  83. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -1650
  84. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -768
  85. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -19
  86. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml +1456 -1456
  87. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd +236 -236
  88. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd +208 -208
  89. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  90. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-CollectedData.xsd +957 -957
  91. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ExceptionList.xsd +18 -18
  92. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/Property.xsd +66 -66
  93. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +180 -180
  94. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ReportList.xsd +26 -26
  95. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/EPC-Domains.xsd +843 -843
  96. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/SAP-Domains.xsd +2541 -2541
  97. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -1456
  98. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -236
  99. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  100. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  101. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -966
  102. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -18
  103. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -66
  104. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -175
  105. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -26
  106. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -853
  107. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -2551
  108. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
  109. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  110. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  111. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
  112. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
  113. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
  114. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
  115. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
  116. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
  117. data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -11846
  118. data/epb_view_models.gemspec +3 -2
  119. data/lib/epb_view_models.rb +1 -1
  120. data/lib/view_model/cepc_s_70/cepc.rb +5 -5
  121. data/lib/view_model/cepc_s_71/cepc.rb +5 -5
  122. data/lib/view_model/cs63/common_schema.rb +1 -1
  123. data/lib/view_model/factory.rb +1 -0
  124. data/lib/view_model/rd_sap_schema_ni_173/common_schema.rb +8 -8
  125. data/lib/view_model/rd_sap_schema_ni_174/common_schema.rb +8 -8
  126. data/lib/view_model/rd_sap_schema_ni_180/common_schema.rb +8 -8
  127. data/lib/view_model/rd_sap_schema_ni_190/common_schema.rb +8 -8
  128. data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +8 -8
  129. data/lib/view_model/rd_sap_schema_s_140/common_schema.rb +550 -0
  130. data/lib/view_model/rd_sap_schema_s_190/common_schema.rb +41 -41
  131. data/lib/view_model/rd_sap_schema_s_210/common_schema.rb +35 -35
  132. data/lib/view_model/rd_sap_wrapper.rb +2 -0
  133. data/lib/view_model/sap_schema_1900/common_schema.rb +6 -6
  134. data/lib/view_model/sap_schema_1910/common_schema.rb +6 -6
  135. data/lib/view_model/sap_schema_1920/common_schema.rb +6 -6
  136. data/lib/view_model/sap_schema_ni_173/common_schema.rb +8 -8
  137. data/lib/view_model/sap_schema_ni_174/common_schema.rb +8 -8
  138. data/lib/view_model/sap_schema_ni_1800/common_schema.rb +8 -8
  139. data/lib/view_model/sap_schema_s_1900/common_schema.rb +11 -11
  140. metadata +62 -4
@@ -1,178 +1,178 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:CEPC="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:UDT="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:HIP="http://www.est.org.uk/epc/estcrV1/DCLG-HIP" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" elementFormDefault="qualified" version="LIG-CEPC-7.0">
3
- <!--xs:import namespace="http://www.est.org.uk/epc/estcrV1/DCLG-HIP" schemaLocation="./SharedDomains.xsd"/-->
4
- <!--xs:include schemaLocation="./HCR-Domains.xsd"/-->
5
- <xs:include schemaLocation="./UserManagement.xsd"/>
6
- <xs:include schemaLocation="./BaseDataTypes.xsd"/>
7
- <xs:include schemaLocation="./Property.xsd"/>
8
- <xs:element name="Property-Details" type="Property-Details"/>
9
- <xs:complexType name="Property-Details"/>
10
- <xs:element name="AddressType" type="AddressType"/>
11
- <xs:element name="Report-Header" type="Report-Header"/>
12
- <xs:complexType name="Report-Header">
13
- <xs:annotation>
14
- <xs:documentation>Report Header contains all the identification and searchable details for the Report.</xs:documentation>
15
- </xs:annotation>
16
- <xs:sequence>
17
- <xs:element name="RRN" type="RRNType">
18
- <xs:annotation>
19
- <xs:documentation>Report Reference Number is the unique report Identifier that the report will be publicly known by.
20
-
21
- The RRN is allocated to the Report at the point that it is registered and will be algorithmically derived from the natural key characteristics of the Home Condition Report i.e. The Unique Property Reference Number (UPRN) and Inspection Date.</xs:documentation>
22
- </xs:annotation>
23
- </xs:element>
24
- <xs:element name="Inspection-Date" type="xs:date">
25
- <xs:annotation>
26
- <xs:documentation>The date that the inspection was actually carried out by the Home Inspector.</xs:documentation>
27
- </xs:annotation>
28
- </xs:element>
29
- <xs:element name="Report-Type" type="ReportTypeCode">
30
- <xs:annotation>
31
- <xs:documentation>The type of Home Inspection that was carried out.
32
-
33
- Initially the only allowed type will be a Home Condition Report inspection but this may be extended in the future to cover Energy Assessment Only inspections.</xs:documentation>
34
- </xs:annotation>
35
- </xs:element>
36
- <xs:element name="Completion-Date" type="xs:date">
37
- <xs:annotation>
38
- <xs:documentation>The date that the Home Inspector completed the report. This will be after the Inspection Date but generally before the Registration Date.</xs:documentation>
39
- </xs:annotation>
40
- </xs:element>
41
- <xs:element name="Registration-Date" type="xs:date">
42
- <xs:annotation>
43
- <xs:documentation>The date that the report was submitted to the HCR Registration Organisation for lodging in the HCR Register.</xs:documentation>
44
- </xs:annotation>
45
- </xs:element>
46
- <xs:element name="Status" type="ReportStatusCode">
47
- <xs:annotation>
48
- <xs:documentation>The Status of the Report.
49
-
50
- 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>
51
- </xs:annotation>
52
- </xs:element>
53
- <xs:element name="Language-Code" type="LanguageCode">
54
- <xs:annotation>
55
- <xs:documentation>The language that the report is written in. </xs:documentation>
56
- </xs:annotation>
57
- </xs:element>
58
- <xs:element name="Restricted-Access" type="RestrictedAccessCode">
59
- <xs:annotation>
60
- <xs:documentation>Indicates that the Seller wants to restrict access to the Home Condition Report to General Public / Unregistered Users only.
61
-
62
- Some members of the public have a moral / religious objection to money lending and hence may not want to let Mortgage Lenders have access to the data. When set to "Yes" retrieval of the structured (XML) data will be blocked.
63
-
64
- 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>
65
- </xs:annotation>
66
- </xs:element>
67
- <xs:element name="Transaction-Type" type="TransactionType"/>
68
- <xs:element name="Seller-Commission-Report" type="Flag">
69
- <xs:annotation>
70
- <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>
71
- </xs:annotation>
72
- </xs:element>
73
- <xs:element name="Property-Type" type="Building-Type">
74
- <xs:annotation>
75
- <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>
76
- </xs:annotation>
77
- </xs:element>
78
- <xs:element name="Energy-Assessor" type="Energy-Assessor"/>
79
- <xs:element name="Property" type="Property"/>
80
- <xs:element name="Calculation-Details">
81
- <xs:complexType>
82
- <xs:sequence>
83
- <xs:element name="Methodology" type="xs:string"/>
84
- <xs:element name="Calculation-Tool" type="xs:string"/>
85
- <xs:element name="Output-Engine" type="xs:string"/>
86
- <xs:element name="Inspection-Type" type="xs:string"/>
87
- </xs:sequence>
88
- </xs:complexType>
89
- </xs:element>
90
- </xs:sequence>
91
- </xs:complexType>
92
- <xs:simpleType name="ReportTypeCode">
93
- <xs:restriction base="xs:string">
94
- <xs:enumeration value="3">
95
- <xs:annotation>
96
- <xs:documentation>Energy Performance Certificate (Non Domestic)</xs:documentation>
97
- </xs:annotation>
98
- </xs:enumeration>
99
- <xs:enumeration value="4">
100
- <xs:annotation>
101
- <xs:documentation>Recommendation Report (Non Domestic)</xs:documentation>
102
- </xs:annotation>
103
- </xs:enumeration>
104
- </xs:restriction>
105
- </xs:simpleType>
106
- <xs:simpleType name="ReportStatusCode">
107
- <xs:restriction base="xs:string">
108
- <xs:enumeration value="cancelled">
109
- <xs:annotation>
110
- <xs:documentation>Cancelled</xs:documentation>
111
- </xs:annotation>
112
- </xs:enumeration>
113
- <xs:enumeration value="entered">
114
- <xs:annotation>
115
- <xs:documentation>entered on the register</xs:documentation>
116
- </xs:annotation>
117
- </xs:enumeration>
118
- <xs:enumeration value="appeal">
119
- <xs:annotation>
120
- <xs:documentation>under appeal</xs:documentation>
121
- </xs:annotation>
122
- </xs:enumeration>
123
- <xs:enumeration value="removed">
124
- <xs:annotation>
125
- <xs:documentation>removed</xs:documentation>
126
- </xs:annotation>
127
- </xs:enumeration>
128
- <xs:enumeration value="rejected">
129
- <xs:annotation>
130
- <xs:documentation>rejected</xs:documentation>
131
- </xs:annotation>
132
- </xs:enumeration>
133
- <xs:enumeration value="under investigation">
134
- <xs:annotation>
135
- <xs:documentation>under investigation</xs:documentation>
136
- </xs:annotation>
137
- </xs:enumeration>
138
- <xs:enumeration value="not for issue">
139
- <xs:annotation>
140
- <xs:documentation>not for issue</xs:documentation>
141
- </xs:annotation>
142
- </xs:enumeration>
143
- </xs:restriction>
144
- </xs:simpleType>
145
- <xs:simpleType name="RestrictedAccessCode">
146
- <xs:annotation>
147
- <xs:documentation>Set of access codes identifying any restrictions on the retrieval of the electronic HCR.</xs:documentation>
148
- </xs:annotation>
149
- <xs:restriction base="xs:string">
150
- <xs:enumeration value="0">
151
- <xs:annotation>
152
- <xs:documentation>No restriction</xs:documentation>
153
- </xs:annotation>
154
- </xs:enumeration>
155
- <xs:enumeration value="1">
156
- <xs:annotation>
157
- <xs:documentation>Exclude mortgage lenders</xs:documentation>
158
- </xs:annotation>
159
- </xs:enumeration>
160
- <xs:enumeration value="2">
161
- <xs:annotation>
162
- <xs:documentation>Mortgage lenders only</xs:documentation>
163
- </xs:annotation>
164
- </xs:enumeration>
165
- <xs:enumeration value="4">
166
- <xs:annotation>
167
- <xs:documentation>No access allowed</xs:documentation>
168
- </xs:annotation>
169
- </xs:enumeration>
170
- </xs:restriction>
171
- </xs:simpleType>
172
- <xs:complexType name="Building-Type">
173
- <xs:sequence>
174
- <xs:element name="Short-Description" type="xs:string"></xs:element>
175
- <xs:element name="Long-Description" type="xs:string"></xs:element>
176
- </xs:sequence>
177
- </xs:complexType>
178
- </xs:schema>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:CEPC="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:UDT="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:HIP="http://www.est.org.uk/epc/estcrV1/DCLG-HIP" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" elementFormDefault="qualified" version="LIG-CEPC-7.0">
3
+ <!--xs:import namespace="http://www.est.org.uk/epc/estcrV1/DCLG-HIP" schemaLocation="./SharedDomains.xsd"/-->
4
+ <!--xs:include schemaLocation="./HCR-Domains.xsd"/-->
5
+ <xs:include schemaLocation="./UserManagement.xsd"/>
6
+ <xs:include schemaLocation="./BaseDataTypes.xsd"/>
7
+ <xs:include schemaLocation="./Property.xsd"/>
8
+ <xs:element name="Property-Details" type="Property-Details"/>
9
+ <xs:complexType name="Property-Details"/>
10
+ <xs:element name="AddressType" type="AddressType"/>
11
+ <xs:element name="Report-Header" type="Report-Header"/>
12
+ <xs:complexType name="Report-Header">
13
+ <xs:annotation>
14
+ <xs:documentation>Report Header contains all the identification and searchable details for the Report.</xs:documentation>
15
+ </xs:annotation>
16
+ <xs:sequence>
17
+ <xs:element name="RRN" type="RRNType">
18
+ <xs:annotation>
19
+ <xs:documentation>Report Reference Number is the unique report Identifier that the report will be publicly known by.
20
+
21
+ The RRN is allocated to the Report at the point that it is registered and will be algorithmically derived from the natural key characteristics of the Home Condition Report i.e. The Unique Property Reference Number (UPRN) and Inspection Date.</xs:documentation>
22
+ </xs:annotation>
23
+ </xs:element>
24
+ <xs:element name="Inspection-Date" type="xs:date">
25
+ <xs:annotation>
26
+ <xs:documentation>The date that the inspection was actually carried out by the Home Inspector.</xs:documentation>
27
+ </xs:annotation>
28
+ </xs:element>
29
+ <xs:element name="Report-Type" type="ReportTypeCode">
30
+ <xs:annotation>
31
+ <xs:documentation>The type of Home Inspection that was carried out.
32
+
33
+ Initially the only allowed type will be a Home Condition Report inspection but this may be extended in the future to cover Energy Assessment Only inspections.</xs:documentation>
34
+ </xs:annotation>
35
+ </xs:element>
36
+ <xs:element name="Completion-Date" type="xs:date">
37
+ <xs:annotation>
38
+ <xs:documentation>The date that the Home Inspector completed the report. This will be after the Inspection Date but generally before the Registration Date.</xs:documentation>
39
+ </xs:annotation>
40
+ </xs:element>
41
+ <xs:element name="Registration-Date" type="xs:date">
42
+ <xs:annotation>
43
+ <xs:documentation>The date that the report was submitted to the HCR Registration Organisation for lodging in the HCR Register.</xs:documentation>
44
+ </xs:annotation>
45
+ </xs:element>
46
+ <xs:element name="Status" type="ReportStatusCode">
47
+ <xs:annotation>
48
+ <xs:documentation>The Status of the Report.
49
+
50
+ 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>
51
+ </xs:annotation>
52
+ </xs:element>
53
+ <xs:element name="Language-Code" type="LanguageCode">
54
+ <xs:annotation>
55
+ <xs:documentation>The language that the report is written in. </xs:documentation>
56
+ </xs:annotation>
57
+ </xs:element>
58
+ <xs:element name="Restricted-Access" type="RestrictedAccessCode">
59
+ <xs:annotation>
60
+ <xs:documentation>Indicates that the Seller wants to restrict access to the Home Condition Report to General Public / Unregistered Users only.
61
+
62
+ Some members of the public have a moral / religious objection to money lending and hence may not want to let Mortgage Lenders have access to the data. When set to "Yes" retrieval of the structured (XML) data will be blocked.
63
+
64
+ 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>
65
+ </xs:annotation>
66
+ </xs:element>
67
+ <xs:element name="Transaction-Type" type="TransactionType"/>
68
+ <xs:element name="Seller-Commission-Report" type="Flag">
69
+ <xs:annotation>
70
+ <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>
71
+ </xs:annotation>
72
+ </xs:element>
73
+ <xs:element name="Property-Type" type="Building-Type">
74
+ <xs:annotation>
75
+ <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>
76
+ </xs:annotation>
77
+ </xs:element>
78
+ <xs:element name="Energy-Assessor" type="Energy-Assessor"/>
79
+ <xs:element name="Property" type="Property"/>
80
+ <xs:element name="Calculation-Details">
81
+ <xs:complexType>
82
+ <xs:sequence>
83
+ <xs:element name="Methodology" type="xs:string"/>
84
+ <xs:element name="Calculation-Tool" type="xs:string"/>
85
+ <xs:element name="Output-Engine" type="xs:string"/>
86
+ <xs:element name="Inspection-Type" type="xs:string"/>
87
+ </xs:sequence>
88
+ </xs:complexType>
89
+ </xs:element>
90
+ </xs:sequence>
91
+ </xs:complexType>
92
+ <xs:simpleType name="ReportTypeCode">
93
+ <xs:restriction base="xs:string">
94
+ <xs:enumeration value="3">
95
+ <xs:annotation>
96
+ <xs:documentation>Energy Performance Certificate (Non Domestic)</xs:documentation>
97
+ </xs:annotation>
98
+ </xs:enumeration>
99
+ <xs:enumeration value="4">
100
+ <xs:annotation>
101
+ <xs:documentation>Recommendation Report (Non Domestic)</xs:documentation>
102
+ </xs:annotation>
103
+ </xs:enumeration>
104
+ </xs:restriction>
105
+ </xs:simpleType>
106
+ <xs:simpleType name="ReportStatusCode">
107
+ <xs:restriction base="xs:string">
108
+ <xs:enumeration value="cancelled">
109
+ <xs:annotation>
110
+ <xs:documentation>Cancelled</xs:documentation>
111
+ </xs:annotation>
112
+ </xs:enumeration>
113
+ <xs:enumeration value="entered">
114
+ <xs:annotation>
115
+ <xs:documentation>entered on the register</xs:documentation>
116
+ </xs:annotation>
117
+ </xs:enumeration>
118
+ <xs:enumeration value="appeal">
119
+ <xs:annotation>
120
+ <xs:documentation>under appeal</xs:documentation>
121
+ </xs:annotation>
122
+ </xs:enumeration>
123
+ <xs:enumeration value="removed">
124
+ <xs:annotation>
125
+ <xs:documentation>removed</xs:documentation>
126
+ </xs:annotation>
127
+ </xs:enumeration>
128
+ <xs:enumeration value="rejected">
129
+ <xs:annotation>
130
+ <xs:documentation>rejected</xs:documentation>
131
+ </xs:annotation>
132
+ </xs:enumeration>
133
+ <xs:enumeration value="under investigation">
134
+ <xs:annotation>
135
+ <xs:documentation>under investigation</xs:documentation>
136
+ </xs:annotation>
137
+ </xs:enumeration>
138
+ <xs:enumeration value="not for issue">
139
+ <xs:annotation>
140
+ <xs:documentation>not for issue</xs:documentation>
141
+ </xs:annotation>
142
+ </xs:enumeration>
143
+ </xs:restriction>
144
+ </xs:simpleType>
145
+ <xs:simpleType name="RestrictedAccessCode">
146
+ <xs:annotation>
147
+ <xs:documentation>Set of access codes identifying any restrictions on the retrieval of the electronic HCR.</xs:documentation>
148
+ </xs:annotation>
149
+ <xs:restriction base="xs:string">
150
+ <xs:enumeration value="0">
151
+ <xs:annotation>
152
+ <xs:documentation>No restriction</xs:documentation>
153
+ </xs:annotation>
154
+ </xs:enumeration>
155
+ <xs:enumeration value="1">
156
+ <xs:annotation>
157
+ <xs:documentation>Exclude mortgage lenders</xs:documentation>
158
+ </xs:annotation>
159
+ </xs:enumeration>
160
+ <xs:enumeration value="2">
161
+ <xs:annotation>
162
+ <xs:documentation>Mortgage lenders only</xs:documentation>
163
+ </xs:annotation>
164
+ </xs:enumeration>
165
+ <xs:enumeration value="4">
166
+ <xs:annotation>
167
+ <xs:documentation>No access allowed</xs:documentation>
168
+ </xs:annotation>
169
+ </xs:enumeration>
170
+ </xs:restriction>
171
+ </xs:simpleType>
172
+ <xs:complexType name="Building-Type">
173
+ <xs:sequence>
174
+ <xs:element name="Short-Description" type="xs:string"></xs:element>
175
+ <xs:element name="Long-Description" type="xs:string"></xs:element>
176
+ </xs:sequence>
177
+ </xs:complexType>
178
+ </xs:schema>