-
Notifications
You must be signed in to change notification settings - Fork 50
/
datapackage.json
2906 lines (2906 loc) · 128 KB
/
datapackage.json
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
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "human_services_data",
"title": "Human Services Data Specification",
"description": "HSDS describes data about organizations, the services they provide, the locations at which these services can be accessed, and associated details.",
"profile": "tabular-data-package",
"version": "3.0.0",
"homepage": "http://docs.openreferral.org",
"license": {
"url": "https://creativecommons.org/licenses/by-sa/4.0/",
"type": "CC-BY-SA-4.0",
"name": "Creative Commons Attribution-ShareAlike 4.0"
},
"resources": [
{
"name": "organization",
"path": "organizations.csv",
"description": "The details about each organization delivering services. Each service should be linked to the organization responsible for its delivery. One organization may deliver many services.",
"format": "csv",
"mediatype": "text/csv",
"profile": "tabular-data-resource",
"schema": {
"primaryKey": "id",
"fields": [
{
"name": "id",
"type": "string",
"title": "Identifier",
"description": "The identifier for the organization. Each organization must have a unique identifier.",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610",
"core": "Y"
},
{
"name": "name",
"type": "string",
"title": "Name",
"description": "The official or public name of the organization.",
"constraints": {
"required": true,
"unique": false
},
"example": "Example Organization Inc.",
"core": "Y"
},
{
"name": "alternate_name",
"type": "string",
"title": "Alternate Name",
"description": "An (optional) alternative or commonly used name for the organization.",
"constraints": {
"required": false,
"unique": false
},
"example": "Example Org",
"core": "Y"
},
{
"name": "description",
"type": "string",
"title": "Description",
"description": "A free text description containing a brief summary about the organization. It can contain markup such as HTML or Markdown.",
"constraints": {
"required": true,
"unique": false
},
"example": "Example Org is a non-profit organization dedicated to providing services to qualified beneficiaries",
"core": "Y"
},
{
"name": "email",
"type": "string",
"title": "Email",
"description": "The contact e-mail address for the organization.",
"format": "email",
"constraints": {
"required": false,
"unique": false
},
"example": "email@example.com",
"core": "Y"
},
{
"name": "website",
"type": "string",
"format": "uri",
"title": "Website",
"description": "The URL (website address) of the organization.",
"constraints": {
"required": false,
"unique": false
},
"example": "http://example.com",
"core": "Y"
},
{
"name": "tax_status",
"type": "string",
"title": "Tax Status",
"description": "DEPRECATED: Government assigned tax designation for tax-exempt organizations.",
"constraints": {
"required": false,
"unique": false
},
"example": "tax_status"
},
{
"name": "tax_id",
"type": "string",
"title": "Tax Identifier",
"description": "DEPRECATED: A government issued identifier used for the purpose of tax administration.",
"constraints": {
"required": false,
"unique": false
},
"example": "tax_id"
},
{
"name": "year_incorporated",
"type": "number",
"title": "Year Incorporated",
"description": "The year in which the organization was legally formed.",
"constraints": {
"required": false,
"unique": false
},
"example": "2011"
},
{
"name": "legal_status",
"type": "string",
"title": "Legal Status",
"description": "The legal conditions that an organization is operating under.",
"constraints": {
"required": false,
"unique": false
},
"example": "Limited Company"
},
{
"name": "logo",
"type": "string",
"title": "Logo",
"description": "A URL to an image associated with the organization which can be presented alongside its name.",
"constraints": {
"required": false,
"unique": false
},
"example": "https://openreferral.org/wp-content/uploads/2018/02/OpenReferral_Logo_Green-4-1.png"
},
{
"name": "uri",
"type": "string",
"title": "URI",
"description": "A persistent identifier to uniquely identify the organization such as those provided by Open Corporates or some other relevant URI provider. This is not for listing the website of the organization: that can be done through the website field of the Organization.",
"format": "uri",
"constraints": {
"required": false,
"unique": false
},
"example": "http://example.com"
},
{
"name": "parent_organization_id",
"type": "string",
"title": "Parent Organization Identifier",
"description": "The identifier of the organization's parent organization.",
"format": "uuid",
"constraints": {
"required": false,
"unique": false
},
"example": "cd09a387-91f4-4555-94ec-e799c35344cd"
}
]
}
},
{
"name": "program",
"path": "programs.csv",
"description": "The details of collections of related services.",
"format": "csv",
"mediatype": "text/csv",
"profile": "tabular-data-resource",
"schema": {
"primaryKey": "id",
"fields": [
{
"name": "id",
"type": "string",
"title": "Identifier",
"description": "The identifier for the program. Each program must have a unique identifier.",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"example": "e7ec2e57-4540-43fa-b2c7-6be5a0ef7f42"
},
{
"name": "organization_id",
"type": "string",
"title": "Organization Identifier",
"description": "The identifier for the organization which the program belongs to. Each program must belong to a single organization, and the identifier for that organization should be given here.",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
},
{
"name": "name",
"type": "string",
"title": "Name",
"description": "The name of the program.",
"constraints": {
"required": true,
"unique": false
},
"example": "Community Mental Health Support"
},
{
"name": "alternate_name",
"type": "string",
"title": "Alternate Name",
"description": "The (optional) alternative name for the program.",
"constraints": {
"required": false,
"unique": false
},
"example": "MyCity Mental Health Group"
},
{
"name": "description",
"type": "string",
"title": "Description",
"description": "A free text description of the program",
"constraints": {
"required": true,
"unique": false
},
"example": "Comprehensive Mental Health Services available to residents of MyCity including CBT and Counselling. This is not an emergency service and should not be used as an alternative to hospital and GP services."
}
],
"foreignKeys": [
{
"fields": "organization_id",
"reference": {
"resource": "organization",
"fields": "id"
}
}
]
}
},
{
"name": "service",
"path": "services.csv",
"description": "The details of the services provided by organizations to a range of different groups.",
"format": "csv",
"mediatype": "text/csv",
"profile": "tabular-data-resource",
"schema": {
"primaryKey": "id",
"fields": [
{
"name": "id",
"type": "string",
"title": "Identifier",
"description": "The identifier for the service. Each service must have a unique identifier.",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"example": "ac148810-d857-441c-9679-408f346de14b",
"core": "Y"
},
{
"name": "organization_id",
"type": "string",
"title": "Organization Identifier",
"description": "The identifier of the organization that provides this service.",
"format": "uuid",
"constraints": {
"required": true,
"unique": false
},
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610",
"core": "Y"
},
{
"name": "program_id",
"type": "string",
"title": "Program Identifier",
"description": "The identifier of the program this service is delivered under.",
"format": "uuid",
"constraints": {
"required": false,
"unique": false
},
"example": "e7ec2e57-4540-43fa-b2c7-6be5a0ef7f42"
},
{
"name": "name",
"type": "string",
"title": "Name",
"description": "The official or public name of the service.",
"constraints": {
"required": true,
"unique": false
},
"example": "Community Counselling",
"core": "Y"
},
{
"name": "alternate_name",
"type": "string",
"title": "Alternate Name",
"description": "An (optional) alternative name for this service.",
"constraints": {
"required": false,
"unique": false
},
"example": "MyCity Counselling Services"
},
{
"name": "description",
"type": "string",
"title": "Description",
"description": "A free text description of the service.",
"constraints": {
"required": false,
"unique": false
},
"example": "Counselling Services provided by trained professionals. Suitable for people with mental health conditions such as anxiety, depression, or eating disorders as well as people experiencing difficult life events and circumstances. ",
"core": "Y"
},
{
"name": "url",
"type": "string",
"title": "URL",
"description": "URL of the service",
"format": "uri",
"constraints": {
"required": false,
"unique": false
},
"example": "http://example.com/counselling",
"core": "Y"
},
{
"name": "email",
"type": "string",
"title": "Email",
"description": "An email address which can be used to contact the service provider.",
"format": "email",
"constraints": {
"required": false,
"unique": false
},
"example": "email@example.com",
"core": "Y"
},
{
"name": "status",
"type": "string",
"title": "Status",
"description": "The current status of the service which can be active, inactive, defunct, or temporarily closed.",
"constraints": {
"required": true,
"unique": false,
"enum": [
"active",
"inactive",
"defunct",
"temporarily closed"
]
},
"example": "active",
"core": "Y"
},
{
"name": "interpretation_services",
"type": "string",
"title": "Interpretation Services",
"description": "A free text description of any interpretation services available for accessing this service.",
"constraints": {
"required": false,
"unique": false
},
"example": "Interpretation services are available in Urdu, Polish, and Slovak"
},
{
"name": "application_process",
"type": "string",
"title": "Application Process",
"description": "A free text description of the steps needed to access this service.",
"constraints": {
"required": false,
"unique": false
},
"example": "If you are an NHS patient please ask your GP for a referral letter, we will then be in touch with you directly. If you are not an NHS patient you should ring our reception to arrange an appointment"
},
{
"name": "fees_description",
"type": "string",
"title": "Fees Description",
"description": "A free text description of any charges for service users to access this service.",
"constraints": {
"required": false,
"unique": false
},
"example": "Non-NHS patients are expected to pay for their counselling sessions. We charge a flat rate per hour of counselling. The current rate is \u00a350 per hour. Please see our website for up to date prices."
},
{
"name": "wait_time",
"type": "string",
"title": "Wait Time",
"description": "DEPRECATED: The time a client may expect to wait before receiving a service.",
"constraints": {
"required": false,
"unique": false
},
"example": "wait_time"
},
{
"name": "fees",
"type": "string",
"title": "Fees",
"description": "DEPRECATED: Details of any charges for service users to access this service.",
"constraints": {
"required": false,
"unique": false
},
"example": "fees_description"
},
{
"name": "accreditations",
"type": "string",
"title": "Accreditations",
"description": "A free text description of any accreditations. Accreditation is the formal evaluation of an organization or program against best practice standards set by an accrediting organization.",
"constraints": {
"required": false,
"unique": false
},
"example": "All of our practitioners are accredited by the BASC, UKCP, and the Professional Standards Body"
},
{
"name": "eligibility_description",
"type": "string",
"title": "Eligibility Description",
"description": "A free text description of the type of person for whom this service is intended.",
"constraints": {
"required": false,
"unique": false
},
"example": "This service is intended for all people aged 12 and over who require counselling services in the MyCity area",
"core": "Y"
},
{
"name": "minimum_age",
"type": "number",
"title": "Minimum Age",
"description": "The minimum age of a person required to meet this eligibility requirement.",
"constraints": {
"required": false,
"unique": false
},
"example": "12"
},
{
"name": "maximum_age",
"type": "number",
"title": "Maximum Age",
"description": "The maximum age of a person required to meet this eligibility requirement.",
"constraints": {
"required": false,
"unique": false
},
"example": "100"
},
{
"name": "assured_date",
"type": "date",
"title": "Assured Date",
"description": "The date that the information about the service was last checked.",
"constraints": {
"required": false,
"unique": false
},
"example": "2005-01-01"
},
{
"name": "assurer_email",
"type": "string",
"title": "Assurer Email",
"description": "The contact e-mail address for the person or organization which last assured the service.",
"format": "email",
"constraints": {
"required": false,
"unique": false
},
"example": "email@example.com"
},
{
"name": "licenses",
"type": "string",
"title": "Licenses",
"description": "DEPRECATED: An organization may have a license issued by a government entity to operate legally. A list of any such licenses can be provided here.",
"constraints": {
"required": false,
"unique": false
},
"example": "licences"
},
{
"name": "alert",
"type": "string",
"title": "Alert",
"description": "A description of any short term alerts concerning the service.",
"constraints": {
"required": false,
"unique": false
},
"example": "Following COVID-19 we have moved most of our counselling sessions online. Please contact the reception if you require further information."
},
{
"name": "last_modified",
"type": "datetime",
"title": "Last Modified",
"description": "The datetime when the service, or any related information about the service, has changed. Should have millisecond accuracy.",
"constraints": {
"required": false,
"unique": false
},
"example": "2023-03-15T10:30:45.123Z"
}
],
"foreignKeys": [
{
"fields": "organization_id",
"reference": {
"resource": "organization",
"fields": "id"
}
},
{
"fields": "program_id",
"reference": {
"resource": "program",
"fields": "id"
}
}
]
}
},
{
"name": "attribute",
"path": "attributes.csv",
"description": "A link between a service and one or more classifications that describe the nature of the service provided.",
"format": "csv",
"mediatype": "text/csv",
"profile": "tabular-data-resource",
"schema": {
"primaryKey": "id",
"fields": [
{
"name": "id",
"type": "string",
"title": "Identifier",
"description": "The identifier of the attribute entry. Each attribute entry should have a unique identifier.",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"example": "ae58cc39-8b70-4ab1-8aea-786882e5ac8e",
"core": "Y"
},
{
"name": "link_id",
"type": "string",
"title": "Link Identifier",
"description": "The identifier of the entity to which this taxonomy term applies.",
"format": "uuid",
"constraints": {
"required": true,
"unique": false
},
"example": "f28dd44b-0c4d-479f-8e90-4c52219a8b3c",
"core": "Y"
},
{
"name": "taxonomy_term_id",
"type": "string",
"title": "Taxonomy Term Identifier",
"description": "The identifier of this taxonomy term from the taxonomy table.",
"format": "uuid",
"constraints": {
"required": true,
"unique": false
},
"example": "3f7b145d-84af-42d7-8fae-eaca714b02b2",
"core": "Y"
},
{
"name": "link_type",
"type": "string",
"title": "Link Type",
"description": "A code taken from an enumerated open codelist to indicate what the taxonomy term describes, e.g. the service eligibility or intended audience.",
"constraints": {
"required": false,
"unique": false
},
"example": "link_type",
"core": "Y"
},
{
"name": "link_entity",
"type": "string",
"title": "Link Entity",
"description": "The table of the Link Identifier.",
"constraints": {
"required": true,
"unique": false
},
"example": "link_entity",
"core": "Y"
},
{
"name": "value",
"type": "string",
"title": "Value",
"description": "The value (if any) of an attribute.",
"constraints": {
"required": false,
"unique": false
},
"example": "value",
"core": "Y"
},
{
"name": "label",
"type": "string",
"title": "Label",
"description": "A free text label of the attribute.",
"constraints": {
"required": false,
"unique": false
},
"example": "An Example Label"
}
],
"foreignKeys": [
{
"fields": "taxonomy_term_id",
"reference": {
"resource": "taxonomy_term",
"fields": "id"
}
}
]
}
},
{
"name": "service_at_location",
"path": "service_at_location.csv",
"description": "A link between a service and a specific location.",
"format": "csv",
"mediatype": "text/csv",
"profile": "tabular-data-resource",
"schema": {
"primaryKey": "id",
"fields": [
{
"name": "id",
"type": "string",
"title": "Identifier",
"description": "The identifier of the service at location entry. Each entry must have a unique identifier.",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765",
"core": "Y"
},
{
"name": "service_id",
"type": "string",
"title": "Service Identifier",
"description": "The identifier of the service at a given location.",
"format": "uuid",
"constraints": {
"required": true,
"unique": false
},
"example": "ac148810-d857-441c-9679-408f346de14b",
"core": "Y"
},
{
"name": "location_id",
"type": "string",
"title": "Location Identifier",
"description": "The identifier of the location where this service operates.",
"format": "uuid",
"constraints": {
"required": true,
"unique": false
},
"example": "3a19ff88-4620-4d17-9830-ac1d859eb5d5",
"core": "Y"
},
{
"name": "description",
"type": "string",
"title": "Description",
"description": "A free text description of the service at this specific location.",
"constraints": {
"required": false,
"unique": false
},
"example": "Counselling Services provided by trained professionals in the MyCity area."
}
],
"foreignKeys": [
{
"fields": "service_id",
"reference": {
"resource": "service",
"fields": "id"
}
},
{
"fields": "location_id",
"reference": {
"resource": "location",
"fields": "id"
}
}
]
}
},
{
"name": "location",
"path": "locations.csv",
"description": "The locations where organizations operate. Locations may be virtual, and one organization may have many locations.",
"format": "csv",
"mediatype": "text/csv",
"profile": "tabular-data-resource",
"schema": {
"primaryKey": "id",
"fields": [
{
"name": "id",
"type": "string",
"title": "Identifier",
"description": "The identifier of the location. Each location must have a unique identifier.",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"example": "3a19ff88-4620-4d17-9830-ac1d859eb5d5",
"core": "Y"
},
{
"name": "location_type",
"type": "string",
"title": "Location Type",
"description": "The type of location, which may be either `physical`, `postal`, or `virtual`.",
"constraints": {
"required": true,
"unique": false,
"enum": [
"physical",
"postal",
"virtual"
]
},
"example": "physical",
"core": "Y"
},
{
"name": "url",
"type": "string",
"title": "URL",
"description": "If location_type is virtual, then this field represents the URL of a virtual location.",
"format": "uri",
"constraints": {
"required": false,
"unique": false
},
"example": "http://example.com",
"core": "Y"
},
{
"name": "organization_id",
"type": "string",
"title": "Organization Identifier",
"description": "The organization identifier for a location. 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 organization delivers at this location should be provided in the services_at_location table.",
"format": "uuid",
"constraints": {
"required": false,
"unique": false
},
"example": "985e4a42-bd9f-4edc-911d-0243a4640aca"
},
{
"name": "name",
"type": "string",
"title": "Name",
"description": "The name of the location.",
"constraints": {
"required": false,
"unique": false
},
"example": "MyCity Civic Center",
"core": "Y"
},
{
"name": "alternate_name",
"type": "string",
"title": "Alternate Name",
"description": "An (optional) alternative name of the location.",
"constraints": {
"required": false,
"unique": false
},
"example": "Civic Center"
},
{
"name": "description",
"type": "string",
"title": "Description",
"description": "A free text description of the location.",
"constraints": {
"required": false,
"unique": false
},
"example": "MyCity Civic Center is located on Main Street and contains facilities for a number of civic and community services available.",
"core": "Y"
},
{
"name": "transportation",
"type": "string",
"title": "Transportation",
"description": "A free text description of the access to public or private transportation to and from the location.",
"constraints": {
"required": false,
"unique": false
},
"example": "MyCity Civic Center is serviced by the number 1 Bus and is a short walk from the Main Street Metro Station"
},
{
"name": "latitude",
"type": "number",
"title": "Latitude",
"description": "The latitude of the location expressed in decimal degrees in WGS84 datum.",
"constraints": {
"required": false,
"unique": false
},
"example": "100",
"core": "Y"
},
{
"name": "longitude",
"type": "number",
"title": "Longitude",
"description": "The longitude of the location expressed in decimal degrees in WGS84 datum.",
"constraints": {
"required": false,
"unique": false
},
"example": "101",
"core": "Y"
},
{
"name": "external_identifier",
"type": "string",
"title": "External Identifier",
"description": "A third party identifier for the location, which can be drawn from other services e.g. UK UPRN.",
"constraints": {
"required": false,
"unique": false
},
"example": "10092008082"
},
{
"name": "external_identifier_type",
"type": "string",
"title": "External Identifier Type",
"description": "The scheme used for the location's external_identifier e.g. UK UPRN.",
"constraints": {
"required": false,
"unique": false
},
"example": "UPRN"
}
],
"foreignKeys": [
{
"fields": "organization_id",
"reference": {
"resource": "organization",
"fields": "id"
}
}
]
}
},
{
"name": "phone",
"path": "phones.csv",
"description": "The details of the telephone numbers used to contact organizations, services, and locations.",
"format": "csv",
"mediatype": "text/csv",
"profile": "tabular-data-resource",
"schema": {
"primaryKey": "id",
"fields": [
{
"name": "id",
"type": "string",
"title": "Identifier",
"description": "The identifier for the phone number. Each entry must have a unique identifier.",
"format": "uuid",
"constraints": {
"required": true,
"unique": true
},
"example": "1554f2e2-a373-45db-a3fa-9fc48a61c15e",
"core": "Y"
},
{
"name": "location_id",
"type": "string",
"title": "Location Identifier",
"description": "The identifier of the location where this phone number is located.",
"format": "uuid",
"constraints": {
"required": false,
"unique": false
},
"example": "3a19ff88-4620-4d17-9830-ac1d859eb5d5"
},
{
"name": "service_id",
"type": "string",
"title": "Service Identifier",
"description": "The identifier of the service for which this is the phone number.",
"format": "uuid",
"constraints": {
"required": false,
"unique": false
},
"example": "ac148810-d857-441c-9679-408f346de14b"
},
{
"name": "organization_id",
"type": "string",
"title": "Organization Identifier",
"description": "The identifier of the organization for which this is the phone number.",
"format": "uuid",
"constraints": {
"required": false,
"unique": false
},
"example": "d9d5e0f5-d3ce-4f73-9a2f-4dd0ecc6c610"
},
{
"name": "contact_id",
"type": "string",
"title": "Contact Identifier",
"description": "The identifier of the contact for which this is the phone number.",
"format": "uuid",
"constraints": {
"required": false,
"unique": false
},
"example": "1e7efce3-639b-4880-940c-b95cd30cdb50",
"core": "Y"
},
{
"name": "service_at_location_id",
"type": "string",
"title": "Service At Location Identifier",
"description": "The identifier of the \u2018service at location\u2019 table entry, when this phone number is specific to a service in a particular location.",
"format": "uuid",
"constraints": {
"required": false,
"unique": false
},
"example": "e94c9f38-1e8f-4564-91d4-d53501ab1765"