epb_view_models 2.2.20 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +21 -21
  5. data/api/schemas/data/orchestrate.json +4 -0
  6. data/api/schemas/xml/CEPC-S-7.0/Reports/BaseDataTypes.xsd +296 -296
  7. data/api/schemas/xml/CEPC-S-7.0/Reports/CEPC-Reports.xsd +63 -63
  8. data/api/schemas/xml/CEPC-S-7.0/Reports/Input-Data.xsd +34 -34
  9. data/api/schemas/xml/CEPC-S-7.0/Reports/Performance-Summary.xsd +120 -120
  10. data/api/schemas/xml/CEPC-S-7.0/Reports/Property.xsd +67 -67
  11. data/api/schemas/xml/CEPC-S-7.0/Reports/Report-Header.xsd +178 -178
  12. data/api/schemas/xml/CEPC-S-7.0/Reports/Reported-Data.xsd +391 -391
  13. data/api/schemas/xml/CEPC-S-7.0/Reports/UserManagement.xsd +171 -171
  14. data/api/schemas/xml/CEPC-S-7.1/Reports/BaseDataTypes.xsd +300 -300
  15. data/api/schemas/xml/CEPC-S-7.1/Reports/CEPC-Reports.xsd +66 -66
  16. data/api/schemas/xml/CEPC-S-7.1/Reports/Input-Data.xsd +34 -34
  17. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd +125 -125
  18. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd.bak +123 -123
  19. data/api/schemas/xml/CEPC-S-7.1/Reports/Property.xsd +67 -67
  20. data/api/schemas/xml/CEPC-S-7.1/Reports/Report-Header.xsd +178 -178
  21. data/api/schemas/xml/CEPC-S-7.1/Reports/Reported-Data.xsd +406 -406
  22. data/api/schemas/xml/CEPC-S-7.1/Reports/UserManagement.xsd +174 -174
  23. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  24. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  25. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/ExternalDefinitions.xsd +147 -0
  26. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessRequest_1.xsd +44 -0
  27. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessResponse_1.xsd +47 -0
  28. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusRequest_1.xsd +44 -0
  29. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusResponse_1.xsd +47 -0
  30. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +41 -0
  31. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateResponse_1.xsd +52 -0
  32. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveRequest_1.xsd +52 -0
  33. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveResponse_1.xsd +87 -0
  34. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateRequest_1.xsd +44 -0
  35. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateResponse_1.xsd +28 -0
  36. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusRequest_1.xsd +30 -0
  37. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusResponse_1.xsd +52 -0
  38. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationRequest_1.xsd +44 -0
  39. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationResponse_1.xsd +46 -0
  40. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/EPC-Certificate.xsd +270 -0
  41. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/Property.xsd +68 -0
  42. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-CollectedData.xsd +1188 -0
  43. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-Report.xsd +195 -0
  44. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/UserManagement.xsd +215 -0
  45. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/BaseDataTypes.xsd +175 -0
  46. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/EPC-Domains.xsd +703 -0
  47. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SAP05-Domains.xsd +3007 -0
  48. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SharedDomains.xsd +311 -0
  49. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd +252 -0
  50. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd +444 -0
  51. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  52. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  53. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  54. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  55. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  56. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  57. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HIP-Reports.xsd +220 -0
  58. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/Property.xsd +73 -0
  59. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/UserManagement.xsd +257 -0
  60. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/BaseDataTypes.xsd +176 -0
  61. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/EPC-Domains.xsd +743 -0
  62. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  63. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SAP-Domains.xsd +1134 -0
  64. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SharedDomains.xsd +660 -0
  65. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  66. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -1456
  67. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -236
  68. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -16
  69. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -388
  70. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -784
  71. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -283
  72. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -222
  73. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -205
  74. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -311
  75. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -380
  76. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -298
  77. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -67
  78. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -201
  79. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -259
  80. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -176
  81. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -881
  82. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -1779
  83. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -1650
  84. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -768
  85. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -19
  86. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml +1456 -1456
  87. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd +236 -236
  88. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd +208 -208
  89. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  90. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-CollectedData.xsd +957 -957
  91. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ExceptionList.xsd +18 -18
  92. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/Property.xsd +66 -66
  93. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +180 -180
  94. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ReportList.xsd +26 -26
  95. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/EPC-Domains.xsd +843 -843
  96. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/SAP-Domains.xsd +2541 -2541
  97. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -1456
  98. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -236
  99. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  100. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  101. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -966
  102. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -18
  103. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -66
  104. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -175
  105. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -26
  106. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -853
  107. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -2551
  108. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
  109. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  110. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  111. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
  112. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
  113. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
  114. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
  115. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
  116. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
  117. data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -11846
  118. data/epb_view_models.gemspec +3 -2
  119. data/lib/epb_view_models.rb +1 -1
  120. data/lib/view_model/cepc_s_70/cepc.rb +5 -5
  121. data/lib/view_model/cepc_s_71/cepc.rb +5 -5
  122. data/lib/view_model/cs63/common_schema.rb +1 -1
  123. data/lib/view_model/factory.rb +1 -0
  124. data/lib/view_model/rd_sap_schema_ni_173/common_schema.rb +8 -8
  125. data/lib/view_model/rd_sap_schema_ni_174/common_schema.rb +8 -8
  126. data/lib/view_model/rd_sap_schema_ni_180/common_schema.rb +8 -8
  127. data/lib/view_model/rd_sap_schema_ni_190/common_schema.rb +8 -8
  128. data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +8 -8
  129. data/lib/view_model/rd_sap_schema_s_140/common_schema.rb +550 -0
  130. data/lib/view_model/rd_sap_schema_s_190/common_schema.rb +41 -41
  131. data/lib/view_model/rd_sap_schema_s_210/common_schema.rb +35 -35
  132. data/lib/view_model/rd_sap_wrapper.rb +2 -0
  133. data/lib/view_model/sap_schema_1900/common_schema.rb +6 -6
  134. data/lib/view_model/sap_schema_1910/common_schema.rb +6 -6
  135. data/lib/view_model/sap_schema_1920/common_schema.rb +6 -6
  136. data/lib/view_model/sap_schema_ni_173/common_schema.rb +8 -8
  137. data/lib/view_model/sap_schema_ni_174/common_schema.rb +8 -8
  138. data/lib/view_model/sap_schema_ni_1800/common_schema.rb +8 -8
  139. data/lib/view_model/sap_schema_s_1900/common_schema.rb +11 -11
  140. metadata +62 -4
