You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: openapi.yml
+175-6
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,7 @@ paths:
195
195
- persons
196
196
summary: >
197
197
Returns offences associated with a person.
198
-
198
+
199
199
Note: This API does not contain the complete list of offences for a person.
200
200
Offences are retrieved from Prison and Probation systems exclusively.
201
201
Prison systems record only custodial sentences, while Probation systems record only the main offence and some additional offences for case management purposes. Other offences recorded by HMCTS and police may not be included.
@@ -364,7 +364,7 @@ paths:
364
364
- needs
365
365
summary: >
366
366
Returns criminogenic needs associated with a person.
367
-
367
+
368
368
Note: Criminogenic needs are dynamic factors that are directly linked to criminal behaviour. Eight criminogenic needs are measured in OASys: Accommodation, Employability, Relationships, Lifestyle and Associates, Drug Misuse, Alcohol Misuse, Thinking & Behaviour and Attitudes. These are scored according to whether there is “no need”, “some need” or “severe need”, and a need is identified in a specific section based on calculations around these scores.
369
369
However, the process by which needs are assessed is changing as early as next year (2024), specifically moving to a strength-based model that seeks to identify and develop the strengths of people with convictions. As a consequence of this, the information provided by this endpoint will also change.
370
370
parameters:
@@ -463,14 +463,31 @@ paths:
463
463
"200":
464
464
description: Success.
465
465
466
-
/{TBC}/v1/persons/{Id}/adjudications:
466
+
/v1/persons/{Id}/adjudications:
467
467
get:
468
-
summary: FUTURE ENDPOINT - Returns adjudications associated with a person.
468
+
summary: Returns adjudications associated with a person.
469
469
parameters:
470
-
- $ref: "#/components/parameters/Id"
470
+
- name: hmppsId
471
+
in: path
472
+
required: true
473
+
schema:
474
+
type: string
471
475
responses:
472
476
"200":
473
-
description: Success.
477
+
description: OK
478
+
content:
479
+
application/json:
480
+
schema:
481
+
$ref: '#/components/schemas/Adjudication'
482
+
"404":
483
+
description: "Adjudications for the person with the provided HmppsId does not exist."
484
+
content:
485
+
application/json:
486
+
schema:
487
+
$ref: "#/components/schemas/Error"
488
+
examples:
489
+
PersonNotFoundError:
490
+
$ref: "#/components/examples/PersonNotFoundError"
474
491
475
492
/{TBC}/v1/persons/{Id}/interventions:
476
493
get:
@@ -631,6 +648,33 @@ components:
631
648
type: string
632
649
example: Business Address
633
650
description: Description of address type
651
+
Adjudication:
652
+
type: object
653
+
properties:
654
+
incidentDetails:
655
+
$ref: '#/components/schemas/IncidentDetails'
656
+
isYouthOffender:
657
+
type: boolean
658
+
incidentRole:
659
+
$ref: '#/components/schemas/IncidentRole'
660
+
offenceDetails:
661
+
$ref: '#/components/schemas/OffenceDetail'
662
+
hearings:
663
+
type: array
664
+
items:
665
+
$ref: '#/components/schemas/Hearing'
666
+
outcomes:
667
+
type: array
668
+
items:
669
+
$ref: '#/components/schemas/Outcome'
670
+
punishments:
671
+
type: array
672
+
items:
673
+
$ref: '#/components/schemas/Punishment'
674
+
punishmentComments:
675
+
type: array
676
+
items:
677
+
$ref: '#/components/schemas/PunishmentComment'
634
678
Alert:
635
679
type: object
636
680
properties:
@@ -774,6 +818,36 @@ components:
774
818
type: string
775
819
nullable: true
776
820
example: null
821
+
Hearing:
822
+
type: object
823
+
properties:
824
+
dateTimeOfHearing:
825
+
type: string
826
+
format: date-time
827
+
nullable: true
828
+
oicHearingType:
829
+
type: string
830
+
nullable: true
831
+
outcome:
832
+
nullable: true
833
+
HearingOutcome:
834
+
type: object
835
+
properties:
836
+
code:
837
+
type: string
838
+
nullable: true
839
+
details:
840
+
type: string
841
+
nullable: true
842
+
reason:
843
+
type: string
844
+
nullable: true
845
+
quashedReason:
846
+
type: string
847
+
nullable: true
848
+
canRemove:
849
+
type: boolean
850
+
nullable: true
777
851
Identifiers:
778
852
type: object
779
853
description: Other unique identifiers for a person.
@@ -862,6 +936,21 @@ components:
862
936
`OFF_IDM` - Offender Identification Marks,
863
937
`OIC` - Offence In Custody,
864
938
`PPTY` - Property Image
939
+
IncidentDetails:
940
+
type: object
941
+
properties:
942
+
dateTimeOfIncident:
943
+
type: string
944
+
format: date-time
945
+
nullable: true
946
+
IncidentRole:
947
+
type: object
948
+
properties:
949
+
roleCode:
950
+
type: string
951
+
nullable: true
952
+
offenceRule:
953
+
nullable: true
865
954
LatestSentenceKeyDatesAndAdjustments:
866
955
type: object
867
956
properties:
@@ -925,6 +1014,41 @@ components:
925
1014
type: string
926
1015
example: RR84
927
1016
description: Statute code
1017
+
OffenceDetail:
1018
+
type: object
1019
+
properties:
1020
+
offenceCode:
1021
+
type: number
1022
+
nullable: true
1023
+
offenceRule:
1024
+
nullable: true
1025
+
OffenceRuleDetails:
1026
+
type: object
1027
+
properties:
1028
+
paragraphNumber:
1029
+
type: string
1030
+
nullable: true
1031
+
paragraphDescription:
1032
+
type: string
1033
+
nullable: true
1034
+
Outcome:
1035
+
type: object
1036
+
properties:
1037
+
code:
1038
+
type: string
1039
+
nullable: true
1040
+
details:
1041
+
type: string
1042
+
nullable: true
1043
+
reason:
1044
+
type: string
1045
+
nullable: true
1046
+
quashedReason:
1047
+
type: string
1048
+
nullable: true
1049
+
canRemove:
1050
+
type: boolean
1051
+
nullable: true
928
1052
Pagination:
929
1053
type: object
930
1054
properties:
@@ -997,6 +1121,51 @@ components:
997
1121
type: string
998
1122
example: 2008/0545166T
999
1123
description: Currently a hmppsId is a PNC identifier however this will change in the near future to be a CRN identifier
0 commit comments