-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCrashDriver.jschema
580 lines (580 loc) · 25 KB
/
CrashDriver.jschema
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"exch:CrashDriverInfo": {
"description": "A collection of information about the driver of a vehicle in a crash.",
"anyOf": [
{"$ref": "#/definitions/exch:CrashDriverInfoType"},
{
"type": "array",
"items": {"$ref": "#/definitions/exch:CrashDriverInfoType"}
}
]
},
"ext:PersonDefenestrationIndicator": {
"description": "True if this person was thrown through a window; false otherwise.",
"type": "boolean"
},
"ext:PrivacyCode": {
"description": "A code representing a kind of property.",
"type": "array",
"items": {"$ref": "#/definitions/ext:PrivacyCodeType"},
"maxItems": 2
},
"ext:PrivacyMetadata": {
"description": "Metadata about Privacy.",
"type": "array",
"items": {"$ref": "#/definitions/ext:PrivacyMetadataType"}
},
"j:Charge": {
"description": "A formal allegation that a specific person has committed a specific offense.",
"anyOf": [
{
"type": "array",
"items": {"$ref": "#/definitions/j:ChargeType"}
},
{"$ref": "#/definitions/j:ChargeType"},
{
"type": "object",
"properties": {
"@id": {"type": "string"}
}
}
]
},
"j:ChargeDescriptionText": {
"description": "A plain language description of a charge.",
"$ref": "#/definitions/nc:TextType"
},
"j:ChargeFelonyIndicator": {
"description": "True if a charge refers to a felony offense; false otherwise.",
"type": "boolean"
},
"j:Crash": {
"description": "A traffic accident.",
"$ref": "#/definitions/j:CrashType"
},
"j:CrashDriver": {
"description": "A motor vehicle driver involved into a traffic accident.",
"$ref": "#/definitions/j:CrashDriverType"
},
"j:CrashPassenger": {
"description": "A motor vehicle passenger involved in a traffic accident.",
"type": "array",
"items": {"$ref": "#/definitions/j:CrashPassengerType"}
},
"j:CrashPerson": {
"description": "A person involved in a traffic accident.",
"type": "array",
"items": {"$ref": "#/definitions/j:CrashPersonType"}
},
"j:CrashPersonInjury": {
"description": "An injury received by a person involved in a traffic accident.",
"type": "array",
"items": {"$ref": "#/definitions/nc:InjuryType"}
},
"j:CrashVehicle": {
"description": "A motor vehicle involved in a traffic accident.",
"$ref": "#/definitions/j:CrashVehicleType"
},
"j:CriminalInformationIndicator": {
"description": "True if the information specified is classified as criminal information; false if it is not classified as criminal information.",
"type": "boolean"
},
"j:DriverLicense": {
"description": "A license issued to a person granting driving privileges.",
"$ref": "#/definitions/j:DriverLicenseType"
},
"j:DriverLicenseCardIdentification": {
"description": "An identification that is affixed to the raw materials (card stock, laminate, etc.) used in producing driver licenses and ID cards. The numbers are issued by the material's manufacturer and provide a unique reference to a card within a jurisdiction.",
"$ref": "#/definitions/nc:IdentificationType"
},
"j:InjurySeverityCode": {
"description": "A severity of an injury received by a person, such as in a traffic accident or crash.",
"$ref": "#/definitions/aamva_d20:AccidentSeverityCodeType"
},
"j:IntelligenceInformationIndicator": {
"description": "True if the information specified is intelligence information; false otherwise.",
"type": "boolean"
},
"j:JuvenileAsAdultIndicator": {
"description": "True if a juvenile is to be processed as an adult; false otherwise.",
"type": "boolean"
},
"j:Metadata": {
"description": "Information that further qualifies the kind of data represented.",
"$ref": "#/definitions/j:MetadataType"
},
"j:PersonChargeAssociation": {
"description": "An association between a person and a charge issued to that person.",
"type": "array",
"items": {"$ref": "#/definitions/j:PersonChargeAssociationType"}
},
"nc:ActivityDate": {
"description": "A date of an activity.",
"$ref": "#/definitions/nc:DateType"
},
"nc:ContactEmailID": {
"description": "An electronic mailing address by which a person or organization may be contacted.",
"type": "array",
"items": {"type": "string"}
},
"nc:ContactInformation": {
"description": "A set of details about how to contact a person or an organization.",
"$ref": "#/definitions/nc:ContactInformationType"
},
"nc:Date": {
"description": "A full date.",
"type": "string",
"format": "date"
},
"nc:GeographicCoordinateLatitude": {
"description": "A measurement of the angular distance between a point on the Earth and the Equator.",
"$ref": "#/definitions/nc:LatitudeCoordinateType"
},
"nc:GeographicCoordinateLongitude": {
"description": "A measurement of the angular distance between a point on the Earth and the Prime Meridian.",
"$ref": "#/definitions/nc:LongitudeCoordinateType"
},
"nc:IdentificationID": {
"description": "An identifier.",
"type": "string"
},
"nc:InjuryDescriptionText": {
"description": "A description of an injury.",
"$ref": "#/definitions/nc:TextType"
},
"nc:InjurySeverityText": {
"description": "A severity of an injury received by a person, such as in a traffic accident or crash.",
"$ref": "#/definitions/nc:TextType"
},
"nc:LatitudeDegreeValue": {
"description": "A value that specifies the degree of a latitude. The value comes from a restricted range between -90 (inclusive) and +90 (inclusive).",
"$ref": "#/definitions/nc:LatitudeDegreeType"
},
"nc:LatitudeMinuteValue": {
"description": "A latitude value that specifies a minute of a degree. The value comes from a restricted range of 0 (inclusive) to 60 (exclusive).",
"$ref": "#/definitions/nc:AngularMinuteType"
},
"nc:LatitudeSecondValue": {
"description": "A latitude value that specifies a second of a minute. The value comes from a restricted range of 0 (inclusive) to 60 (exclusive).",
"$ref": "#/definitions/nc:AngularSecondType"
},
"nc:Location": {
"description": "A geospatial location.",
"$ref": "#/definitions/nc:LocationType"
},
"nc:Location2DGeospatialCoordinate": {
"description": "A location identified by a latitude and longitude.",
"$ref": "#/definitions/nc:Location2DGeospatialCoordinateType"
},
"nc:LongitudeDegreeValue": {
"description": "A value that specifies the degree of a longitude. The value comes from a restricted range between -180 (inclusive) and +180 (inclusive).",
"$ref": "#/definitions/nc:LongitudeDegreeType"
},
"nc:LongitudeMinuteValue": {
"description": "A longitude value that specifies a minute of a degree. The value comes from a restricted range of 0 (inclusive) to 60 (exclusive).",
"$ref": "#/definitions/nc:AngularMinuteType"
},
"nc:LongitudeSecondValue": {
"description": "A longitude value that specifies a second of a minute. The value comes from a restricted range of 0 (inclusive) to 60 (exclusive).",
"$ref": "#/definitions/nc:AngularSecondType"
},
"nc:Person": {
"description": "A human being.",
"anyOf": [
{
"type": "array",
"items": {"$ref": "#/definitions/nc:PersonType"}
},
{"$ref": "#/definitions/nc:PersonType"},
{
"type": "object",
"properties": {
"@id": {"type": "string"}
}
}
]
},
"nc:PersonBirthDate": {
"description": "A date a person was born.",
"$ref": "#/definitions/nc:DateType"
},
"nc:PersonGivenName": {
"description": "A first name of a person.",
"$ref": "#/definitions/nc:PersonNameTextType"
},
"nc:PersonMiddleName": {
"description": "A middle name of a person.",
"type": "array",
"items": {"$ref": "#/definitions/nc:PersonNameTextType"}
},
"nc:PersonName": {
"description": "A combination of names and/or titles by which a person is known.",
"type": "array",
"items": {"$ref": "#/definitions/nc:PersonNameType"}
},
"nc:PersonSurName": {
"description": "A last name or family name of a person.",
"$ref": "#/definitions/nc:PersonNameTextType"
},
"nc:RoleOfPerson": {
"description": "A person of whom the role object is a function.",
"anyOf": [
{
"type": "array",
"items": {"$ref": "#/definitions/nc:PersonType"}
},
{"$ref": "#/definitions/nc:PersonType"},
{"$ref": "#/definitions/nc:PersonType"},
{"$ref": "#/definitions/nc:PersonType"},
{"$ref": "#/definitions/nc:PersonType"},
{
"type": "object",
"properties": {
"@id": {"type": "string"}
}
}
]
},
"nc:personNameCommentText": {
"description": "A comment about a kind of name for a person.",
"type": "string"
}
},
"definitions": {
"aamva_d20:AccidentSeverityCodeType": {
"description": "A data type for severity levels of an accident.",
"type": "string",
"oneOf": [
{
"const": "1",
"description": "Fatal Accident"
},
{
"const": "2",
"description": "Incapacitating Injury Accident"
},
{
"const": "3",
"description": "Non-incapacitating Evident Injury"
},
{
"const": "4",
"description": "Possible Injury Accident"
},
{
"const": "5",
"description": "Non-injury Accident"
},
{
"const": "9",
"description": "Unknown"
}
]
},
"exch:CrashDriverInfoType": {
"description": "A data type for a collection of information about the driver of a vehicle in a crash.",
"type": "object",
"properties": {
"nc:Person": {"$ref": "#/properties/nc:Person"},
"j:Crash": {"$ref": "#/properties/j:Crash"},
"j:PersonChargeAssociation": {"$ref": "#/properties/j:PersonChargeAssociation"},
"j:Charge": {"$ref": "#/properties/j:Charge"},
"j:Metadata": {"$ref": "#/properties/j:Metadata"},
"ext:PrivacyMetadata": {"$ref": "#/properties/ext:PrivacyMetadata"}
},
"required": [
"nc:Person",
"j:Crash"
]
},
"ext:PrivacyCodeType": {
"description": "A data type for a code representing a kind of property.",
"type": "string",
"oneOf": [
{
"const": "PII",
"description": "Personally Identifiable Information"
},
{
"const": "MEDICAL",
"description": "Medical Information"
}
]
},
"ext:PrivacyMetadataType": {
"description": "A data type for metadata about Privacy.",
"type": "object",
"properties": {
"ext:PrivacyCode": {"$ref": "#/properties/ext:PrivacyCode"}
}
},
"j:ChargeType": {
"description": "A data type for a formal allegation that a specific person has committed a specific offense.",
"type": "object",
"properties": {
"j:ChargeDescriptionText": {"$ref": "#/properties/j:ChargeDescriptionText"},
"j:ChargeFelonyIndicator": {"$ref": "#/properties/j:ChargeFelonyIndicator"}
},
"required": ["j:ChargeDescriptionText"]
},
"j:CrashDriverType": {
"description": "A data type for a motor vehicle driver involved in a traffic accident.",
"type": "object",
"properties": {
"nc:RoleOfPerson": {"$ref": "#/properties/nc:RoleOfPerson"},
"j:DriverLicense": {"$ref": "#/properties/j:DriverLicense"}
},
"required": ["nc:RoleOfPerson"]
},
"j:CrashPassengerType": {
"description": "A data type for a motor vehicle passenger involved into a Traffic Accident.",
"type": "object",
"properties": {
"nc:RoleOfPerson": {"$ref": "#/properties/nc:RoleOfPerson"}
},
"required": ["nc:RoleOfPerson"]
},
"j:CrashPersonType": {
"description": "A data type for any person involved in a traffic accident.",
"type": "object",
"properties": {
"nc:RoleOfPerson": {"$ref": "#/properties/nc:RoleOfPerson"},
"j:CrashPersonInjury": {"$ref": "#/properties/j:CrashPersonInjury"},
"ext:PersonDefenestrationIndicator": {"$ref": "#/properties/ext:PersonDefenestrationIndicator"}
},
"required": ["nc:RoleOfPerson"]
},
"j:CrashType": {
"description": "A data type for a traffic accident.",
"allOf": [
{"$ref": "#/definitions/j:DrivingIncidentType"},
{
"type": "object",
"properties": {
"j:CrashVehicle": {"$ref": "#/properties/j:CrashVehicle"},
"j:CrashPerson": {"$ref": "#/properties/j:CrashPerson"},
"nc:Location": {"$ref": "#/properties/nc:Location"}
},
"required": [
"j:CrashVehicle",
"nc:Location"
]
}
]
},
"j:CrashVehicleType": {
"description": "A data type for a motor vehicle involved in a traffic accident.",
"type": "object",
"properties": {
"j:CrashDriver": {"$ref": "#/properties/j:CrashDriver"},
"j:CrashPassenger": {"$ref": "#/properties/j:CrashPassenger"}
},
"required": ["j:CrashDriver"]
},
"j:DriverLicenseBaseType": {"description": "A data type for an authorization issued to a driver granting driving privileges."},
"j:DriverLicenseType": {
"description": "A data type for a license issued to a person granting driving privileges.",
"allOf": [
{"$ref": "#/definitions/j:DriverLicenseBaseType"},
{
"type": "object",
"properties": {
"j:DriverLicenseCardIdentification": {"$ref": "#/properties/j:DriverLicenseCardIdentification"},
"nc:ContactInformation": {"$ref": "#/properties/nc:ContactInformation"}
},
"required": ["j:DriverLicenseCardIdentification"]
}
]
},
"j:DrivingIncidentType": {
"description": "A data type for details of an incident involving a vehicle.",
"$ref": "#/definitions/nc:IncidentType"
},
"j:MetadataType": {
"description": "A data type for information that further qualifies the kind of data represented.",
"type": "object",
"properties": {
"j:CriminalInformationIndicator": {"$ref": "#/properties/j:CriminalInformationIndicator"},
"j:IntelligenceInformationIndicator": {"$ref": "#/properties/j:IntelligenceInformationIndicator"}
}
},
"j:PersonChargeAssociationType": {
"description": "A data type for an association between a person and a charge.",
"allOf": [
{"$ref": "#/definitions/nc:AssociationType"},
{
"type": "object",
"properties": {
"nc:Person": {"$ref": "#/properties/nc:Person"},
"j:Charge": {"$ref": "#/properties/j:Charge"},
"j:JuvenileAsAdultIndicator": {"$ref": "#/properties/j:JuvenileAsAdultIndicator"}
},
"required": [
"nc:Person",
"j:Charge"
]
}
]
},
"nc:ActivityType": {
"description": "A data type for a single or set of related actions, events, or process steps.",
"type": "object",
"properties": {
"nc:ActivityDate": {"$ref": "#/properties/nc:ActivityDate"}
},
"required": ["nc:ActivityDate"]
},
"nc:AngularMinuteType": {
"description": "A data type for a minute of a degree, with a restricted range of 0 (inclusive) to 60 (exclusive).",
"type": "number",
"minimum": 0.0,
"maximum": 60.0
},
"nc:AngularSecondType": {
"description": "A data type for a second of a minute, with a restricted range of 0 (inclusive) to 60 (exclusive).",
"type": "number",
"minimum": 0.0,
"maximum": 60.0
},
"nc:AssociationType": {"description": "A data type for an association, connection, relationship, or involvement somehow linking people, things, and/or activities together."},
"nc:ContactInformationType": {
"description": "A data type for how to contact a person or an organization.",
"type": "object",
"properties": {
"nc:ContactEmailID": {"$ref": "#/properties/nc:ContactEmailID"}
},
"required": ["nc:ContactEmailID"]
},
"nc:DateType": {
"description": "A data type for a calendar date.",
"type": "object",
"properties": {
"nc:Date": {"$ref": "#/properties/nc:Date"}
},
"required": ["nc:Date"]
},
"nc:IdentificationType": {
"description": "A data type for a representation of an identity.",
"type": "object",
"properties": {
"nc:IdentificationID": {"$ref": "#/properties/nc:IdentificationID"}
},
"required": ["nc:IdentificationID"]
},
"nc:IncidentType": {
"description": "A data type for an occurrence or an event that may require a response.",
"$ref": "#/definitions/nc:ActivityType"
},
"nc:InjuryType": {
"description": "A data type for a form of harm or damage sustained by a person.",
"type": "object",
"properties": {
"nc:InjuryDescriptionText": {"$ref": "#/properties/nc:InjuryDescriptionText"},
"j:InjurySeverityCode": {"$ref": "#/properties/j:InjurySeverityCode"},
"nc:InjurySeverityText": {"$ref": "#/properties/nc:InjurySeverityText"}
},
"allOf": [
{
"oneOf": [
{
"required": ["j:InjurySeverityCode"]
},
{
"required": ["nc:InjurySeverityText"]
}
]
},
{
"required": ["nc:InjuryDescriptionText"]
}
]
},
"nc:LatitudeCoordinateType": {
"description": "A data type for a measurement of the angular distance between a point on the Earth and the Equator.",
"type": "object",
"properties": {
"nc:LatitudeDegreeValue": {"$ref": "#/properties/nc:LatitudeDegreeValue"},
"nc:LatitudeMinuteValue": {"$ref": "#/properties/nc:LatitudeMinuteValue"},
"nc:LatitudeSecondValue": {"$ref": "#/properties/nc:LatitudeSecondValue"}
},
"required": ["nc:LatitudeDegreeValue"]
},
"nc:LatitudeDegreeType": {
"description": "A data type for a degree of latitude.",
"type": "number",
"minimum": -90.0,
"maximum": 90.0
},
"nc:Location2DGeospatialCoordinateType": {
"description": "A data type for a location identified by latitude and longitude.",
"type": "object",
"properties": {
"nc:GeographicCoordinateLatitude": {"$ref": "#/properties/nc:GeographicCoordinateLatitude"},
"nc:GeographicCoordinateLongitude": {"$ref": "#/properties/nc:GeographicCoordinateLongitude"}
},
"required": [
"nc:GeographicCoordinateLatitude",
"nc:GeographicCoordinateLongitude"
]
},
"nc:LocationType": {
"description": "A data type for geospatial location.",
"type": "object",
"properties": {
"nc:Location2DGeospatialCoordinate": {"$ref": "#/properties/nc:Location2DGeospatialCoordinate"}
},
"required": ["nc:Location2DGeospatialCoordinate"]
},
"nc:LongitudeCoordinateType": {
"description": "A data type for a measurement of the angular distance between a point on the Earth and the Prime Meridian.",
"type": "object",
"properties": {
"nc:LongitudeDegreeValue": {"$ref": "#/properties/nc:LongitudeDegreeValue"},
"nc:LongitudeMinuteValue": {"$ref": "#/properties/nc:LongitudeMinuteValue"},
"nc:LongitudeSecondValue": {"$ref": "#/properties/nc:LongitudeSecondValue"}
},
"required": ["nc:LongitudeDegreeValue"]
},
"nc:LongitudeDegreeType": {
"description": "A data type for a degree of longitude.",
"type": "number",
"minimum": -180.0,
"maximum": 180.0
},
"nc:PersonNameTextType": {
"description": "A data type for a name by which a person is known, referred, or addressed.",
"$ref": "#/definitions/nc:ProperNameTextType"
},
"nc:PersonNameType": {
"description": "A data type for a combination of names and/or titles by which a person is known.",
"type": "object",
"properties": {
"nc:PersonGivenName": {"$ref": "#/properties/nc:PersonGivenName"},
"nc:PersonMiddleName": {"$ref": "#/properties/nc:PersonMiddleName"},
"nc:PersonSurName": {"$ref": "#/properties/nc:PersonSurName"},
"nc:personNameCommentText": {"$ref": "#/properties/nc:personNameCommentText"}
},
"required": ["nc:PersonSurName"]
},
"nc:PersonType": {
"description": "A data type for a human being.",
"type": "object",
"properties": {
"nc:PersonBirthDate": {"$ref": "#/properties/nc:PersonBirthDate"},
"nc:PersonName": {"$ref": "#/properties/nc:PersonName"}
},
"required": ["nc:PersonName"]
},
"nc:ProperNameTextType": {
"description": "A data type for a word or phrase by which a person or thing is known, referred, or addressed.",
"$ref": "#/definitions/nc:TextType"
},
"nc:TextType": {
"description": "A data type for a character string.",
"type": "string"
}
}
}