epb_view_models 2.7.1 → 2.8.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 (149) hide show
  1. checksums.yaml +4 -4
  2. data/api/schemas/data/orchestrate.json +19 -2
  3. data/api/schemas/xml/CEPC-S-7.0/Reports/BaseDataTypes.xsd +296 -296
  4. data/api/schemas/xml/CEPC-S-7.0/Reports/CEPC-Reports.xsd +63 -63
  5. data/api/schemas/xml/CEPC-S-7.0/Reports/Input-Data.xsd +34 -34
  6. data/api/schemas/xml/CEPC-S-7.0/Reports/Performance-Summary.xsd +120 -120
  7. data/api/schemas/xml/CEPC-S-7.0/Reports/Property.xsd +67 -67
  8. data/api/schemas/xml/CEPC-S-7.0/Reports/Report-Header.xsd +178 -178
  9. data/api/schemas/xml/CEPC-S-7.0/Reports/Reported-Data.xsd +391 -391
  10. data/api/schemas/xml/CEPC-S-7.0/Reports/UserManagement.xsd +171 -171
  11. data/api/schemas/xml/CEPC-S-7.1/Reports/BaseDataTypes.xsd +300 -300
  12. data/api/schemas/xml/CEPC-S-7.1/Reports/CEPC-Reports.xsd +66 -66
  13. data/api/schemas/xml/CEPC-S-7.1/Reports/Input-Data.xsd +34 -34
  14. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd +125 -125
  15. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd.bak +123 -123
  16. data/api/schemas/xml/CEPC-S-7.1/Reports/Property.xsd +67 -67
  17. data/api/schemas/xml/CEPC-S-7.1/Reports/Report-Header.xsd +178 -178
  18. data/api/schemas/xml/CEPC-S-7.1/Reports/Reported-Data.xsd +406 -406
  19. data/api/schemas/xml/CEPC-S-7.1/Reports/UserManagement.xsd +174 -174
  20. data/api/schemas/xml/CEPC-S-8.0.0/Reports/BaseDataTypes.xsd +302 -0
  21. data/api/schemas/xml/CEPC-S-8.0.0/Reports/CEPC-Reports.xsd +69 -0
  22. data/api/schemas/xml/CEPC-S-8.0.0/Reports/Input-Data.xsd +39 -0
  23. data/api/schemas/xml/CEPC-S-8.0.0/Reports/Performance-Summary.xsd +130 -0
  24. data/api/schemas/xml/CEPC-S-8.0.0/Reports/Property.xsd +72 -0
  25. data/api/schemas/xml/CEPC-S-8.0.0/Reports/Report-Header.xsd +182 -0
  26. data/api/schemas/xml/CEPC-S-8.0.0/Reports/Reported-Data.xsd +411 -0
  27. data/api/schemas/xml/CEPC-S-8.0.0/Reports/UserManagement.xsd +175 -0
  28. data/api/schemas/xml/CS63-S-8.0.0/ActionPlan.xsd +822 -0
  29. data/api/schemas/xml/DECAR-S-8.0.0/DEC-Summary.xsd +399 -0
  30. data/api/schemas/xml/DECAR-S-8.0.0/Reports/BaseDataTypes.xsd +187 -0
  31. data/api/schemas/xml/DECAR-S-8.0.0/Reports/CEPC-Reports.xsd +78 -0
  32. data/api/schemas/xml/DECAR-S-8.0.0/Reports/Input-Data.xsd +313 -0
  33. data/api/schemas/xml/DECAR-S-8.0.0/Reports/Performance-Summary.xsd +111 -0
  34. data/api/schemas/xml/DECAR-S-8.0.0/Reports/Report-Header.xsd +455 -0
  35. data/api/schemas/xml/DECAR-S-8.0.0/Reports/Reported-Data.xsd +408 -0
  36. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -1456
  37. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -236
  38. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -16
  39. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -388
  40. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -784
  41. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -283
  42. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -222
  43. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -205
  44. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -311
  45. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -380
  46. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -298
  47. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -67
  48. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -201
  49. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -259
  50. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -176
  51. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -881
  52. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -1779
  53. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -1650
  54. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -768
  55. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -19
  56. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml +1456 -1456
  57. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd +236 -236
  58. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd +208 -208
  59. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  60. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-CollectedData.xsd +957 -957
  61. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ExceptionList.xsd +18 -18
  62. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/Property.xsd +66 -66
  63. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +180 -180
  64. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ReportList.xsd +26 -26
  65. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/EPC-Domains.xsd +843 -843
  66. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/SAP-Domains.xsd +2541 -2541
  67. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -1456
  68. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -236
  69. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  70. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  71. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -966
  72. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -18
  73. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -66
  74. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -175
  75. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -26
  76. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -853
  77. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -2551
  78. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
  79. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  80. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  81. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
  82. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
  83. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
  84. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
  85. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
  86. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
  87. data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -11846
  88. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/ExternalDefinitions.xml +1832 -0
  89. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/ExternalDefinitions.xsd +267 -0
  90. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/Templates/AssessorManagement.xsd +212 -0
  91. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/Templates/EPC-Certificate.xsd +399 -0
  92. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/Templates/EPC-CollectedData.xsd +1453 -0
  93. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/Templates/Property.xsd +67 -0
  94. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/Templates/RdSAP-Report.xsd +179 -0
  95. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/UDT/EPC-Domains.xsd +943 -0
  96. data/api/schemas/xml/RdSAP-Schema-S-22.0.0/RdSAP/UDT/SAP-Domains.xsd +3557 -0
  97. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/ExternalDefinitions.txt +236 -236
  98. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/ExternalDefinitions.xml +1456 -1456
  99. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/EPC-Certificate.xsd +433 -433
  100. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/Property.xsd +69 -69
  101. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/SAP09-CollectedData.xsd +1326 -1326
  102. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/SAP09-Report.xsd +196 -196
  103. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/UserManagement.xsd +217 -217
  104. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/UDT/BaseDataTypes.xsd +175 -175
  105. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/UDT/EPC-Domains.xsd +813 -813
  106. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/UDT/SAP09-Domains.xsd +3457 -3457
  107. data/api/schemas/xml/SAP-Schema-S-16.1/SAP/UDT/SharedDomains.xsd +317 -317
  108. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/ExternalDefinitions.xml +1456 -1456
  109. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/ExternalDefinitions.xsd +236 -236
  110. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/Templates/AssessorManagement.xsd +216 -216
  111. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/Templates/EPC-Certificate.xsd +457 -457
  112. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/Templates/ExceptionList.xsd +18 -18
  113. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/Templates/Property.xsd +62 -62
  114. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/Templates/ReportList.xsd +26 -26
  115. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/Templates/SAP-CollectedData.xsd +1444 -1444
  116. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/Templates/SAP-Report.xsd +193 -193
  117. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/UDT/EPC-Domains.xsd +558 -558
  118. data/api/schemas/xml/SAP-Schema-S-17.0/SAP/UDT/SAP-Domains.xsd +2975 -2975
  119. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/ExternalDefinitions.xml +1352 -0
  120. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/ExternalDefinitions.xsd +242 -0
  121. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/Templates/AssessorManagement.xsd +210 -0
  122. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/Templates/EPC-Certificate.xsd +495 -0
  123. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/Templates/ExceptionList.xsd +23 -0
  124. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/Templates/Property.xsd +77 -0
  125. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/Templates/ReportList.xsd +30 -0
  126. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/Templates/SAP-CollectedData.xsd +1800 -0
  127. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/Templates/SAP-Compliance-Report.xsd +40 -0
  128. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/Templates/SAP-Report.xsd +206 -0
  129. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/UDT/EPC-Domains.xsd +564 -0
  130. data/api/schemas/xml/SAP-Schema-S-20.0.0/SAP/UDT/SAP-Domains.xsd +3140 -0
  131. data/lib/epb_view_models/version.rb +1 -1
  132. data/lib/view_model/cepc800/common_schema.rb +7 -7
  133. data/lib/view_model/cepc_s_800/cepc.rb +184 -0
  134. data/lib/view_model/cepc_wrapper.rb +2 -0
  135. data/lib/view_model/{cs63 → cs63_70}/common_schema.rb +1 -1
  136. data/lib/view_model/cs63_800/common_schema.rb +211 -0
  137. data/lib/view_model/cs63_wrapper.rb +15 -3
  138. data/lib/view_model/dec_rr_wrapper.rb +2 -0
  139. data/lib/view_model/dec_summary_wrapper.rb +2 -0
  140. data/lib/view_model/dec_wrapper.rb +2 -0
  141. data/lib/view_model/decar_s_800/common_schema.rb +109 -0
  142. data/lib/view_model/decar_s_800/dec.rb +235 -0
  143. data/lib/view_model/decar_s_800/dec_rr.rb +102 -0
  144. data/lib/view_model/factory.rb +6 -1
  145. data/lib/view_model/rd_sap_schema_s_2200/common_schema.rb +685 -0
  146. data/lib/view_model/rd_sap_wrapper.rb +4 -2
  147. data/lib/view_model/sap_schema_s_2000/common_schema.rb +619 -0
  148. data/lib/view_model/sap_wrapper.rb +2 -0
  149. metadata +46 -2
