-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOrganizationRequest.cs
More file actions
631 lines (525 loc) · 21.4 KB
/
Copy pathOrganizationRequest.cs
File metadata and controls
631 lines (525 loc) · 21.4 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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
// <copyright file="OrganizationRequest.cs" company="Credential Engine">
// Copyright (c) Credential Engine. All rights reserved.
// </copyright>
// <license>Apache License 2.0 - https://www.apache.org/licenses/LICENSE-2.0</license>
using System.Collections.Generic;
using Newtonsoft.Json;
namespace RA.Models.Input
{
/// <summary>
/// Class used with an Organization format or publish request
/// </summary>
public class OrganizationRequest : BaseRequest
{
/// <summary>
/// constructor
/// </summary>
public OrganizationRequest()
{
Organization = new Organization();
}
/// <summary>
/// Organization Input Class
/// </summary>
public Organization Organization { get; set; }
}
/// <summary>
/// Organization
/// Required:
/// - CTID
/// - Type
/// - Name
/// - Description
/// - SubjectWebpage
/// - AgentType
/// - AgentSectorType
/// - At least one of email or address
///
/// </summary>
public class Organization : BaseRequestHelper
{
/// <summary>
/// Constructor
/// </summary>
public Organization()
{
Type = "CredentialOrganization";
AgentType = new List<string>();
IndustryType = new List<FrameworkItem>();
Naics = new List<string>();
Keyword = new List<string>();
Email = new List<string>();
SocialMedia = new List<string>();
SameAs = new List<string>();
AvailabilityListing = new List<string>();
ServiceType = new List<string>();
Jurisdiction = new List<Input.JurisdictionProfile>();
Address = new List<Place>();
AlternateName = new List<string>();
AccreditedBy = new List<Input.OrganizationReference>();
ApprovedBy = new List<Input.OrganizationReference>();
RecognizedBy = new List<Input.OrganizationReference>();
RegulatedBy = new List<Input.OrganizationReference>();
Accredits = new List<EntityReference>();
Approves = new List<EntityReference>();
Offers = new List<EntityReference>();
Owns = new List<EntityReference>();
Renews = new List<EntityReference>();
Revokes = new List<EntityReference>();
Recognizes = new List<EntityReference>();
HasConditionManifest = new List<string>();
HasCostManifest = new List<string>();
AdministrationProcess = new List<ProcessProfile>();
DevelopmentProcess = new List<ProcessProfile>();
MaintenanceProcess = new List<ProcessProfile>();
AppealProcess = new List<ProcessProfile>();
ComplaintProcess = new List<ProcessProfile>();
ReviewProcess = new List<ProcessProfile>();
RevocationProcess = new List<ProcessProfile>();
Department = new List<OrganizationReference>();
SubOrganization = new List<OrganizationReference>();
}
#region *** Required Properties ***
/// <summary>
/// The type of organization is one of :
/// - CredentialOrganization
/// - QACredentialOrganization
/// - Organization (new 2021-05-31)
/// Required
/// </summary>
public string Type { get; set; }
// Helper to check if the current organization is a QA organization
public bool IsQAOrganization
{
get
{
if ( !string.IsNullOrWhiteSpace( Type ) && Type.ToLower().IndexOf( "qacredentialorganization" ) > -1 )
{
return true;
}
else
{
return false;
}
}
}
/// <summary>
/// Name or title of the resource.
/// Required
/// </summary>
public string Name { get; set; }
/// <summary>
/// LanguageMap for Name
/// </summary>
[JsonProperty( PropertyName = "ceterms:name" )]
public LanguageMap NameLangMap { get; set; } = new LanguageMap();
/// <summary>
/// Description
/// REQUIRED and must be a minimum of 15 characters.
/// </summary>
public string Description { get; set; }
/// <summary>
/// Alternately can provide a language map
/// </summary>
[JsonProperty( PropertyName = "ceterms:description" )]
public LanguageMap DescriptionLangMap { get; set; } = new LanguageMap();
/// <summary>
/// Credential Identifier
/// format:
/// ce-UUID (guid)
/// Required
/// </summary>
public string CTID { get; set; }
/// <summary>
/// Organization subject web page
/// Required
/// </summary>
public string SubjectWebpage { get; set; }
/// <summary>
/// The type of the described agent.
/// Must provide valid organization types.
/// May provide with or without the orgType namespace
/// Required
/// Example: orgType:CertificationBody
/// <see href="https://credreg.net/ctdl/terms/agentType"></see>
/// </summary>
public List<string> AgentType { get; set; }
/// <summary>
/// The types of sociological, economic, or political subdivision of society served by an agent.
/// Required
/// Enter one of:
/// <value>
/// agentSector:PrivateForProfit
/// agentSector:PrivateNonProfit
/// agentSector:Public
/// </value>
/// </summary>
public string AgentSectorType { get; set; }
// also require contact information via at least one of
/// <summary>
/// Email addresses for organization
/// Require at least Email or Address
/// </summary>
public List<string> Email { get; set; }
/// <summary>
/// Addresses for organization
/// Require at least Email or Address
/// </summary>
public List<Place> Address { get; set; }
#endregion
#region *** Recommended Benchmark Properties ***
/// <summary>
/// Organization's primary purpose as found on an "about" page of a website.
/// </summary>
public string AgentPurpose { get; set; }
/// <summary>
/// Short, key phrases describing the primary purpose of an organization as might be derived from the "about" page of it's website.
/// </summary>
public string AgentPurposeDescription { get; set; }
/// <summary>
/// Alternately can provide a language map
/// </summary>
[JsonProperty( PropertyName = "ceterms:agentPurposeDescription" )]
public LanguageMap AgentPurposeDescriptionLangMap { get; set; } = new LanguageMap();
// External Quality Assurance
/// <summary>
/// Quality assurance organization that provides official authorization to this organization.
/// </summary>
public List<OrganizationReference> AccreditedBy { get; set; }
/// <summary>
/// Organization that pronounces favorable judgment for this organization.
/// </summary>
public List<OrganizationReference> ApprovedBy { get; set; }
/// <summary>
/// Agent that acknowledges the validity of the organization.
/// </summary>
public List<OrganizationReference> RecognizedBy { get; set; }
/// <summary>
/// Quality assurance organization that enforces the legal requirements of this organization
/// </summary>
public List<OrganizationReference> RegulatedBy { get; set; }
/// <summary>
/// Larger organization exercising authority over this organization.
/// </summary>
public List<OrganizationReference> ParentOrganization { get; set; }
#endregion
#region *** Recommended Properties ***
/// <summary>
/// Alphanumeric token that identifies this resource and information about the token's originating context or scheme.
/// <see href="https://purl.org/ctdl/terms/identifier"></see>
/// ceterms:identifier
/// </summary>
public List<IdentifierValue> Identifier { get; set; } = new List<IdentifierValue>();
/// <summary>
/// Url for Organization image
/// </summary>
public string Image { get; set; }
/// <summary>
/// Keyword or key phrase describing relevant aspects of an entity.
/// </summary>
public List<string> Keyword { get; set; }
/// <summary>
/// Language map list for Keyword
/// </summary>
[JsonProperty( PropertyName = "ceterms:keyword" )]
public LanguageMapList KeywordLangMap { get; set; } = new LanguageMapList();
/// <summary>
/// Assertion by an agent that this resource has a specific workforce demand level.
/// Range Includes: ceterms:WorkforceDemandAction
/// </summary>
public List<string> InDemandAction { get; set; }
/// <summary>
/// Social media access point for an agent or an agent's contact point.
/// List of URLs
/// </summary>
public List<string> SocialMedia { get; set; }
/// <summary>
/// Type of service offered by the agent being described; select from an existing enumeration of such terms.
/// List of concepts from ConceptScheme: ceterms:AgentServiceType
/// Valid values:
/// serviceType:AccreditService
/// serviceType:ApproveService
/// serviceType:OfferService
/// serviceType:RecognizeService
/// serviceType:RegulateService
/// serviceType:RenewService
/// </summary>
public List<string> ServiceType { get; set; }
#endregion
/// <summary>
/// Alias for the organization including acronyms, alpha-numeric notations, and other forms of name abbreviations in common use
/// </summary>
public List<string> AlternateName { get; set; }
/// <summary>
/// alternate name using a LanguageMapList
/// </summary>
[JsonProperty( PropertyName = "ceterms:alternateName" )]
public LanguageMapList AlternateNameLangMap { get; set; } = new LanguageMapList();
/// <summary>
/// Listing of online and/or physical locations
/// List of URLs
/// </summary>
public List<string> AvailabilityListing { get; set; }
/// <summary>
/// Department of the organization.
/// </summary>
public List<OrganizationReference> Department { get; set; }
/// <summary>
/// Founding Date - the year, year-month, or year-month-day the organization was founded.
/// Maximum length of 20
/// Examples:
/// 2000
/// Jan, 2000
/// Jan. 1, 2000
/// November 11, 2000 (len=17)
/// range: xsd:string
/// </summary>
public string FoundingDate { get; set; }
/// <summary>
/// Date the organization ceased operations or ceased to exist.
/// range: xsd:date
/// </summary>
public string ClosingDate { get; set; }
#region Concrete codes/identifiers
/// <summary>
/// Dun and Bradstreet DUNS number for identifying an organization or business person.
/// </summary>
public string Duns { get; set; }
/// <summary>
/// Federal Employer Identification Number (FEIN) identifying organizations, persons, states, government agencies, corporations, and companies.
/// </summary>
public string Fein { get; set; }
/// <summary>
/// Unique six digit identifier assigned to all U.S. institutions that have submitted data to the Integrated Postsecondary Education Data System (IPEDS).
/// </summary>
public string IpedsId { get; set; }
/// <summary>
/// OPE ID number (U.S. Office of Postsecondary Education Identification), sometimes referred to as the Federal School Code.
/// </summary>
public string OpeId { get; set; }
/// <summary>
/// A 20-digit, alpha-numeric code, based on the ISO 17442 standard, for identifying legal entities participating in financial transactions.
/// </summary>
public string LEICode { get; set; }
/// <summary>
/// ISIC Revision 4 Code
/// The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
/// </summary>
public string ISICV4 { get; set; }
/// <summary>
/// Identifier comprised of a 12 digit code issued by the National Center for Education Statistics (NCES) for educational institutions where the first 7 digits are the NCES District ID.
/// </summary>
public string NcesID { get; set; }
#endregion
/// <summary>
/// Reference to condition manifests
/// A condition manifest can never be a third party reference, so a url is expected
/// </summary>
public List<string> HasConditionManifest { get; set; }
/// <summary>
/// Reference to cost manifests
/// A cost manifest can never be a third party reference, so a url is expected
/// </summary>
public List<string> HasCostManifest { get; set; }
/// <summary>
/// Alignment map owned by the agent.
/// List of CTIDs. BNodes are not allowed.
/// ceterms:hasAlignmentMap
/// </summary>
public List<string> HasAlignmentMap { get; set; }
/// <summary>
/// An inventory or listing of resources maintained by this Organization
/// </summary>
public List<string> HasCatalog { get; set; }
/// <summary>
/// Type of industry; select from an existing enumeration of such types such as the SIC, NAICS, and ISIC classifications.
/// </summary>
public List<FrameworkItem> IndustryType { get; set; }
/// <summary>
/// AlternativeIndustryType
/// Industries that are not found in a formal framework can be still added using AlternativeIndustryType.
/// Any industries added using this property will be added to or appended to the IndustryType output.
/// </summary>
public List<string> AlternativeIndustryType { get; set; } = new List<string>();
/// <summary>
/// Language map list for AlternativeIndustryType
/// </summary>
public LanguageMapList AlternativeIndustryType_Map { get; set; } = new LanguageMapList();
/// <summary>
/// Jurisdiction Profile
/// Geo-political information about applicable geographic areas and their exceptions.
/// <see href="https://credreg.net/ctdl/terms/JurisdictionProfile"></see>
/// </summary>
public List<JurisdictionProfile> Jurisdiction { get; set; }
/// <summary>
/// Type of official status of this resource. Select a valid concept from the LifeCycleStatus concept scheme.
/// Provide the string value. API will format correctly. The name space of lifecycle doesn't have to be included
/// Required
/// lifecycle:Developing, lifecycle:Active", lifecycle:Suspended, lifecycle:Ceased
/// <see href="https://credreg.net/ctdl/terms/LifeCycleStatus">ceterms:LifeCycleStatus</see>
/// </summary>
public string LifeCycleStatusType { get; set; }
/// <summary>
/// Webpage or online document that defines or explains the mission and goals of the organization.
/// URI
/// </summary>
public string MissionAndGoalsStatement { get; set; }
/// <summary>
/// Textual statement of the mission and goals of the organization.
/// </summary>
public string MissionAndGoalsStatementDescription { get; set; }
/// <summary>
/// Alternately can provide a language map
/// </summary>
[JsonProperty( PropertyName = "ceterms:missionAndGoalsStatementDescription" )]
public LanguageMap MissionAndGoalsStatementDescriptionLangMap { get; set; } = new LanguageMap();
/// <summary>
/// North American Industry Classification System (NAICS) code of an organization or business person.
/// A list of NAICS codes
/// </summary>
public List<string> Naics { get; set; }
/// <summary>
/// Resource over which the organization or person claims legal title.
/// Could be any of Credential, Assessment, LearningOpportunity, Pathway,etc.
/// It is not necessary to include owns/offers when publishing an organization. It is considered a best practice to use the OwnedBy, OfferedBy properties of credential, etc to establish the relationships.
/// </summary>
public List<EntityReference> Owns { get; set; }
/// <summary>
/// Resource offered or conferred by the organization or person.
/// See Owns for best pratice recommendation
/// </summary>
public List<EntityReference> Offers { get; set; }
/// <summary>
/// A resource that unambiguously indicates the identity of the resource being described.
/// Resources that may indicate identity include, but are not limited to, descriptions of entities in open databases such as DBpedia and Wikidata or social media accounts such as FaceBook and LinkedIn.
/// </summary>
public List<string> SameAs { get; set; }
#region Quality Assurance IN - Jurisdiction based Quality Assurance (INs)
// There are currently two separate approaches to publishing properties like assertedIn
// - Publish all 'IN' properties using JurisdictionAssertions
// - Publish using ehe separate specific properties like AccreditedIn, ApprovedIn, etc
// 2010-01-06 The property JurisdictionAssertions may become obsolete soon. We recomend to NOT use this property.
/// <summary>
/// List of Organizations that accredit this organization in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> AccreditedIn { get; set; } = new List<JurisdictionProfile>();
/// <summary>
/// List of Organizations that approve this organization in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> ApprovedIn { get; set; } = new List<JurisdictionProfile>();
/// <summary>
/// List of Organizations that recognize this organization in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> RecognizedIn { get; set; } = new List<JurisdictionProfile>();
/// <summary>
/// List of Organizations that regulate this organization in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> RegulatedIn { get; set; } = new List<JurisdictionProfile>();
#endregion
#region Quality Assurance Performed
// Organization performs QA on these entities
/// <summary>
/// Credential, assessment, organization, or learning opportunity for which this organization provides official authorization or approval based on prescribed standards or criteria.
/// </summary>
public List<EntityReference> Accredits { get; set; }
/// <summary>
/// Credential, assessment, learning opportunity, or organization for which this organization pronounces favorable judgment.
/// </summary>
public List<EntityReference> Approves { get; set; }
/// <summary>
/// Resource that the agent recommends, endorses, indicates preference for, or otherwise provides a positive judgment.
/// https://credreg.net/ctdl/terms/recognizes
/// range:
/// ceasn:CompetencyFramework, ceterms:AssessmentProfile, ceterms:Course, all Credentials, all Organizations, ceterms:LearningOpportunityProfile, ceterms:LearningProgram, ceterms:TransferValueProfile
/// </summary>
public List<EntityReference> Recognizes { get; set; }
/// <summary>
/// Credential, learning opportunity, assessment or organization that this quality assurance organization monitors, including enforcement of applicable legal requirements or standards.
/// </summary>
public List<EntityReference> Regulates { get; set; } = new List<EntityReference>();
/// <summary>
/// Credential type that has its validity extended by the organization or person.
/// </summary>
public List<EntityReference> Renews { get; set; }
/// <summary>
/// Credential type that can be invalidated or retracted by the awarding agent.
/// </summary>
public List<EntityReference> Revokes { get; set; }
#endregion
#region -- Process Profiles --
/// <summary>
/// Entity describing the process by which a credential, assessment, organization, or aspects of it, are administered.
/// </summary>
public List<ProcessProfile> AdministrationProcess { get; set; }
/// <summary>
/// Entity describing the process by which a credential, or aspects of it, were created.
/// </summary>
public List<ProcessProfile> DevelopmentProcess { get; set; }
/// <summary>
/// Entity describing the process by which the credential is maintained including review and updating.
/// </summary>
public List<ProcessProfile> MaintenanceProcess { get; set; }
/// <summary>
/// Formal process for objecting to decisions of the organization regarding credentials, assessments or processes.
/// </summary>
public List<ProcessProfile> AppealProcess { get; set; }
/// <summary>
/// Process for handling complaints about a credential, or aspects of it including related learning opportunities and assessments.
/// </summary>
public List<ProcessProfile> ComplaintProcess { get; set; }
/// <summary>
/// Entity that describes the process by which the credential, or aspects of it, are reviewed.
/// </summary>
public List<ProcessProfile> ReviewProcess { get; set; }
/// <summary>
/// Entity describing the process by which the credential is revoked.
/// </summary>
public List<ProcessProfile> RevocationProcess { get; set; }
#endregion
/// <summary>
/// Organization in a subordinate or lower position than a parent organization.
/// </summary>
public List<OrganizationReference> SubOrganization { get; set; }
/// <summary>
/// Resource that replaces this resource.
/// full URL OR CTID (recommended)
/// </summary>
public List<string> SupersededBy { get; set; }
/// <summary>
/// Resource that this resource replaces.
/// full URL OR CTID (recommended)
/// </summary>
public List<string> Supersedes { get; set; }
/// <summary>
/// Webpage or online document that defines or explains the nature of transfer value handled by the organization.
/// URI
/// </summary>
public string TransferValueStatement { get; set; }
/// <summary>
/// Description of the nature of transfer value handled by the organization.
/// </summary>
public string TransferValueStatementDescription { get; set; }
/// <summary>
/// Alternately can provide a language map
/// </summary>
[JsonProperty( PropertyName = "ceterms:transferValueStatementDescription" )]
public LanguageMap TransferValueStatementDescriptionLangMap { get; set; } = new LanguageMap();
/// <summary>
/// Webpage or online document that defines or explains the nature of support services offered by the organization.
/// </summary>
public string SupportServiceStatement { get; set; }
/// <summary>
/// Description of the nature of support services by the organization.
/// </summary>
public string SupportServiceStatementDescription { get; set; }
/// <summary>
/// Alternately can provide a language map
/// </summary>
[JsonProperty( PropertyName = "ceterms:supportServiceStatementDescription" )]
public LanguageMap SupportServiceStatementDescriptionLangMap { get; set; }
/// <summary>
/// LIst of CTIDS for existing Verification Service profiles
/// </summary>
public List<string> HasVerificationService { get; set; } = new List<string>();
}
}