hsds_transformer 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1007 @@
1
+ {
2
+ "name": "human_services_data",
3
+ "title": "Human Services Data Specification Template",
4
+ "description": "This is a template datapackage.json file for producing a Tabular Data Package of data according to the Human Services Data Specification. You should provide an edited version of this file as part of any datapackage you provide, updating the title, description, license and homepage information to reflect the data you are publishing.",
5
+ "license": {
6
+ "url": "https://creativecommons.org/licenses/by-sa/4.0/",
7
+ "type": "CC-BY-SA-4.0",
8
+ "name": "Creative Commons Attribution-ShareAlike 4.0"
9
+ },
10
+ "version": "1.0",
11
+ "homepage": "http://docs.openreferral.org",
12
+ "resources": [{
13
+ "name": "organization",
14
+ "path": "organizations.csv",
15
+ "description": "The organization record is used to provide basic description and details about each organization delivering services. Each service should be linked to the organization responsible for its delivery. One organization may deliver many services.",
16
+ "format": "csv",
17
+ "mediatype": "text/csv",
18
+ "schema": {
19
+ "fields": [{
20
+ "name": "id",
21
+ "type": "string",
22
+ "description": "Each organization must have a unique identifier.",
23
+ "constraints": {
24
+ "required": true,
25
+ "unique": true
26
+ }
27
+ },
28
+ {
29
+ "name": "name",
30
+ "type": "string",
31
+ "description": "The official or public name of the organization.",
32
+ "constraints": {
33
+ "required": true
34
+ }
35
+ },
36
+ {
37
+ "name": "alternate_name",
38
+ "type": "string",
39
+ "description": "Alternative or commonly used name for the organization.",
40
+ "constraints": {
41
+ "required": false
42
+ }
43
+ },
44
+ {
45
+ "name": "description",
46
+ "type": "string",
47
+ "description": "A brief summary about the organization. It can contain markup such as HTML or Markdown.",
48
+ "constraints": {
49
+ "required": true
50
+ }
51
+ },
52
+ {
53
+ "name": "email",
54
+ "type": "string",
55
+ "description": "The contact e-mail address for the organization.",
56
+ "format": "email",
57
+ "constraints": {
58
+ "required": false
59
+ }
60
+ },
61
+ {
62
+ "name": "url",
63
+ "type": "string",
64
+ "format": "url",
65
+ "description": "The URL (website address) of the organization.",
66
+ "constraints": {
67
+ "required": false
68
+ }
69
+ },
70
+ {
71
+ "name": "tax_status",
72
+ "type": "string",
73
+ "description": "Government assigned tax designation for tax-exempt organizations.",
74
+ "constraints": {
75
+ "required": false
76
+ }
77
+ },
78
+ {
79
+ "name": "tax_id",
80
+ "type": "string",
81
+ "description": "A government issued identifier used for the purpose of tax administration.",
82
+ "constraints": {
83
+ "required": false
84
+ }
85
+ },
86
+ {
87
+ "name": "year_incorporated",
88
+ "type": "date",
89
+ "format": "%Y",
90
+ "description": "The year in which the organization was legally formed.",
91
+ "constraints": {
92
+ "required": false
93
+ }
94
+ },
95
+ {
96
+ "name": "legal_status",
97
+ "type": "string",
98
+ "description": "The legal status defines the conditions that an organization is operating under; e.g. non-profit, private corporation or a government organization.",
99
+ "constraints": {
100
+ "required": false
101
+ }
102
+ }
103
+ ],
104
+ "primaryKey": "id"
105
+ }
106
+ },{
107
+ "name": "service",
108
+ "description": "Services are provided by organizations to a range of different groups. Details on where each service is delivered are contained in the services_at_location table.",
109
+ "path": "services.csv",
110
+ "format": "csv",
111
+ "mediatype": "text/csv",
112
+ "schema": {
113
+ "fields": [{
114
+ "name": "id",
115
+ "type": "string",
116
+ "description": "Each service must have a unique identifier.",
117
+ "constraints": {
118
+ "required": true,
119
+ "unique": true
120
+ }
121
+ },
122
+ {
123
+ "name": "organization_id",
124
+ "type": "string",
125
+ "description": "The identifier of the organization that provides this service.",
126
+ "constraints": {
127
+ "required": true
128
+ }
129
+
130
+ },
131
+ {
132
+ "name": "program_id",
133
+ "description": "The identifier of the program this service is delivered under.",
134
+ "type": "string",
135
+ "constraints": {
136
+ "required": false
137
+ }
138
+ },
139
+ {
140
+ "name": "name",
141
+ "description": "The official or public name of the service.",
142
+ "type": "string",
143
+ "constraints": {
144
+ "required": true
145
+ }
146
+ },
147
+ {
148
+ "name": "alternate_name",
149
+ "description": "Alternative or commonly used name for a service.",
150
+ "type": "string",
151
+ "constraints": {
152
+ "required": false
153
+ }
154
+
155
+ },
156
+ {
157
+ "name": "description",
158
+ "description": "A description of the service.",
159
+ "type": "string",
160
+ "constraints": {
161
+ "required": false
162
+ }
163
+ },
164
+ {
165
+ "name": "url",
166
+ "description": "URL of the service",
167
+ "type": "string",
168
+ "format": "url",
169
+ "constraints": {
170
+ "required": false
171
+ }
172
+ },
173
+ {
174
+ "name": "email",
175
+ "description": "Email address for the service",
176
+ "type": "string",
177
+ "format": "email",
178
+ "constraints": {
179
+ "required": false
180
+ }
181
+ },
182
+ {
183
+ "name": "status",
184
+ "description": "The current status of the service.",
185
+ "type": "string",
186
+ "constraints": {
187
+ "enum": ["active", "inactive", "defunct", "temporarily closed"],
188
+ "required": true
189
+ }
190
+ },
191
+ {
192
+ "name": "interpretation_services",
193
+ "description": "A description of any interpretation services available for accessing this service.",
194
+ "type": "string",
195
+ "constraints": {
196
+ "required": false
197
+ }
198
+ },
199
+ {
200
+ "name": "application_process",
201
+ "description": "The steps needed to access the service.",
202
+ "type": "string",
203
+ "constraints": {
204
+ "required": false
205
+ }
206
+ },
207
+ {
208
+ "name": "wait_time",
209
+ "description": "Time a client may expect to wait before receiving a service.",
210
+ "type": "string",
211
+ "constraints": {
212
+ "required": false
213
+ }
214
+ },
215
+ {
216
+ "name": "fees",
217
+ "description": "Details of any charges for service users to access this service.",
218
+ "type": "string",
219
+ "constraints": {
220
+ "required": false
221
+ }
222
+ },
223
+ {
224
+ "name": "accreditations",
225
+ "description": "Details of any accreditations. Accreditation is the formal evaluation of an organization or program against best practice standards set by an accrediting organization.",
226
+ "type": "string",
227
+ "constraints": {
228
+ "required": false
229
+ }
230
+ },
231
+ {
232
+ "name": "licenses",
233
+ "description": "An organization may have a license issued by a government entity to operate legally. A list of any such licenses can be provided here.",
234
+ "type": "string",
235
+ "constraints": {
236
+ "required": false
237
+ }
238
+ }
239
+ ],
240
+ "primaryKey": "id",
241
+ "foreignKeys": [{
242
+ "fields": "organization_id",
243
+ "reference": {
244
+ "resource": "organization",
245
+ "fields": "id"
246
+ }
247
+ },
248
+ {
249
+ "fields": "program_id",
250
+ "reference": {
251
+ "resource": "program",
252
+ "fields": "id"
253
+ }
254
+ }
255
+ ]
256
+ }
257
+ },
258
+ {
259
+ "name": "service_taxonomy",
260
+ "path": "services_taxonomy.csv",
261
+ "description": "The service taxonomy creates a link between a service and one or more classifications that describe the nature of the service provided.",
262
+ "format": "csv",
263
+ "mediatype": "text/csv",
264
+ "schema": {
265
+ "fields": [{
266
+ "name": "id",
267
+ "type": "string",
268
+ "description": "Each service must have a unique identifier.",
269
+ "constraints": {
270
+ "required": true,
271
+ "unique": true
272
+ }
273
+ },
274
+ {
275
+ "name": "service_id",
276
+ "description": "The identifier of the service at a given location.",
277
+ "type": "string",
278
+ "constraints": {
279
+ "required": true
280
+ }
281
+ },
282
+ {
283
+ "name": "taxonomy_id",
284
+ "description": "The identifier of this classification from the taxonomy table.",
285
+ "type": "string",
286
+ "constraints": {
287
+ "required": true
288
+ }
289
+ },
290
+ {
291
+ "name": "taxonomy_detail",
292
+ "description": "For advanced uses, this field can indicate a constraint on this classification, using * to combine two taxonomy terms. For example: 'Food Pantry*Homeless' (where 'Food Pantry' and 'Homeless' are identifiers in the taxonomy table) to indicate a food pantry service for homeless clients, but not available to other client groups. In this example, there would be two entries in service_taxonomy, one with 'Food Pantry' and one for 'Homeless' in the taxonomy_id field, but both with the same 'Food Pantry*Homeless' value in the taxonomy_detail field.",
293
+ "type": "string"
294
+ }
295
+ ],
296
+ "primaryKey": "id",
297
+ "foreignKeys": [{
298
+ "fields": "service_id",
299
+ "reference": {
300
+ "resource": "service",
301
+ "fields": "id"
302
+ }
303
+ },
304
+ {
305
+ "fields": "taxonomy_id",
306
+ "reference": {
307
+ "resource": "taxonomy",
308
+ "fields": "id"
309
+ }
310
+ }
311
+ ]
312
+ }
313
+ },
314
+ {
315
+ "name": "service_at_location",
316
+ "path": "services_at_location.csv",
317
+ "description": "The services at location table creates a link between a service and a specific location.",
318
+ "format": "csv",
319
+ "mediatype": "text/csv",
320
+ "schema": {
321
+ "fields": [{
322
+ "name": "id",
323
+ "description": "Each entry must have a unique identifier.",
324
+ "type": "string",
325
+ "constraints": {
326
+ "required": true,
327
+ "unique": true
328
+ }
329
+ },
330
+ {
331
+ "name": "service_id",
332
+ "description": "The identifier of the service at a given location.",
333
+ "type": "string",
334
+ "constraints": {
335
+ "required": true
336
+ }
337
+ },
338
+ {
339
+ "name": "location_id",
340
+ "description": "The identifier of the location where this service operates.",
341
+ "type": "string",
342
+ "constraints": {
343
+ "required": true
344
+ }
345
+ },
346
+ {
347
+ "name": "description",
348
+ "description": "Any additional information that should be displayed to users about the service at this specific location.",
349
+ "type": "string"
350
+ }
351
+ ],
352
+ "primaryKey": "id",
353
+ "foreignKeys": [{
354
+ "fields": "service_id",
355
+ "reference": {
356
+ "resource": "service",
357
+ "fields": "id"
358
+ }
359
+ },
360
+ {
361
+ "fields": "location_id",
362
+ "reference": {
363
+ "resource": "location",
364
+ "fields": "id"
365
+ }
366
+ }
367
+ ]
368
+ }
369
+ },
370
+ {
371
+ "name": "location",
372
+ "path": "locations.csv",
373
+ "description": "The location tables provides details of the locations where organizations operate. Locations may be virtual, and one organization may have many locations.",
374
+ "format": "csv",
375
+ "mediatype": "text/csv",
376
+ "schema": {
377
+ "fields": [{
378
+ "name": "id",
379
+ "description": "Each location must have a unique identifier",
380
+ "type": "string",
381
+ "constraints": {
382
+ "required": true
383
+ }
384
+ },
385
+ {
386
+ "name": "organization_id",
387
+ "description": "Each location entry should be linked to a single organization. This is the organization that is responsible for maintaining information about this location. The identifier of the organization should be given here. Details of the services the organisation delivers at this location should be provided in the services_at_location table.",
388
+ "type": "string"
389
+ },
390
+ {
391
+ "name": "name",
392
+ "description": "The name of the location",
393
+ "type": "string"
394
+ },
395
+ {
396
+ "name": "alternate_name",
397
+ "description": "An alternative name for the location",
398
+ "type": "string"
399
+ },
400
+ {
401
+ "name": "description",
402
+ "description": "A description of this location.",
403
+ "type": "string",
404
+ "constraints": {
405
+ "required": false
406
+ }
407
+ },
408
+ {
409
+ "name": "transportation",
410
+ "description": "A description of the access to public or private transportation to and from the location.",
411
+ "type": "string"
412
+ },
413
+ {
414
+ "name": "latitude",
415
+ "description": "Y coordinate of location expressed in decimal degrees in WGS84 datum.",
416
+ "type": "number"
417
+ },
418
+ {
419
+ "name": "longitude",
420
+ "description": "X coordinate of location expressed in decimal degrees in WGS84 datum.",
421
+ "type": "number"
422
+ }
423
+ ],
424
+ "primaryKey": "id",
425
+ "foreignKeys": [{
426
+ "fields": "organization_id",
427
+ "reference": {
428
+ "resource": "organization",
429
+ "fields": "id"
430
+ }
431
+ }]
432
+ }
433
+ },
434
+ {
435
+ "name": "phone",
436
+ "path": "phones.csv",
437
+ "description": "The phone table contains details of the telephone numbers are used to contact organizations, services, and locations.",
438
+ "format": "csv",
439
+ "mediatype": "text/csv",
440
+ "schema": {
441
+ "fields": [{
442
+ "name": "id",
443
+ "description": "Each entry must have a unique identifier",
444
+ "type": "string",
445
+ "constraints": {
446
+ "required": true
447
+ }
448
+ }, {
449
+ "name": "location_id",
450
+ "description": "The identifier of the location where this phone number is located",
451
+ "type": "string"
452
+ },
453
+ {
454
+ "name": "service_id",
455
+ "description": "The identifier of the service for which this is the phone number",
456
+ "type": "string"
457
+ },
458
+ {
459
+ "name": "organization_id",
460
+ "description": "The identifier of the organisation for which this is the phone number",
461
+ "type": "string"
462
+ },
463
+ {
464
+ "name": "contact_id",
465
+ "description": "The identifier of the contact for which this is the phone number",
466
+ "type": "string"
467
+ },
468
+ {
469
+ "name": "service_at_location_id",
470
+ "description": "The identifier of the 'service at location' table entry, when this phone number is specific to a service in a particular location.",
471
+ "type": "string"
472
+ },
473
+ {
474
+ "name": "number",
475
+ "description": "The phone number",
476
+ "type": "string",
477
+ "constraints": {
478
+ "required": true
479
+ }
480
+ },
481
+ {
482
+ "name": "extension",
483
+ "description": "The extension of the phone number",
484
+ "type": "number"
485
+ },
486
+ {
487
+ "name": "type",
488
+ "description": "Indicates the type of phone service, drawing from the RFC6350 list of types (text (for SMS), voice, fax, cell, video, pager, textphone).",
489
+ "type": "string",
490
+ "constraints": {
491
+ "enum": ["text", "voice", "fax", "cell", "video", "pager", "textphone"]
492
+ }
493
+ },
494
+ {
495
+ "name": "language",
496
+ "description": "A comma separated list of ISO 639-1, or ISO 639-2 [language codes](available at http://www.loc.gov/standards/iso639-2/php/code_list.php) to represent the languages available from this phone service. The three-letter codes from ISO 639-2 provide greater accuracy when describing variants of languages, which may be relevant to particular communities.",
497
+ "type": "string"
498
+ },
499
+ {
500
+ "name": "description",
501
+ "description": "A description providing extra information about the phone service (e.g. any special arrangements for accessing, or details of availability at particular times.",
502
+ "type": "string"
503
+ }
504
+ ],
505
+ "primaryKey": "id",
506
+ "foreignKeys": [{
507
+ "fields": "organization_id",
508
+ "reference": {
509
+ "resource": "organization",
510
+ "fields": "id"
511
+ }
512
+ },
513
+ {
514
+ "fields": "location_id",
515
+ "reference": {
516
+ "resource": "location",
517
+ "fields": "id"
518
+ }
519
+ },
520
+ {
521
+ "fields": "service_id",
522
+ "reference": {
523
+ "resource": "service",
524
+ "fields": "id"
525
+ }
526
+ },
527
+ {
528
+ "fields": "contact_id",
529
+ "reference": {
530
+ "resource": "contact",
531
+ "fields": "id"
532
+ }
533
+ },
534
+ {
535
+ "fields": "service_at_location_id",
536
+ "reference": {
537
+ "resource": "service_at_location",
538
+ "fields": "id"
539
+ }
540
+ }
541
+ ]
542
+ }
543
+ },
544
+ {
545
+ "name": "contact",
546
+ "path": "contacts.csv",
547
+ "description": "The contact table contains details of the named contacts for services and organizations. Note that in the HSDS data package format, if an individual is the contact for multiple services, their details may be duplicated multiple times in this table, each time with a new identifier, and with the rows containing different service ids.",
548
+ "format": "csv",
549
+ "mediatype": "text/csv",
550
+ "schema": {
551
+ "fields": [{
552
+ "name": "id",
553
+ "description": "Each contact must have a unique identifier",
554
+ "type": "string",
555
+ "constraints": {
556
+ "required": true
557
+ }
558
+ },
559
+ {
560
+ "name": "organization_id",
561
+ "description": "The identifier of the organization for which this is a contact",
562
+ "type": "string"
563
+ },
564
+ {
565
+ "name": "service_id",
566
+ "description": "The identifier of the service for which this is a contact",
567
+ "type": "string"
568
+ },
569
+ {
570
+ "name": "service_at_location_id",
571
+ "description": "The identifier of the 'service at location' table entry, when this contact is specific to a service in a particular location.",
572
+ "type": "string"
573
+ },
574
+ {
575
+ "name": "name",
576
+ "description": "The name of the person",
577
+ "type": "string"
578
+ },
579
+ {
580
+ "name": "title",
581
+ "description": "The job title of the person",
582
+ "type": "string"
583
+ },
584
+ {
585
+ "name": "department",
586
+ "description": "The department that the person is part of",
587
+ "type": "string"
588
+ },
589
+ {
590
+ "name": "email",
591
+ "description": "The email address of the person",
592
+ "type": "string",
593
+ "format": "email"
594
+ },
595
+ {
596
+ "name": "phone_number",
597
+ "type": "string"
598
+ },
599
+ {
600
+ "name": "phone_areacode",
601
+ "type": "string"
602
+ },
603
+ {
604
+ "name": "phone_extension",
605
+ "type": "string"
606
+ }
607
+ ],
608
+ "primaryKey": "id",
609
+ "foreignKeys": [{
610
+ "fields": "organization_id",
611
+ "reference": {
612
+ "resource": "organization",
613
+ "fields": "id"
614
+ }
615
+ },
616
+ {
617
+ "fields": "service_id",
618
+ "reference": {
619
+ "resource": "service",
620
+ "fields": "id"
621
+ }
622
+ },
623
+ {
624
+ "fields": "service_at_location_id",
625
+ "reference": {
626
+ "resource": "service_at_location",
627
+ "fields": "id"
628
+ }
629
+ }
630
+ ]
631
+ }
632
+ },
633
+ {
634
+ "name": "physical_address",
635
+ "path": "physical_addresses.csv",
636
+ "description": "The addresses table contains the physical addresses for locations",
637
+ "format": "csv",
638
+ "mediatype": "text/csv",
639
+ "schema": {
640
+ "fields": [{
641
+ "name": "id",
642
+ "description": "Each physical address must have a unique identifier.",
643
+ "type": "string",
644
+ "constraints": {
645
+ "required": true
646
+ }
647
+ },
648
+ {
649
+ "name": "location_id",
650
+ "description": "The identifier of the location for which this is the address.",
651
+ "type": "string"
652
+ },
653
+ {
654
+ "name": "organization_id",
655
+ "description": "The identifier of the organization for which this is the address.",
656
+ "type": "string"
657
+ },
658
+ {
659
+ "name": "attention",
660
+ "description": "The person or entity whose attention should be sought at the location (Often included as 'care of' component of an address.)",
661
+ "type": "string"
662
+ },
663
+ {
664
+ "name": "address_1",
665
+ "description": "The first line(s) of the address, including office, building number and street.",
666
+ "type": "string",
667
+ "constraints": {
668
+ "required": true
669
+ }
670
+ },
671
+ {
672
+ "name": "address_2",
673
+ "description": "(Deprecated) A second (additional) line of address information. (This field is deprecated: we recommend including all address information before 'city' as a comma separated list in address_1. There is no guarantee that systems will read this line of address information.)",
674
+ "type": "string"
675
+ },
676
+ {
677
+ "name": "address_3",
678
+ "description": "(Deprecated) A third (additional) line of address information. (This field is deprecated: we recommend including all address information before 'city' as a comma separated list in address_1. There is no guarantee that systems will read this line of address information.)",
679
+ "type": "string"
680
+ },
681
+ {
682
+ "name": "address_4",
683
+ "description": "(Deprecated) The fourth (additional) line of address information. (This field is deprecated: we recommend including all address information before 'city' as a comma separated list in address_1. There is no guarantee that systems will read this line of address information.)",
684
+ "type": "string"
685
+ },
686
+ {
687
+ "name": "city",
688
+ "description": "The city in which the address is located.",
689
+ "type": "string",
690
+ "constraints": {
691
+ "required": true
692
+ }
693
+ },
694
+ {
695
+ "name": "region",
696
+ "description": "The region in which the address is located (optional).",
697
+ "type": "string",
698
+ "constraints": {
699
+ "required": false
700
+ }
701
+ },
702
+ {
703
+ "name": "state_province",
704
+ "description": "The state or province in which the address is located.",
705
+ "type": "string",
706
+ "constraints": {
707
+ "required": true
708
+ }
709
+ },
710
+ {
711
+ "name": "postal_code",
712
+ "description": "The postal code for the address.",
713
+ "type": "string",
714
+ "constraints": {
715
+ "required": true
716
+ }
717
+ },
718
+ {
719
+ "name": "country",
720
+ "description": "The country in which the address is located. This should be given as an ISO 3361-1 country code (two letter abbreviation).",
721
+ "type": "string",
722
+ "constraints": {
723
+ "required": true
724
+ }
725
+ }
726
+ ],
727
+ "primaryKey": "id",
728
+ "foreignKeys": [{
729
+ "fields": "location_id",
730
+ "reference": {
731
+ "resource": "location",
732
+ "fields": "id"
733
+ }
734
+ },{
735
+ "fields": "organization_id",
736
+ "reference": {
737
+ "resource": "organization",
738
+ "fields": "id"
739
+ }
740
+ }]
741
+ }
742
+ },
743
+ {
744
+ "name": "regular_schedule",
745
+ "path": "regular_schedules.csv",
746
+ "description": "The regular_schedule table contains details of when a service or location is open under normal circumstances. Each entry in the table can relate to one and only one day of the week.",
747
+ "format": "csv",
748
+ "mediatype": "text/csv",
749
+ "schema": {
750
+ "fields": [{
751
+ "name": "id",
752
+ "description": "Each entry must have a unique identifier",
753
+ "type": "string",
754
+ "constraints": {
755
+ "required": true
756
+ }
757
+ },
758
+ {
759
+ "name": "service_id",
760
+ "description": "The identifier of the service for which this is the regular schedule",
761
+ "type": "string"
762
+ },
763
+ {
764
+ "name": "location_id",
765
+ "description": "The identifier of the location for which this is the regular schedule",
766
+ "type": "string"
767
+ },
768
+ {
769
+ "name": "service_at_location_id",
770
+ "description": "The identifier of the 'service at location' table entry, when this schedule is specific to a service in a particular location.",
771
+ "type": "string"
772
+ },
773
+ {
774
+ "name": "weekday",
775
+ "description": "The day of the week that this entry relates to",
776
+ "type": "integer",
777
+ "constraints": {
778
+ "required": true
779
+ }
780
+ },
781
+ {
782
+ "name": "opens_at",
783
+ "description": "The time when a service or location opens. This should use HH:MM format and should include timezone information, either adding the suffix 'Z' when the date is in UTC, or including an offset from UTC (e.g. 09:00-05:00 for 9am East Coast Time. ",
784
+ "type": "time"
785
+ },
786
+ {
787
+ "name": "closes_at",
788
+ "description": "The time when a service or location opens. This should use HH:MM format and should include timezone information, either adding the suffix 'Z' when the date is in UTC, or including an offset from UTC (e.g. 09:00-05:00 for 9am East Coast Time.",
789
+ "type": "time"
790
+ },
791
+ {
792
+ "name": "original_text",
793
+ "type": "string"
794
+ }
795
+ ],
796
+ "primaryKey": "id",
797
+ "foreignKeys": [{
798
+ "fields": "location_id",
799
+ "reference": {
800
+ "resource": "location",
801
+ "fields": "id"
802
+ }
803
+ },
804
+ {
805
+ "fields": "service_id",
806
+ "reference": {
807
+ "resource": "service",
808
+ "fields": "id"
809
+ }
810
+ },
811
+ {
812
+ "fields": "service_at_location_id",
813
+ "reference": {
814
+ "resource": "service_at_location",
815
+ "fields": "id"
816
+ }
817
+ }
818
+ ]
819
+ }
820
+ },
821
+ {
822
+ "name": "eligibility",
823
+ "path": "eligibility.csv",
824
+ "description": "The eligibility tables contains details of the eligibility criteria for particular services",
825
+ "format": "csv",
826
+ "mediatype": "text/csv",
827
+ "schema": {
828
+ "fields": [{
829
+ "name": "id",
830
+ "description": "Each entry must have a unique identifier",
831
+ "type": "string",
832
+ "constraints": {
833
+ "required": true
834
+ }
835
+ },
836
+ {
837
+ "name": "service_id",
838
+ "description": "The identifier of the service for which this entry describes the eligibility criteria",
839
+ "type": "string"
840
+ },
841
+ {
842
+ "name": "eligibility",
843
+ "description": "The rules or guidelines that determine who can receive the service.",
844
+ "type": "string"
845
+ }
846
+ ],
847
+ "primaryKey": "id",
848
+ "foreignKeys": [{
849
+ "fields": "service_id",
850
+ "reference": {
851
+ "resource": "service",
852
+ "fields": "id"
853
+ }
854
+ }]
855
+ }
856
+ },
857
+ {
858
+ "name": "language",
859
+ "path": "languages.csv",
860
+ "description": "The language table contains details of the languages that are spoken at locations or services. This does not include languages which can only be used with intepretation.",
861
+ "format": "csv",
862
+ "mediatype": "text/csv",
863
+ "schema": {
864
+ "fields": [{
865
+ "name": "id",
866
+ "description": "Each language must have a unique identifier",
867
+ "type": "string",
868
+ "constraints": {
869
+ "required": true
870
+ }
871
+ },
872
+ {
873
+ "name": "service_id",
874
+ "description": "The identifier of the service for which the entry describes the languages in which services are delivered",
875
+ "type": "string"
876
+ },
877
+ {
878
+ "name": "location_id",
879
+ "description": "The identifier of the location for which the entry describes the languages in which services are delivered",
880
+ "type": "string"
881
+ },
882
+ {
883
+ "name": "language",
884
+ "description": "Languages, other than English, in which the service is delivered. Languages are listed as ISO639-1 codes.",
885
+ "type": "string"
886
+ }
887
+ ],
888
+ "primaryKey": "id",
889
+ "foreignKeys": [{
890
+ "fields": "service_id",
891
+ "reference": {
892
+ "resource": "service",
893
+ "fields": "id"
894
+ }
895
+ },
896
+ {
897
+ "fields": "location_id",
898
+ "reference": {
899
+ "resource": "location",
900
+ "fields": "id"
901
+ }
902
+ }
903
+ ]
904
+ }
905
+ },
906
+ {
907
+ "name": "accessibility_for_disabilities",
908
+ "path": "accessibility_for_disabilities.csv",
909
+ "description": "The accessibility_for_disabilities table contains details of the arrangements for access to locations for people who have disabilities",
910
+ "format": "csv",
911
+ "mediatype": "text/csv",
912
+ "schema": {
913
+ "fields": [{
914
+ "name": "id",
915
+ "description": "Each entry must have a unique identifier",
916
+ "type": "string",
917
+ "constraints": {
918
+ "required": true
919
+ }
920
+ },
921
+ {
922
+ "name": "location_id",
923
+ "description": "The identifier of the location for which the entry describes the accessibility provision",
924
+ "type": "string"
925
+ },
926
+ {
927
+ "name": "accessibility",
928
+ "description": "Description of assistance or infrastructure that facilitate access to clients with disabilities.",
929
+ "type": "string"
930
+ },
931
+ {
932
+ "name": "details",
933
+ "description": "Any further details relating to the relevant accessibility arrangements at this location. E.g. whether advance notice is required to use an accessibility facility.",
934
+ "type": "string",
935
+ "constraints": {
936
+ "required": false
937
+ }
938
+ }
939
+ ],
940
+ "primaryKey": "id",
941
+ "foreignKeys": [{
942
+ "fields": "location_id",
943
+ "reference": {
944
+ "resource": "location",
945
+ "fields": "id"
946
+ }
947
+ }]
948
+ }
949
+ },
950
+ {
951
+ "name": "taxonomy",
952
+ "path": "taxonomy.csv",
953
+ "description": "Each service can be categorized according to one or more taxonomy terms. The taxonomy table contains a list of taxonomy identifiers, their names, and, for hierarchical taxonomies, their structure.",
954
+ "format": "csv",
955
+ "mediatype": "text/csv",
956
+ "schema": {
957
+ "fields": [{
958
+ "name": "id",
959
+ "description": "Each taxonomy entry must have a unique identifier. If combining multiple taxonomies with overlapping identifiers, use a prefix to distinguish them.",
960
+ "type": "string",
961
+ "constraints": {
962
+ "required": true,
963
+ "unique": true
964
+ }
965
+ },
966
+ {
967
+ "name": "name",
968
+ "description": "The name of this taxonomy term or category.",
969
+ "type": "string",
970
+ "constraints": {
971
+ "required": true
972
+ }
973
+ },
974
+ {
975
+ "name": "parent_id",
976
+ "description": "If this is a child category in a hierarchical taxonomy, give the identifier of the parent category. For top-level categories, this should be left blank.",
977
+ "type": "string",
978
+ "constraints": {
979
+ "required": false
980
+ }
981
+ },
982
+ {
983
+ "name": "parent_name",
984
+ "description": "If this is a child category in a hierarchical taxonomy, give the name of the parent category. For top-level categories, this should be left blank.",
985
+ "type": "string",
986
+ "constraints": {
987
+ "required": false
988
+ }
989
+ },
990
+ {
991
+ "name": "vocabulary",
992
+ "description": "If this is an established taxonomy, detail which taxonomy is in use. For example, AIRS or Open Eligibility.",
993
+ "type": "string",
994
+ "constraints": {
995
+ "required": false
996
+ }
997
+ },
998
+ {
999
+ "name": "taxonomy_facet",
1000
+ "type": "string"
1001
+ }
1002
+ ],
1003
+ "primaryKey": "id"
1004
+ }
1005
+ }
1006
+ ]
1007
+ }