@@ -1,208 +1,208 @@
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 xmlns="http://www.epcregister.com/xsd/rdsap" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.epcregister.com/xsd/rdsap" elementFormDefault="qualified" version="LIG-17.00">
4
- <xs:annotation>
5
- <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>
6
- </xs:annotation>
7
- <xs:include schemaLocation="../Templates/Property.xsd"/>
8
- <xs:include schemaLocation="../UDT/SAP-Domains.xsd"/>
9
- <!--
10
- <xs:include schemaLocation="../Templates/Property.xsd"/>
11
- -->
12
- <xs:element name="Energy-Assessor" type="Energy-Assessor"/>
13
- <xs:complexType name="Energy-Assessor">
14
- <xs:annotation>
15
- <xs:documentation>An Energy Assessor is certified by a Certification Scheme as being qualified to carry out a SAP assessment and/or an RdSAP assessment.</xs:documentation>
16
- </xs:annotation>
17
- <xs:all>
18
- <xs:element name="Name" type="xs:string">
19
- <xs:annotation>
20
- <xs:documentation>The name by which the Home Inspector is registered. This is a structured name containing prefix, first name + surname.</xs:documentation>
21
- </xs:annotation>
22
- </xs:element>
23
- <xs:element name="Notify-Lodgement" type="Flag" minOccurs="0">
24
- <xs:annotation>
25
- <xs:documentation>Indicates whether the assessor wants to be notified that a the report has been lodged in the register</xs:documentation>
26
- </xs:annotation>
27
- </xs:element>
28
- <xs:element name="Contact-Address" type="AddressType">
29
- <xs:annotation>
30
- <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>
31
- </xs:annotation>
32
- </xs:element>
33
- <xs:element name="Web-Site" type="xs:string" minOccurs="0"/>
34
- <xs:element name="E-Mail" type="xs:string" minOccurs="0">
35
- <xs:annotation>
36
- <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
37
- </xs:annotation>
38
- </xs:element>
39
- <xs:element name="Fax" type="PhoneNumberType" minOccurs="0"/>
40
- <xs:element name="Telephone" type="PhoneNumberType" minOccurs="0"/>
41
- <xs:element name="Company-Name" type="xs:string">
42
- <xs:annotation>
43
- <xs:documentation>The Name of the Company that the assessor is employed by.</xs:documentation>
44
- </xs:annotation>
45
- </xs:element>
46
- <xs:element name="Scheme-Name" type="xs:string"/>
47
- <xs:element name="Scheme-Web-Site" type="xs:string"/>
48
- <xs:element name="Identification-Number">
49
- <xs:complexType>
50
- <xs:choice>
51
- <xs:element name="Certificate-Number" type="CertificateNumberType">
52
- <xs:annotation>
53
- <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>
54
- </xs:annotation>
55
- </xs:element>
56
- <xs:element name="Membership-Number" type="xs:string">
57
- <xs:annotation>
58
- <xs:documentation>For Scottish DEAs only</xs:documentation>
59
- </xs:annotation>
60
- </xs:element>
61
- </xs:choice>
62
- </xs:complexType>
63
- </xs:element>
64
- </xs:all>
65
- </xs:complexType>
66
- <xs:simpleType name="InspectorTypeCode">
67
- <xs:restriction base="xs:string">
68
- <xs:enumeration value="2">
69
- <xs:annotation>
70
- <xs:documentation>Domestic Energy Assessor</xs:documentation>
71
- </xs:annotation>
72
- </xs:enumeration>
73
- </xs:restriction>
74
- </xs:simpleType>
75
- <xs:element name="Mortgage-Lender" type="Mortgage-Lender"/>
76
- <xs:complexType name="Mortgage-Lender">
77
- <xs:annotation>
78
- <xs:documentation>A Mortgage Lender is an organisation that may lend money to the Buyer for the purpose of purchasing the Property.
79
-
80
- 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>
81
- </xs:annotation>
82
- <xs:all/>
83
- </xs:complexType>
84
- <xs:simpleType name="HomeInspectorStatusCode">
85
- <xs:restriction base="xs:string">
86
- <xs:enumeration value="Inactive">
87
- <xs:annotation>
88
- <xs:documentation>Inactive</xs:documentation>
89
- </xs:annotation>
90
- </xs:enumeration>
91
- <xs:enumeration value="Registered">
92
- <xs:annotation>
93
- <xs:documentation>Registered</xs:documentation>
94
- </xs:annotation>
95
- </xs:enumeration>
96
- <xs:enumeration value="Struck-Off">
97
- <xs:annotation>
98
- <xs:documentation>Struck Off</xs:documentation>
99
- </xs:annotation>
100
- </xs:enumeration>
101
- <xs:enumeration value="Suspended">
102
- <xs:annotation>
103
- <xs:documentation>Suspended</xs:documentation>
104
- </xs:annotation>
105
- </xs:enumeration>
106
- </xs:restriction>
107
- </xs:simpleType>
108
- <xs:simpleType name="Postcode-CoverageType">
109
- <xs:restriction base="xs:string">
110
- <xs:maxLength value="500"/>
111
- <xs:pattern value="[A-Z]{1,2}[0-9]{0,2}(,[A-Z]{1,2}[0-9]{0,2})*"/>
112
- </xs:restriction>
113
- </xs:simpleType>
114
- <xs:element name="InspectorKeyFields" type="InspectorKeyFields"/>
115
- <xs:complexType name="InspectorKeyFields">
116
- <xs:annotation>
117
- <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>
118
- </xs:annotation>
119
- <xs:sequence>
120
- <xs:element name="Certificate-Number" type="CertificateNumberType"/>
121
- </xs:sequence>
122
- </xs:complexType>
123
- <xs:element name="Certification-Scheme" type="Certification-Scheme"/>
124
- <xs:complexType name="Certification-Scheme">
125
- <xs:annotation>
126
- <xs:documentation>The Certification Scheme is the "regulatory" body responsible for regulating the activities of the Home Inspectors.
127
-
128
- 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.
129
-
130
- 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>
131
- </xs:annotation>
132
- <xs:all>
133
- <xs:element name="Scheme-Name" type="xs:string"/>
134
- <xs:element name="Complaints-Address" type="AddressType">
135
- <xs:annotation>
136
- <xs:documentation>The address to which any complaints should be sent.</xs:documentation>
137
- </xs:annotation>
138
- </xs:element>
139
- <xs:element name="Contact-Address" type="AddressType">
140
- <xs:annotation>
141
- <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>
142
- </xs:annotation>
143
- </xs:element>
144
- <xs:element name="Web-Site" type="xs:string"/>
145
- <xs:element name="E-Mail" type="xs:string">
146
- <xs:annotation>
147
- <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
148
- </xs:annotation>
149
- </xs:element>
150
- <xs:element name="Registered-Name" type="xs:string">
151
- <xs:annotation>
152
- <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.
153
-
154
- 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>
155
- </xs:annotation>
156
- </xs:element>
157
- <xs:element name="Fax" type="PhoneNumberType"/>
158
- <xs:element name="Telephone" type="PhoneNumberType"/>
159
- </xs:all>
160
- </xs:complexType>
161
- <xs:element name="PersonNameType" type="PersonNameType"/>
162
- <xs:complexType name="PersonNameType">
163
- <xs:annotation>
164
- <xs:documentation>A Person Name is a complex structure to capture the separate components of the name for a Person, consisting of:
165
- * A prefix e.g. "Mr", "Mrs", "Dr" etc.
166
- * First Name e.g. "John"
167
- * Middle Initial
168
- * Surname e.g. "Smith"
169
- * Suffix e.g. "PhD", "FRICS"
170
- The First Name and Surname are the only mandatory elements of a name.
171
-
172
- The name elements can then be combined in a number of different ways to produce different formats appropriate to the output context.
173
-
174
- 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.
175
- </xs:documentation>
176
- </xs:annotation>
177
- <xs:all>
178
- <xs:element name="Prefix" type="xs:string"/>
179
- <xs:element name="First-Name" type="xs:string"/>
180
- <xs:element name="Surname" type="xs:string"/>
181
- <xs:element name="Suffix" type="xs:string"/>
182
- </xs:all>
183
- </xs:complexType>
184
- <xs:element name="CertificationSchemeKeyFields" type="CertificationSchemeKeyFields"/>
185
- <xs:complexType name="CertificationSchemeKeyFields">
186
- <xs:annotation>
187
- <xs:documentation>Key field definition for the Certification Scheme class.</xs:documentation>
188
- </xs:annotation>
189
- <xs:sequence>
190
- <xs:element name="Registered-Name" type="xs:string"/>
191
- </xs:sequence>
192
- </xs:complexType>
193
- <xs:simpleType name="PhoneNumberType">
194
- <xs:restriction base="xs:string">
195
- <xs:pattern value="[0-9\-\.\)\(\+ ]+"/>
196
- </xs:restriction>
197
- </xs:simpleType>
198
- <xs:simpleType name="CertificateNumberType">
199
- <xs:annotation>
200
- <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>
201
- </xs:annotation>
202
- <xs:restriction base="xs:string">
203
- <xs:minLength value="10"/>
204
- <xs:maxLength value="10"/>
205
- <xs:pattern value="[A-Z/_]{4}[0-9]{6}"/>
206
- </xs:restriction>
207
- </xs:simpleType>
208
- </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 xmlns="http://www.epcregister.com/xsd/rdsap" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.epcregister.com/xsd/rdsap" elementFormDefault="qualified" version="LIG-17.00">
4
+ <xs:annotation>
5
+ <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>
6
+ </xs:annotation>
7
+ <xs:include schemaLocation="../Templates/Property.xsd"/>
8
+ <xs:include schemaLocation="../UDT/SAP-Domains.xsd"/>
9
+ <!--
10
+ <xs:include schemaLocation="../Templates/Property.xsd"/>
11
+ -->
12
+ <xs:element name="Energy-Assessor" type="Energy-Assessor"/>
13
+ <xs:complexType name="Energy-Assessor">
14
+ <xs:annotation>
15
+ <xs:documentation>An Energy Assessor is certified by a Certification Scheme as being qualified to carry out a SAP assessment and/or an RdSAP assessment.</xs:documentation>
16
+ </xs:annotation>
17
+ <xs:all>
18
+ <xs:element name="Name" type="xs:string">
19
+ <xs:annotation>
20
+ <xs:documentation>The name by which the Home Inspector is registered. This is a structured name containing prefix, first name + surname.</xs:documentation>
21
+ </xs:annotation>
22
+ </xs:element>
23
+ <xs:element name="Notify-Lodgement" type="Flag" minOccurs="0">
24
+ <xs:annotation>
25
+ <xs:documentation>Indicates whether the assessor wants to be notified that a the report has been lodged in the register</xs:documentation>
26
+ </xs:annotation>
27
+ </xs:element>
28
+ <xs:element name="Contact-Address" type="AddressType">
29
+ <xs:annotation>
30
+ <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>
31
+ </xs:annotation>
32
+ </xs:element>
33
+ <xs:element name="Web-Site" type="xs:string" minOccurs="0"/>
34
+ <xs:element name="E-Mail" type="xs:string" minOccurs="0">
35
+ <xs:annotation>
36
+ <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
37
+ </xs:annotation>
38
+ </xs:element>
39
+ <xs:element name="Fax" type="PhoneNumberType" minOccurs="0"/>
40
+ <xs:element name="Telephone" type="PhoneNumberType" minOccurs="0"/>
41
+ <xs:element name="Company-Name" type="xs:string">
42
+ <xs:annotation>
43
+ <xs:documentation>The Name of the Company that the assessor is employed by.</xs:documentation>
44
+ </xs:annotation>
45
+ </xs:element>
46
+ <xs:element name="Scheme-Name" type="xs:string"/>
47
+ <xs:element name="Scheme-Web-Site" type="xs:string"/>
48
+ <xs:element name="Identification-Number">
49
+ <xs:complexType>
50
+ <xs:choice>
51
+ <xs:element name="Certificate-Number" type="CertificateNumberType">
52
+ <xs:annotation>
53
+ <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>
54
+ </xs:annotation>
55
+ </xs:element>
56
+ <xs:element name="Membership-Number" type="xs:string">
57
+ <xs:annotation>
58
+ <xs:documentation>For Scottish DEAs only</xs:documentation>
59
+ </xs:annotation>
60
+ </xs:element>
61
+ </xs:choice>
62
+ </xs:complexType>
63
+ </xs:element>
64
+ </xs:all>
65
+ </xs:complexType>
66
+ <xs:simpleType name="InspectorTypeCode">
67
+ <xs:restriction base="xs:string">
68
+ <xs:enumeration value="2">
69
+ <xs:annotation>
70
+ <xs:documentation>Domestic Energy Assessor</xs:documentation>
71
+ </xs:annotation>
72
+ </xs:enumeration>
73
+ </xs:restriction>
74
+ </xs:simpleType>
75
+ <xs:element name="Mortgage-Lender" type="Mortgage-Lender"/>
76
+ <xs:complexType name="Mortgage-Lender">
77
+ <xs:annotation>
78
+ <xs:documentation>A Mortgage Lender is an organisation that may lend money to the Buyer for the purpose of purchasing the Property.
79
+
80
+ 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>
81
+ </xs:annotation>
82
+ <xs:all/>
83
+ </xs:complexType>
84
+ <xs:simpleType name="HomeInspectorStatusCode">
85
+ <xs:restriction base="xs:string">
86
+ <xs:enumeration value="Inactive">
87
+ <xs:annotation>
88
+ <xs:documentation>Inactive</xs:documentation>
89
+ </xs:annotation>
90
+ </xs:enumeration>
91
+ <xs:enumeration value="Registered">
92
+ <xs:annotation>
93
+ <xs:documentation>Registered</xs:documentation>
94
+ </xs:annotation>
95
+ </xs:enumeration>
96
+ <xs:enumeration value="Struck-Off">
97
+ <xs:annotation>
98
+ <xs:documentation>Struck Off</xs:documentation>
99
+ </xs:annotation>
100
+ </xs:enumeration>
101
+ <xs:enumeration value="Suspended">
102
+ <xs:annotation>
103
+ <xs:documentation>Suspended</xs:documentation>
104
+ </xs:annotation>
105
+ </xs:enumeration>
106
+ </xs:restriction>
107
+ </xs:simpleType>
108
+ <xs:simpleType name="Postcode-CoverageType">
109
+ <xs:restriction base="xs:string">
110
+ <xs:maxLength value="500"/>
111
+ <xs:pattern value="[A-Z]{1,2}[0-9]{0,2}(,[A-Z]{1,2}[0-9]{0,2})*"/>
112
+ </xs:restriction>
113
+ </xs:simpleType>
114
+ <xs:element name="InspectorKeyFields" type="InspectorKeyFields"/>
115
+ <xs:complexType name="InspectorKeyFields">
116
+ <xs:annotation>
117
+ <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>
118
+ </xs:annotation>
119
+ <xs:sequence>
120
+ <xs:element name="Certificate-Number" type="CertificateNumberType"/>
121
+ </xs:sequence>
122
+ </xs:complexType>
123
+ <xs:element name="Certification-Scheme" type="Certification-Scheme"/>
124
+ <xs:complexType name="Certification-Scheme">
125
+ <xs:annotation>
126
+ <xs:documentation>The Certification Scheme is the "regulatory" body responsible for regulating the activities of the Home Inspectors.
127
+
128
+ 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.
129
+
130
+ 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>
131
+ </xs:annotation>
132
+ <xs:all>
133
+ <xs:element name="Scheme-Name" type="xs:string"/>
134
+ <xs:element name="Complaints-Address" type="AddressType">
135
+ <xs:annotation>
136
+ <xs:documentation>The address to which any complaints should be sent.</xs:documentation>
137
+ </xs:annotation>
138
+ </xs:element>
139
+ <xs:element name="Contact-Address" type="AddressType">
140
+ <xs:annotation>
141
+ <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>
142
+ </xs:annotation>
143
+ </xs:element>
144
+ <xs:element name="Web-Site" type="xs:string"/>
145
+ <xs:element name="E-Mail" type="xs:string">
146
+ <xs:annotation>
147
+ <xs:documentation>the E-Mail address that the Authorised User can be contacted at.</xs:documentation>
148
+ </xs:annotation>
149
+ </xs:element>
150
+ <xs:element name="Registered-Name" type="xs:string">
151
+ <xs:annotation>
152
+ <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.
153
+
154
+ 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>
155
+ </xs:annotation>
156
+ </xs:element>
157
+ <xs:element name="Fax" type="PhoneNumberType"/>
158
+ <xs:element name="Telephone" type="PhoneNumberType"/>
159
+ </xs:all>
160
+ </xs:complexType>
161
+ <xs:element name="PersonNameType" type="PersonNameType"/>
162
+ <xs:complexType name="PersonNameType">
163
+ <xs:annotation>
164
+ <xs:documentation>A Person Name is a complex structure to capture the separate components of the name for a Person, consisting of:
165
+ * A prefix e.g. "Mr", "Mrs", "Dr" etc.
166
+ * First Name e.g. "John"
167
+ * Middle Initial
168
+ * Surname e.g. "Smith"
169
+ * Suffix e.g. "PhD", "FRICS"
170
+ The First Name and Surname are the only mandatory elements of a name.
171
+
172
+ The name elements can then be combined in a number of different ways to produce different formats appropriate to the output context.
173
+
174
+ 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.
175
+ </xs:documentation>
176
+ </xs:annotation>
177
+ <xs:all>
178
+ <xs:element name="Prefix" type="xs:string"/>
179
+ <xs:element name="First-Name" type="xs:string"/>
180
+ <xs:element name="Surname" type="xs:string"/>
181
+ <xs:element name="Suffix" type="xs:string"/>
182
+ </xs:all>
183
+ </xs:complexType>
184
+ <xs:element name="CertificationSchemeKeyFields" type="CertificationSchemeKeyFields"/>
185
+ <xs:complexType name="CertificationSchemeKeyFields">
186
+ <xs:annotation>
187
+ <xs:documentation>Key field definition for the Certification Scheme class.</xs:documentation>
188
+ </xs:annotation>
189
+ <xs:sequence>
190
+ <xs:element name="Registered-Name" type="xs:string"/>
191
+ </xs:sequence>
192
+ </xs:complexType>
193
+ <xs:simpleType name="PhoneNumberType">
194
+ <xs:restriction base="xs:string">
195
+ <xs:pattern value="[0-9\-\.\)\(\+ ]+"/>
196
+ </xs:restriction>
197
+ </xs:simpleType>
198
+ <xs:simpleType name="CertificateNumberType">
199
+ <xs:annotation>
200
+ <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>
201
+ </xs:annotation>
202
+ <xs:restriction base="xs:string">
203
+ <xs:minLength value="10"/>
204
+ <xs:maxLength value="10"/>
205
+ <xs:pattern value="[A-Z/_]{4}[0-9]{6}"/>
206
+ </xs:restriction>
207
+ </xs:simpleType>
208
+ </xs:schema>