Skip to content

Commit f66fdc4

Browse files
Deploying to gh-pages from @ c79fc2d 🚀
1 parent f682ed2 commit f66fdc4

39 files changed

+129
-35659
lines changed

documentation/api/index.html

+128-18
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,9 @@ <h4 id="v1-persons-hmppsid-plp-review-schedule-get-responses">Responses</h4>
11161116
"version": "integer",
11171117
"reviewCompletedBy": "string",
11181118
"reviewCompletedByRole": "string",
1119-
"reviewCompletedAt": "string"
1119+
"reviewCompletedAt": "string",
1120+
"reviewType": "string",
1121+
"reviewReason": "string"
11201122
}
11211123
]
11221124
}
@@ -6054,7 +6056,11 @@ <h3 id="schema-dataresponsereviewschedules">DataResponseReviewSchedules</h3>
60546056
</table>
60556057

60566058
<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>
60586064

60596065
<table class='schema-reviewschedule'>
60606066
<thead>
@@ -6066,7 +6072,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
60666072
<td>reference</td>
60676073
<td>string</td>
60686074
<td>true</td>
6069-
<td></td>
6075+
<td><p>The UUID reference for the review schedule record.</p>
6076+
</td>
60706077
<td>
60716078

60726079
</td>
@@ -6076,7 +6083,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
60766083
<td>reviewDateFrom</td>
60776084
<td>string</td>
60786085
<td>true</td>
6079-
<td></td>
6086+
<td><p>The earliest date that the review should be carried out.</p>
6087+
</td>
60806088
<td>
60816089

60826090
</td>
@@ -6086,7 +6094,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
60866094
<td>reviewDateTo</td>
60876095
<td>string</td>
60886096
<td>true</td>
6089-
<td></td>
6097+
<td><p>The latest date that the review should be carried out.</p>
6098+
</td>
60906099
<td>
60916100

60926101
</td>
@@ -6096,7 +6105,23 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
60966105
<td>status</td>
60976106
<td>string</td>
60986107
<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>
61006125
<td>
61016126

61026127
</td>
@@ -6106,7 +6131,20 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
61066131
<td>calculationRule</td>
61076132
<td>string</td>
61086133
<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>
61106148
<td>
61116149

61126150
</td>
@@ -6196,7 +6234,12 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
61966234
<td>version</td>
61976235
<td>integer</td>
61986236
<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>
62006243
<td>
62016244

62026245
</td>
@@ -6206,7 +6249,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
62066249
<td>reviewCompletedBy</td>
62076250
<td>string</td>
62086251
<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>
62106254
<td>
62116255

62126256
</td>
@@ -6216,7 +6260,8 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
62166260
<td>reviewCompletedByRole</td>
62176261
<td>string</td>
62186262
<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>
62206265
<td>
62216266

62226267
</td>
@@ -6226,7 +6271,37 @@ <h3 id="schema-reviewschedule">ReviewSchedule</h3>
62266271
<td>reviewCompletedAt</td>
62276272
<td>string</td>
62286273
<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>
62306305
<td>
62316306

62326307
</td>
@@ -6248,7 +6323,11 @@ <h3 id="schema-reviewschedules">ReviewSchedules</h3>
62486323
<td>reviewSchedules</td>
62496324
<td>array</td>
62506325
<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>
62526331
<td>
62536332
<a href='#schema-reviewschedule'>ReviewSchedule</a>
62546333
</td>
@@ -6303,8 +6382,26 @@ <h3 id="schema-inductionschedule">InductionSchedule</h3>
63036382
<td>status</td>
63046383
<td>string</td>
63056384
<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>
63086405
<td>
63096406

63106407
</td>
@@ -6314,8 +6411,16 @@ <h3 id="schema-inductionschedule">InductionSchedule</h3>
63146411
<td>calculationRule</td>
63156412
<td>string</td>
63166413
<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>
63196424
<td>
63206425

63216426
</td>
@@ -6390,7 +6495,10 @@ <h3 id="schema-inductionschedule">InductionSchedule</h3>
63906495
<td>version</td>
63916496
<td>integer</td>
63926497
<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>
63946502
<td>
63956503

63966504
</td>
@@ -6434,7 +6542,9 @@ <h3 id="schema-inductionschedules">InductionSchedules</h3>
64346542
<td>inductionSchedules</td>
64356543
<td>array</td>
64366544
<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>
64386548
<td>
64396549
<a href='#schema-inductionschedule'>InductionSchedule</a>
64406550
</td>

0 commit comments

Comments
 (0)