@@ -96,11 +96,6 @@ paths:
96
96
type : object
97
97
properties :
98
98
data :
99
- type : object
100
- properties :
101
- prisonerOffenderSearch :
102
- $ref : " #/components/schemas/Person"
103
- probationOffenderSearch :
104
99
$ref : " #/components/schemas/Person"
105
100
" 404 " :
106
101
description : Failed to find a person with the provided HMPPS ID.
@@ -815,6 +810,40 @@ paths:
815
810
NoQueryParametersBadRequestError :
816
811
$ref : " #/components/examples/InternalServerError"
817
812
813
+ /v1/persons/{HmppsId}/protected-characteristics :
814
+ get :
815
+ summary : Returns protected characteristics of a person.
816
+ parameters :
817
+ - $ref : " #/components/parameters/HmppsId"
818
+ responses :
819
+ " 200 " :
820
+ description : Successfully found licenses for a person with the provided HMPPS ID.
821
+ content :
822
+ application/json :
823
+ schema :
824
+ type : object
825
+ properties :
826
+ data :
827
+ $ref : " #/components/schemas/PersonProtectedCharacteristics"
828
+ " 404 " :
829
+ description : Failed to find licenses for a person with the provided HMPPS ID.
830
+ content :
831
+ application/json :
832
+ schema :
833
+ $ref : " #/components/schemas/Error"
834
+ examples :
835
+ PersonNotFoundError :
836
+ $ref : " #/components/examples/PersonNotFoundError"
837
+ " 500 " :
838
+ description : An upstream service was not responding, so we cannot verify the accuracy of any data we did get.
839
+ content :
840
+ application/json :
841
+ schema :
842
+ $ref : " #/components/schemas/Error"
843
+ examples :
844
+ NoQueryParametersBadRequestError :
845
+ $ref : " #/components/examples/InternalServerError"
846
+
818
847
/{TBC}/v1/persons/{Id}/accommodations :
819
848
get :
820
849
summary : FUTURE ENDPOINT - Returns accommodation and referral information associated with a person.
@@ -1257,6 +1286,27 @@ components:
1257
1286
properties :
1258
1287
name :
1259
1288
type : string
1289
+ Disability :
1290
+ type : object
1291
+ properties :
1292
+ notes :
1293
+ type : string
1294
+ nullable : true
1295
+ example : Walking issue
1296
+ startDate :
1297
+ type : string
1298
+ format : date-time
1299
+ nullable : true
1300
+ example : 2013-04-11
1301
+ endDate :
1302
+ type : string
1303
+ format : date-time
1304
+ nullable : true
1305
+ example : 2023-04-11
1306
+ disabilityType :
1307
+ $ref : " #/components/schemas/KeyValue"
1308
+ condition :
1309
+ $ref : " #/components/schemas/KeyValue"
1260
1310
Error :
1261
1311
type : object
1262
1312
properties :
@@ -1408,6 +1458,17 @@ components:
1408
1458
nullable : true
1409
1459
offenceRule :
1410
1460
nullable : true
1461
+ KeyValue :
1462
+ type : object
1463
+ properties :
1464
+ code :
1465
+ type : string
1466
+ nullable : true
1467
+ example : Code
1468
+ description :
1469
+ type : string
1470
+ nullable : true
1471
+ example : Description
1411
1472
LatestSentenceKeyDatesAndAdjustments :
1412
1473
type : object
1413
1474
properties :
@@ -1468,7 +1529,6 @@ components:
1468
1529
format : date
1469
1530
example : 2023-03-01
1470
1531
description : tariffEarlyRemovalSchemeEligibilityDate.
1471
-
1472
1532
Licence :
1473
1533
type : object
1474
1534
properties :
@@ -1731,6 +1791,56 @@ components:
1731
1791
items :
1732
1792
$ref : " #/components/schemas/Licence"
1733
1793
description : list of licences
1794
+ PersonProtectedCharacteristics :
1795
+ type : object
1796
+ properties :
1797
+ age :
1798
+ type : number
1799
+ nullable : false
1800
+ example : 35
1801
+ description : Age of the person
1802
+ gender :
1803
+ type : string
1804
+ nullable : true
1805
+ example : Female
1806
+ description : Gender of the person
1807
+ sexualOrientation :
1808
+ type : string
1809
+ nullable : true
1810
+ example : Unknown
1811
+ description : Sexual orientation of the person
1812
+ ethnicity :
1813
+ type : string
1814
+ nullable : true
1815
+ example : " White: Eng./Welsh/Scot./N.Irish/British"
1816
+ description : Ethnicity of the person
1817
+ nationality :
1818
+ type : string
1819
+ nullable : true
1820
+ example : " Egyptian"
1821
+ description : Nationality of the person
1822
+ religion :
1823
+ type : string
1824
+ nullable : true
1825
+ example : " Church of England (Anglican)"
1826
+ description : Religion of the person
1827
+ maritalStatus :
1828
+ type : string
1829
+ nullable : true
1830
+ example : " Widowed"
1831
+ description : Marital status of the person
1832
+ disabilities :
1833
+ type : array
1834
+ minItems : 0
1835
+ items :
1836
+ $ref : " #/components/schemas/Disability"
1837
+ reasonableAdjustments :
1838
+ type : array
1839
+ minItems : 0
1840
+ items :
1841
+ $ref : " #/components/schemas/ReasonableAdjustment"
1842
+
1843
+
1734
1844
Punishment :
1735
1845
type : object
1736
1846
properties :
@@ -1924,6 +2034,34 @@ components:
1924
2034
enum : [ ARD, CRD, NPD, PRRD ]
1925
2035
example : ARD
1926
2036
description : Indicates which type of non-DTO release date is the effective release date. One of 'ARD', 'CRD', 'NPD' or 'PRRD'.
2037
+ ReasonableAdjustment :
2038
+ type : object
2039
+ properties :
2040
+ treatmentCode :
2041
+ type : string
2042
+ nullable : true
2043
+ example : " WHEELCHR_ACC"
2044
+ description : MTreatment Code
2045
+ commentText :
2046
+ type : string
2047
+ nullable : true
2048
+ example : " abcd"
2049
+ description : Comment Text
2050
+ startDate :
2051
+ type : string
2052
+ format : date-time
2053
+ nullable : true
2054
+ example : 2013-04-11
2055
+ endDate :
2056
+ type : string
2057
+ format : date-time
2058
+ nullable : true
2059
+ example : 2023-04-11
2060
+ treatmentDescription :
2061
+ type : string
2062
+ nullable : true
2063
+ example : " Wheelchair accessibility"
2064
+ description : Treatment Description
1927
2065
ReleaseDate :
1928
2066
type : object
1929
2067
properties :
@@ -2112,8 +2250,6 @@ components:
2112
2250
$ref : " #/components/schemas/RiskOfSeriousRecidivism"
2113
2251
sexualPredictor :
2114
2252
$ref : " #/components/schemas/SexualPredictor"
2115
-
2116
-
2117
2253
GroupReconviction :
2118
2254
type : object
2119
2255
properties :
@@ -2214,7 +2350,6 @@ components:
2214
2350
$ref : " #/components/schemas/OtherRisks"
2215
2351
summary :
2216
2352
$ref : " #/components/schemas/Summary"
2217
-
2218
2353
RiskToSelf :
2219
2354
type : object
2220
2355
properties :
@@ -2228,7 +2363,6 @@ components:
2228
2363
$ref : " #/components/schemas/Risk"
2229
2364
vulnerability :
2230
2365
$ref : " #/components/schemas/Risk"
2231
-
2232
2366
Risk :
2233
2367
type : object
2234
2368
properties :
@@ -2255,7 +2389,6 @@ components:
2255
2389
type : string
2256
2390
example : " Risk of self harm concerns due to ..."
2257
2391
description : Supporting comments for any current concerns
2258
-
2259
2392
OtherRisks :
2260
2393
type : object
2261
2394
properties :
@@ -2279,7 +2412,6 @@ components:
2279
2412
example : " YES"
2280
2413
enum : [ YES, NO, DK, NA ]
2281
2414
description : Risk to other prisoners
2282
-
2283
2415
Summary :
2284
2416
type : object
2285
2417
properties :
@@ -2358,7 +2490,6 @@ components:
2358
2490
type : string
2359
2491
example : LOW
2360
2492
enum : [ VERY_HIGH, HIGH, MEDIUM, LOW ]
2361
-
2362
2493
Needs :
2363
2494
type : object
2364
2495
properties :
@@ -2382,7 +2513,6 @@ components:
2382
2513
minItems : 0
2383
2514
items :
2384
2515
$ref : " #/components/schemas/Need"
2385
-
2386
2516
Need :
2387
2517
type : object
2388
2518
properties :
0 commit comments