epb_view_models 2.2.21 → 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 (130) hide show
  1. checksums.yaml +4 -4
  2. data/api/schemas/data/orchestrate.json +8 -0
  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/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  21. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  22. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +53 -0
  23. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/EPC-Certificate.xsd +213 -0
  24. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/EPC-CollectedData.xsd +445 -0
  25. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  26. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  27. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  28. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  29. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  30. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  31. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HIP-Reports.xsd +203 -0
  32. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/Property.xsd +73 -0
  33. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/UserManagement.xsd +252 -0
  34. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/BaseDataTypes.xsd +177 -0
  35. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/EPC-Domains.xsd +68 -0
  36. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  37. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SAP-Domains.xsd +1101 -0
  38. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SharedDomains.xsd +596 -0
  39. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  40. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  41. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  42. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +41 -0
  43. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd +252 -0
  44. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd +444 -0
  45. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  46. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  47. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  48. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  49. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  50. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  51. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HIP-Reports.xsd +220 -0
  52. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/Property.xsd +73 -0
  53. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/UserManagement.xsd +257 -0
  54. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/BaseDataTypes.xsd +176 -0
  55. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/EPC-Domains.xsd +743 -0
  56. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  57. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SAP-Domains.xsd +1134 -0
  58. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SharedDomains.xsd +660 -0
  59. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  60. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -1456
  61. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -236
  62. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -16
  63. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -388
  64. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -784
  65. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -283
  66. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -222
  67. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -205
  68. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -311
  69. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -380
  70. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -298
  71. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -67
  72. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -201
  73. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -259
  74. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -176
  75. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -881
  76. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -1779
  77. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -1650
  78. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -768
  79. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -19
  80. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml +1456 -1456
  81. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd +236 -236
  82. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd +208 -208
  83. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  84. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-CollectedData.xsd +957 -957
  85. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ExceptionList.xsd +18 -18
  86. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/Property.xsd +66 -66
  87. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +180 -180
  88. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ReportList.xsd +26 -26
  89. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/EPC-Domains.xsd +843 -843
  90. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/SAP-Domains.xsd +2541 -2541
  91. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -1456
  92. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -236
  93. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  94. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  95. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -966
  96. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -18
  97. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -66
  98. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -175
  99. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -26
  100. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -853
  101. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -2551
  102. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
  103. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  104. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  105. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
  106. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
  107. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
  108. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
  109. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
  110. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
  111. data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -11846
  112. data/lib/epb_view_models/version.rb +5 -0
  113. data/lib/epb_view_models.rb +1 -3
  114. data/lib/helper/rrn_helper.rb +4 -4
  115. data/lib/view_model/cs63/common_schema.rb +18 -18
  116. data/lib/view_model/factory.rb +2 -0
  117. data/lib/view_model/rd_sap_schema_s_120/common_schema.rb +547 -0
  118. data/lib/view_model/rd_sap_schema_s_140/common_schema.rb +550 -0
  119. data/lib/view_model/rd_sap_wrapper.rb +4 -0
  120. metadata +47 -13
  121. data/.buildspec.yml +0 -13
  122. data/.gitignore +0 -19
  123. data/.rspec +0 -2
  124. data/.rubocop.yml +0 -8
  125. data/.ruby-version +0 -1
  126. data/Gemfile +0 -15
  127. data/Gemfile.lock +0 -122
  128. data/Makefile +0 -17
  129. data/Rakefile +0 -12
  130. data/epb_view_models.gemspec +0 -27
