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
@@ -1,216 +1,216 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by Jim Bowery (Landmark Information Group Ltd.) -->
3
- <xs:schema
4
- xmlns="http://www.epcregister.com/xsd/sap"
5
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
- targetNamespace="http://www.epcregister.com/xsd/sap"
7
- elementFormDefault="qualified" version="LIG-17.0">
8
- <xs:annotation>
9
- <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>
10
- </xs:annotation>
11
- <xs:include schemaLocation="../UDT/SAP-Domains.xsd"/>
12
- <!-- <xs:include schemaLocation=""/>-->
13
- <!--
14
- <xs:include schemaLocation="../Templates/Property.xsd"/>
15
- -->
16
- <xs:element name="Home-Inspector" type="Home-Inspector"/>
17
- <xs:complexType name="Home-Inspector">
18
- <xs:annotation>
19
- <xs:documentation>A Certified Home Inspector is a person certified by a Certification Scheme - that is they exist on the Home Inspector Register - as being qualified to carry out a Home Inspection and produce a Home Condition Report.
20
-
21
- The exact criteria for fit + proper are laid down in regulations and the Business Standards and it is the responsibility of the Certification Scheme to carry out sufficient checks to ensure those criteria are adhered to.
22
-
23
- Although covered by a different regulatory regime a Home Inspector and Energy Assessor serve synonymous roles in the product of a Home Condition Report or Energy Performance Certificate respectively.</xs:documentation>
24
- </xs:annotation>
25
- <xs:all>
26
- <xs:element name="Name" type="xs:string">
27
- <xs:annotation>
28
- <xs:documentation>The name by which the Home Inspector is registered. This is a structured name containing prefix, first name + surname.</xs:documentation>
29
- </xs:annotation>
30
- </xs:element>
31
- <xs:element name="Notify-Lodgement" type="Flag" minOccurs="0">
32
- <xs:annotation>
33
- <xs:documentation>Indicates whether the assessor wants to be notified that a the report has been lodged in the register</xs:documentation>
34
- </xs:annotation>
35
- </xs:element>
36
- <xs:element name="Contact-Address" type="AddressType">
37
- <xs:annotation>
38
- <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>
39
- </xs:annotation>
40
- </xs:element>
41
- <xs:element name="Web-Site" type="xs:string" minOccurs="0"/>
42
- <xs:element name="E-Mail" type="xs:string" minOccurs="0">
43
- <xs:annotation>
44
- <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
45
- </xs:annotation>
46
- </xs:element>
47
- <xs:element name="Fax" type="PhoneNumberType" minOccurs="0"/>
48
- <xs:element name="Telephone" type="PhoneNumberType" minOccurs="0"/>
49
- <xs:element name="Company-Name" type="xs:string">
50
- <xs:annotation>
51
- <xs:documentation>The Name of the Company that the assessor is employed by.</xs:documentation>
52
- </xs:annotation>
53
- </xs:element>
54
- <xs:element name="Scheme-Name" type="xs:string"/>
55
- <xs:element name="Scheme-Web-Site" type="xs:string"/>
56
- <xs:element name="Identification-Number">
57
- <xs:complexType>
58
- <xs:choice>
59
- <xs:element name="Certificate-Number" type="CertificateNumberType">
60
- <xs:annotation>
61
- <xs:documentation>The unique identifier assigned to the assessor by the scheme by which they can be identified throughout their membership of the scheme.</xs:documentation>
62
- </xs:annotation>
63
- </xs:element>
64
- <xs:element name="Membership-Number" type="xs:string">
65
- <xs:annotation>
66
- <xs:documentation>For Scottish DEAs only</xs:documentation>
67
- </xs:annotation>
68
- </xs:element>
69
- </xs:choice>
70
- </xs:complexType>
71
- </xs:element>
72
- </xs:all>
73
- </xs:complexType>
74
- <xs:simpleType name="InspectorTypeCode">
75
- <xs:restriction base="xs:string">
76
- <xs:enumeration value="2">
77
- <xs:annotation>
78
- <xs:documentation>Domestic Energy Assessor</xs:documentation>
79
- </xs:annotation>
80
- </xs:enumeration>
81
- </xs:restriction>
82
- </xs:simpleType>
83
- <xs:element name="Mortgage-Lender" type="Mortgage-Lender"/>
84
- <xs:complexType name="Mortgage-Lender">
85
- <xs:annotation>
86
- <xs:documentation>A Mortgage Lender is an organisation that may lend money to the Buyer for the purpose of purchasing the Property.
87
-
88
- 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>
89
- </xs:annotation>
90
- <xs:all/>
91
- </xs:complexType>
92
- <xs:simpleType name="HomeInspectorStatusCode">
93
- <xs:restriction base="xs:string">
94
- <xs:enumeration value="Inactive">
95
- <xs:annotation>
96
- <xs:documentation>Inactive</xs:documentation>
97
- </xs:annotation>
98
- </xs:enumeration>
99
- <xs:enumeration value="Registered">
100
- <xs:annotation>
101
- <xs:documentation>Registered</xs:documentation>
102
- </xs:annotation>
103
- </xs:enumeration>
104
- <xs:enumeration value="Struck-Off">
105
- <xs:annotation>
106
- <xs:documentation>Struck Off</xs:documentation>
107
- </xs:annotation>
108
- </xs:enumeration>
109
- <xs:enumeration value="Suspended">
110
- <xs:annotation>
111
- <xs:documentation>Suspended</xs:documentation>
112
- </xs:annotation>
113
- </xs:enumeration>
114
- </xs:restriction>
115
- </xs:simpleType>
116
- <xs:simpleType name="Postcode-CoverageType">
117
- <xs:restriction base="xs:string">
118
- <xs:maxLength value="500"/>
119
- <xs:pattern value="[A-Z]{1,2}[0-9]{0,2}(,[A-Z]{1,2}[0-9]{0,2})*"/>
120
- </xs:restriction>
121
- </xs:simpleType>
122
- <xs:element name="InspectorKeyFields" type="InspectorKeyFields"/>
123
- <xs:complexType name="InspectorKeyFields">
124
- <xs:annotation>
125
- <xs:documentation>Key field definition for the Home Inspector class - used when a message requires a reference to a Home Inspexctor to be passed rather than the details.</xs:documentation>
126
- </xs:annotation>
127
- <xs:sequence>
128
- <xs:element name="Certificate-Number" type="CertificateNumberType"/>
129
- </xs:sequence>
130
- </xs:complexType>
131
- <xs:element name="Certification-Scheme" type="Certification-Scheme"/>
132
- <xs:complexType name="Certification-Scheme">
133
- <xs:annotation>
134
- <xs:documentation>The Certification Scheme is the "regulatory" body responsible for regulating the activities of the Home Inspectors.
135
-
136
- 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.
137
-
138
- 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>
139
- </xs:annotation>
140
- <xs:all>
141
- <xs:element name="Scheme-Name" type="xs:string"/>
142
- <xs:element name="Complaints-Address" type="AddressType">
143
- <xs:annotation>
144
- <xs:documentation>The address to which any complaints should be sent.</xs:documentation>
145
- </xs:annotation>
146
- </xs:element>
147
- <xs:element name="Contact-Address" type="AddressType">
148
- <xs:annotation>
149
- <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>
150
- </xs:annotation>
151
- </xs:element>
152
- <xs:element name="Web-Site" type="xs:string"/>
153
- <xs:element name="E-Mail" type="xs:string">
154
- <xs:annotation>
155
- <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
156
- </xs:annotation>
157
- </xs:element>
158
- <xs:element name="Registered-Name" type="xs:string">
159
- <xs:annotation>
160
- <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.
161
-
162
- 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>
163
- </xs:annotation>
164
- </xs:element>
165
- <xs:element name="Fax" type="PhoneNumberType"/>
166
- <xs:element name="Telephone" type="PhoneNumberType"/>
167
- </xs:all>
168
- </xs:complexType>
169
- <xs:element name="PersonNameType" type="PersonNameType"/>
170
- <xs:complexType name="PersonNameType">
171
- <xs:annotation>
172
- <xs:documentation>A Person Name is a complex structure to capture the separate components of the name for a Person, consisting of:
173
- * A prefix e.g. "Mr", "Mrs", "Dr" etc.
174
- * First Name e.g. "John"
175
- * Middle Initial
176
- * Surname e.g. "Smith"
177
- * Suffix e.g. "PhD", "FRICS"
178
- The First Name and Surname are the only mandatory elements of a name.
179
-
180
- The name elements can then be combined in a number of different ways to produce different formats appropriate to the output context.
181
-
182
- Note that all parts of the Persons Name should be stored as uppercase strings because this makes it easier to search and index the names but some components may be converted to mixed case for printing on reports and such like.
183
- </xs:documentation>
184
- </xs:annotation>
185
- <xs:all>
186
- <xs:element name="Prefix" type="xs:string"/>
187
- <xs:element name="First-Name" type="xs:string"/>
188
- <xs:element name="Surname" type="xs:string"/>
189
- <xs:element name="Suffix" type="xs:string"/>
190
- </xs:all>
191
- </xs:complexType>
192
- <xs:element name="CertificationSchemeKeyFields" type="CertificationSchemeKeyFields"/>
193
- <xs:complexType name="CertificationSchemeKeyFields">
194
- <xs:annotation>
195
- <xs:documentation>Key field definition for the Certification Scheme class.</xs:documentation>
196
- </xs:annotation>
197
- <xs:sequence>
198
- <xs:element name="Registered-Name" type="xs:string"/>
199
- </xs:sequence>
200
- </xs:complexType>
201
- <xs:simpleType name="PhoneNumberType">
202
- <xs:restriction base="xs:string">
203
- <xs:pattern value="[0-9\-\.\)\(\+ ]+"/>
204
- </xs:restriction>
205
- </xs:simpleType>
206
- <xs:simpleType name="CertificateNumberType">
207
- <xs:annotation>
208
- <xs:documentation>The Certificate Number is a 10-character fixed-length alphanumeric code consisting of 4 characters identifying the Certification Scheme and a 6-digit zero-padded identifier for each Home Inspector certified by that Certification Scheme. For example ABCD987654, XYZ_123456 etc.</xs:documentation>
209
- </xs:annotation>
210
- <xs:restriction base="xs:string">
211
- <xs:minLength value="10"/>
212
- <xs:maxLength value="10"/>
213
- <xs:pattern value="[A-Z/_]{4}[0-9]{6}"/>
214
- </xs:restriction>
215
- </xs:simpleType>
216
- </xs:schema>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by Jim Bowery (Landmark Information Group Ltd.) -->
3
+ <xs:schema
4
+ xmlns="http://www.epcregister.com/xsd/sap"
5
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
+ targetNamespace="http://www.epcregister.com/xsd/sap"
7
+ elementFormDefault="qualified" version="LIG-17.0">
8
+ <xs:annotation>
9
+ <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>
10
+ </xs:annotation>
11
+ <xs:include schemaLocation="../UDT/SAP-Domains.xsd"/>
12
+ <!-- <xs:include schemaLocation=""/>-->
13
+ <!--
14
+ <xs:include schemaLocation="../Templates/Property.xsd"/>
15
+ -->
16
+ <xs:element name="Home-Inspector" type="Home-Inspector"/>
17
+ <xs:complexType name="Home-Inspector">
18
+ <xs:annotation>
19
+ <xs:documentation>A Certified Home Inspector is a person certified by a Certification Scheme - that is they exist on the Home Inspector Register - as being qualified to carry out a Home Inspection and produce a Home Condition Report.
20
+
21
+ The exact criteria for fit + proper are laid down in regulations and the Business Standards and it is the responsibility of the Certification Scheme to carry out sufficient checks to ensure those criteria are adhered to.
22
+
23
+ Although covered by a different regulatory regime a Home Inspector and Energy Assessor serve synonymous roles in the product of a Home Condition Report or Energy Performance Certificate respectively.</xs:documentation>
24
+ </xs:annotation>
25
+ <xs:all>
26
+ <xs:element name="Name" type="xs:string">
27
+ <xs:annotation>
28
+ <xs:documentation>The name by which the Home Inspector is registered. This is a structured name containing prefix, first name + surname.</xs:documentation>
29
+ </xs:annotation>
30
+ </xs:element>
31
+ <xs:element name="Notify-Lodgement" type="Flag" minOccurs="0">
32
+ <xs:annotation>
33
+ <xs:documentation>Indicates whether the assessor wants to be notified that a the report has been lodged in the register</xs:documentation>
34
+ </xs:annotation>
35
+ </xs:element>
36
+ <xs:element name="Contact-Address" type="AddressType">
37
+ <xs:annotation>
38
+ <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>
39
+ </xs:annotation>
40
+ </xs:element>
41
+ <xs:element name="Web-Site" type="xs:string" minOccurs="0"/>
42
+ <xs:element name="E-Mail" type="xs:string" minOccurs="0">
43
+ <xs:annotation>
44
+ <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
45
+ </xs:annotation>
46
+ </xs:element>
47
+ <xs:element name="Fax" type="PhoneNumberType" minOccurs="0"/>
48
+ <xs:element name="Telephone" type="PhoneNumberType" minOccurs="0"/>
49
+ <xs:element name="Company-Name" type="xs:string">
50
+ <xs:annotation>
51
+ <xs:documentation>The Name of the Company that the assessor is employed by.</xs:documentation>
52
+ </xs:annotation>
53
+ </xs:element>
54
+ <xs:element name="Scheme-Name" type="xs:string"/>
55
+ <xs:element name="Scheme-Web-Site" type="xs:string"/>
56
+ <xs:element name="Identification-Number">
57
+ <xs:complexType>
58
+ <xs:choice>
59
+ <xs:element name="Certificate-Number" type="CertificateNumberType">
60
+ <xs:annotation>
61
+ <xs:documentation>The unique identifier assigned to the assessor by the scheme by which they can be identified throughout their membership of the scheme.</xs:documentation>
62
+ </xs:annotation>
63
+ </xs:element>
64
+ <xs:element name="Membership-Number" type="xs:string">
65
+ <xs:annotation>
66
+ <xs:documentation>For Scottish DEAs only</xs:documentation>
67
+ </xs:annotation>
68
+ </xs:element>
69
+ </xs:choice>
70
+ </xs:complexType>
71
+ </xs:element>
72
+ </xs:all>
73
+ </xs:complexType>
74
+ <xs:simpleType name="InspectorTypeCode">
75
+ <xs:restriction base="xs:string">
76
+ <xs:enumeration value="2">
77
+ <xs:annotation>
78
+ <xs:documentation>Domestic Energy Assessor</xs:documentation>
79
+ </xs:annotation>
80
+ </xs:enumeration>
81
+ </xs:restriction>
82
+ </xs:simpleType>
83
+ <xs:element name="Mortgage-Lender" type="Mortgage-Lender"/>
84
+ <xs:complexType name="Mortgage-Lender">
85
+ <xs:annotation>
86
+ <xs:documentation>A Mortgage Lender is an organisation that may lend money to the Buyer for the purpose of purchasing the Property.
87
+
88
+ 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>
89
+ </xs:annotation>
90
+ <xs:all/>
91
+ </xs:complexType>
92
+ <xs:simpleType name="HomeInspectorStatusCode">
93
+ <xs:restriction base="xs:string">
94
+ <xs:enumeration value="Inactive">
95
+ <xs:annotation>
96
+ <xs:documentation>Inactive</xs:documentation>
97
+ </xs:annotation>
98
+ </xs:enumeration>
99
+ <xs:enumeration value="Registered">
100
+ <xs:annotation>
101
+ <xs:documentation>Registered</xs:documentation>
102
+ </xs:annotation>
103
+ </xs:enumeration>
104
+ <xs:enumeration value="Struck-Off">
105
+ <xs:annotation>
106
+ <xs:documentation>Struck Off</xs:documentation>
107
+ </xs:annotation>
108
+ </xs:enumeration>
109
+ <xs:enumeration value="Suspended">
110
+ <xs:annotation>
111
+ <xs:documentation>Suspended</xs:documentation>
112
+ </xs:annotation>
113
+ </xs:enumeration>
114
+ </xs:restriction>
115
+ </xs:simpleType>
116
+ <xs:simpleType name="Postcode-CoverageType">
117
+ <xs:restriction base="xs:string">
118
+ <xs:maxLength value="500"/>
119
+ <xs:pattern value="[A-Z]{1,2}[0-9]{0,2}(,[A-Z]{1,2}[0-9]{0,2})*"/>
120
+ </xs:restriction>
121
+ </xs:simpleType>
122
+ <xs:element name="InspectorKeyFields" type="InspectorKeyFields"/>
123
+ <xs:complexType name="InspectorKeyFields">
124
+ <xs:annotation>
125
+ <xs:documentation>Key field definition for the Home Inspector class - used when a message requires a reference to a Home Inspexctor to be passed rather than the details.</xs:documentation>
126
+ </xs:annotation>
127
+ <xs:sequence>
128
+ <xs:element name="Certificate-Number" type="CertificateNumberType"/>
129
+ </xs:sequence>
130
+ </xs:complexType>
131
+ <xs:element name="Certification-Scheme" type="Certification-Scheme"/>
132
+ <xs:complexType name="Certification-Scheme">
133
+ <xs:annotation>
134
+ <xs:documentation>The Certification Scheme is the "regulatory" body responsible for regulating the activities of the Home Inspectors.
135
+
136
+ 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.
137
+
138
+ 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>
139
+ </xs:annotation>
140
+ <xs:all>
141
+ <xs:element name="Scheme-Name" type="xs:string"/>
142
+ <xs:element name="Complaints-Address" type="AddressType">
143
+ <xs:annotation>
144
+ <xs:documentation>The address to which any complaints should be sent.</xs:documentation>
145
+ </xs:annotation>
146
+ </xs:element>
147
+ <xs:element name="Contact-Address" type="AddressType">
148
+ <xs:annotation>
149
+ <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>
150
+ </xs:annotation>
151
+ </xs:element>
152
+ <xs:element name="Web-Site" type="xs:string"/>
153
+ <xs:element name="E-Mail" type="xs:string">
154
+ <xs:annotation>
155
+ <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
156
+ </xs:annotation>
157
+ </xs:element>
158
+ <xs:element name="Registered-Name" type="xs:string">
159
+ <xs:annotation>
160
+ <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.
161
+
162
+ 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>
163
+ </xs:annotation>
164
+ </xs:element>
165
+ <xs:element name="Fax" type="PhoneNumberType"/>
166
+ <xs:element name="Telephone" type="PhoneNumberType"/>
167
+ </xs:all>
168
+ </xs:complexType>
169
+ <xs:element name="PersonNameType" type="PersonNameType"/>
170
+ <xs:complexType name="PersonNameType">
171
+ <xs:annotation>
172
+ <xs:documentation>A Person Name is a complex structure to capture the separate components of the name for a Person, consisting of:
173
+ * A prefix e.g. "Mr", "Mrs", "Dr" etc.
174
+ * First Name e.g. "John"
175
+ * Middle Initial
176
+ * Surname e.g. "Smith"
177
+ * Suffix e.g. "PhD", "FRICS"
178
+ The First Name and Surname are the only mandatory elements of a name.
179
+
180
+ The name elements can then be combined in a number of different ways to produce different formats appropriate to the output context.
181
+
182
+ Note that all parts of the Persons Name should be stored as uppercase strings because this makes it easier to search and index the names but some components may be converted to mixed case for printing on reports and such like.
183
+ </xs:documentation>
184
+ </xs:annotation>
185
+ <xs:all>
186
+ <xs:element name="Prefix" type="xs:string"/>
187
+ <xs:element name="First-Name" type="xs:string"/>
188
+ <xs:element name="Surname" type="xs:string"/>
189
+ <xs:element name="Suffix" type="xs:string"/>
190
+ </xs:all>
191
+ </xs:complexType>
192
+ <xs:element name="CertificationSchemeKeyFields" type="CertificationSchemeKeyFields"/>
193
+ <xs:complexType name="CertificationSchemeKeyFields">
194
+ <xs:annotation>
195
+ <xs:documentation>Key field definition for the Certification Scheme class.</xs:documentation>
196
+ </xs:annotation>
197
+ <xs:sequence>
198
+ <xs:element name="Registered-Name" type="xs:string"/>
199
+ </xs:sequence>
200
+ </xs:complexType>
201
+ <xs:simpleType name="PhoneNumberType">
202
+ <xs:restriction base="xs:string">
203
+ <xs:pattern value="[0-9\-\.\)\(\+ ]+"/>
204
+ </xs:restriction>
205
+ </xs:simpleType>
206
+ <xs:simpleType name="CertificateNumberType">
207
+ <xs:annotation>
208
+ <xs:documentation>The Certificate Number is a 10-character fixed-length alphanumeric code consisting of 4 characters identifying the Certification Scheme and a 6-digit zero-padded identifier for each Home Inspector certified by that Certification Scheme. For example ABCD987654, XYZ_123456 etc.</xs:documentation>
209
+ </xs:annotation>
210
+ <xs:restriction base="xs:string">
211
+ <xs:minLength value="10"/>
212
+ <xs:maxLength value="10"/>
213
+ <xs:pattern value="[A-Z/_]{4}[0-9]{6}"/>
214
+ </xs:restriction>
215
+ </xs:simpleType>
216
+ </xs:schema>