-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathParticipant.xsd
More file actions
288 lines (283 loc) · 13.2 KB
/
Participant.xsd
File metadata and controls
288 lines (283 loc) · 13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.iepmodel.net"
xmlns="http://www.iepmodel.net" elementFormDefault="qualified">
<xs:annotation>
<xs:documentation>Schema defines project participants. It is intended to cover all types of participants, including consumers, service providers, etc.
</xs:documentation>
</xs:annotation>
<xs:include schemaLocation="Common.xsd"/>
<xs:element name="participant" type="participant"/>
<xs:complexType name="participant">
<xs:annotation>
<xs:documentation>This is intended to cover all participants including Consumers, Service Providers, etc.
Why mailing address is outside the Contact?
mailing addresses are closely associated with the role of the participant, not the individual contacts within a participant.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="participantType" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The class (or type) of participant. Legal values should include Individual, Business, and Government. The tax status element provides more detailed information about the type of business (corporation, LLC, tax-exempt, etc).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="taxStatus" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The participant's tax entity status. For example, the Cal Solar Initiative program defines the following legal values: Corporation, Individual, LLC (Corporation), LLC (Non-Corporation), Partnership, Sole Proprietor, Tax Exempt. This may hold other values depending on the needs of the user.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="organization" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>If the Participant is an organization. Use this for the name of the organization</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contacts">
<xs:complexType>
<xs:sequence>
<xs:element name="contact" type="contact" minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="addresses">
<xs:complexType>
<xs:sequence>
<xs:element name="address" type="address" minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="roles">
<xs:complexType>
<xs:sequence>
<xs:element name="role" type="participantRoleEnum" minOccurs="1"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A participant may have one or more roles with respect to a project.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="taxPayerId" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element minOccurs="0" name="credentials">
<xs:complexType>
<xs:sequence>
<xs:element name="credential" type="credential" minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="manufacturerAffiliations">
<xs:complexType>
<xs:sequence>
<xs:element name="manufacturerAffiliation" type="manufacturerAffiliation"
minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="liabilityPolicies">
<xs:complexType>
<xs:sequence>
<xs:element name="liabilityPolicy" type="liabilityPolicy" minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="services">
<xs:complexType>
<xs:sequence>
<xs:element name="service" type="service" minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" use="optional" type="xs:ID"/>
</xs:complexType>
<xs:complexType name="contact">
<xs:annotation>
<xs:documentation>This schema has been extended from one of the components in the Clean Power Research schema included in their PowerClerk schema. It's intended use is to define the contacts in a particular project for customers, contractors, service providers, etc.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="firstName" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="middleName" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="lastName" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="title" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element minOccurs="0" name="phoneNumbers">
<xs:complexType>
<xs:sequence>
<xs:element name="phoneNumber" type="phoneNumber" minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="emailAddresses">
<xs:complexType>
<xs:sequence>
<xs:element name="emailAddress" type="emailAddress" minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="skypeAccount" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="website" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="preferredContactMethod" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="bestTimeOfDayToReach" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="participantRoleEnum">
<xs:annotation>
<xs:documentation>Host Customer - "utility account holder"</xs:documentation>
<xs:documentation>Customer - "The customer of the scope of work offered."</xs:documentation>
<xs:documentation>Occupant - "The organization or persons occupying a building specified in the project."</xs:documentation>
<xs:documentation>PV System Owner - "The owner of the PV system may not necessarily the owber of the facility. As in the case of leasing the system."</xs:documentation>
<xs:documentation>Incentive Payee - "Agency or business providing the incentive."</xs:documentation>
<xs:documentation>Seller - "The party providing the defined system / scope of work"</xs:documentation>
<xs:documentation>Financer - "The party providing the financing for the work"</xs:documentation>
<xs:documentation>General Contractor - "The general contractor overssing the work done."</xs:documentation>
<xs:documentation>Installer - "The party installing the system. Typically this is a contractor."</xs:documentation>
<xs:documentation>Referrer - "A party who referred the customer to the seller."</xs:documentation>
<xs:documentation>Auditor - "A party who provides the site audit."</xs:documentation>
<xs:documentation>Inspector - "A inspector for any of the work done."</xs:documentation>
<xs:documentation>Engineer - "An engineer providing designs documents and specifications"</xs:documentation>
<xs:documentation>Program Administrator - "A party who oversees any incentive or regulatory work."</xs:documentation>
<xs:documentation>Authority Having Jurisdiction - "Also known as AHJ. This is the city, county, or other authority with jurisdiction over building permits and inspections."</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="HOST_CUSTOMER"/>
<xs:enumeration value="CUSTOMER"/>
<xs:enumeration value="OCCUPANT"/>
<xs:enumeration value="PV_SYSTEM_OWNER"/>
<xs:enumeration value="PROPERTY_OWNER"/>
<xs:enumeration value="INCENTIVE_PAYEE"/>
<xs:enumeration value="SELLER"/>
<xs:enumeration value="FINANCER"/>
<xs:enumeration value="REFERRER"/>
<xs:enumeration value="INSTALLER"/>
<xs:enumeration value="ELECTRICIAN"/>
<xs:enumeration value="ROOFER"/>
<xs:enumeration value="GENERAL_CONTRACTOR"/>
<xs:enumeration value="AUDITOR"/>
<xs:enumeration value="INSPECTOR"/>
<xs:enumeration value="ENGINEER"/>
<xs:enumeration value="PROGRAM_ADMINISTRATOR"/>
<xs:enumeration value="AUTHORITY_HAVING_JURISDICTION"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="credential">
<xs:annotation>
<xs:documentation>Credential Validation describes a way for software and service developers using the IEP model to verify that a particular individual (typically a contractor, home energy rater, or similar professional) has a credential issued by a certifying authority (“CA”, such as a contractor licensing board, HERS provider, or similar authority). It also specifies a way to describe credential metadata, such as status and dates.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="caInternalId" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Unique internal identifier from Certifying Authority
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="caId" type="xs:int" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Reference to Certifying Authority
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Credential short name</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Credential long name
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dateConferred" type="xs:date" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Date credential first conferred </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dateExpires" type="xs:date" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Date credential expires (may be past)
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="status" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>Status (valid, expired, etc,); varies by CA</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="liabilityPolicy">
<xs:annotation>
<xs:documentation>
This is only used for Service Providers(i.e. Seller, Installer, Referrer, etc.)</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="issuer" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="number" type="xs:int" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="service">
<xs:annotation>
<xs:documentation>A Description of the types of services provided. For instance: Heating, cooling, (installation/repair), duct sealing, asbestos removal, etc.
This is only used for Service Providers(i.e. Seller, Installer, Referrer, etc.)</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="manufacturerAffiliation">
<xs:annotation>
<xs:documentation>This is for recording formal Manufacturer affiliations
This is only used for Service Providers(i.e. Seller, Installer, Referrer, etc.)</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="description" type="xs:string" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="phoneNumber">
<xs:sequence>
<xs:element name="number" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="extension" type="xs:int" minOccurs="0" maxOccurs="1" nillable="true"/>
<xs:element name="primary" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
<xs:element name="phoneNumberUse" type="phoneNumberEnum" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="phoneNumberEnum">
<xs:restriction base="xs:string">
<xs:enumeration value="BUSINESS"/>
<xs:enumeration value="BUSINESS_FAX"/>
<xs:enumeration value="HOME"/>
<xs:enumeration value="HOME_FAX"/>
<xs:enumeration value="MOBILE"/>
<xs:enumeration value="PAGER"/>
<xs:enumeration value="SKYPE"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="emailAddress">
<xs:sequence>
<xs:element name="address" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="primary" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
<xs:element name="emailAddressUse" type="emailAddressEnum" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="emailAddressEnum">
<xs:restriction base="xs:string">
<xs:enumeration value="WORK"/>
<xs:enumeration value="HOME"/>
<xs:enumeration value="ALTERNATE"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="certifyingAuthority">
<xs:sequence>
<xs:element name="caId" type="xs:int" minOccurs="1" maxOccurs="1"/>
<xs:element name="caName" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="mailingAddress" type="address" minOccurs="1" maxOccurs="1"/>
<xs:element name="contact" type="contact" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:schema>