@@ -1,171 +1,171 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pfdt="http://www.est.org.uk/epc/estcrV1/DCLG-HIP/BaseDataTypes" xmlns:HIP="http://www.est.org.uk/epc/estcrV1/DCLG-HIP" xmlns:SAP="http://www.est.org.uk/epc/estcrV1/DCLG-SAP09" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" elementFormDefault="qualified" version="LIG-16.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:include schemaLocation="./BaseDataTypes.xsd"/>
7
- <!--xs:include schemaLocation="./HCR-Domains.xsd"/-->
8
- <!--<xs:include schemaLocation="../Templates/Property.xsd"/>-->
9
- <xs:include schemaLocation="./Property.xsd"/>
10
- <xs:element name="Energy-Assessor" type="Energy-Assessor"/>
11
- <xs:complexType name="Energy-Assessor">
12
- <xs:annotation>
13
- <xs:documentation>
14
- A Energy-Assessor is a person certified by a Accrediation Scheme as being qualified to carry out an Energy Assessment and produce an Energy Performance Certificate.
15
- </xs:documentation>
16
- </xs:annotation>
17
- <xs:sequence>
18
- <xs:element name="Membership-Number" type="xs:string" minOccurs="1" maxOccurs="1">
19
- <xs:annotation>
20
- <xs:documentation>The unique identifier assigned to the Energy Assessor by the Approved Organisation by which they can be identified throughout their membership of the scheme.</xs:documentation>
21
- </xs:annotation>
22
- </xs:element>
23
- <xs:element name="Name" type="xs:string" minOccurs="1" maxOccurs="1">
24
- <xs:annotation>
25
- <xs:documentation>The name by which the Energy Assessor is registered. This is a structured name containing prefix, first name + surname.</xs:documentation>
26
- </xs:annotation>
27
- </xs:element>
28
- <xs:element name="Approved-Organisation-Name" type="xs:string" minOccurs="1" maxOccurs="1">
29
- <xs:annotation>
30
- <xs:documentation>The name of the Approved Organisation that certified the Energy Assessor.</xs:documentation>
31
- </xs:annotation>
32
- </xs:element>
33
- <xs:element name="Approved-Organisation-Web-Address" type="xs:string" minOccurs="1" maxOccurs="1">
34
- <xs:annotation>
35
- <xs:documentation>The web address of the Approved Organisation that certified the Energy Assessor.</xs:documentation>
36
- </xs:annotation>
37
- </xs:element>
38
- <xs:element name="Trading-Address" type="xs:string" minOccurs="0" maxOccurs="1">
39
- <xs:annotation>
40
- <xs:documentation>The address that any written correspondence can be sent to. This is not the same as the Registered Address because it may, of course, be a Post Office Box.</xs:documentation>
41
- </xs:annotation>
42
- </xs:element>
43
- <xs:element name="Company-Name" type="xs:string" minOccurs="0" maxOccurs="1">
44
- <xs:annotation>
45
- <xs:documentation>The Name of the Company that the Energy Assessor is empolyed by.</xs:documentation>
46
- </xs:annotation>
47
- </xs:element>
48
- <xs:element name="Status" type="EAStatusCode" minOccurs="0" maxOccurs="1">
49
- <xs:annotation>
50
- <xs:documentation>The Status of the Energy Assessor - at the time of producing and lodging a report this shoudl be "Registered" but any of the values can be present on the EA Register itself.</xs:documentation>
51
- </xs:annotation>
52
- </xs:element>
53
- <xs:element name="E-Mail" type="xs:string" minOccurs="0" maxOccurs="1">
54
- <xs:annotation>
55
- <xs:documentation>Optional e-mail address for the Energy Assessor</xs:documentation>
56
- </xs:annotation>
57
- </xs:element>
58
- <xs:element name="Telephone-Number" type="xs:string" minOccurs="0" maxOccurs="1"/>
59
- <xs:element name="Base-Postcode-Location" type="PostcodeType" minOccurs="0" maxOccurs="1">
60
- <xs:annotation>
61
- <xs:documentation>The full postcode that the Energy Assessor works from.</xs:documentation>
62
- </xs:annotation>
63
- </xs:element>
64
- </xs:sequence>
65
- </xs:complexType>
66
- <xs:simpleType name="EAStatusCode">
67
- <xs:restriction base="xs:string">
68
- <xs:enumeration value="Inactive">
69
- <xs:annotation>
70
- <xs:documentation>Inactive</xs:documentation>
71
- </xs:annotation>
72
- </xs:enumeration>
73
- <xs:enumeration value="Registered">
74
- <xs:annotation>
75
- <xs:documentation>Registered</xs:documentation>
76
- </xs:annotation>
77
- </xs:enumeration>
78
- <xs:enumeration value="Struck-Off">
79
- <xs:annotation>
80
- <xs:documentation>Struck Off</xs:documentation>
81
- </xs:annotation>
82
- </xs:enumeration>
83
- <xs:enumeration value="Suspended">
84
- <xs:annotation>
85
- <xs:documentation>Suspended</xs:documentation>
86
- </xs:annotation>
87
- </xs:enumeration>
88
- </xs:restriction>
89
- </xs:simpleType>
90
- <xs:simpleType name="InspectorTypeCode">
91
- <xs:restriction base="xs:string">
92
- <xs:enumeration value="1">
93
- <xs:annotation>
94
- <xs:documentation>Home Inspector</xs:documentation>
95
- </xs:annotation>
96
- </xs:enumeration>
97
- <xs:enumeration value="2">
98
- <xs:annotation>
99
- <xs:documentation>Domestic Energy Assessor</xs:documentation>
100
- </xs:annotation>
101
- </xs:enumeration>
102
- </xs:restriction>
103
- </xs:simpleType>
104
- <xs:element name="Mortgage-Lender" type="Mortgage-Lender"/>
105
- <xs:complexType name="Mortgage-Lender">
106
- <xs:annotation>
107
- <xs:documentation>A Mortgage Lender is an organisation that may lend money to the Buyer for the purpose of purchasing the Property.
108
-
109
- As part of this decision making the Mortgage Lender may use an Automated Valuation Model (AVM) to value the Property and requires access to the underlying data in the Home Condition Report or the content of the Energy Performance Certificate in order to complete this valuation.</xs:documentation>
110
- </xs:annotation>
111
- <xs:all/>
112
- </xs:complexType>
113
- <xs:simpleType name="Postcode-CoverageType">
114
- <xs:restriction base="xs:string">
115
- <xs:maxLength value="500"/>
116
- <xs:pattern value="[A-Z]{1,2}[0-9]{0,2}(,[A-Z]{1,2}[0-9]{0,2})*"/>
117
- </xs:restriction>
118
- </xs:simpleType>
119
- <xs:element name="Certification-Scheme" type="Certification-Scheme"/>
120
- <xs:complexType name="Certification-Scheme">
121
- <xs:annotation>
122
- <xs:documentation>The Certification Scheme is the "regulatory" body responsible for regulating the activities of the Home Inspectors.
123
-
124
- A Certification Scheme will carry out certain primary functions in accordance with the standards, focussed around certifying, managing and regulating Home Inspectors and registering Home Condition Reports.
125
-
126
- Although covered by a different regulatory regime a Certification Scheme is synonymous with the role of an Accreditation Body in the production of an Energy Performance Certificate.</xs:documentation>
127
- </xs:annotation>
128
- <xs:all>
129
- <xs:element name="Scheme-Name" type="xs:string"/>
130
- <xs:element name="Complaints-Address" type="AddressType" minOccurs="0">
131
- <xs:annotation>
132
- <xs:documentation>The address to which any complaints should be sent.</xs:documentation>
133
- </xs:annotation>
134
- </xs:element>
135
- <xs:element name="Contact-Address" type="AddressType" minOccurs="0">
136
- <xs:annotation>
137
- <xs:documentation>The address that any written correspondence can be sent to. This is not the same as the Registered Address because it may, of course, be a Post Office Box.</xs:documentation>
138
- </xs:annotation>
139
- </xs:element>
140
- <xs:element name="Web-Site" type="xs:string"/>
141
- <xs:element name="E-Mail" type="xs:string">
142
- <xs:annotation>
143
- <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
144
- </xs:annotation>
145
- </xs:element>
146
- <xs:element name="Registered-Name" type="xs:string">
147
- <xs:annotation>
148
- <xs:documentation>The public name by which the Authorised User is known by - this is either a personal name (e.g. "Mr John Smith") built up from the components of the Person Name if the Authorised User is an individual such as a Home Inspector or a Company Name if the Authorised User is an organisation.
149
-
150
- In the case of a individual the name may not be unique (e.g. there may be many thousands of people called "Mr John Smith") so this is information about the Authorised User rather than an identifier.</xs:documentation>
151
- </xs:annotation>
152
- </xs:element>
153
- <xs:element name="Fax" type="PhoneNumberType"/>
154
- <xs:element name="Telephone" type="PhoneNumberType"/>
155
- </xs:all>
156
- </xs:complexType>
157
- <xs:element name="CertificationSchemeKeyFields" type="CertificationSchemeKeyFields"/>
158
- <xs:complexType name="CertificationSchemeKeyFields">
159
- <xs:annotation>
160
- <xs:documentation>Key field definition for the Certification Scheme class.</xs:documentation>
161
- </xs:annotation>
162
- <xs:sequence>
163
- <xs:element name="Registered-Name" type="xs:string"/>
164
- </xs:sequence>
165
- </xs:complexType>
166
- <xs:simpleType name="PhoneNumberType">
167
- <xs:restriction base="xs:string">
168
- <xs:pattern value="[0-9\-\.\)\(\+ ]+"/>
169
- </xs:restriction>
170
- </xs:simpleType>
171
- </xs:schema>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pfdt="http://www.est.org.uk/epc/estcrV1/DCLG-HIP/BaseDataTypes" xmlns:HIP="http://www.est.org.uk/epc/estcrV1/DCLG-HIP" xmlns:SAP="http://www.est.org.uk/epc/estcrV1/DCLG-SAP09" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-CEPC" elementFormDefault="qualified" version="LIG-16.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:include schemaLocation="./BaseDataTypes.xsd"/>
7
+ <!--xs:include schemaLocation="./HCR-Domains.xsd"/-->
8
+ <!--<xs:include schemaLocation="../Templates/Property.xsd"/>-->
9
+ <xs:include schemaLocation="./Property.xsd"/>
10
+ <xs:element name="Energy-Assessor" type="Energy-Assessor"/>
11
+ <xs:complexType name="Energy-Assessor">
12
+ <xs:annotation>
13
+ <xs:documentation>
14
+ A Energy-Assessor is a person certified by a Accrediation Scheme as being qualified to carry out an Energy Assessment and produce an Energy Performance Certificate.
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+ <xs:sequence>
18
+ <xs:element name="Membership-Number" type="xs:string" minOccurs="1" maxOccurs="1">
19
+ <xs:annotation>
20
+ <xs:documentation>The unique identifier assigned to the Energy Assessor by the Approved Organisation by which they can be identified throughout their membership of the scheme.</xs:documentation>
21
+ </xs:annotation>
22
+ </xs:element>
23
+ <xs:element name="Name" type="xs:string" minOccurs="1" maxOccurs="1">
24
+ <xs:annotation>
25
+ <xs:documentation>The name by which the Energy Assessor is registered. This is a structured name containing prefix, first name + surname.</xs:documentation>
26
+ </xs:annotation>
27
+ </xs:element>
28
+ <xs:element name="Approved-Organisation-Name" type="xs:string" minOccurs="1" maxOccurs="1">
29
+ <xs:annotation>
30
+ <xs:documentation>The name of the Approved Organisation that certified the Energy Assessor.</xs:documentation>
31
+ </xs:annotation>
32
+ </xs:element>
33
+ <xs:element name="Approved-Organisation-Web-Address" type="xs:string" minOccurs="1" maxOccurs="1">
34
+ <xs:annotation>
35
+ <xs:documentation>The web address of the Approved Organisation that certified the Energy Assessor.</xs:documentation>
36
+ </xs:annotation>
37
+ </xs:element>
38
+ <xs:element name="Trading-Address" type="xs:string" minOccurs="0" maxOccurs="1">
39
+ <xs:annotation>
40
+ <xs:documentation>The address that any written correspondence can be sent to. This is not the same as the Registered Address because it may, of course, be a Post Office Box.</xs:documentation>
41
+ </xs:annotation>
42
+ </xs:element>
43
+ <xs:element name="Company-Name" type="xs:string" minOccurs="0" maxOccurs="1">
44
+ <xs:annotation>
45
+ <xs:documentation>The Name of the Company that the Energy Assessor is empolyed by.</xs:documentation>
46
+ </xs:annotation>
47
+ </xs:element>
48
+ <xs:element name="Status" type="EAStatusCode" minOccurs="0" maxOccurs="1">
49
+ <xs:annotation>
50
+ <xs:documentation>The Status of the Energy Assessor - at the time of producing and lodging a report this shoudl be "Registered" but any of the values can be present on the EA Register itself.</xs:documentation>
51
+ </xs:annotation>
52
+ </xs:element>
53
+ <xs:element name="E-Mail" type="xs:string" minOccurs="0" maxOccurs="1">
54
+ <xs:annotation>
55
+ <xs:documentation>Optional e-mail address for the Energy Assessor</xs:documentation>
56
+ </xs:annotation>
57
+ </xs:element>
58
+ <xs:element name="Telephone-Number" type="xs:string" minOccurs="0" maxOccurs="1"/>
59
+ <xs:element name="Base-Postcode-Location" type="PostcodeType" minOccurs="0" maxOccurs="1">
60
+ <xs:annotation>
61
+ <xs:documentation>The full postcode that the Energy Assessor works from.</xs:documentation>
62
+ </xs:annotation>
63
+ </xs:element>
64
+ </xs:sequence>
65
+ </xs:complexType>
66
+ <xs:simpleType name="EAStatusCode">
67
+ <xs:restriction base="xs:string">
68
+ <xs:enumeration value="Inactive">
69
+ <xs:annotation>
70
+ <xs:documentation>Inactive</xs:documentation>
71
+ </xs:annotation>
72
+ </xs:enumeration>
73
+ <xs:enumeration value="Registered">
74
+ <xs:annotation>
75
+ <xs:documentation>Registered</xs:documentation>
76
+ </xs:annotation>
77
+ </xs:enumeration>
78
+ <xs:enumeration value="Struck-Off">
79
+ <xs:annotation>
80
+ <xs:documentation>Struck Off</xs:documentation>
81
+ </xs:annotation>
82
+ </xs:enumeration>
83
+ <xs:enumeration value="Suspended">
84
+ <xs:annotation>
85
+ <xs:documentation>Suspended</xs:documentation>
86
+ </xs:annotation>
87
+ </xs:enumeration>
88
+ </xs:restriction>
89
+ </xs:simpleType>
90
+ <xs:simpleType name="InspectorTypeCode">
91
+ <xs:restriction base="xs:string">
92
+ <xs:enumeration value="1">
93
+ <xs:annotation>
94
+ <xs:documentation>Home Inspector</xs:documentation>
95
+ </xs:annotation>
96
+ </xs:enumeration>
97
+ <xs:enumeration value="2">
98
+ <xs:annotation>
99
+ <xs:documentation>Domestic Energy Assessor</xs:documentation>
100
+ </xs:annotation>
101
+ </xs:enumeration>
102
+ </xs:restriction>
103
+ </xs:simpleType>
104
+ <xs:element name="Mortgage-Lender" type="Mortgage-Lender"/>
105
+ <xs:complexType name="Mortgage-Lender">
106
+ <xs:annotation>
107
+ <xs:documentation>A Mortgage Lender is an organisation that may lend money to the Buyer for the purpose of purchasing the Property.
108
+
109
+ As part of this decision making the Mortgage Lender may use an Automated Valuation Model (AVM) to value the Property and requires access to the underlying data in the Home Condition Report or the content of the Energy Performance Certificate in order to complete this valuation.</xs:documentation>
110
+ </xs:annotation>
111
+ <xs:all/>
112
+ </xs:complexType>
113
+ <xs:simpleType name="Postcode-CoverageType">
114
+ <xs:restriction base="xs:string">
115
+ <xs:maxLength value="500"/>
116
+ <xs:pattern value="[A-Z]{1,2}[0-9]{0,2}(,[A-Z]{1,2}[0-9]{0,2})*"/>
117
+ </xs:restriction>
118
+ </xs:simpleType>
119
+ <xs:element name="Certification-Scheme" type="Certification-Scheme"/>
120
+ <xs:complexType name="Certification-Scheme">
121
+ <xs:annotation>
122
+ <xs:documentation>The Certification Scheme is the "regulatory" body responsible for regulating the activities of the Home Inspectors.
123
+
124
+ A Certification Scheme will carry out certain primary functions in accordance with the standards, focussed around certifying, managing and regulating Home Inspectors and registering Home Condition Reports.
125
+
126
+ Although covered by a different regulatory regime a Certification Scheme is synonymous with the role of an Accreditation Body in the production of an Energy Performance Certificate.</xs:documentation>
127
+ </xs:annotation>
128
+ <xs:all>
129
+ <xs:element name="Scheme-Name" type="xs:string"/>
130
+ <xs:element name="Complaints-Address" type="AddressType" minOccurs="0">
131
+ <xs:annotation>
132
+ <xs:documentation>The address to which any complaints should be sent.</xs:documentation>
133
+ </xs:annotation>
134
+ </xs:element>
135
+ <xs:element name="Contact-Address" type="AddressType" minOccurs="0">
136
+ <xs:annotation>
137
+ <xs:documentation>The address that any written correspondence can be sent to. This is not the same as the Registered Address because it may, of course, be a Post Office Box.</xs:documentation>
138
+ </xs:annotation>
139
+ </xs:element>
140
+ <xs:element name="Web-Site" type="xs:string"/>
141
+ <xs:element name="E-Mail" type="xs:string">
142
+ <xs:annotation>
143
+ <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
144
+ </xs:annotation>
145
+ </xs:element>
146
+ <xs:element name="Registered-Name" type="xs:string">
147
+ <xs:annotation>
148
+ <xs:documentation>The public name by which the Authorised User is known by - this is either a personal name (e.g. "Mr John Smith") built up from the components of the Person Name if the Authorised User is an individual such as a Home Inspector or a Company Name if the Authorised User is an organisation.
149
+
150
+ In the case of a individual the name may not be unique (e.g. there may be many thousands of people called "Mr John Smith") so this is information about the Authorised User rather than an identifier.</xs:documentation>
151
+ </xs:annotation>
152
+ </xs:element>
153
+ <xs:element name="Fax" type="PhoneNumberType"/>
154
+ <xs:element name="Telephone" type="PhoneNumberType"/>
155
+ </xs:all>
156
+ </xs:complexType>
157
+ <xs:element name="CertificationSchemeKeyFields" type="CertificationSchemeKeyFields"/>
158
+ <xs:complexType name="CertificationSchemeKeyFields">
159
+ <xs:annotation>
160
+ <xs:documentation>Key field definition for the Certification Scheme class.</xs:documentation>
161
+ </xs:annotation>
162
+ <xs:sequence>
163
+ <xs:element name="Registered-Name" type="xs:string"/>
164
+ </xs:sequence>
165
+ </xs:complexType>
166
+ <xs:simpleType name="PhoneNumberType">
167
+ <xs:restriction base="xs:string">
168
+ <xs:pattern value="[0-9\-\.\)\(\+ ]+"/>
169
+ </xs:restriction>
170
+ </xs:simpleType>
171
+ </xs:schema>