@@ -0,0 +1,182 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ xmlns="https://epbr.digital.communities.gov.uk/xsd/cepc-s"
4
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
+ targetNamespace="https://epbr.digital.communities.gov.uk/xsd/cepc-s"
6
+ elementFormDefault="qualified"
7
+ version="CEPC-S-8.0.0"
8
+ >
9
+ <xs:include schemaLocation="./UserManagement.xsd"/>
10
+ <xs:include schemaLocation="./BaseDataTypes.xsd"/>
11
+ <xs:include schemaLocation="./Property.xsd"/>
12
+ <xs:element name="Property-Details" type="Property-Details"/>
13
+ <xs:complexType name="Property-Details"/>
14
+ <xs:element name="AddressType" type="AddressType"/>
15
+ <xs:element name="Report-Header" type="Report-Header"/>
16
+ <xs:complexType name="Report-Header">
17
+ <xs:annotation>
18
+ <xs:documentation>Report Header contains all the identification and searchable details for the Report.</xs:documentation>
19
+ </xs:annotation>
20
+ <xs:sequence>
21
+ <xs:element name="RRN" type="RRNType">
22
+ <xs:annotation>
23
+ <xs:documentation>
24
+ Report Reference Number is the unique report Identifier that the report will be publicly known by.
25
+ </xs:documentation>
26
+ </xs:annotation>
27
+ </xs:element>
28
+ <xs:element name="Inspection-Date" type="xs:date">
29
+ <xs:annotation>
30
+ <xs:documentation>The date that the inspection was actually carried out by the Home Inspector.</xs:documentation>
31
+ </xs:annotation>
32
+ </xs:element>
33
+ <xs:element name="Report-Type" type="ReportTypeCode">
34
+ <xs:annotation>
35
+ <xs:documentation>The type of Home Inspection that was carried out.
36
+
37
+ 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>
38
+ </xs:annotation>
39
+ </xs:element>
40
+ <xs:element name="Completion-Date" type="xs:date">
41
+ <xs:annotation>
42
+ <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>
43
+ </xs:annotation>
44
+ </xs:element>
45
+ <xs:element name="Registration-Date" type="xs:date">
46
+ <xs:annotation>
47
+ <xs:documentation>The date that the report was submitted to the HCR Registration Organisation for lodging in the HCR Register.</xs:documentation>
48
+ </xs:annotation>
49
+ </xs:element>
50
+ <xs:element name="Status" type="ReportStatusCode">
51
+ <xs:annotation>
52
+ <xs:documentation>The Status of the Report.
53
+
54
+ 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>
55
+ </xs:annotation>
56
+ </xs:element>
57
+ <xs:element name="Language-Code" type="LanguageCode">
58
+ <xs:annotation>
59
+ <xs:documentation>The language that the report is written in. </xs:documentation>
60
+ </xs:annotation>
61
+ </xs:element>
62
+ <xs:element name="Restricted-Access" type="RestrictedAccessCode">
63
+ <xs:annotation>
64
+ <xs:documentation>Indicates that the Seller wants to restrict access to the Home Condition Report to General Public / Unregistered Users only.
65
+
66
+ 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.
67
+
68
+ 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>
69
+ </xs:annotation>
70
+ </xs:element>
71
+ <xs:element name="Transaction-Type" type="TransactionType"/>
72
+ <xs:element name="Seller-Commission-Report" type="Flag">
73
+ <xs:annotation>
74
+ <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 commissioned reports which are not eligible for inclusion in a Home Information Pack</xs:documentation>
75
+ </xs:annotation>
76
+ </xs:element>
77
+ <xs:element name="Property-Type" type="Building-Type">
78
+ <xs:annotation>
79
+ <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>
80
+ </xs:annotation>
81
+ </xs:element>
82
+ <xs:element name="Energy-Assessor" type="Energy-Assessor"/>
83
+ <xs:element name="Property" type="Property"/>
84
+ <xs:element name="Calculation-Details">
85
+ <xs:complexType>
86
+ <xs:sequence>
87
+ <xs:element name="Methodology" type="xs:string"/>
88
+ <xs:element name="Calculation-Tool" type="xs:string"/>
89
+ <xs:element name="Output-Engine" type="xs:string"/>
90
+ <xs:element name="Inspection-Type" type="xs:string"/>
91
+ </xs:sequence>
92
+ </xs:complexType>
93
+ </xs:element>
94
+ </xs:sequence>
95
+ </xs:complexType>
96
+ <xs:simpleType name="ReportTypeCode">
97
+ <xs:restriction base="xs:string">
98
+ <xs:enumeration value="3">
99
+ <xs:annotation>
100
+ <xs:documentation>Energy Performance Certificate (Non Domestic)</xs:documentation>
101
+ </xs:annotation>
102
+ </xs:enumeration>
103
+ <xs:enumeration value="4">
104
+ <xs:annotation>
105
+ <xs:documentation>Recommendation Report (Non Domestic)</xs:documentation>
106
+ </xs:annotation>
107
+ </xs:enumeration>
108
+ </xs:restriction>
109
+ </xs:simpleType>
110
+ <xs:simpleType name="ReportStatusCode">
111
+ <xs:restriction base="xs:string">
112
+ <xs:enumeration value="cancelled">
113
+ <xs:annotation>
114
+ <xs:documentation>Cancelled</xs:documentation>
115
+ </xs:annotation>
116
+ </xs:enumeration>
117
+ <xs:enumeration value="entered">
118
+ <xs:annotation>
119
+ <xs:documentation>entered on the register</xs:documentation>
120
+ </xs:annotation>
121
+ </xs:enumeration>
122
+ <xs:enumeration value="appeal">
123
+ <xs:annotation>
124
+ <xs:documentation>under appeal</xs:documentation>
125
+ </xs:annotation>
126
+ </xs:enumeration>
127
+ <xs:enumeration value="removed">
128
+ <xs:annotation>
129
+ <xs:documentation>removed</xs:documentation>
130
+ </xs:annotation>
131
+ </xs:enumeration>
132
+ <xs:enumeration value="rejected">
133
+ <xs:annotation>
134
+ <xs:documentation>rejected</xs:documentation>
135
+ </xs:annotation>
136
+ </xs:enumeration>
137
+ <xs:enumeration value="under investigation">
138
+ <xs:annotation>
139
+ <xs:documentation>under investigation</xs:documentation>
140
+ </xs:annotation>
141
+ </xs:enumeration>
142
+ <xs:enumeration value="not for issue">
143
+ <xs:annotation>
144
+ <xs:documentation>not for issue</xs:documentation>
145
+ </xs:annotation>
146
+ </xs:enumeration>
147
+ </xs:restriction>
148
+ </xs:simpleType>
149
+ <xs:simpleType name="RestrictedAccessCode">
150
+ <xs:annotation>
151
+ <xs:documentation>Set of access codes identifying any restrictions on the retrieval of the electronic HCR.</xs:documentation>
152
+ </xs:annotation>
153
+ <xs:restriction base="xs:string">
154
+ <xs:enumeration value="0">
155
+ <xs:annotation>
156
+ <xs:documentation>No restriction</xs:documentation>
157
+ </xs:annotation>
158
+ </xs:enumeration>
159
+ <xs:enumeration value="1">
160
+ <xs:annotation>
161
+ <xs:documentation>Exclude mortgage lenders</xs:documentation>
162
+ </xs:annotation>
163
+ </xs:enumeration>
164
+ <xs:enumeration value="2">
165
+ <xs:annotation>
166
+ <xs:documentation>Mortgage lenders only</xs:documentation>
167
+ </xs:annotation>
168
+ </xs:enumeration>
169
+ <xs:enumeration value="4">
170
+ <xs:annotation>
171
+ <xs:documentation>No access allowed</xs:documentation>
172
+ </xs:annotation>
173
+ </xs:enumeration>
174
+ </xs:restriction>
175
+ </xs:simpleType>
176
+ <xs:complexType name="Building-Type">
177
+ <xs:sequence>
178
+ <xs:element name="Short-Description" type="xs:string"/>
179
+ <xs:element name="Long-Description" type="xs:string"/>
180
+ </xs:sequence>
181
+ </xs:complexType>
182
+ </xs:schema>
@@ -0,0 +1,411 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ xmlns="https://epbr.digital.communities.gov.uk/xsd/cepc-s"
4
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
+ targetNamespace="https://epbr.digital.communities.gov.uk/xsd/cepc-s"
6
+ elementFormDefault="qualified"
7
+ version="CEPC-S-8.0.0"
8
+ >
9
+ <xs:include schemaLocation="./Report-Header.xsd"/>
10
+ <xs:include schemaLocation="./BaseDataTypes.xsd"/>
11
+ <xs:element name="Report-Data" type="Report-Data"/>
12
+ <xs:complexType name="Report-Data" abstract="true">
13
+ <xs:all/>
14
+ </xs:complexType>
15
+ <xs:element name="Technical-Information" type="Technical-Information"/>
16
+ <xs:complexType name="Technical-Information">
17
+ <xs:all>
18
+ <xs:element name="Main-Heating-Fuel" type="HeatingFuelTypeCode" minOccurs="0">
19
+ <xs:annotation>
20
+ <xs:documentation>Main Heating Fuel used in the building. This is only required for a Display Energy Certificate or Energy Performance Certificate and doesn't appear on the Recommendations Report or Advisory Report.</xs:documentation>
21
+ </xs:annotation>
22
+ </xs:element>
23
+ <xs:element name="Other-Fuel-Description" type="xs:string" minOccurs="0">
24
+ <xs:annotation>
25
+ <xs:documentation>Text description of unspecified fuel type if Other is selected for Main-Heating-Fuel.</xs:documentation>
26
+ </xs:annotation>
27
+ </xs:element>
28
+ <xs:element name="Building-Environment" type="BuildingEnvironmentCode">
29
+ <xs:annotation>
30
+ <xs:documentation>Services</xs:documentation>
31
+ </xs:annotation>
32
+ </xs:element>
33
+ <xs:element name="Floor-Area" type="xs:decimal">
34
+ <xs:annotation>
35
+ <xs:documentation>Total Useful Floor Area (M^2)</xs:documentation>
36
+ </xs:annotation>
37
+ </xs:element>
38
+ <xs:element name="Special-Energy-Uses" type="xs:string" minOccurs="0">
39
+ <xs:annotation>
40
+ <xs:documentation>Special energy uses discounted. This only appears on the advisory Report.</xs:documentation>
41
+ </xs:annotation>
42
+ </xs:element>
43
+ <xs:element name="Renewable-Sources" type="xs:string" minOccurs="0">
44
+ <xs:annotation>
45
+ <xs:documentation>On-site renewable energy sources. This only appears on the Advisory Report.</xs:documentation>
46
+ </xs:annotation>
47
+ </xs:element>
48
+ <xs:element name="OR-Availability-Date" type="xs:date" minOccurs="0">
49
+ <xs:annotation>
50
+ <xs:documentation>The date that the Operational Rating will be available if its not already.</xs:documentation>
51
+ </xs:annotation>
52
+ </xs:element>
53
+ <xs:element name="Separately-Metered-Electric-Heating" type="xs:boolean" minOccurs="0"/>
54
+ </xs:all>
55
+ </xs:complexType>
56
+ <xs:simpleType name="BuildingEnvironmentCode">
57
+ <xs:restriction base="xs:string">
58
+ <xs:enumeration value="Air Conditioning">
59
+ <xs:annotation>
60
+ <xs:documentation>Air Conditioned</xs:documentation>
61
+ </xs:annotation>
62
+ </xs:enumeration>
63
+ <xs:enumeration value="Heating and Natural Ventilation"/>
64
+ <xs:enumeration value="Heating and Mechanical Ventilation"/>
65
+ <xs:enumeration value="Mixed-mode with Natural Ventilation"/>
66
+ <xs:enumeration value="Mixed-mode with Mechanical Ventilation"/>
67
+ <xs:enumeration value="Unconditioned"/>
68
+ <xs:enumeration value="Natural Ventilation Only"/>
69
+ <xs:enumeration value="Mechanical Ventilation Only"/>
70
+ </xs:restriction>
71
+ </xs:simpleType>
72
+ <xs:element name="EPC-Rating" type="EPC-Rating"/>
73
+ <xs:complexType name="EPC-Rating">
74
+ <xs:all>
75
+ <xs:element name="Asset-Rating" type="EnergyRatingType">
76
+ <xs:annotation>
77
+ <xs:documentation>Asset Rating</xs:documentation>
78
+ </xs:annotation>
79
+ </xs:element>
80
+ <xs:element name="Potential-Rating" type="EnergyRatingType">
81
+ <xs:annotation>
82
+ <xs:documentation>The Potential Asset Rating</xs:documentation>
83
+ </xs:annotation>
84
+ </xs:element>
85
+ <xs:element name="New-Build-Benchmark" type="EnergyRatingType">
86
+ <xs:annotation>
87
+ <xs:documentation>The Asset Rating if the Building was newly built.</xs:documentation>
88
+ </xs:annotation>
89
+ </xs:element>
90
+ <xs:element name="Energy-Band" type="EnergyBandType">
91
+ <xs:annotation>
92
+ <xs:documentation>Energy band corresponding to the Asset Rating</xs:documentation>
93
+ </xs:annotation>
94
+ </xs:element>
95
+ <xs:element name="Potential-Band" type="EnergyBandType">
96
+ <xs:annotation>
97
+ <xs:documentation>Energy band corresponding to the Potential Asset Rating</xs:documentation>
98
+ </xs:annotation>
99
+ </xs:element>
100
+ <xs:element name="New-Build-Benchmark-Band" type="EnergyBandType">
101
+ <xs:annotation>
102
+ <xs:documentation>The energy band corresponding to the Asset Rating if the Building were newly built.</xs:documentation>
103
+ </xs:annotation>
104
+ </xs:element>
105
+ <xs:element name="BER" type="EmissionRateType">
106
+ <xs:annotation>
107
+ <xs:documentation>Building Emissions</xs:documentation>
108
+ </xs:annotation>
109
+ </xs:element>
110
+ <xs:element name="TER" type="EmissionRateType">
111
+ <xs:annotation>
112
+ <xs:documentation>Target Emissions</xs:documentation>
113
+ </xs:annotation>
114
+ </xs:element>
115
+ </xs:all>
116
+ </xs:complexType>
117
+ <xs:simpleType name="CO2ImpactCode">
118
+ <xs:restriction base="xs:string">
119
+ <xs:enumeration value="HIGH"/>
120
+ <xs:enumeration value="MEDIUM"/>
121
+ <xs:enumeration value="LOW"/>
122
+ </xs:restriction>
123
+ </xs:simpleType>
124
+ <xs:simpleType name="EnergyRatingType">
125
+ <xs:restriction base="xs:int"/>
126
+ </xs:simpleType>
127
+ <xs:simpleType name="EnergyBandType">
128
+ <xs:restriction base="xs:string">
129
+ <xs:enumeration value="Carbon Neutral"/>
130
+ <xs:enumeration value="A+"/>
131
+ <xs:enumeration value="A"/>
132
+ <xs:enumeration value="B+"/>
133
+ <xs:enumeration value="B"/>
134
+ <xs:enumeration value="C+"/>
135
+ <xs:enumeration value="C"/>
136
+ <xs:enumeration value="D+"/>
137
+ <xs:enumeration value="D"/>
138
+ <xs:enumeration value="E+"/>
139
+ <xs:enumeration value="E"/>
140
+ <xs:enumeration value="F+"/>
141
+ <xs:enumeration value="F"/>
142
+ <xs:enumeration value="G"/>
143
+ </xs:restriction>
144
+ </xs:simpleType>
145
+ <xs:element name="Energy-Performance-Certificate" type="Energy-Performance-Certificate"/>
146
+ <xs:complexType name="Energy-Performance-Certificate">
147
+ <xs:all>
148
+ <xs:element name="Transaction-Type" type="TransactionType"/>
149
+ <xs:element name="Renewable-Energy-Sources" minOccurs="0">
150
+ <xs:complexType>
151
+ <xs:sequence>
152
+ <xs:element name="Renewable-Energy-Source" type="xs:string" maxOccurs="unbounded"/>
153
+ </xs:sequence>
154
+ </xs:complexType>
155
+ </xs:element>
156
+ <xs:element name="Electricity-Sources">
157
+ <xs:complexType>
158
+ <xs:sequence>
159
+ <xs:element name="Electricity-Source" type="xs:string" maxOccurs="unbounded"/>
160
+ </xs:sequence>
161
+ </xs:complexType>
162
+ </xs:element>
163
+ <xs:element name="EPC-Rating-Scale" type="EPC-Rating-Scale"/>
164
+ <xs:element name="Technical-Information" type="Technical-Information"/>
165
+ <xs:element name="EPC-Rating" type="EPC-Rating"/>
166
+ <xs:element name="Comparative-Rating" type="Comparative-Rating"/>
167
+ <xs:element name="TER-2002" type="EmissionRateType" minOccurs="0" maxOccurs="1">
168
+ <xs:annotation>
169
+ <xs:documentation>Target Emission Rate defined by Section 6 of the 2002 building regulations, in kg of CO2 per m2 per year.</xs:documentation>
170
+ </xs:annotation>
171
+ </xs:element>
172
+ <xs:element name="Compliant-2002" type="Flag" minOccurs="1" maxOccurs="1">
173
+ <xs:annotation>
174
+ <xs:documentation>Indicates whether the actual building complies with the Target Emission Rate defined by Section 6 of the 2002 building regulations.</xs:documentation>
175
+ </xs:annotation>
176
+ </xs:element>
177
+ </xs:all>
178
+ </xs:complexType>
179
+ <xs:complexType name="Comparative-Rating">
180
+ <xs:all>
181
+ <xs:element name="Comparative-Asset-Rating" type="EnergyRatingType">
182
+ <xs:annotation>
183
+ <xs:documentation>Comparative Asset Rating if the building were assessed in England using Scottish weather data</xs:documentation>
184
+ </xs:annotation>
185
+ </xs:element>
186
+ <xs:element name="Comparative-Energy-Band" type="EnergyBandType">
187
+ <xs:annotation>
188
+ <xs:documentation>Energy band corresponding to the Comparative Asset Rating if the building were assessed in England using Scottish weather data</xs:documentation>
189
+ </xs:annotation>
190
+ </xs:element>
191
+ </xs:all>
192
+ </xs:complexType>
193
+ <xs:element name="EPC-Rating-Scale" type="EPC-Rating-Scale"/>
194
+ <xs:complexType name="EPC-Rating-Scale">
195
+ <xs:annotation>
196
+ <xs:documentation>Defines the banded values for the Energy rating scale on the EPC. </xs:documentation>
197
+ </xs:annotation>
198
+ <xs:all>
199
+ <xs:element name="Upper-Number-A-Scale" type="EnergyRatingType">
200
+ <xs:annotation>
201
+ <xs:documentation>Upper number on A scale</xs:documentation>
202
+ </xs:annotation>
203
+ </xs:element>
204
+ <xs:element name="Lower-Number-B-Scale" type="EnergyRatingType">
205
+ <xs:annotation>
206
+ <xs:documentation>Lower number on B scale</xs:documentation>
207
+ </xs:annotation>
208
+ </xs:element>
209
+ <xs:element name="Upper-Number-B-Scale" type="EnergyRatingType">
210
+ <xs:annotation>
211
+ <xs:documentation>Upper number on B scale</xs:documentation>
212
+ </xs:annotation>
213
+ </xs:element>
214
+ <xs:element name="Lower-Number-C-Scale" type="EnergyRatingType">
215
+ <xs:annotation>
216
+ <xs:documentation>Lower number on C scale</xs:documentation>
217
+ </xs:annotation>
218
+ </xs:element>
219
+ <xs:element name="Upper-Number-C-Scale" type="EnergyRatingType">
220
+ <xs:annotation>
221
+ <xs:documentation>Upper number on C scale</xs:documentation>
222
+ </xs:annotation>
223
+ </xs:element>
224
+ <xs:element name="Lower-Number-D-Scale" type="EnergyRatingType">
225
+ <xs:annotation>
226
+ <xs:documentation>Lower number on D scale</xs:documentation>
227
+ </xs:annotation>
228
+ </xs:element>
229
+ <xs:element name="Upper-Number-D-Scale" type="EnergyRatingType">
230
+ <xs:annotation>
231
+ <xs:documentation>Upper number on D scale</xs:documentation>
232
+ </xs:annotation>
233
+ </xs:element>
234
+ <xs:element name="Lower-Number-E-Scale" type="EnergyRatingType">
235
+ <xs:annotation>
236
+ <xs:documentation>Lower number on E scale</xs:documentation>
237
+ </xs:annotation>
238
+ </xs:element>
239
+ <xs:element name="Upper-Number-E-Scale" type="EnergyRatingType">
240
+ <xs:annotation>
241
+ <xs:documentation>Upper number on E scale</xs:documentation>
242
+ </xs:annotation>
243
+ </xs:element>
244
+ <xs:element name="Lower-Number-F-Scale" type="EnergyRatingType">
245
+ <xs:annotation>
246
+ <xs:documentation>Lower number on F scale</xs:documentation>
247
+ </xs:annotation>
248
+ </xs:element>
249
+ <xs:element name="Upper-Number-F-Scale" type="EnergyRatingType">
250
+ <xs:annotation>
251
+ <xs:documentation>Upper number on F scale</xs:documentation>
252
+ </xs:annotation>
253
+ </xs:element>
254
+ <xs:element name="Lowest-Number-G-Scale" type="EnergyRatingType">
255
+ <xs:annotation>
256
+ <xs:documentation>Lowest number on G scale</xs:documentation>
257
+ </xs:annotation>
258
+ </xs:element>
259
+ </xs:all>
260
+ </xs:complexType>
261
+ <xs:element name="RR-Recommendation" type="RR-Recommendation"/>
262
+ <xs:complexType name="RR-Recommendation">
263
+ <xs:all>
264
+ <xs:element name="Recommendation-Code" type="xs:string">
265
+ <xs:annotation>
266
+ <xs:documentation>The Recommendation Code that identifies this particular recommendation</xs:documentation>
267
+ </xs:annotation>
268
+ </xs:element>
269
+ <xs:element name="Recommendation" type="xs:string">
270
+ <xs:annotation>
271
+ <xs:documentation>Recommendation selected by the energy assessor</xs:documentation>
272
+ </xs:annotation>
273
+ </xs:element>
274
+ <xs:element name="CO2-Impact" type="CO2ImpactCode"/>
275
+ </xs:all>
276
+ </xs:complexType>
277
+ <xs:element name="RR-Recommendations" type="RR-Recommendations"/>
278
+ <xs:complexType name="RR-Recommendations">
279
+ <xs:sequence>
280
+ <xs:element name="Short-Payback" type="RR-Recommendation" minOccurs="0" maxOccurs="15">
281
+ <xs:annotation>
282
+ <xs:documentation>Short Payback Recommendations</xs:documentation>
283
+ </xs:annotation>
284
+ </xs:element>
285
+ <xs:element name="Medium-Payback" type="RR-Recommendation" minOccurs="0" maxOccurs="10">
286
+ <xs:annotation>
287
+ <xs:documentation>Medium Payback Recommendations</xs:documentation>
288
+ </xs:annotation>
289
+ </xs:element>
290
+ <xs:element name="Long-Payback" type="RR-Recommendation" minOccurs="0" maxOccurs="5">
291
+ <xs:annotation>
292
+ <xs:documentation>Long Payback Recommendations</xs:documentation>
293
+ </xs:annotation>
294
+ </xs:element>
295
+ <xs:element name="Other-Payback" type="RR-Recommendation" minOccurs="0" maxOccurs="10">
296
+ <xs:annotation>
297
+ <xs:documentation>Other Payback Recommendations</xs:documentation>
298
+ </xs:annotation>
299
+ </xs:element>
300
+ </xs:sequence>
301
+ </xs:complexType>
302
+ <xs:element name="Recommendations-Report" type="Recommendations-Report"/>
303
+ <xs:complexType name="Recommendations-Report">
304
+ <xs:all>
305
+ <xs:element name="RR-Recommendations" type="RR-Recommendations" minOccurs="0"/>
306
+ <xs:element name="Technical-Information" type="Technical-Information"/>
307
+ </xs:all>
308
+ </xs:complexType>
309
+ <xs:simpleType name="HeatingFuelTypeCode">
310
+ <xs:restriction base="xs:string">
311
+ <xs:enumeration value="Natural Gas"/>
312
+ <xs:enumeration value="LPG">
313
+ <xs:annotation>
314
+ <xs:documentation>LPG</xs:documentation>
315
+ </xs:annotation>
316
+ </xs:enumeration>
317
+ <xs:enumeration value="Biogas">
318
+ <xs:annotation>
319
+ <xs:documentation>biogas - landfill</xs:documentation>
320
+ </xs:annotation>
321
+ </xs:enumeration>
322
+ <xs:enumeration value="Oil">
323
+ <xs:annotation>
324
+ <xs:documentation>oil</xs:documentation>
325
+ </xs:annotation>
326
+ </xs:enumeration>
327
+ <xs:enumeration value="Coal">
328
+ <xs:annotation>
329
+ <xs:documentation>house coal</xs:documentation>
330
+ </xs:annotation>
331
+ </xs:enumeration>
332
+ <xs:enumeration value="Anthracite">
333
+ <xs:annotation>
334
+ <xs:documentation>anthracite</xs:documentation>
335
+ </xs:annotation>
336
+ </xs:enumeration>
337
+ <xs:enumeration value="Smokeless Fuel (inc Coke)">
338
+ <xs:annotation>
339
+ <xs:documentation>Smokeless Fuel including Coke</xs:documentation>
340
+ </xs:annotation>
341
+ </xs:enumeration>
342
+ <xs:enumeration value="Dual Fuel Appliances (Mineral + Wood)">
343
+ <xs:annotation>
344
+ <xs:documentation>dual fuel - mineral + wood</xs:documentation>
345
+ </xs:annotation>
346
+ </xs:enumeration>
347
+ <xs:enumeration value="Biomass">
348
+ <xs:annotation>
349
+ <xs:documentation>biomass</xs:documentation>
350
+ </xs:annotation>
351
+ </xs:enumeration>
352
+ <xs:enumeration value="Grid Supplied Electricity">
353
+ <xs:annotation>
354
+ <xs:documentation>Mains Electricity</xs:documentation>
355
+ </xs:annotation>
356
+ </xs:enumeration>
357
+ <xs:enumeration value="Grid Displaced Electricity"/>
358
+ <xs:enumeration value="Waste Heat"/>
359
+ <xs:enumeration value="District Cooling"/>
360
+ <xs:enumeration value="District Heating"/>
361
+ <xs:enumeration value="Other"/>
362
+ </xs:restriction>
363
+ </xs:simpleType>
364
+ <xs:simpleType name="TransactionType">
365
+ <xs:restriction base="xs:string">
366
+ <xs:enumeration value="1">
367
+ <xs:annotation>
368
+ <xs:documentation>Mandatory issue (Marketed sale).</xs:documentation>
369
+ </xs:annotation>
370
+ </xs:enumeration>
371
+ <xs:enumeration value="2">
372
+ <xs:annotation>
373
+ <xs:documentation>Mandatory issue (Non-marketed sale).</xs:documentation>
374
+ </xs:annotation>
375
+ </xs:enumeration>
376
+ <xs:enumeration value="3">
377
+ <xs:annotation>
378
+ <xs:documentation>Mandatory issue (Property on construction).</xs:documentation>
379
+ </xs:annotation>
380
+ </xs:enumeration>
381
+ <xs:enumeration value="4">
382
+ <xs:annotation>
383
+ <xs:documentation>Mandatory issue (Property to let).</xs:documentation>
384
+ </xs:annotation>
385
+ </xs:enumeration>
386
+ <xs:enumeration value="5">
387
+ <xs:annotation>
388
+ <xs:documentation>Voluntary re-issue (A valid EPC is already lodged).</xs:documentation>
389
+ </xs:annotation>
390
+ </xs:enumeration>
391
+ <xs:enumeration value="6">
392
+ <xs:annotation>
393
+ <xs:documentation>Voluntary (No legal requirement for an EPC).</xs:documentation>
394
+ </xs:annotation>
395
+ </xs:enumeration>
396
+ <xs:enumeration value="7">
397
+ <xs:annotation>
398
+ <xs:documentation>Not recorded.</xs:documentation>
399
+ </xs:annotation>
400
+ </xs:enumeration>
401
+ <xs:enumeration value="8">
402
+ <xs:annotation>
403
+ <xs:documentation>Mandatory issue (Display in public building).</xs:documentation>
404
+ </xs:annotation>
405
+ </xs:enumeration>
406
+ </xs:restriction>
407
+ </xs:simpleType>
408
+ <xs:simpleType name="EmissionRateType">
409
+ <xs:list itemType="xs:double"/>
410
+ </xs:simpleType>
411
+ </xs:schema>