@@ -1116,7 +1116,9 @@ <h4 id="v1-persons-hmppsid-plp-review-schedule-get-responses">Responses</h4>
1116
1116
"version": "integer",
1117
1117
"reviewCompletedBy": "string",
1118
1118
"reviewCompletedByRole": "string",
1119
- "reviewCompletedAt": "string"
1119
+ "reviewCompletedAt": "string",
1120
+ "reviewType": "string",
1121
+ "reviewReason": "string"
1120
1122
}
1121
1123
]
1122
1124
}
@@ -6054,7 +6056,11 @@ <h3 id="schema-dataresponsereviewschedules">DataResponseReviewSchedules</h3>
6054
6056
</ table >
6055
6057
6056
6058
< h3 id ="schema-reviewschedule "> ReviewSchedule</ h3 >
6057
-
6059
+ < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > A list of review schedules for this prisoner.
6060
+ Note that this will return multiple versions of the the same schedule.
6061
+ This is because down stream clients need to know the previous states of the review schedules.
6062
+ grouping by reference and then ordering by highest version number will present the review schedules with the most up to date data.
6063
+ </ code > </ pre > </ div >
6058
6064
6059
6065
< table class ='schema-reviewschedule '>
6060
6066
< thead >
@@ -6066,7 +6072,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6066
6072
< td > reference</ td >
6067
6073
< td > string</ td >
6068
6074
< td > true</ td >
6069
- < td > </ td >
6075
+ < td > < p > The UUID reference for the review schedule record.</ p >
6076
+ </ td >
6070
6077
< td >
6071
6078
6072
6079
</ td >
@@ -6076,7 +6083,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6076
6083
< td > reviewDateFrom</ td >
6077
6084
< td > string</ td >
6078
6085
< td > true</ td >
6079
- < td > </ td >
6086
+ < td > < p > The earliest date that the review should be carried out.</ p >
6087
+ </ td >
6080
6088
< td >
6081
6089
6082
6090
</ td >
@@ -6086,7 +6094,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6086
6094
< td > reviewDateTo</ td >
6087
6095
< td > string</ td >
6088
6096
< td > true</ td >
6089
- < td > </ td >
6097
+ < td > < p > The latest date that the review should be carried out.</ p >
6098
+ </ td >
6090
6099
< td >
6091
6100
6092
6101
</ td >
@@ -6096,7 +6105,23 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6096
6105
< td > status</ td >
6097
6106
< td > string</ td >
6098
6107
< td > true</ td >
6099
- < td > </ td >
6108
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > The status of this review schedule possible values are:
6109
+ SCHEDULED
6110
+ EXEMPT_PRISONER_DRUG_OR_ALCOHOL_DEPENDENCY
6111
+ EXEMPT_PRISONER_OTHER_HEALTH_ISSUES
6112
+ EXEMPT_PRISONER_FAILED_TO_ENGAGE
6113
+ EXEMPT_PRISONER_ESCAPED_OR_ABSCONDED
6114
+ EXEMPT_PRISONER_SAFETY_ISSUES
6115
+ EXEMPT_PRISON_REGIME_CIRCUMSTANCES
6116
+ EXEMPT_PRISON_STAFF_REDEPLOYMENT
6117
+ EXEMPT_PRISON_OPERATION_OR_SECURITY_ISSUE
6118
+ EXEMPT_SECURITY_ISSUE_RISK_TO_STAFF
6119
+ EXEMPT_SYSTEM_TECHNICAL_ISSUE
6120
+ EXEMPT_PRISONER_TRANSFER
6121
+ EXEMPT_PRISONER_RELEASE
6122
+ EXEMPT_PRISONER_DEATH
6123
+ COMPLETED
6124
+ </ code > </ pre > </ div > </ td >
6100
6125
< td >
6101
6126
6102
6127
</ td >
@@ -6106,7 +6131,20 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6106
6131
< td > calculationRule</ td >
6107
6132
< td > string</ td >
6108
6133
< td > true</ td >
6109
- < td > </ td >
6134
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > The calculation rule that was used to workout the review schedule window.
6135
+ Possible values are:
6136
+ PRISONER_READMISSION
6137
+ PRISONER_TRANSFER
6138
+ BETWEEN_RELEASE_AND_3_MONTHS_TO_SERVE
6139
+ BETWEEN_3_MONTHS_AND_3_MONTHS_7_DAYS_TO_SERVE
6140
+ BETWEEN_3_MONTHS_8_DAYS_AND_6_MONTHS_TO_SERVE
6141
+ BETWEEN_6_AND_12_MONTHS_TO_SERVE
6142
+ BETWEEN_12_AND_60_MONTHS_TO_SERVE
6143
+ MORE_THAN_60_MONTHS_TO_SERVE
6144
+ INDETERMINATE_SENTENCE
6145
+ PRISONER_ON_REMAND
6146
+ PRISONER_UN_SENTENCED
6147
+ </ code > </ pre > </ div > </ td >
6110
6148
< td >
6111
6149
6112
6150
</ td >
@@ -6196,7 +6234,12 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6196
6234
< td > version</ td >
6197
6235
< td > integer</ td >
6198
6236
< td > true</ td >
6199
- < td > </ td >
6237
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > The review schedule can change status numerous times.
6238
+ The version number indicates which version of the review schedule this one is, the higher the number the newer the update.
6239
+ use the version number in conjunction with the reference UUID.
6240
+ ie if you group the schedules by reference then the version numbers represent different versions of the same schedule.
6241
+ The final status of each grouping is COMPLETED.
6242
+ </ code > </ pre > </ div > </ td >
6200
6243
< td >
6201
6244
6202
6245
</ td >
@@ -6206,7 +6249,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6206
6249
< td > reviewCompletedBy</ td >
6207
6250
< td > string</ td >
6208
6251
< td > false</ td >
6209
- < td > </ td >
6252
+ < td > < p > When the review schedule has a completed review this will be populated by the name of the person who did the review.</ p >
6253
+ </ td >
6210
6254
< td >
6211
6255
6212
6256
</ td >
@@ -6216,7 +6260,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6216
6260
< td > reviewCompletedByRole</ td >
6217
6261
< td > string</ td >
6218
6262
< td > false</ td >
6219
- < td > </ td >
6263
+ < td > < p > When the review schedule has a completed review this will be populated by the role of the person who did the review.</ p >
6264
+ </ td >
6220
6265
< td >
6221
6266
6222
6267
</ td >
@@ -6226,7 +6271,37 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
6226
6271
< td > reviewCompletedAt</ td >
6227
6272
< td > string</ td >
6228
6273
< td > false</ td >
6229
- < td > </ td >
6274
+ < td > < p > When the review schedule has a completed review this will be populated with the date of the review.</ p >
6275
+ </ td >
6276
+ < td >
6277
+
6278
+ </ td >
6279
+ </ tr >
6280
+
6281
+ < tr >
6282
+ < td > reviewType</ td >
6283
+ < td > string</ td >
6284
+ < td > false</ td >
6285
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > When the review schedule has a completed review this will be populated with the type of the review.
6286
+ values are:
6287
+ REGULAR,
6288
+ PRE_RELEASE
6289
+ </ code > </ pre > </ div > </ td >
6290
+ < td >
6291
+
6292
+ </ td >
6293
+ </ tr >
6294
+
6295
+ < tr >
6296
+ < td > reviewReason</ td >
6297
+ < td > string</ td >
6298
+ < td > false</ td >
6299
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > When the review schedule has a completed review this will be populated with the reason for the review.
6300
+ values are:
6301
+ REOFFENCE,
6302
+ TRANSFER,
6303
+ REGULAR
6304
+ </ code > </ pre > </ div > </ td >
6230
6305
< td >
6231
6306
6232
6307
</ td >
@@ -6248,7 +6323,11 @@ <h3 id="schema-reviewschedules">ReviewSchedules</h3>
6248
6323
< td > reviewSchedules</ td >
6249
6324
< td > array</ td >
6250
6325
< td > true</ td >
6251
- < td > </ td >
6326
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > A list of review schedules for this prisoner.
6327
+ Note that this will return multiple versions of the the same schedule.
6328
+ This is because down stream clients need to know the previous states of the review schedules.
6329
+ grouping by reference and then ordering by highest version number will present the review schedules with the most up to date data.
6330
+ </ code > </ pre > </ div > </ td >
6252
6331
< td >
6253
6332
< a href ='#schema-reviewschedule '> ReviewSchedule</ a >
6254
6333
</ td >
@@ -6303,8 +6382,26 @@ <h3 id="schema-inductionschedule">InductionSchedule</h3>
6303
6382
< td > status</ td >
6304
6383
< td > string</ td >
6305
6384
< td > false</ td >
6306
- < td > < p > The current status of the Induction Schedule</ p >
6307
- </ td >
6385
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > The current status of the Induction Schedule.
6386
+ list of values:
6387
+ SCHEDULED
6388
+ COMPLETED
6389
+ EXEMPT_PRISONER_DRUG_OR_ALCOHOL_DEPENDENCY
6390
+ EXEMPT_PRISONER_OTHER_HEALTH_ISSUES
6391
+ EXEMPT_PRISONER_FAILED_TO_ENGAGE
6392
+ EXEMPT_PRISONER_ESCAPED_OR_ABSCONDED
6393
+ EXEMPT_PRISONER_SAFETY_ISSUES
6394
+ EXEMPT_PRISON_REGIME_CIRCUMSTANCES
6395
+ EXEMPT_PRISON_STAFF_REDEPLOYMENT
6396
+ EXEMPT_PRISON_OPERATION_OR_SECURITY_ISSUE
6397
+ EXEMPT_SECURITY_ISSUE_RISK_TO_STAFF
6398
+ EXEMPT_SYSTEM_TECHNICAL_ISSUE
6399
+ EXEMPT_PRISONER_TRANSFER
6400
+ EXEMPT_PRISONER_RELEASE
6401
+ EXEMPT_PRISONER_DEATH
6402
+ EXEMPT_SCREENING_AND_ASSESSMENT_IN_PROGRESS
6403
+ EXEMPT_SCREENING_AND_ASSESSMENT_INCOMPLETE
6404
+ </ code > </ pre > </ div > </ td >
6308
6405
< td >
6309
6406
6310
6407
</ td >
@@ -6314,8 +6411,16 @@ <h3 id="schema-inductionschedule">InductionSchedule</h3>
6314
6411
< td > calculationRule</ td >
6315
6412
< td > string</ td >
6316
6413
< td > false</ td >
6317
- < td > < p > The Induction Schedule rule used to determine deadline date.</ p >
6318
- </ td >
6414
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > The Induction Schedule rule used to determine deadline date.
6415
+ list of values are:
6416
+ NEW_PRISON_ADMISSION
6417
+ EXISTING_PRISONER_LESS_THAN_6_MONTHS_TO_SERVE
6418
+ EXISTING_PRISONER_BETWEEN_6_AND_12_MONTHS_TO_SERVE
6419
+ EXISTING_PRISONER_BETWEEN_12_AND_60_MONTHS_TO_SERVE
6420
+ EXISTING_PRISONER_INDETERMINATE_SENTENCE
6421
+ EXISTING_PRISONER_ON_REMAND
6422
+ EXISTING_PRISONER_UN_SENTENCED
6423
+ </ code > </ pre > </ div > </ td >
6319
6424
< td >
6320
6425
6321
6426
</ td >
@@ -6390,7 +6495,10 @@ <h3 id="schema-inductionschedule">InductionSchedule</h3>
6390
6495
< td > version</ td >
6391
6496
< td > integer</ td >
6392
6497
< td > false</ td >
6393
- < td > </ td >
6498
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > The induction schedule can change status numerous times.
6499
+ When looking at the plp-induction-schedule/history of the inductions.
6500
+ The version number indicates which version of the induction schedule this one is, the higher the number the newer the update.
6501
+ </ code > </ pre > </ div > </ td >
6394
6502
< td >
6395
6503
6396
6504
</ td >
@@ -6434,7 +6542,9 @@ <h3 id="schema-inductionschedules">InductionSchedules</h3>
6434
6542
< td > inductionSchedules</ td >
6435
6543
< td > array</ td >
6436
6544
< td > true</ td >
6437
- < td > </ td >
6545
+ < td > < div class ="highlight "> < pre class ="highlight plaintext " tabindex ="0 "> < code > A list of induction schedule versions for this prisoner. The prisoner will only have one induction schedule but for various reasons the schedule can be updated.
6546
+ This list will show each change the schedule has been through. This allows for reports to be generated.
6547
+ </ code > </ pre > </ div > </ td >
6438
6548
< td >
6439
6549
< a href ='#schema-inductionschedule '> InductionSchedule</ a >
6440
6550
</ td >
0 commit comments