@@ -373,6 +373,45 @@ paths:
373
373
PersonNotFoundError :
374
374
$ref : " #/components/examples/PersonNotFoundError"
375
375
376
+ /v1/persons/{hmppsId}/risks/categories :
377
+ get :
378
+ tags :
379
+ - persons
380
+ summary : Returns the categories related to an offender.
381
+ parameters :
382
+ - $ref : " #/components/parameters/HmppsId"
383
+ responses :
384
+ " 200 " :
385
+ description : Successfully found risk categories for a person with the provided HMPPS ID.
386
+ content :
387
+ application/json :
388
+ schema :
389
+ type : object
390
+ properties :
391
+ data :
392
+ type : object
393
+ properties :
394
+ offenderNo :
395
+ type : string
396
+ assessments :
397
+ type : array
398
+ minItems : 0
399
+ items :
400
+ $ref : " #/components/schemas/RiskAssessment"
401
+ category :
402
+ type : string
403
+ categoryCode :
404
+ type : string
405
+ " 404 " :
406
+ description : Failed to find risk categories a person with the provided HMPPS ID.
407
+ content :
408
+ application/json :
409
+ schema :
410
+ $ref : " #/components/schemas/Error"
411
+ examples :
412
+ PersonNotFoundError :
413
+ $ref : " #/components/examples/PersonNotFoundError"
414
+
376
415
/v1/persons/{hmppsId}/needs :
377
416
get :
378
417
tags :
@@ -1736,6 +1775,45 @@ components:
1736
1775
`SEC86` - Section 86 of 2000 Act,
1737
1776
`SUP` - Sentence Length,
1738
1777
`SUSP` - Suspension Period
1778
+ RiskAssessment :
1779
+ type : object
1780
+ properties :
1781
+ classificationCode :
1782
+ type : string
1783
+ example : C
1784
+ description : The classification code of the risk
1785
+ classification :
1786
+ type : string
1787
+ example : Cat C
1788
+ description : The classification of the code
1789
+ assessmentCode :
1790
+ type : string
1791
+ example : CATEGORY
1792
+ description : The assessment code
1793
+ assessmentDescription :
1794
+ type : string
1795
+ example : Categorisation
1796
+ description : The description of the assessment
1797
+ assessmentDate :
1798
+ type : string
1799
+ example : 2018-02-11
1800
+ description : The date of the assessment
1801
+ nextReviewDate :
1802
+ type : string
1803
+ example : 2018-02-11
1804
+ description : Next review date
1805
+ assessmentAgencyId :
1806
+ type : string
1807
+ example : MDI
1808
+ description : Agency ID of the assessment
1809
+ assessmentStatus :
1810
+ type : string
1811
+ example : P
1812
+ description : The status of the assessment
1813
+ assessmentComment :
1814
+ type : string
1815
+ example : Comment details
1816
+ description : Comments regarding the assessment
1739
1817
RiskScore :
1740
1818
type : object
1741
1819
properties :
0 commit comments