Open - The Scottish Government

advertisement
ScotXed Data Collection Specification
Community Payback Orders Data Collection
Data Specification – 2015 Uplift
Data Coverage – 1 April 2014 to 31 March 2015
Submission deadline to SG – End August 2015
Contents
SECTION 1
Collection Overview
1.1 Background
1.2 Purpose of this document
1.3 Collection Period and Scope
5
SECTION 2
Data Collection Community Payback Orders
2.1 Form
2.2 Section - Local Authority
2.3 Section – CPO Orders
2.4 Section – CPO Details
Section
2.5 Section – Client and Order Details
Section
2.6 Section – Stage 1
2.7 Section – Stage 1 Section A
2.8 Section – Stage 1 Section B
2.9 Section – Stage 1 Section C
2.10 Section – Stage 1 Section D
2.11 Section – Stage 1 Section E
2.12 Section – Stage 1 Section F
2.13 Section – Stage 2
2.14 Section – Stage 2 Section G
2.15 Section – Stage 3
2.16 Section – Stage 3 Section H
2.17 Section – Stage 3 Section J
2.18 Section – Stage 3 Section K
2.19 Section – Stage 3 Section L
2.20 Section – Stage 3 Section M
9
SECTION 3
Reports
Generic Rules
Tables
Appendix A - Guidance
A.1 Form
A.2 Sections
A.3 Fields
Appendix B - Rule Details
A.4 Definitions
Appendix B - List Definitions
Lacodes
Genders
Ethnic Origins
Employment Statuses
Court Types
Court Codes
Transfer types
Reason Terminations
Outcome Terminations
YesNoList
Transfer types2
Freas Ошибка! Закладка не определена.
Ireas 147
Wreas
Treas 149
5
5
5
9
10
11
11
11
11
11
16
16
20
29
33
42
45
48
48
57
57
61
71
84
88
93
93
94
130
130
131
136
137
138
138
139
140
140
145
145
146
146
147
148
Page 2 of 149
Revision history
Rev
Date
v1.0
17/12/2014
Description
Reuse CPO 2011 v1.20 spec

Removed the following fields:

v1.1
02/02/2015
Author


o
CtyTrans, MeasOffSup,
WofFill, WoffEmp, WoffCust,
WcontLate, WsuitWork,
WcurrStaff, WoffNtnup,
WcurrSup, WothClbsd,
WothSvbsd, Foffill, Foffemp,
Foffcust, Fswstaff, Foffntnup,
Fcurrsup, FothClbsb,
FothSvbsd, Ioffill, IofFemp,
IoffCust, IswStaff, IfdcLate,
IcurrSup, IothClbsd,
IothSvbsd
o
All fields in “S2 Order Details”
section
o
TnonCom2, TrctDet2,
TotFill2, ToffEmp2, TdifWrk2,
TdifSws2, TothClbsd2,
TothSvbsd2, DatupWoaTer2
o
All Fields in “S2
Requirements Imposed”
section
o
All Fields in “S2 Breach
Details” section
o
MeasOffSup3, LenOffSup3,
DatOffSup3, DatOffTer3,
DatComImp3, AmtComp3,
DatComTer3,
DatupWoaCmp2, TnonCom3,
TcrtDet3, TofFill3, ToffEmp3,
TdifWrk3, TdifSws3,
TothClbsd3, TothSvbsd3,
DatupWoaTer3, CalProg3,
ConProg3, CsogProg3,
UnacProg3, DatProgImp3,
DatProgTer3, DatResImp3,
DatResTer3, DatMenImp3,
DatMenTer3, DatDrugImp3,
DatDrugTer3, DatAlcImp3,
DatAlcTer3, DatConImp3,
DatConTer3, MeaRmv3,
DatRmvImp3, DatRmvTer3,
CtyTrans3
Review
Check
Approve
A. Fleming
Added the following fields:
o
LaSysNo
o
WorkReas
o
FdcReas
o
IcsmReas
o
DatupWoaFin2
o
TReas2
o
DatupWoaFin3
o
TReas3
Added error codes for the following
fields:
o
WorkReas
o
FdcReas
o
IcsmReas
o
DatupWoaFin2
o
TReas2,
o
DatUpWoaFin3
o
TReas3
M. Osman
Page 3 of 149
Rev
Date
1.2
30/03/2015
Description
Author

Added another error check under
DatupWoaFin3

Updated Repeatable Representation of
CPO Details to include LaSysNo

Updated Table 6 and 16 to include the
unpaid activity or other activity and
supervision count
Review
Check
Approve
M. Osman
Approvals
This document requires the following approvals:
Rev
Name
Representing
Signature
Page 4 of 149
SECTION 1
Collection Overview
1.1 Background
This collection will obtain data on community payback orders, more specifically all orders
which are active at some point during the financial year in question. The data will be
requested at the end of the year in question, will be supplied by most data providers by the
end of August and is anticipated being published around the December after the year in
question.
The data items which are to be collected can found in section 1.3 below.
1.2 Purpose of this document
The purpose of this document is to define the Community Payback Orders data collection.
This specification is valid for the validity period(s) shown on the cover sheet of this document.
Please refer to Appendix A, which provides guidance on how to make the best use of this
Specification.
1.3 Collection Period and Scope
Data is submitted to the Scottish Government on an annual basis, starting with 2012-13. We
would expect that most authorities will now be able to submit data by the end of August in the
following year.
Information is required from all 32 local authorities.
The details to be collected are as follows

Client and Order Details
o
S number (formerly known as SCRO number)
o
Order number (or other suitable identifier which allows distinction to be made
between different orders for the same person)
o
Local authority system number
o
Date of Birth
o
Ethnic origin (drop down menu - 2011 Census classification)
o
Gender
o
Date order imposed by court
Page 5 of 149

Stage One Order on Commencement

Stage1 Section A – Court Order Details




o
Employment status at first interview
o
CPO issued with request for court progress reviews?
o
Type of court
o
Court Code
o
Has order been transferred in?
Stage1 Section B – Supervision Details
o
Offender supervision requirement issued?
o
Length of offender supervision requirement (in months)
o
Compensation requirement issued?
o
Amount of compensation
o
Unpaid work or other activity requirement issued?
o
Hours relating to unpaid work or other activity requirement
Stage1 Section C – Work Placement
o
Date work placement commenced
o
Work placement did not commence within 7 working days of date of
sentence - reason
Stage1 Section D – Programme Issued
o
Programme requirement issued?
o
Caledonian programme imposed?
o
Constructs programme imposed?
o
CSOGP programme imposed?
o
Unaccredited programme imposed?
o
Residence requirement issued?
o
Mental health treatment requirement issued?
o
Drug treatment requirement issued?
o
Alcohol treatment requirement issued?
o
Conduct requirement issued?
Stage1 Section E – First Direct Contact
o
Date of first direct contact with offender
o
First direct contact did not take place within 1 working day of date of
sentence - reason
Page 6 of 149

Stage1 Section F – Induction Process
o
Date first induction / case management meeting took place
o
Induction / case management process did not start within 5 working days of
date of sentence - reason
Stage Two – State of Order at 31st March if still in force at that date

Stage2 Section G – Unpaid Work or Other Activity
o
Unpaid work or other activity requirement issued?
o
Date unpaid work or other activity requirement imposed by court
o
Unpaid work or other activity requirement been successfully completed?
o
Date unpaid work or other activity requirement completed/terminated
o
Hours relating to unpaid work
o
Hours relating to other activity
o
Unpaid work or other activity requirement was not completed within timescale
- reason
Stage three – Order on Completion



Stage3 Section H – Order Details
o
Employment status on termination/completion
o
Order contained offender supervision requirement?
o
Order contained compensation requirement?
Stage3 Section J – Unpaid Work or Other Activity
o
Unpaid work or other activity requirement issued?
o
Date unpaid work or other activity requirement imposed by court
o
Unpaid work or other activity requirement been successfully completed?
o
Date unpaid work or other activity requirement completed/terminated
o
Hours relating to unpaid work
o
Hours relating to other activity
o
Unpaid work or other activity requirement was not completed within timescale
- reason
Stage3 Section K – Requirements Imposed
o
Order contained programme requirement?
Page 7 of 149


o
Residence requirement issued?
o
Mental health treatment requirement issued?
o
Drug treatment requirement issued?
o
Alcohol treatment requirement issued?
o
Conduct requirement issued?
o
Restricted movement requirement issued?
o
Length of restricted movement requirement (in months)
Stage3 Section L – Termination & Transfer Details
o
Date order terminated/completed
o
Reason for termination/ completion
o
Main outcome at termination
o
Where has order been transferred to?
Stage3 Section M –Breach Details
o
Breach applications during life of order
o
Breach applications during life of order lodged within 5 working days
o
Breach applications resulted in changes to order?
Page 8 of 149
SECTION 2
Data Collection Community Payback Orders
2.1 Form
Properties
Title
Xml Root Element
Is Strict
Community Payback Orders Data Collection
CommunityPaybackOrders
No
Table 1 - Form Properties
Page 9 of 149
2.2 Section - Local Authority
Properties
Properties
Title
Contributes to Xml
Xml Element Name
Is Repeatable
Local Authority
Yes
LocalAuthority
No
Repeatable Representation
Table 2 - Section Properties
Table 2 - Section Fields
Fields
Name
Xml
Anon
Searchable
Format
Value(s)
Code
LaCode
No
No
List
Lacodes
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO4001
Must be present
Check that every CPO record has a Local Authority code
Error
Format
CPO4002
LA Code is invalid
Check that the code is a valid Scottish Government Local Authority Code
Error
Page 10 of 149
2.3 Section – CPO Orders
Properties
Title
Contributes to Xml
Xml Element Name
Is Repeatable
CPO Orders
Yes
CpoOrders
No
Repeatable Representation
Table 3.3 - Section Properties
Table 2.3 - Section Fields
2.4 Section – CPO Details
Section
Title
Contributes to Xml
Xml Element Name
Is Repeatable
Repeatable Representation
CPO Details
Yes
CpoDetails
Yes
{SNUMBER}, {ORDERNO}
Table 4.4 - Section Properties
Table 2.4 - Section Fields
2.5 Section – Client and Order Details
Section
Title
Client and Order Details
Contributes to
Xml
Yes
Xml Element Name
ClientDetails
Is Repeatable
Repeatable Representation
No
Parent
CpoDetails
Table 5.5 - Section Properties
Page 11 of 149
Table 2.5 - Section Fields
Fields
Name
Xml
Anon
Searchable
Format
Value(s)
S number
SNumber
No
Yes
Regular
S[0-9] [0-9] [0-9] [0-9] [0-9] [0-9]/ [0-9] [0-9][a-zA-Z]
Expression
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO6001
Must be present
S Number is a mandatory field and must not be blank
Error
Format
CPO6002
S number is not in the required format.
However, if person has never committed an
offence in Scotland, please ignore this error
message.
The S Number field must have a valid value (begins with “S”, then has up to
6 numbers, followed by “/”, then 2 numbers and a letter at the end), except if
the person has never committed an offence in Scotland.
Error
If the combination of stages is not allowable
CPO6000
The submitted combination of Stages is
prohibited. Please refer to guidance for a list
of permitted combinations.
The submitted combination of Stages is prohibited. Please refer to guidance
for a list of permitted combinations.
Error
Name
Xml
Anon
Searchable
Format
Order Number
OrderNo
No
Yes
No format
Page 12 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO6003
Must be present
Order Number is a mandatory field and must not be blank
Error
Unique
CPO6004
The combination of S Number and Order
Number is not unique within local authority
area
Every combination of S Number and Order Number must be unique within
each local authority area
Error
Xml
Anon
Searchable
Format
LaSysNo
No
Yes
No format
Value(s)
Name
Local authority system
number
Validation
Rule
Error Code
Error Message
Error Description
Level
Variable not compulsory so no error checks
Name
Xml
Anon
Searchable
Format
Date of Birth
DateOfBirth
No
No
Date
Page 13 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO3001
Must be present
Date of birth is a mandatory field and must not be blank
Error
Format
CPO3002
Must be a valid value
Must be in the format dd-mm-yyyy
DateOfBirth < DatOrdImp
CPO3003
Date of Birth must be before the Date the
Order was imposed
Date of Birth must be before the Date the Order was imposed.
Error
DatOrdImp – DateofBirth < 12 years
CPO3004
Person cannot be less than 12 years of age
Person cannot be aged under 12 (i.e. date of birth has to be at least 12 years
after date order imposed by Court).
Error
(DatOrdImp – DateOfBirth )=> 12 years and
(DatOrdImp – DateOfBirth )< 16 years
CPO3005
Person aged 12, 13, 14 or 15 may be an
error
Person is aged between 12 and 15 years of age (i.e. date of birth is greater
than date order imposed by Court by at least 12 years but less than 16
years). Please check that this is correct.
Warning
DateOfBirth >= 1st January 1900
CPO3273
Person cannot have been born before 1900
Person cannot have been born before 1900
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Gender
Gender
No
No
List
Genders
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO4003
Must be present
Gender is a mandatory field and must not be blank
Error
Format
CPO4004
Must be a valid value
An invalid Gender code has been entered that does not exist on the predefined list
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Ethnic Origin
EthnicOrigin
No
No
List
Ethnic Origins
Page 14 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO4005
Must be present
Ethnic Group is a mandatory field and must not be blank
Error
Format
CPO4006
Must be a valid value
An invalid Ethnic Group code has been entered that does not exist on the
pre-defined list
Error
Xml
Anon
Searchable
Format
DatOrDimp
No
No
Date
Value(s)
Name
Date order imposed by
court
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO3006
Must be present
Date order imposed by court is a mandatory field and must not be blank
Error
Format
CPO3007
Must be a valid date
Date format for date order imposed by court invalid - must be DD-MM-YYYY
Error
DatOrDimp > DateOfBirth
CPO3008
Must be after date of birth
Date order imposed by court must be at a later date than date of birth.
Error
DatOrDimp =>01/02/2011
CPO3009
Must be on or after 1 February 2011
Date order imposed by court must be on or after 1 February 2011 (date of
introduction of CPOs).
Error
DatOrDimp =< {PeriodEndDate}
CPO3009a
Must be on or before the end of the current
reporting period
Date order imposed by court must be on or before {PeriodEndDate} (last day
of the current reporting year)
Error
{PeriodStartDate} <= DatOrDimp =<
{PeriodEndDate} when OffSupReq is not
blank
CPO3009b
Must be during the current reporting period if
stage 1 details have been provided
Date order imposed by court must be between {PeriodStartDate} and
{PeriodEndDate} inclusive if stage 1 details have been provided.
Error
Page 15 of 149
2.6 Section – Stage 1
Properties
Title
Contributes to Xml
Xml Element Name
Is Repeatable
Stage 1
Yes
StageOne
No
Repeatable Representation
Parent
CpoDetails
Table 6.6 - Section Properties
2.7 Section – Stage 1 Section A
Properties
Title
Contributes to Xml
S1 court Order
Details
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
StageOne
Table 7.7 - Section Properties
Table 8.7 - Section Fields
Fields
Name
Xml
Anon
Parent
Searchable
Format
Page 16 of 149
Value(s)
Employment Status at
First Interview
Empstat
No
No
List
Employment Statuses
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO4007
Must be present
Employment Status at First Interview is a mandatory field and must not be
blank
Error
Format
CPO4008
Must be a valid value
An invalid Employment Status at First Interview code has been entered that
does not exist on the pre-defined list
Error
Page 17 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
CPO issued with
request for court
progress reviews?
Progrev
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5001
Must be present
CPO issued with request for court progress reviews is a mandatory field and
must not be blank
Error
Format
CPO5002
Must be a valid value
An invalid CPO issued with request for court progress reviews code has
been entered (must equal either 1=Yes or 0=No).
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Type of court
CrtType
No
No
List
Court types
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO4009
Must be present
Type of Court is a mandatory field and must not be blank
Error
Format
CPO4010
Must be a valid value
An invalid Type of Court code has been entered that does not exist on the
pre-defined list
Error
Page 18 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Court code
CrtCode
No
No
List
Court codes
Validation
Error Code
Error Message
Error Description
Level
Format
CPO4011
Must be in correct format.
Court code must be a 4-digit numerical value
Error
Required if
CPO4012
Must be present if sheriff or JP court
Court Code is mandatory and must not be blank where Type of court =
“Sheriff solemn” or “Sheriff summary” or “Justice of the peace”
Error
CPO4013
Must not be present if High Appeal or
Stipendiary Magistrates or Court outwith
Scotland
Court Code must be blank where Type of court =”High/appeal” or
“Stipendiary magistrates” or “Court outwith Scotland”.
Error
CPO4225
Must be in the correct list of 4 digit codes.
Court code must be in the list of valid 4 digit codes for Sheriff Courts where
Type of court is “Sheriff solemn” or “Sheriff summary”
Error
(CrtType = ‘02’) or (CrtType = ‘03’) or
(CrtType = ‘05’)
Blank if
(CrtType = ‘01’) or (CrtType = ‘04’) or
(CrtType = ‘06’)
Must Be In Correct List
Court code must be in the list of valid 4 digit codes for Justice of the Peace
Courts where Type of court is “Justice of the peace”
Name
Xml
Anon
Searchable
Format
Value(s)
Has order been
transferred in?
Trsfer
No
No
List
Transfer types
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO4014
Must be present
Has order been transferred in is a mandatory field and must not be blank
Error
Format
CPO4015
Must be a valid value
An invalid order been transferred in code has been entered that does not
exist on the pre-defined list
Error
Page 19 of 149
2.8 Section – Stage 1 Section B
Properties
Title
Contributes to Xml
S1 Supervision
Details
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageOne
Table 9.8 - Section Properties
Table 10.8 - Section Fields
Name
Xml
Anon
Searchable
Format
Value(s)
Offender supervision
requirement issued?
OffSupReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Page 20 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5003
Must be present
Offender supervision requirement issued is a mandatory field and must not
be blank
Error
Format
CPO5004
Must be a valid code
An invalid offender supervision requirement issued code has been entered
(must equal either 1=Yes or 0=No).
Error
OffSupReq must equal ‘1’
CPO5005
Must equal ‘1’
Offender supervision requirement issued must equal ‘1’
Error
when any one of following equal ‘1’ :
CompReq
when any of the following requirements
issued = ‘1’
ProgReq
Compensation
Programme requirement issued
ResReq
Programme
Residence Requirement issued
MenHeaReq
Residence
Mental Health Treatment Requirement issued
DrugReq
Mental Health Treatment
Drug Treatment Requirement issued
AlcReq
Drug Treatment
Alcohol Treatment Requirement issued
ConReq
Alcohol Treatment
Conduct Requirement issued
if any of the following = ‘1’
Compensation Requirement issued
Conduct
Must equal ‘1’
CPO5006
Must equal “Yes” as person < 18
Offender supervision requirement issued must equal ‘1’ as person is aged
under 18 (i.e. Date order imposed by court minus Date of Birth equals less
than 18 years).
Error
CPO5007
Can’t be no offender supervision
requirement issued and no unpaid work or
other activity requirement issued.
Offender supervision requirement issued and unpaid work or other activity
requirement issued both equal ’0’ – order must contain one or other or both.
Error
if DatOrdImp – DateOfBirth < 18 years
Must not = ‘0’
If UpWoaReq = ‘0’
Page 21 of 149
Page 22 of 149
Name
Xml
Anon
Searchable
Format
Length of offender
supervision requirement
LenOffSup
No
No
Float
Page 23 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO2001
This is an invalid entry
Entry must be in numerical format
Error
Required if
CPO2002
Must be present if an offender supervision
requirement issued =’1’
Every record where offender supervision requirement issued =’1’ must have
a non-missing value for length of offender supervision requirement.
Error
CPO2003
Must not be present if offender supervision
requirement issued =’0’
Every record where offender supervision requirement issued =’0’ must have
a missing value for length of offender supervision requirement.
Error
CPO2004
Must be a valid value within the specified
range
If offender supervision requirement issued = ‘1’ then length of offender
supervision requirement must be an integer in the range of 1 to 36 inclusive
Error
CPO2005
Must be a minimum of 6 months (unless a.
person is 16 or 17 years, with a level 1
upwoa req and an off sup req or b. the order
was transferred in – in either case, must be
greater than 0)
OffSupReq= ‘1’
Blank if
OffSupReq= ‘0’
(OffSupReq = ‘1’
and
(LenOffSup <1 or LenOffSup > 36))
(OffSupReq='1'
and
Trsfer = ‘01’
and
Offender supervision requirements must generally be at least 6 months, the
exceptions being when the order has been transferred in or when the
offender was aged under 18 and was given an unpaid work requirement of
100 hours or less.
(DatOrDimp – DateofBirth =>18 years)
and
LenOffSup < 6)
Or
(OffSupReq='1'
and
(16 years <= DatOrdImp – DateofBirth < 18
years)
and
UpWoaReq= ‘1’
and
Page 24 of 149
Error
HrsUpWoa <= 100
and
LenOffSup < 1)
Or
(OffSupReq=’1’
and
(16 years <= DatOrdImp – DateofBirth < 18
years)
and
(LenOffSup < 6))
and
Trsfer = ‘01’ and UpWoaReq=’0’
(OffSupReq = ‘Yes and
UpWoaReq= ‘Yes’ and
CPO2006
Length of requirement is less than 3 months
which may be an error.
Length of offender supervision requirement is less than 3 months. Please
check this is correct.
HrsUpWoa <= 100
And
(16 years <= DatOrdImp – DateofBirth < 18
years))
And
(LenOffSup<3)
Page 25 of 149
Warning
Name
Xml
Anon
Searchable
Format
Value(s)
Compensation
requirement issued?
CompReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5008
Must be present
Compensation requirement issued is a mandatory field and must not be
blank
Error
Format
CPO5009
Must be a valid code
An invalid compensation requirement issued code has been entered (must
equal either 1=Yes or 0=No).
Error
Compreq must = ‘0’ when OffSupReq= ‘0’
CPO5010
Must be no compensation requirement
issued when there is no offender supervision
requirement issued
Compensation requirement issued must equal “0” where offender
supervision requirement issued =”0”
Error
Name
Xml
Anon
Searchable
Format
Amount of
compensation
AmtComp
No
No
Float
Page 26 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO2007
This is an invalid entry
Entry must be in numerical format (decimals are accepted)
Format
Required if
CPO2008
Must be present if a compensation
requirement issued
Every record where compensation requirement issued =’1’ must have a nonmissing value for amount of compensation.
Error
Blank if CompReq =’0’
CPO2009
Must not be present if no compensation
requirement issued
Every record where compensation requirement issued =’0’ must have a
missing value for amount of compensation
Error
AmtComp> 0 if CompReq = ’1’
CPO2010
This value must be more than 0
Where compensation requirement issued =’1’, the amount of compensation
must be an Integer greater than 0.
Error
CompReq =’1’
Page 27 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Unpaid work or other
activity requirement
issued?
UpWoaReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5011
Must be present
Unpaid work or other activity requirement issued is a mandatory field and
must not be blank
Error
Format
CPO5012
Must be a valid code
An invalid unpaid work or other activity requirement issued code has been
entered (must equal either 1=Yes or 0=No).
Error
UpWoaReq = ‘0’
CPO5013
Must equal “No” as person is under 16 years
old.
Unpaid work or other activity requirement issued must equal ‘0’ if person is
aged under 16 (i.e. date order imposed by court minus date of birth must be
less than 16 years).
Error
CPO5014
There can’t be no unpaid work or other
activity requirement issued when there is no
offender supervision requirement issued
Offender supervision requirement issued and unpaid work or other activity
requirement issued both equal ’0’ – order must contain one or other or both.
Error
if DatOrDimp – DateOfBirth < 16 years
UpWoaReq <> ’0’
when OffSupReq=”0”.
Page 28 of 149
Name
Xml
Anon
Searchable
Format
Hours relating to unpaid
work or other activity
requirement
HrsUpWoa
No
No
Float
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO2011
This is an invalid entry
Entry must be in numerical format (decimals are accepted)
Error
Required if
CPO2012
Must be present if an unpaid work or other
activity requirement is issued
Every record where unpaid work or other activity requirement =’1’ must have
a non-missing value for hours relating to unpaid work or other activity
requirement
Error
CPO2013
Must not be present if no unpaid work or
other activity requirement is issued
Every record where unpaid work or other activity requirement =”0” must have
a missing value for hours relating to unpaid work or other activity
requirement
Error
CPO2014
Must be a valid value between 20 and 300
when unpaid work or other activity
requirement is issued (300 or less if the
order is transferred in)
Where unpaid work or other activity requirement =’1’, hours relating to
unpaid work or other activity requirement must be an integer between a
minimum of 20 and a maximum of 300 (minimum of 20 does not apply if
order is transferred in).
Error
CPO2015
Must be 100 hours or less if Justice of the
Peace.
Where court type =’05’ and unpaid work or other activity requirement =’1’,
hours relating to unpaid work or other activity requirement must be an integer
between a minimum of 20 and a maximum of 100 (minimum of 20 does not
apply if order is transferred in).
Error
UpWoaReq = ‘1’
Blank if
UpWoaReq = ‘0’
UpWoaReq = ‘1’ and Trsfer = ‘01’ and
(20 > HrsUpWoa or HrsUpWoa > 300) Or
(UpWoaReq = ‘1’ and Trsfer <> '01' and (1
> HrsUpWoa or HrsUpWoa > 300))
CrtType = ’05’ and UpWoaReq = ‘1’ and
Trsfer = '01' and
(20 > HrsUpWoa or HrsUpWoa > 100) Or
(CrtType = ’05’ and UpWoaReq = ‘1’ and
Trsfer <> '01' and (1 > HrsUpWoa or
HrsUpWoa > 100))
2.9 Section – Stage 1 Section C
Page 29 of 149
Properties
Title
Contributes to Xml
S1 Work Placement
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageOne
Table 11.9 - Section Properties
Table 12.9 - Section Fields
Name
Xml
Anon
Searchable
Format
Date work placement
commenced
DatWkCom
No
No
Date
Page 30 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO3010
Must be a valid value.
Date format for date work placement commenced invalid - must be DD-MMYYYY
Error
Required If
CPO3011
Must be present if unpaid work or other
activity requirement issued = ‘1’ unless in
custody or under supervision or order has
been transferred in or individual never at any
point commenced their work placement. If
the latter, please ignore this error message.
Every record where unpaid work or other activity requirement issued = ‘1’
must have a non-missing value for date work placement commenced,
unless:
Error
(UpWoaReq = ‘1’ ) and
((WorkReas is blank or WorkReas in
(01,02,04,05,06,07,09,10)) and Trsfer = ‘01’)
a.
Work placement did not commence within 7 working days of date of
sentence for reason “offender in custody” or “currently on order or
supervision” or
b. The variable “Has order been transferred in?” is not equal to “Not
transferred in” or person never commenced their work placement.
Must be blank if Trsfer <> ‘01’ or
UpWoaReq = ‘0’
CPO3012
Must be blank if no unpaid work or other
activity requirement or order has been
transferred in.
Date work placement commenced must be blank if “Unpaid work or other
activity requirement issued” = ”No” or if “Has order been transferred in?” is
not equal to “Not transferred in”.
Error
DatWkCom=> DateOrdImp
CPO3013
Must be after or equal to the date order
imposed where this field is required
Date work placement commenced must be on the same date or later than
date order imposed by court
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Work placement did not
commence within 7
working days of date of
sentence - reason
WorkReas
No
No
List
Wreas
Page 31 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4022
Must be a valid value
An invalid code has been entered that does not exist on the pre-defined list
Error
Required If
CPO4023
Must be present if an unpaid work or other
activity requirement is in place and the work
placement didn’t start within 7 working days
“Work placement did not commence within 7 working days of date of
sentence – reason” must have a valid value where:
Error
UpWoaReq = ‘1’
and
b. Work placement did not start within 7 working days (i.e. Date work
placement commenced less date order imposed by court less any other
known non-working days is greater than 7).
(DatWkCom – DatOrdImp + Holidays > 7)
Blank if
If UpWoaReq = ‘0’
or
If (UpWoaReq = ‘1’ and (Dat WkCom –
DatOrdImp + Holidays <= 7))
a. Unpaid work or other activity requirement =’1’ and
CPO4024
Must not be present if no unpaid work or
other activity requirement is in place or, an
unpaid work or other activity requirement is
in place and the work placement started
within 7 working days
“Work placement did not commence within 7 working days of date of
sentence – reason” must have a missing value where:
a. Unpaid work or other activity requirement =’0’ or
b. Unpaid work or other activity requirement =’1’ and work placement started
within 7 working days (i.e. Date work placement commenced less date order
imposed by court less any other known non-working days is less than or
equal to 7).
Page 32 of 149
Error
2.10 Section – Stage 1 Section D
Properties
Title
Contributes to Xml
S1 Requirements
Issued
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageOne
Table 13.10 - Section Properties
Table 14.10 - Section Fields
Name
Xml
Anon
Searchable
Format
Value(s)
Programme requirement
issued?
ProgReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Page 33 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5017
Must be present
Programme requirement issued is a mandatory field and must not be blank
Error
Format
CPO5018
Must be a valid value
An invalid value has been entered (must equal either 1=Yes or 0=No).
Error
ProgReg = ‘0’ when OffSupReq=’0’
CPO5019
Must be no programme requirement issued
where no offender supervision requirement
issued
Programme requirement issued must equal “0” where offender supervision
requirement issued =”0”
Error
ProgReg = ‘0’ when CrtType=’05’
CPO5105
Must be no programme requirement issued if
JP court
Programme requirement issued must equal ‘0’ where Court Type = ‘05’
Error
Page 34 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Caledonian programme
imposed?
CalProg
No
No
List
YesNoList
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4054
Must be a valid value
An invalid value has been entered (must equal either 1=Yes or 0=No).
Error
Blank if
CPO4055
Must not be present if no programme
requirement issued
Caledonian programme imposed must have a missing value where
programme requirement issued = ‘0’
Error
CPO4056
Must be present where there is a
programme requirement issued
Caledonian programme imposed code is mandatory where there is a
programme requirement issued
Error
ProgReg = ‘0’
Required if
ProgReg = ‘1’
Name
Constructs programme
imposed?
Xml
Anon
Searchable
Format
Value(s)
ConProg
No
No
List
YesNoList
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4057
Must be a valid value
An invalid value has been entered (must equal either 1=Yes or 0=No).
Error
Blank if
CPO4058
Must not be present if no programme
requirement issued
Constructs programme imposed must have a missing value where
programme requirement issued = ‘0’
Error
CPO4059
Must be present where there is a
programme requirement issued
Constructs programme imposed code is mandatory where there is a
programme requirement issued
Error
ProgReg = ‘0’
Required if
ProgReg = ‘1’
Page 35 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
CSOGP programme
imposed?
CsogProg
No
No
List
YesNoList
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4060
Must be a valid value
An invalid value has been entered (must equal either 1=Yes or 0=No).
Error
Blank if
CPO4061
Must not be present if no programme
requirement issued
CSOGP programme imposed must have a missing value where programme
requirement issued = ‘0’
Error
CPO4062
Must be present where there is a
programme requirement issued
CSOGP programme imposed code is mandatory where there is a
programme requirement issued
Error
ProgReg = ‘0’
Required if
ProgReg = ‘1’
Name
Xml
Anon
Searchable
Format
Value(s)
Unaccredited
programme imposed?
UnacProg
No
No
List
YesNoList
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4063
Must be a valid value
An invalid value has been entered (must equal either 1=Yes or 0=No).
Error
Blank if
CPO4064
Must not be present if no programme
requirement issued
Unaccredited programme imposed must have a missing value where
programme requirement issued = ‘0’
Error
CPO4065
Must be present where there is a
programme requirement issued
Unaccredited programme imposed code is mandatory where there is a
programme requirement issued
Error
ProgReg = ‘0’
Required if
ProgReg = ‘1’
A further error check is needed as follows:
Page 36 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
If ProgReq =’1’
CPO4066
Where programme requirement issued, at
least one programme type must be provided
Where programme requirement issued=’1’, then at least one of the following
must equal “Yes”:
Error
Then one of the following must equal ‘1’
CalProg,
Caledonian programme imposed
ConProg,
Constructs programme imposed
CsogProg,
CSOGP programme imposed
UnacProg
Unaccredited programme imposed.
Name
Xml
Anon
Searchable
Format
Value(s)
Residence requirement
issued?
ResReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5020
Must be present
Residence requirement issued is a mandatory field and must not be blank
Error
Format
CPO5021
Must be a valid code
An invalid residence requirement issued code has been entered (must equal
either 1=Yes or 0=No).
Error
ResReq = ‘0’ when OffSupReq=’0’
CPO5022
Must be no residence requirement issued
where offender supervision requirement
issued =’0’
Residence requirement issued must equal “0” where offender supervision
requirement issued =”0”
Error
Page 37 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Mental health treatment
requirement issued?
MenHeaReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5023
Must be present
Mental health treatment requirement issued is a mandatory field and must
not be blank
Error
Format
CPO5024
Must be a valid code
An invalid mental health treatment requirement issued code has been
entered (must equal either 1=Yes or 0=No).
Error
MenHeaReq = ‘0’ when OffSupReq = ‘0’
CPO5025
Must be no mental health treatment
requirement issued .where there is no
offender supervision requirement issued
Mental health treatment requirement issued must equal “0” where offender
supervision requirement issued =”0”
Error
MenHeaReq = ‘0’ when CrtType = ‘05’
CPO5026
Must be no mental health treatment
requirement issued.if JP court
Mental health treatment requirement issued must equal ‘0’ where Court Type
= ‘05’
Error
Page 38 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Drug treatment
requirement issued?
DrugReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5027
Must be present
Drug treatment requirement issued is a mandatory field and must not be
blank
Error
Format
CPO5028
Must be a valid code
An invalid drug treatment requirement issued code has been entered (must
equal either 1=Yes or 0=No).
Error
DrugReq =‘0’ when OffSupReq = ‘0’
CPO5029
Must be no drug treatment requirement
issued. where there is no offender
supervision requirement issued
Drug treatment requirement issued must equal “0” where offender
supervision requirement issued =”0”
Error
DrugReq =‘0’ when CrtType = ‘05’
CPO5030
Must be no drug treatment requirement
issued.if JP court
Drug treatment requirement issued must equal ‘0’ where Court Type = ‘05’
Error
Page 39 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Alcohol treatment
requirement issued?
AlcReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5031
Must be present
Alcohol treatment requirement issued is a mandatory field and must not be
blank
Error
Format
CPO5032
Must be a valid code
An invalid alcohol treatment requirement issued code has been entered
(must equal either 1=Yes or 0=No).
Error
AlcReq =‘0’ when OffSupReq = ‘0’
CPO5033
Must be no alcohol treatment requirement
issued where there is no offender
supervision requirement issued
Alcohol treatment requirement issued must equal “0” where offender
supervision requirement issued =”0”
Error
AlcReq = ‘0’ when CrtType = ‘05’
CPO5034
Must be no alcohol treatment requirement
issued if JP court
Alcohol treatment requirement issued must equal ‘0’ where Court Type =
‘05’’
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Conduct requirement
issued?
ConReq
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Page 40 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5035
Must be present
Conduct requirement issued is a mandatory field and must not be blank
Error
Format
CPO5036
Must be a valid code
An invalid conduct requirement issued code has been entered (must equal
either 1=Yes or 0=No).
Error
ConReq = ‘0’ when OffSupReq = ‘0’
CPO5037
Must be no conduct treatment requirement
issued where there is no offender
supervision requirement issued
Conduct requirement issued must equal “0” where offender supervision
requirement issued =”0”
Error
Page 41 of 149
2.11 Section – Stage 1 Section E
Properties
Title
Contributes to Xml
S1 First Direct
Contact
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageOne
Table 15.11 - Section Properties
Table 16.11 - Section Fields
Name
Xml
Anon
Searchable
Format
Date of first direct
contact with offender
DatDirCon
No
No
Date
Page 42 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory unless Trsfer <> ‘01’
CPO3014
Must be present unless order has been
transferred in or individual never at any point
turned up for their first direct contact. If the
latter, please ignore this error message.
Date of first direct contact with offender is a mandatory field and must not be
blank, unless “Has order been transferred in?” is not equal to “Not
transferred in” or person never at any point turned up for their first direct
contact.
Error
Must be blank if Trsfer <> ‘01’
CPO3272
Must be blank if order has been transferred
in
Date of first direct contact with offender must be blank if “Has order been
transferred in?” is not equal to “Not transferred in”.
Error
Format
CPO3015
Must be a valid code
Date format for date of first direct contact with offender invalid - must be DDMM-YYYY
Error
DatDirCon=> DataOrdImp
CPO3016
Must be on or after date order imposed.
Date of first direct contact with offender must be the same as or later than
date order imposed by court.
Error
Page 43 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
First direct contact did
not take place within 1
working day of date of
sentence - reason
FdcReas
No
No
List
Freas
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4067
Must be a valid value
An invalid code has been entered that does not exist on the pre-defined list
Error
Required if
CPO4068
Must be present if first direct contact did not
take place within 1 working day
“First direct contact did not take place within 1 working day of date of
sentence – reason” must have a valid value where first direct contact did not
take place within 1 working day (i.e. Date of first direct contact with offender
minus date order imposed by court minus any known non-working days is
greater than 1 day).
Error
CPO4069
Must not be present if first direct contact took
place within 1 working day
“First direct contact did not take place within 1 working day of date of
sentence - reason” must have a missing value where first direct contact took
place within 1 working day (i.e. Date of first direct contact with offender
minus date order imposed by court minus any known non-working days is
less than or equal to 1 day).
Error
DatDirCon – (DatOrdImp + Holidays) > 1
day
Blank if
DatDirCon – (DatOrdImp + Holidays)
<=1day
Page 44 of 149
2.12 Section – Stage 1 Section F
Properties
Title
Contributes to Xml
S1 Induction Process
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageOne
Table 17.12- Section Properties
Table 18.12 - Section Fields
Page 45 of 149
Name
Xml
Anon
Searchable
Format
Date first induction /
case management
meeting took place
DatinDst
No
No
Date
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO3017
Must be a valid value.
Date format for date first induction / case management meeting took place
invalid – must be DD-MM-YYYY.
Error
Mandatory unless
CPO3018
Must be present unless in custody or under
supervision or if order has been transferred
in or individual never at any point turned up
for their first induction/case management
meeting. If the latter, please ignore this error
message.
Every record must have a non-missing value for date first induction / case
management meeting took place, unless:
Error
IcsmReas in (03,07) or Trsfer <> ‘01’
a. “Induction process did not start within 5 working days of date of sentence
– reason” equals “offender in custody” or “offender currently on order or
supervision”, or
b. “Has order been transferred in?” is not equal to “Not transferred in” or
c. Person never at any point turned up for their first induction/case
management meeting.
Must be blank if Trsfer <> ‘01’
CPO4223
Must be blank if order has been transferred
in
Date first induction / case management took place must be blank if “Has
order been transferred in?” is not equal to “Not transferred in”.
Error
DatinDst => DatOrdImp
CPO3019
Must be on or after the date order imposed.
Date first induction / case management meeting took place must be the
same as or later than date order imposed by court.
Error
Page 46 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Induction / case
management process
did not start within 5
working days of date of
sentence - reason
IcsmReas
No
No
List
Ireas
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4091
Must be a valid value
An invalid code has been entered that does not exist on the pre-defined list
Error
Required if
CPO4092
Must be present if induction did not take
place within 5 working days
“Induction process did not start within 5 working days of date of sentence –
reason” must have a valid value where induction did not take place within 5
working days (i.e. date induction process started minus date order imposed
by court minus any known non-working days is greater than 5).
Error
CPO4093
Must not be present if induction took place
within 5 working days
“Induction process did not start within 5 working days of date of sentence reason” must have a missing value where induction took place within 5
working days (i.e. date induction process started minus date order imposed
by court minus any known non-working days is 5 or less).
Error
DatinDst – (DatOrdImp + Holidays) > 5
Blank if
DatinDst – (DatOrdImp + Holidays) <= 5
Page 47 of 149
2.13 Section – Stage 2
Properties
Title
Contributes to Xml
Xml Element Name
Is Repeatable
Stage Two
Yes
StageTwo
No
Repeatable Representation
Parent
CpoDetails
Table 19.13- Section Properties
2.14 Section – Stage 2 Section G
Properties
Title
Contributes to Xml
S2 Unpaid Work or
Other Activity
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageTwo
Page 48 of 149
Table 20.15- Section Properties
Table 21.15- Section Fields
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained unpaid
work or other activity
requirement?
UpWoaReq2
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5046
Must be present
Stage 2 order contained unpaid work or other activity requirement is a
mandatory field and must not be blank
Error
Format
CPO5047
Must be a valid code
An invalid stage 2 order contained unpaid work or other activity requirement
code has been entered (must equal either 1=Yes or 0=No).
Error
Page 49 of 149
Name
Xml
Anon
Searchable
Format
Date unpaid work or
other activity
requirement imposed by
court
DatupWoaImp2
No
No
Date
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO3041
Must be a valid value.
Must be a valid date in format DD-MM-YYYY.
Error
Required if
CPO3042
Must be present if there is stage 2 order
contained unpaid work or other activity
requirement
Where stage 2 order contained unpaid work or other activity requirement
=’1’, then stage 2 date unpaid work or other activity requirement imposed by
court must have a non-missing value.
Error
CPO3043
Must not be present if there is no stage 2
order contained unpaid work or other activity
requirement.
Where stage 2 order contained unpaid work or other activity requirement
=’0’, then stage 2 date unpaid work or other activity requirement imposed by
court must be blank.
Error
CPO3044
Must be present if there is a date
terminated/completed
Where stage 2 date unpaid work or other activity requirement
completed/terminated is not blank, stage 2 date unpaid work or other activity
requirement imposed by court must have a non-missing value.
Error
DatupWoaImp2 <= DatupWoaFin2
CPO3045
Must be on or before the date requirement
terminated/completed
For every record where stage 2 date unpaid work or other activity
requirement imposed by court and stage 2 date unpaid work or other activity
requirement completed/terminated are both not equal to missing, stage 2
date unpaid work or other activity requirement imposed by court must be a
date the same as or before stage 2 date unpaid work or other activity
requirement completed/terminated.
Error
DatupWoaImp2 => DatOrDimp
CPO3046
Must be on or after the date order imposed
by court
For every record where stage 2 date unpaid work or other activity
requirement imposed by court is not equal to missing, it must be a date the
same as or later than date order imposed by court.
Error
DatupWoaImp2 =< {PeriodEndDate}
CPO3046a
Must be on or before {PeriodEndDate}
Stage 2 date unpaid work or other activity requirement imposed by court
must be on or before {PeriodEndDate}
Error
UpWoaReq2 =’1’
Blank If
UpWoaReq2= ‘0’
Required if
DatupWoaFin2 <>Null
Page 50 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Unpaid work or other
activity requirement
been successfully
completed?
UpWoaCmpd2
No
No
List
YesNoList
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4119
Must be a valid value.
Where stage 2 order contained unpaid work or other activity requirement
=’1’, a valid stage 2 unpaid work or other activity requirement been
successfully completed must be entered (either 1=Yes or 0=No)
Error
Required if
CPO4120
Must be present if there is a stage 2 order
contained unpaid work or other activity
requirement
Stage 2 unpaid work or other activity requirement been successfully
completed is a mandatory field where stage 2 order contained unpaid work
or other activity requirement =’1’.
Error
CPO4121
Must not be present if there is no stage 2
order contained unpaid work or other activity
requirement
Stage 2 unpaid work or other activity requirement been successfully
completed must be blank where stage 2 order contained unpaid work or
other activity requirement =’0’.
Error
UpWoaReq2 = ‘1’
Blank if
UpWoaReq2 = ‘0’
Page 51 of 149
Name
Xml
Anon
Searchable
Format
Date unpaid work or
other activity
requirement
completed/terminated
DatupWoaFin2
No
No
Date
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO3047
Must be a valid value.
Must be a valid date in format DD-MM-YYYY.
Error
Required if
CPO3048
Must be present if a stage 2 unpaid work or
other activity requirement been successfully
completed
Where stage 2 unpaid work or other activity requirement been successfully
completed =’1’, then stage 2 date unpaid work or other activity requirement
completed/terminated must have a non-missing value.
Error
CPO3049
Must not be present if no stage 2 unpaid
work or other activity requirement was
issued
Where stage 2 order contained unpaid work or other activity requirement =’
0’ then stage 2 date unpaid work or other activity requirement
completed/terminated must have a missing value
Error
DatupWoaFin2 => DatupWoaImp2
CPO3050
Must be on or after the date requirement
imposed by court
For every record where stage 2 date unpaid work or other activity
requirement completed/terminated is not equal to missing, it must be a date
the same as or later than stage 2 date unpaid work or other activity
requirement imposed by court.
Error
DatupWoaFin2 => DatOrDimp
CPO3051
Must be on or after the date order imposed
by court
For every record where stage 2 date unpaid work or other activity
requirement completed/terminated is not equal to missing, it must be a date
the same as or later than date order imposed by court.
Error
DatupWoaFin2 must be =< {PeriodEndDate}
if not blank
CPO3051a
Must be on or before {PeriodEndDate}
Stage 2 date unpaid work or other activity requirement completed/terminated
must be on or before {PeriodEndDate}. If requirement completed/terminated
after end of year, field should be left blank.
Error
UpWoaCmpd2 =’1’
Blank if
UpWoaReq2=’0’
Page 52 of 149
Name
Xml
Anon
Searchable
Format
Hours relating to unpaid
work
HrSupW2
No
No
Float
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO2026
This is an invalid entry
Entry must be in numerical format
Error
CPO2080
Total hours of unpaid work plus other activity
must be within the range 20 to 300 inclusive.
Total hours of unpaid work plus other activity must equal a minimum of 20
and must not exceed 300.
Error
CPO2027
Must be present if a stage 2 unpaid work or
other activity requirement was issued and
has been successfully completed
Every record where stage 2 unpaid work or other activity requirement been
successfully completed =’1’ must have a non-missing value for stage 2 hours
relating to unpaid work.
Error
CPO2028
Must not be present if no stage 2 unpaid
work or other activity requirement was
issued or stage 2 unpaid work or other
activity requirement issued was not
completed
Where either:
Error
Value
Required if
UpWoaCmpd2 =’1’
Blank if
(UpWoaReq2=’1’ and UpWoaCmpd2=”0”)
Or
UpWoaReq2=’0’
a) Stage 2 order contained unpaid work or other activity requirement =’1 ‘
and stage 2 unpaid work or other activity requirement been successfully
completed =’0’, or
b) Stage 2 order contained unpaid work or other activity requirement =’ 0’
then stage 2 hours relating to unpaid work must have a missing value.
UpWoaCmpd2 =’1’
CPO2029
Must be a valid number in the range 14 and
300 inclusive
Where stage 2 unpaid work or other activity requirement been successfully
completed =’1’, stage 2 hours relating to unpaid work must be an integer with
a minimum of 14 and a maximum of 300.
Error
CPO2030
Must be at least 70% of the total hours from
the stage 2 unpaid work or other activity
requirement issued
Where stage 2 unpaid work or other activity requirement been successfully
completed =’1’, stage 2 hours relating to unpaid work must be least 2⅓ times
as large as stage 2 hours relating to other activity.
Error
and
(14 > HrSupW2 or HrSupW2 > 300)
HrSupW2 * 3 => HrSoa2 * 7
Page 53 of 149
Name
Xml
Anon
Searchable
Format
Hours relating to other
activity
HrSoa2
No
No
Float
Value(s)
Validation
Rule
Erro
Format
Value
Blank if
Code
Error Message
Error Description
Level
CPO2031
This is an invalid entry
Entry must be in numerical format (decimals are accepted)
Error
CPO2080
Total hours of unpaid work plus other activity
must be within the range 20 to 300 inclusive.
Total hours of unpaid work plus other activity must equal a minimum of 20
and must not exceed 300.
Error
CPO2033
Must not be present if no stage 2 unpaid
work or other activity requirement was
issued or stage 2 unpaid work or other
activity requirement issued was not
completed
Where either:
Error
(UpWoaReq2=’1’ and UpWoaCmpd2=”0”)
Or
UpWoaReq2=’0’
a) Stage 2 order contained unpaid work or other activity requirement =’1 ‘
and stage 2 unpaid work or other activity requirement been successfully
completed =’0’, or
b) Stage 2 order contained unpaid work or other activity requirement =’ 0’,
then stage 2 hours relating to other activity must have a missing value.
If UpWoaCmpd2 =’1’
then must be the case that 0 <= HrSoa2 <=
30 or HrSoa2 is missing
CPO2034
Cannot be a number greater than 30
Where stage 2 unpaid work or other activity requirement been successfully
completed =’1’, stage 2 hours relating to other activity must either be an
integer with a minimum of 0 and a maximum of 30 or have a missing value.
Page 54 of 149
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Unpaid work or other
activity requirement was
not completed within
timescale - reason
TReas2
No
No
List
Treas
Page 55 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4122
Must be a valid value
An invalid code has been entered that does not exist on the pre-defined list
Error
Required if
CPO4123
Must be present if a stage 2 unpaid work or
other activity requirement issued has been
successfully completed but was not
completed within timescale
TREAS2 must be answered if an unpaid work or other activity requirement
has been successfully completed but not within 3 months of imposition for
level 1 (up to 100 hours) requirements and not within 6 months for level 2
requirements (more than 100 hours)
Error
CPO4124
Must not be present if no stage 2 unpaid
work or other activity requirement issued or
a stage 2 unpaid work or other activity
requirement issued not been completed
successfully or a stage 2 unpaid work or
other activity requirement issued has been
successfully completed within timescale
TREAS2 must not be answered if:
Error
(UpWoaCmpd2 = ‘1’ and
(HrSupW2+HrSoa2 <= 100) and
(DatupWoaFin2 – DatupWoaImp2 > 3
months))
Or
(UpWoaCmpd2 = ‘1’ and
(HrSupW2+HrSoa2 > 100) and
(DatupWoaFin2 – DatupWoaImp2 > 6
months))
Blank if
UpWoaReq2 = ‘0’
Or
(UpWoaReq2 = ‘1’ and UpWoaCmpd2=’0’)
Or
a. There is no unpaid work or other activity requirement, or
b. There has been an unpaid work or other activity requirement but it has not
been successfully completed, or
c. There has been an unpaid work or other activity requirement and it has
been successfully completed within timescale (i.e. within 3 months of
imposition for level 1 (up to 100 hours) requirements and within 6 months for
level 2 requirements (more than 100 hours))
((UpWoaReq2 = ‘1’ and UpWoaCmpd2=’1’)
and (HrSupW2+HrSoa2 <= 100) and
(DatupWoaFin2 – DatupWoaImp2 <= 3
months))
Or
((UpWoaReq2 = ‘1’ and UpWoaCmpd2=’1’)
and (HrSupW2+HrSoa2 > 100) and
(DatupWoaFin2 – DatupWoaImp2 <= 6
months))
Page 56 of 149
2.15 Section – Stage 3
Properties
Title
Contributes to Xml
Xml Element Name
Is Repeatable
Stage Three
Yes
StageThree
No
Repeatable Representation
Parent
CpoDetails
Table 22.16- Section Properties
2.16 Section – Stage 3 Section H
Properties
Title
Contributes to Xml
S3 Order Details
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageThree
Table 23.19- Section Properties
Table 24.19- Section Fields
Page 57 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Employment status on
termination/completion
Empstat3
No
No
List
Employment Statuses
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO4165
Must be present
Stage 3 employment status on termination/completion is a mandatory field
and must not be blank
Error
Format
CPO4166
Must be a valid value
An invalid stage 3 employment status on termination/completion code has
been entered that does not exist on the pre-defined list
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained
offender supervision
requirement?
OffSupReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Page 58 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5070
Must be present
Stage 3 order contained offender supervision requirement is a mandatory
field and must not be blank
Error
Format
CPO5071
Must be a valid code
An invalid stage 3 order contained offender supervision requirement code
has been entered (must equal either 1=Yes or 0=No).
Error
OffSupReq3 must be value ‘1’ when any one
of the following = ‘1’
CPO5072
Must equal ‘1’
Stage 3 order contained offender supervision requirement must equal ‘1’
Error
when any one of following equal ‘1’ :
CompReq3
when any of the following requirements
issued = ‘1’
ProgReq3
Compensation
Stage 3 order contained Programme requirement
ResReq3
Programme
Stage 3 order contained Residence Requirement
MenHeaReq3
Residence
Stage 3 order contained Mental Health Treatment Requirement
DrugReq3
Mental Health Treatment
Stage 3 order contained Drug Treatment Requirement
AlcReq3
Drug Treatment
Stage 3 order contained Alcohol Treatment Requirement
ConReq3
Alcohol Treatment
Stage 3 order contained Conduct Requirement
RmvReq3
Conduct
Stage 3 order contained Restricted Movement Requirement
Stage 3 order contained Compensation Requirement
Restricted Movement
OffSupReq3 Must equal ‘1’ if
CPO5073
Must equal “Yes” as person < 18
Stage 3 order contained offender supervision requirement must equal ‘1’ as
person is aged under 18 (i.e. Date order imposed by court minus Date of
Birth equals less than 18 years).
Error
CPO5074
Can’t be no stage 3 offender supervision
requirement issued and no stage 3 unpaid
work or other activity requirement issued.
Stage 3 order contained offender supervision requirement and Stage 3 order
contained unpaid work or other activity requirement both equal ’0’ – order
must contain one or other or both.
Error
DatOrdImp – DateOfBirth < 18 years
OffsupReq3 <> ‘0’ when UpWoaReq3 = ‘0’
Page 59 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained
compensation
requirement?
CompReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5075
Must be present
Stage 3 order contained compensation requirement is a mandatory field and
must not be blank
Error
Format
CPO5076
Must be a valid code
An invalid stage 3 order contained compensation requirement code has been
entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 = ‘0’
CPO5077
Must be no stage 3 order contained
compensation requirement where no stage 3
order contained offender supervision
requirement
Stage 3 order contained compensation requirement must equal “0” where
stage 3 order contained offender supervision requirement =”0”
Error
Then CompReq3 =’0’
Page 60 of 149
2.17 Section – Stage 3 Section J
Properties
Title
Contributes to Xml
S3 Unpaid Work Or
Other Activity
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageThree
Table 25.2019- Section Properties
Table 26.1920- Section Fields
Page 61 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained unpaid
work or other activity
requirement?
UpWoaReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5078
Must be present
Stage 3 order contained unpaid work or other activity requirement is a
mandatory field and must not be blank
Error
Format
CPO5079
Must be a valid code
An invalid stage 3 order contained unpaid work or other activity requirement
code has been entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 = ‘0’
CPO5080
Can’t be no stage 3 order contained unpaid
work or other activity requirement and no
stage 3 order contained offender supervision
requirement
Stage 3 order contained offender supervision requirement and stage 3 order
contained unpaid work or other activity requirement both equal ’0’ – order
must contain one or other or both.
Error
Then UpWoaReq3 <> ’0’
Page 62 of 149
Name
Xml
Anon
Searchable
Format
Date unpaid work or
other activity
requirement imposed by
court
DatupWoaImp3
No
No
Date
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO3159
Must be a valid value.
Where stage 3 order contained unpaid work or other activity requirement
=’1’”, stage 3 date unpaid work or other activity requirement imposed by
court must have a valid date in format DD-MM-YYYY.
Error
Required if
CPO3160
Must be present if there is stage 3 order
contained unpaid work or other activity
requirement
Where stage 3 order contained unpaid work or other activity requirement
=’1’, then stage 3 date unpaid work or other activity requirement imposed by
court must have a non-missing value.
Error
CPO3161
Must not be present if there is no stage 3
order contained unpaid work or other activity
requirement.
Where stage 3 order contained unpaid work or other activity requirement
=’0’, then stage 3 date unpaid work or other activity requirement imposed by
court must be blank.
Error
CPO3162
Must be present if there is a date
terminated/completed
Where stage 3 date unpaid work or other activity requirement
completed/terminated is not blank, stage 3 date unpaid work or other activity
requirement imposed by court must have a non-missing value.
Error
DatupWoaImp3 <= DatupWoaFin3
CPO3163
Must be on or before the date requirement
terminated/completed
For every record where stage 3 date unpaid work or other activity
requirement imposed by court and stage 3 date unpaid work or other activity
requirement completed/terminated are both not equal to missing, stage 3
date unpaid work or other activity requirement imposed by court must be a
date the same as or before stage 3 date unpaid work or other activity
requirement completed/terminated.
Error
DatupWoaImp3 => DatOrDimp
CPO3164
Must be on or after the date order imposed
by court
For every record where stage 3 date unpaid work or other activity
requirement imposed by court is not equal to missing, it must be a date the
same as or later than date order imposed by court.
Error
DatupWoaImp3 must be =<
{PeriodEndDate} if not blank
CPO3164a
Must be on or before {PeriodEndDate}
Stage 3 date unpaid work or other activity requirement imposed by court
must be on or before {PeriodEndDate}
Error
UpWoaReq3 =’1’
Blank If
UpWoaReq3= ‘0’
Required if
DatupWoaFin3 <>Null
Page 63 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Unpaid work or other
activity requirement
been successfully
completed?
UpWoaCmpd3
No
No
List
YesNoList
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4170
Must be a valid value.
Where stage 3 order contained unpaid work or other activity requirement
=’1’, a valid stage 3 unpaid work or other activity requirement been
successfully completed must be entered (either 1=Yes or 0=No)
Error
Required if
CPO4171
Must be present if there is a stage 3 order
contained unpaid work or other activity
requirement
Stage 3 unpaid work or other activity requirement been successfully
completed is a mandatory field where stage 3 order contained unpaid work
or other activity requirement =’1’.
Error
CPO4172
Must not be present if there is no stage 3
order contained unpaid work or other activity
requirement
Stage 3 unpaid work or other activity requirement been successfully
completed must be blank where stage 3 order contained unpaid work or
other activity requirement =’0’.
Error
UpWoaReq3 = ‘1’
Blank if
UpWoaReq3 = ‘0’
Page 64 of 149
Name
Xml
Anon
Searchable
Format
Date unpaid work or
other activity
requirement
completed/terminated
DatupWoaFin3
No
No
Date
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO3165
Must be a valid value.
Must have a valid date in format DD-MM-YYYY.
Error
Required if
CPO3166
Must be present if there is a stage 3 unpaid
work or other activity requirement
Where stage 3 order contained unpaid work or other activity requirement =’1’
then stage 3 date unpaid work or other activity requirement
completed/terminated must have a non-missing value.
Error
CPO3167
Must not be present if no stage 3 unpaid
work or other activity requirement was
issued
Where stage 3 order contained unpaid work or other activity requirement =’0’
then stage 3 date unpaid work or other activity requirement
completed/terminated must have a missing value
Error
DatupWoaFin3 => DatupWoaImp3
CPO3169
Must be on or after the date requirement
imposed by court
For every record where stage 3 date unpaid work or other activity
requirement completed/terminated is not equal to missing, it must be a date
the same as or later than stage 3 date unpaid work or other activity
requirement imposed by court.
Error
DatupWoaFin3 => DatOrDimp
CPO3170
Must be on or after the date order imposed
by court
For every record where stage 3 date unpaid work or other activity
requirement completed/terminated is not equal to missing, it must be a date
the same as or later than date order imposed by court.
Error
DatupWoaFin3 must be =< {PeriodEndDate}
if not blank
CPO3170a
Must be on or before {PeriodEndDate}
Stage 3 date unpaid work or other activity requirement completed/terminated
must be on or before {PeriodEndDate}. If requirement completed/terminated
after end of year, field should be left blank.
Error
DatupWoaFin3 =< DatOrdTer3
CPO3170b
Must be on or before the date the order was
terminated
For every record where stage 3 date unpaid work or other activity
requirement completed/terminated is not equal to missing, it must be a date
the same as or earlier than stage 3 date order terminated/completed.
Error
UpWoaReq3=’1’
Blank if
UpWoaReq3=’0’
Page 65 of 149
Name
Xml
Anon
Searchable
Format
Hours relating to unpaid
work
HrSupW3
No
No
Float
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO2054
This is an invalid entry
Entry must be in numerical format (decimals are accepted)
Error
CPO2082
Total hours relating to unpaid work plus
other activity must be within the range 20 to
300 inclusive.
Hours must equal a minimum of 20 and must not exceed 300.
CPO2055
Must be present if a stage 3 unpaid work or
other activity requirement was issued and
has been successfully completed
Every record where stage 3 unpaid work or other activity requirement been
successfully completed =’1’ must have a non-missing value for stage 3 hours
relating to unpaid work.
Error
CPO2056
Must not be present if no stage 3 unpaid
work or other activity requirement was
issued or stage 3 unpaid work or other
activity requirement issued was not
completed
Where either:
Error
Value
Required if
UpWoaCmpd3 =’1’
Blank if
(UpWoaReq3=’1’ and UpWoaCmpd3=”0”)
Or
UpWoaReq3=’0’
Error
a) Stage 3 order contained unpaid work or other activity requirement =’1 ‘
and stage 3 unpaid work or other activity requirement been successfully
completed =’0’, or
b) Stage 3 order contained unpaid work or other activity requirement =’ 0’
then stage 3 hours relating to unpaid work must have a missing value.
UpWoaCmpd3 =’1’
CPO2057
Must be a valid value.
Where stage 3 unpaid work or other activity requirement been successfully
completed =’1’, stage 3 hours relating to unpaid work must be an integer with
a minimum of 14 and a maximum of 300.
Error
CPO2058
Must be at least 70% of the total hours from
the stage 3 unpaid work or other activity
requirement issued
Where stage 3 unpaid work or other activity requirement been successfully
completed =’1’, stage 3 hours relating to unpaid work must be least 2⅓ times
as large as stage 3 hours relating to other activity.
Error
and
(14 > HrSupW3 or HrSupW3 > 300)
HrSupW3 * 3 => HrSoa3 * 7
Page 66 of 149
Name
Xml
Anon
Searchable
Format
Hours relating to other
activity
HrSoa3
No
No
Float
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO2059
This is an invalid entry
Entry must be in numerical format (decimals are accepted)
Error
CPO2082
Total hours relating to unpaid work plus
other activity must be within the range 20 to
300 inclusive.
Hours must equal a minimum of 20 and must not exceed 300.
Value
Blank if
CPO2061
(UpWoaReq3=’1’ and UpWoaCmpd3=”0”)
Or
UpWoaReq3=’0’
Must not be present if no stage 3 unpaid
work or other activity requirement was
issued or stage 3 unpaid work or other
activity requirement issued was not
completed
Error
Where either:
Error
a) Stage 3 order contained unpaid work or other activity requirement =’1 ‘
and stage 3 unpaid work or other activity requirement been successfully
completed =’0’, or
b) Stage 3 order contained unpaid work or other activity requirement =’ 0’
then stage 3 hours relating to other activity must have a missing value.
If UpWoaCmpd3 =’1’ then
0 <= HrSoa3 <= 30 or HrSoa3 is missing
CPO2062
Cannot be a number greater than 30
Where stage 3 unpaid work or other activity requirement been successfully
completed =’1’, stage 3 hours relating to other activity must either be an
integer with a minimum of 0 and a maximum of 30 or have a missing value.
Page 67 of 149
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Unpaid work or other
activity requirement was
not completed within
timescale - reason
TReas3
No
No
List
Treas
Page 68 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4173
Must be a valid value
An invalid code has been entered that does not exist on the pre-defined list
Error
Required if
CPO4174
Must be present if a stage 3 unpaid work or
other activity requirement issued has been
successfully completed but was not
completed within timescale
TREAS3 must be answered if an unpaid work or other activity requirement
has been successfully completed but not within 3 months of imposition for
level 1 (up to 100 hours) requirements and not within 6 months for level 2
requirements (more than 100 hours)
Error
CPO4175
Must not be present if no stage 3 unpaid
work or other activity requirement issued or
a stage 3 unpaid work or other activity
requirement issued not been completed
successfully or a stage 3 unpaid work or
other activity requirement issued has been
successfully completed within timescale
TREAS3 must not be answered if:
Error
(UpWoaCmpd3 = ‘1’ and
(HrSupW3+HrSoa3 <= 100) and
(DatupWoaFin3 – DatupWoaImp3 > 3
months))
Or
(UpWoaCmpd3 = ‘1’ and
(HrSupW3+HrSoa3 > 100) and
(DatupWoaFin3 – DatupWoaImp3 > 6
months))
Blank if
UpWoaReq3 = ‘0’
Or
(UpWoaReq3 = ‘1’ and UpWoaCmpd3=’0’)
Or
a. There is no unpaid work or other activity requirement, or
b. There has been an unpaid work or other activity requirement but it has not
been successfully completed, or
c. There has been an unpaid work or other activity requirement and it has
been successfully completed within timescale (i.e. within 3 months of
imposition for level 1 (up to 100 hours) requirements and within 6 months for
level 2 requirements (more than 100 hours))
((UpWoaReq3 = ‘1’ and UpWoaCmpd3=’1’)
and (HrSupW3+HrSoa3 <= 100 and
DatupWoaFin3 – DatupWoaImp3 <= 3
months))
Or
((UpWoaReq3 = ‘1’ and UpWoaCmpd3=’1’)
and (HrSupW3+HrSoa3 > 100 and
DatupWoaFin3 – DatupWoaImp3 <= 6
months))
Page 69 of 149
Page 70 of 149
2.18 Section – Stage 3 Section K
Properties
Title
Contributes to Xml
S3 Requirement
Imposed
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageThree
Table 27.21- Section Properties
Table 28.21 - Section Fields
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained
programme
requirement?
ProgReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Page 71 of 149
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5081
Must be present
Stage 3 order contained programme requirement issued is a mandatory field
and must not be blank
Error
Format
CPO5082
Must be a valid code
An invalid stage 3 order contained programme requirement code has been
entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 =’0’ then
CPO5083
Must be no programme requirement issued
where no offender supervision requirement
issued
Stage 3 order contained programme requirement must equal “0” where stage
3 order contained offender supervision requirement =”0”
Error
ProgReq3 =’0’
Page 72 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained
residence requirement?
ResReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5084
Must be present
Stage 3 order contained residence requirement is a mandatory field and
must not be blank
Error
Format
CPO5085
Must be a valid code
An invalid stage 3 order contained residence requirement code has been
entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 = ‘0’ Then ResReq3 =’0’
CPO5086
Must be no residence requirement issued
where offender supervision requirement
issued =’0’
Stage 3 order contained residence requirement must equal “0” where stage
3 order contained offender supervision requirement =”0”
Error
Page 73 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained mental
health treatment
requirement?
MenHeaReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5087
Must be present
Stage 3 mental health treatment requirement issued is a mandatory field and
must not be blank
Error
Format
CPO5088
Must be a valid code
An invalid stage 3 mental health treatment requirement issued code has
been entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 = ‘0’ Then MenHeaReq3 =’0’
CPO5089
Must be no mental health treatment
requirement issued where there is no
offender supervision requirement issued
Stage 3 mental health treatment requirement issued must equal “0” where
stage 3 offender supervision requirement issued =”0”
Error
Page 74 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained drug
treatment requirement?
DrugReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5090
Must be present
Stage 3 order contained drug treatment requirement is a mandatory field and
must not be blank
Error
Format
CPO5091
Must be a valid code
An invalid stage 3 order contained drug treatment requirement code has
been entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 = ‘0’ Then DrugReq3 =’0’
CPO5092
Must be no drug treatment requirement
issued where there is no offender
supervision requirement issued
Stage 3 order contained drug treatment requirement must equal “0” where
stage 3 order contained offender supervision requirement =”0”
Error
Page 75 of 149
Page 76 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained alcohol
treatment requirement?
AlcReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5093
Must be present
Stage 3 order contained alcohol treatment requirement is a mandatory field
and must not be blank
Error
Format
CPO5094
Must be a valid code
An invalid stage 3 order contained alcohol treatment requirement code has
been entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 = ‘0’ Then AlcReq3 =’0’
CPO5095
Must be no alcohol treatment requirement
issued where there is no offender
supervision requirement issued
Stage 3 order contained alcohol treatment requirement must equal “0” where
stage 3 order contained offender supervision requirement =”0”
Error
Page 77 of 149
Page 78 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained
conduct requirement?
ConReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5096
Must be present
Stage 3 order contained conduct requirement is a mandatory field and must
not be blank
Error
Format
CPO5097
Must be a valid code
An invalid stage 3 order contained conduct requirement code has been
entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 = ‘0’ then ConReq3 =’0’
CPO5098
Must be no conduct treatment requirement
issued where there is no offender
supervision requirement issued
Stage 3 order contained conduct requirement must equal “0” where stage 3
order contained offender supervision requirement =”0”
Error
Page 79 of 149
Page 80 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Order contained
restricted movement
requirement?
RmvReq3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO5099
Must be present
Stage 3 order contained restricted movement requirement is a mandatory
field and must not be blank
Error
Format
CPO5100
Must be a valid code
An invalid stage 3 order contained restricted movement requirement code
has been entered (must equal either 1=Yes or 0=No).
Error
If OffSupReq3 = ‘0’ Then RmvReq3 =’0’
CPO5101
Must be no rest mov req where no off sup
req
Stage 3 order contained restricted movement requirement must equal “0”
where stage 3 order contained offender supervision requirement =”0”
Error
Page 81 of 149
Name
Xml
Anon
Searchable
Format
Length of restricted
movement requirement
LenRmv3
No
No
Float
Page 82 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Format
CPO2063
This is an invalid entry
Entry must be in numerical form.
Required if
CPO2064
Must be present if stage 3 order contained
restricted movement requirement = ‘1’
Every record where stage 3 order contained restricted movement
requirement =’1’ must have a non-missing value for stage 3 length of
restricted movement requirement.
Error
CPO2065
Must not be present if there is no stage 3
order contained restricted movement
requirement.
Every record where stage 3 order contained restricted movement
requirement =’0’ must have a missing value for stage 3 length of restricted
movement requirement.
Error
CPO2066
Must be a valid code
RmvReq3 =’1’
Blank if
RmvReq3 = ‘0’
(RmvReq3 = ‘1’ and
(1>LenRmv3 or LenRmv > 12))
If stage 3 order contained restricted movement requirement = ‘1’ then stage
3 length of restricted movement requirement must be an integer in the range
of 1 to 12 inclusive
Page 83 of 149
Level
Error
2.19 Section – Stage 3 Section L
Properties
Title
Contributes to Xml
S3 Termination &
Transfer Details
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageThree
Table 29.22- Section Properties
Table 30.22- Section Fields
Name
Xml
Anon
Searchable
Format
Date order
terminated/completed
DatOrdTer3
No
No
Date
Page 84 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO3268
Must be present
Stage 3 date order terminated/completed is a mandatory field and must not
be blank
Error
Format
CPO3269
Must be a valid date
Date format for stage 3 date order terminated/completed invalid - must be
DD-MM-YYYY
Error
DatOrdTer3 must be => DatOrDimp
CPO3270
Must be on or after date of imposition
Stage 3 date order terminated/completed must be the same as or later than
date order imposed by court.
Error
DatOrdTer3 must be between
{PeriodStartDate} and {PeriodEndDate}
inclusive
CPO3271a
Must be during the current reporting period
Date order terminated/completed must be between {PeriodStartDate} and
{PeriodEndDate} inclusive for a stage 3 record to be valid
Error
Page 85 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Reason for termination/
completion
ReasTer3
No
No
List
Reason Terminations
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO4212
Must be present
Stage 3 reason for termination/completion is a mandatory field and must not
be blank.
Error
Format
CPO4213
Must be a valid value
An invalid stage 3 reason for termination/completion code has been entered
that does not exist on the pre-defined list.
Error
Name
Xml
Anon
Searchable
Format
Value(s)
Main outcome at
termination
MnocmTer3
No
No
List
Outcome Terminations
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4214
Must be a valid value
An invalid stage 3 main outcome at termination code has been entered that
does not exist on the pre-defined list.
Error
Required if
CPO4215
Must be present where reason is “revoked”
or “other”
Stage 3 main outcome at termination is mandatory and must not be blank
where stage 3 reason for termination/completion equals “Revoked due to
review”, “Revoked due to breach” or “Other”.
Error
CPO4216
Must not be present where reason is “order
completed successfully”, “early discharge”,
“transferred out of area” or “death”
Stage 3 main outcome at termination must be blank where stage 3 reason
for termination/completion equals “Order completed successfully”, “Early
discharge”, “Transferred out of area” or “Death”.
Error
ReasTer3 = ‘03’, ‘04’ or ‘07’
Blank if
ReasTer3 = ‘01’, ‘02’ ,‘05’ or ‘06’
Page 86 of 149
Page 87 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Where has order been
transferred to?
TrsFer3
No
No
List
Transfer types2
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO4217
Must be a valid value
An invalid stage 3 where has order been transferred to code has been
entered that does not exist on the pre-defined list.
Error
Required if
CPO4218
Must be present where reason is
“transferred out of area”
Stage 3 where has order been transferred to is mandatory and must not be
blank where stage 3 reason for termination/completion equals “Transferred
out of area”
Error
CPO4219
Must not be present where reason is other
than “transferred out of area”
Stage 3 where has order been transferred to must be blank where stage 3
reason for termination/completion equals “Order completed successfully”,
“Early discharge”, “Death”, “Revoked due to review”, “Revoked due to
breach” or “Other”.
Error
ReasTer3 = ‘05’
Blank If
ReasTer3 = ‘01’, ‘02’ ,‘03’, ’04’, ’06, ‘07’
2.20 Section – Stage 3 Section M
Properties
Title
Contributes to Xml
S3 Breach Details
No
Xml Element Name
Is Repeatable
Repeatable Representation
No
Parent
StageThree
Table 31.23 - Section Properties
Page 88 of 149
Table 32.23 - Section Fields
Page 89 of 149
Name
Xml
Anon
Searchable
Format
Breach applications
during life of order
BrchApps3
No
No
Integer
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory
CPO2067
Must be present
Stage 3 breach applications during life of order is a mandatory field and must
not be blank.
Error
Format
CPO2068
Must be an integer.
The value of stage 3 breach applications during life of order must be an
integer.
Error
BrchApps3 must be > 0 if ReasTer=’04’
CPO2068b
Must be greater than 0 if reason for
termination of order is “revoked due to
breach”
Stage 3 breach applications during life of order must be a number greater
than zero where stage 3 reason for termination/completion equals “revoked
due to breach”
Error
Name
Xml
Anon
Searchable
Format
Breach applications
during life of order
lodged within 5 working
days
BrchApps5wds3
No
No
Integer
Page 90 of 149
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Mandatory if BrchApps3 > 0
CPO2069
Must be present if at least 1 breach
application
Where stage 3 breach applications during life of order > 0, then stage 3
breach applications during life of order lodged within 5 working days must
have a non-missing value.
Error
Format
CPO2070
If present, must be an integer.
Any non-missing value of stage 3 breach applications during life of order
lodged within 5 working days must be an integer.
Error
BrchApps5wds3 must be <= BrchApps3
CPO2071
If both present, must be less than or equal to
total breach applications
Any non-missing value of stage 3 breach applications during life of order
lodged within 5 working days must be less than or equal to stage 3 breach
applications during life of order.
Error
Page 91 of 149
Name
Xml
Anon
Searchable
Format
Value(s)
Breach applications
resulted in changes to
order?
BrchAppsChan3
No
No
Boolean
(Yes/No)
1 = “Yes”, 0 = “No”
Validation
Rule
Error Code
Error Message
Error Description
Level
Format
CPO5102
Must be a valid code
An invalid stage 3 breach applications resulted in changes to order code has
been entered (must equal either 1=Yes or 0=No).
Error
Required if
CPO5103
Must be present if at least 1 breach
application
Where stage 3 breach applications during life of order > 0, then breach
applications resulted in changes to order must have a non-missing value.
Error
CPO5104
Must not be present if no breach applications
Where stage 3 breach applications during life of order = 0, then breach
applications resulted in changes to order must be equal to missing.
Error
BrchApps3 > 0
Blank if
BrchApps3 = 0
Page 92 of 149
SECTION 3
Reports
Generic Rules
Inclusion criteria
The following are the inclusion criteria for the tables:
1. CPOS1-CPOS11 : (DatOrdImp =>(periodstartdate) and <=(periodenddate) and OffSupReq is not blank.
2. CPOS12-CPOS13 : DatOrdImp <=(periodenddate) and DatOrdTer3 is blank.
3. CPOS14-CPOS18 : DatOrdImp <=(periodenddate) and DatOrdTer3 is not blank.
Gender
All tables including a gender breakdown should use the following:
Gender = 1 – Male

Gender = 2 – Female
Age breakdown
Age of individual is determined by calculating the difference in years rounded down to the nearest whole number between:
1. DateOfBirth.and DatOrdImp for CPOS2
2. DateOfBirth.and (periodenddate) for CPOS13
3. DateOfBirth.and the DatOrdTer3 for CPOS15.
Page 93 of 149
Tables
Table 1
Title
Table CPOS1: Number of CPOs imposed in the period (periodstartdate) to (periodenddate) and individuals relating to these CPOs by gender
Number of Orders
Number of Individuals
Male
0
0
Female
0
0
Total
0
0
The number of orders and individuals to be included within this table is determined by the following list:
Rules
Number of Orders
Number of Individuals
Male
Female
Total
Count if SNumber and
OrderNo are present
and combination of
SNumber and OrderNo
is unique
Count if SNumber is
present and unique
Count if SNumber and
OrderNo are present and
combination of SNumber
and OrderNo is unique
The sum of all other
counts
Count if SNumber is
present and unique
The sum of all other
counts
Filters
Page 94 of 149
Table 2
Title
Table CPOS2: Number of CPOs imposed in the period (periodstartdate) to (periodenddate) by age group and gender
AGE
Male
Female
Total
Under 16
16-17
0
0
0
0
0
0
18-20
0
0
0
21-25
26-30
31-35
36-40
41-45
46-50
51-55
56-60
61-65
Over 65
TOTAL
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Page 95 of 149
The number of orders to be included within this table is determined by the following list:
AGE
Under 16
Male
Female
Total
Rule Age Breakdown for
this table
Rule Age Breakdown for
this table
The sum of all
other counts
16-17
18-20
21-25
26-30
31-35
36-40
41-45
46-50
51-55
56-60
61-65
Over 65
TOTAL
The sum of all other counts
The sum of all other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
Filters
Page 96 of 149
Table 3
Title
Table CPOS3: Number of CPOs imposed in the period (periodstartdate) to (periodenddate) by employment status at first interview and gender
Employment Status
Full time Education
Employed/Self Employed
Unemployed
On Government
sponsored training scheme
Not Seeking Employment
Other
TOTAL
Male
Female
Total
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
The number of orders imposed to be included within this table is determined by the following list:
Employment Status
Full time Education
Employed/Self Employed
Unemployed
On Government
sponsored training scheme
Male
Female
Total
EmpStat = “01”
EmpStat = “01”
The sum of all other
counts
EmpStat = “02”
EmpStat = “02”
The sum of all other
counts
EmpStat = “03”
EmpStat = “03”
The sum of all other
counts
EmpStat = “04”
EmpStat = “04”
The sum of all other
counts
Page 97 of 149
Not Seeking Employment
Other
TOTAL
EmpStat = “05”
EmpStat = “05”
The sum of all other
counts
EmpStat = “06”
EmpStat = “06”
The sum of all other
counts
The sum of all other
counts
The sum of all other
counts
The sum of all other
counts
Filters
Table 4A
Title
Table CPOS4A: Number of CPOs imposed in the period (periodstartdate) to (periodenddate) by court type
Court Type
Total
High/appeal
0
Sheriff solemn
0
Sheriff summary
0
Stipendiary magistrates
0
Justice of the peace
0
Page 98 of 149
Court outwith Scotland
0
TOTAL
0
The number of orders to be included within this table is determined by the following list:
Court Type
High/appeal
Sheriff solemn
Sheriff summary
Stipendiary magistrates
Justice of the peace
Court outwith Scotland
TOTAL
Total
Count if
CrtType = 01
Count if
CrtType = 02
Count if
CrtType = 03
Count if
CrtType = 04
Count if
CrtType = 05
Count if
CrtType = 06
The sum of all
other counts
Filters
Table 4B
Title
Table CPOS4B: Number of CPOs imposed in sheriff courts in the period (periodstartdate) to (periodenddate) by court
(where court known)
Page 99 of 149
Sheriff Court
Each Sheriff Court to be listed
individually
Total
0
TOTAL
The number of orders to be included within this table is determined by the following list:
Sheriff Court
Each Sheriff Court to be listed
individually
TOTAL
Total
Count if Sheriff
Court Code
included
The sum of all
other counts
Filters
Note – This table should list each of the Sheriff Courts and the count of all relevant Sheriff Codes provided. The
Sheriff Court Codes can be located within Appendix B – List Definitions under “Court Codes”
Table 4C
Title
Table CPOS4C: Number of CPOs imposed in justice of the peace courts in the period (periodstartdate) to
(periodenddate) by court (where court known)
Justice of the Peace Court
Each Justice of the Peace Court to be
Total
0
Page 100 of 149
listed individually
TOTAL
The number of orders to be included within this table is determined by the following list:
Justice of the Peace Court
Total
Count if Justice
of the Peace
Court Code
included
The sum of all
other counts
Each Justice of the Peace Court to be
listed individually
TOTAL
Filters
Note – This table should list each of the Justice of the Peace Courts and the count of all relevant Justice of the Peace
Codes provided. The Justice of the Peace Court Codes can be located within Appendix B – List Definitions under
“Court Codes”
Table 5
Title
Table CPOS5: Number of CPOs imposed in the period (periodstartdate) to (periodenddate) by whether provision
included to conduct court progress reviews
Provision to conduct
progress reviews?
CPOs imposed with
provision to conduct court
progress reviews
CPOs imposed without
Male
Female
Total
0
0
0
0
0
0
Page 101 of 149
provision to conduct court
progress reviews
TOTAL
0
0
0
The number of CPO’s imposed to be included within this table is determined by the following list:
Provision to conduct
progress reviews?
CPOs imposed with
provision to conduct court
progress reviews
CPOs imposed without
provision to conduct court
progress reviews
TOTAL
Male
Female
Total
Progrev = 1
Progrev = 1
The sum of all other
counts
Progrev = 0
Progrev = 0
The sum of all other
counts
The sum of all other
counts
The sum of all other
counts
The sum of all other
counts
Table 6
Title
Table CPOS6: Number of CPO requirements issued at first imposition for orders imposed in the period (periodstartdate) to (periodenddate) by gender
REQUIREMENT
Offender supervision
requirement
Compensation
requirement
Unpaid work or other
Male
Female
Total
0
0
0
0
0
0
0
0
0
Page 102 of 149
activity requirement
Programme requirement
0
0
0
Residence requirement
Mental health treatment
requirement
Drug treatment
requirement
Alcohol treatment
requirement
Conduct requirement
Unpaid work or other
activity and supervision
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
The number of CPO requirements issued to be included within this table is determined by the following list:
REQUIREMENT
Male
Female
OffSupReq = 1
OffSupReq = 1
The sum of all other
counts
CompReq = 1
CompReq = 1
The sum of all other
counts
UpWoaReq = 1
UpWoaReq = 1
The sum of all other
counts
Programme requirement
ProgReq = 1
ProgReq = 1
Residence requirement
ResReq = 1
ResReq = 1
MenHeaReq = 1
MenHeaReq = 1
The sum of all other
counts
The sum of all other
counts
The sum of all other
counts
DrugReq = 1
DrugReq = 1
The sum of all other
Offender supervision
requirement
Compensation
requirement
Unpaid work or other
activity requirement
Mental health treatment
requirement
Drug treatment
Total
Page 103 of 149
requirement
Alcohol treatment
requirement
Conduct requirement
Unpaid work or other
activity and supervision
counts
AlcReq = 1
AlcReq = 1
ConReq = 1
ConReq = 1
OffSupReq = 1 and
UpWoaReq = 1
OffSupReq = 1 and
UpWoaReq = 1
The sum of all other
counts
The sum of all other
counts
The sum of all other
counts
Table 7
Title
Table CPOS7: Number of unpaid work or other activity requirements issued at first imposition for orders imposed in the period (periodstartdate) to (periodenddate) : Breakdown by gender and
number of hours in requirements
Number of hours
50 or fewer hours
More than 50 and up to
100 hours
More than 100 and up to
150 hours
More than 150 and up to
200 hours
More than 200 and up to
250 hours
More than 250 and up to
300 hours
Male
Female
Total
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Page 104 of 149
TOTAL number of
requirements
Total length of
requirements (hours)
Average length of
requirements (hours)
0
0
0
0
0
0
0
0
0
The number of unpaid work or other activity requirements issued to be included within this table is determined by the following list:
Number of hours
Male
Female
50 or fewer hours
UpWoaReq = 1 and
HrsUpWoa <=50
UpWoaReq = 1 and
HrsUpWoa <=50
UpWoaReq = 1 and
HrsUpWoa >50 <=100
UpWoaReq = 1 and
HrsUpWoa >50 <=100
More than 50 and up to
100 hours
More than 100 and up to
150 hours
UpWoaReq = 1 and
HrsUpWoa >100 <=150
More than 150 and up to
200 hours
UpWoaReq = 1 and
HrsUpWoa >150 <=200
More than 200 and up to
250 hours
UpWoaReq = 1 and
HrsUpWoa >200 <=250
More than 250 and up to
300 hours
TOTAL number of
requirements
Total length of
requirements (hours)
Average length of
requirements (hours)
UpWoaReq = 1 and
HrsUpWoa >250 <=300
Total
The sum of all other
counts
The sum of all other
counts
UpWoaReq = 1 and
HrsUpWoa >100
<=150
UpWoaReq = 1 and
HrsUpWoa >150
<=200
UpWoaReq = 1 and
HrsUpWoa >200
<=250
UpWoaReq = 1 and
HrsUpWoa >250
<=300
The sum of all other
counts
Count if UpWoaReq = 1
Count if UpWoaReq =
1
The sum of all other
counts
Sum of HrsUpWoa
Sum of HrsUpWoa
The sum of all other
counts
=Total length of
requirements/Total
number of requirements
=Total length of
requirements/Total
number of
=Total length of
requirements/Total
length of requirements
The sum of all other
counts
The sum of all other
counts
The sum of all other
counts
Page 105 of 149
and gender = M
requirements and
gender = F
and gender = M and F
Table 8
Title
Table CPOS8: Number of offender supervision requirements issued at first imposition for orders imposed in the period (periodstartdate) to (periodenddate) : Breakdown by length of
requirements
Page 106 of 149
Length of requirement
Less than 6 months
6 months or more and less
than 9 months
9 months or more and less
than 12 months
12 months or more and
less than 15 months
15 months or more and
less than 18 months
18 months or more and
less than 21 months
21 months or more and
less than 24 months
24 months or more and
less than 27 months
27 months or more and
less than 30 months
30 months or more and
less than 33 months
33 months or more and
less than 36 months
36 months
TOTAL number of
requirements
Total length of
requirements (months)
Average length of
requirements (months)
Male
Female
Total
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Page 107 of 149
The number of offender supervision requirements issued to be included within this table is determined by the following list:
{
Length of requirement
Less than 6 months
6 months or more and
less than 9 months
9 months or more and
less than 12 months
12 months or more and
less than 15 months
15 months or more and
less than 18 months
18 months or more and
less than 21 months
21 months or more and
less than 24 months
24 months or more and
less than 27 months
27 months or more and
less than 30 months
30 months or more and
less than 33 months
33 months or more and
less than 36 months
36 months
TOTAL number of
requirements
Male
Female
Total
LenOffSup <6
LenOffSup <6
LenOffSup >=6 <9
LenOffSup >=6 <9
The sum of all other
counts
The sum of all other
counts
LenOffSup >=9 <12
LenOffSup >=9 <12
The sum of all other
counts
LenOffSup >=12 <15
LenOffSup >=12 <15
The sum of all other
counts
LenOffSup >=15 <18
LenOffSup >=15 <18
The sum of all other
counts
LenOffSup >=18 <21
LenOffSup >=18 <21
The sum of all other
counts
LenOffSup >=21 <24
LenOffSup >=21 <24
The sum of all other
counts
LenOffSup >=24 <27
LenOffSup >=24 <27
The sum of all other
counts
LenOffSup >=27 <30
LenOffSup >=27 <30
The sum of all other
counts
LenOffSup >=30 <33
LenOffSup >=30 <33
The sum of all other
counts
LenOffSup >=33 <36
LenOffSup >=33 <36
The sum of all other
counts
LenOffSup =36
LenOffSup=36
Count if OffSupReq =1
Count if OffSupReq =1
The sum of all other
counts
The sum of all other
counts
Page 108 of 149
Total length of
requirements (months)
Sum of LenOffSup and
gender = M
Sum of LenOffSup and
gender = F
The sum of all other
counts
Average length of
requirements (months)
=Total length of
requirements/Total
number of
requirements and
gender = M
=Total length of
requirements/Total
number of requirements
and gender = F
=Total length of
requirements/Total
number of
requirements and
gender = M and F
Table 9
Title
Table CPOS9: Number of CPOs imposed in the period (periodstartdate) to (periodenddate) by when first direct
contact with offender took place
WHEN FIRST DIRECT CONTACT TOOK
PLACE
Within 1 working day of the date of
imposition of order by court
More than 1 working day after the date of
imposition of order by court 1
Total
0
0
Page 109 of 149
Not known / not provided 2
TOTAL
0
0
The number of CPO’s imposed to be included within this table is determined by the following list:
WHEN FIRST DIRECT CONTACT TOOK
PLACE
Within 1 working day of the date of
imposition of order by court
More than 1 working day after the date of
imposition of order by court 1
Not known / not provided 2
TOTAL
Note
Total
Count if calc is =<1
Count if calc is >1
Count if DatDirCon is
blank
The sum of all other
counts
- Calc difference (in working days) between DatDirCon.and the DatOrdImp
Text information to be added to foot of table.
1. May include some orders where the first direct contact did take place
within 1 working day but the data input system interpreted it as more than
1 working day as a result of a national or local holiday. For such records,
the Scottish Government will perform a manual correction to adjust
numbers.
2. Includes orders where the client did not (or was unable to) comply and
also orders which were transferred in from another local authority or a
country outwith Scotland.
Page 110 of 149
Table 10
Title
Table CPOS10: Number of CPOs imposed in the period (periodstartdate) to (periodenddate) by when first
induction/case management meeting took place
Page 111 of 149
WHEN FIRST INDUCTION / CASE
MANAGEMENT MEETING TOOK PLACE
Within 5 working days of the date of
imposition of order by court
More than 5 working days after the date of
imposition of order by court 1
Not known / not provided 2
TOTAL
Total
0
0
0
0
The number of CPO’s imposed to be included within this table is determined by the following list:
WHEN FIRST INDUCTION / CASE
MANAGEMENT MEETING TOOK PLACE
Within 5 working days of the date of
imposition of order by court
More than 5 working days after the date of
imposition of order by court 1
Not known / not provided 2
TOTAL
Note
Total
Count if calc is =<5
Count if calc is >5
Count if DatinDst is
blank
The sum of all other
counts
- Calc difference (in working days) between DatinDst and DatOrdImp
Text information to be added to foot of table.
1. May include some orders where the first induction / case management
meeting did take place within 5 working days but the data input system
interpreted it as more than 5 working days as a result of a national or local
Page 112 of 149
holiday. For such records, the Scottish Government will perform a manual
correction to adjust numbers.
2. Includes orders where the client did not (or was unable to) comply and
also orders which were transferred in from another local authority or a
country outwith Scotland.
Page 113 of 149
Table 11
Title
Table CPOS11: Number of unpaid work or other activity requirements issued at first imposition for orders imposed in
the period (periodstartdate) to (periodenddate) : Breakdown by when work placement started
Page 114 of 149
WHEN WORK PLACEMENT STARTED
Within 7 working days of the date of
imposition of order by court
More than 7 working days after the date of
imposition of order by court 1
Not known / not provided 2
TOTAL
Total
0
0
0
0
The number of CPO’s imposed to be included within this table is determined by the following list:
WHEN WORK PLACEMENT STARTED
Within 7 working days of the date of
imposition of order by court
More than 7 working days after the date of
imposition of order by court 1
Not known / not provided 2
TOTAL
Note
Total
Count if UpWoaReq =
1 and calc is =<7
Count if UpWoaReq =
1 and calc is >7
Count if UpWoaReq =
1 and DatWkCom is
blank
The sum of all other
counts
- Calc difference (in working days) between DatWkCom and the DatOrdImp
Page 115 of 149
Text information to be added to foot of table.
1. May include some orders where the work placement did start within 7
working days but the data input system interpreted it as more than 7
working days as a result of a national or local holiday. For such records,
the Scottish Government will perform a manual correction to adjust
numbers.
2. Includes orders where the client did not (or was unable to) comply and
also orders which were transferred in from another local authority or a
country outwith Scotland.
Page 116 of 149
Table 12
Title
Table CPOS12: Number of CPOs in force (and individuals relating to these CPOs) at close on (periodenddate) by gender
Male
0
0
Number of Orders
Number of Individuals
Female
0
0
Total
0
0
The number of orders and individuals to be included within this table is determined by the following list:
Rules
Number of Orders
Number of Individuals
Male
Female
Total
Count if SNumber and
OrderNo are present
and combination of
SNumber and OrderNo
is unique
Count if SNumber is
present and unique
Count if SNumber and
OrderNo are present and
combination of SNumber
and OrderNo is unique
The sum of all other
counts
Count if SNumber is
present and unique
The sum of all other
counts
Filters
Note – Please refer to generic rules at beginning of this document – section 1.1 for date criteria.
Table 13
Title
Table CPOS13: Number of CPOs in force at close on (periodenddate) by age group and gender
AGE
Male
Female
Total
Page 117 of 149
Under 16
16-17
0
0
0
0
0
0
18-20
0
0
0
21-25
26-30
31-35
36-40
41-45
46-50
51-55
56-60
61-65
Over 65
TOTAL
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Page 118 of 149
The number of orders to be included within this table is determined by the following list:
AGE
Under 16
Male
Female
Total
Rule Age Breakdown for
this table
Rule Age Breakdown for
this table
The sum of all
other counts
16-17
18-20
21-25
26-30
31-35
36-40
41-45
46-50
51-55
56-60
61-65
Over 65
TOTAL
The sum of all other counts
The sum of all other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
Filters
Note – Please refer to generic rules at beginning of this document – section 1.1 for date criteria.
Page 119 of 149
Table 14
Title
Table CPOS14: Number of CPOs completed/terminated (and individuals relating to these CPOs) in the year (periodstartdate) to (periodenddate) by gender
Male
0
0
Number of Orders
Number of Individuals
Female
0
0
Total
0
0
The number of orders and individuals to be included within this table is determined by the following list:
Rules
Number of Orders
Number of Individuals
Male
Female
Total
Count if SNumber and
OrderNo are present
and combination of
SNumber and OrderNo
is unique
Count if SNumber is
present and unique
Count if SNumber and
OrderNo are present and
combination of SNumber
and OrderNo is unique
The sum of all other
counts
Count if SNumber is
present and unique
The sum of all other
counts
Filters
Note – Please refer to generic rules at beginning of this document – section 1.1 for date criteria.
Table 15
Title
Table CPOS15: Number of CPOs completed/terminated in the year (periodstartdate) to (periodenddate) by age group and gender
AGE
Under 16
Male
Female
Total
0
0
0
Page 120 of 149
16-17
0
0
0
18-20
0
0
0
21-25
26-30
31-35
36-40
41-45
46-50
51-55
56-60
61-65
Over 65
TOTAL
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Page 121 of 149
The number of orders to be included within this table is determined by the following list:
AGE
Under 16
Male
Female
Rule Age Breakdown for this table
Rule Age Breakdown for this table
The sum of all other counts
The sum of all other counts
16-17
18-20
21-25
26-30
31-35
36-40
41-45
46-50
51-55
56-60
61-65
Over 65
TOTAL
Total
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
The sum of all
other counts
Filters
Note – Please refer to generic rule at beginning of this document – section 1.1 for date criteria.
Page 122 of 149
Table 16
Title
Table CPOS16: Number of CPO requirements which have formed part of orders that were completed/terminated in
the year (periodstartdate) to (periodenddate) : Breakdown by gender
REQUIREMENT
Male
Female
Total
0
0
0
0
0
0
0
0
0
Programme requirement
0
0
0
Residence requirement
Mental health treatment
requirement
Drug treatment
requirement
Alcohol treatment
requirement
Conduct requirement
Unpaid work or other
activity and supervision
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Offender supervision
requirement
Compensation
requirement
Unpaid work or other
activity requirement
Page 123 of 149
The number of CPO requirements issued to be included within this table is determined by the following list:
REQUIREMENT
Male
Female
Total
Offender supervision
requirement
Compensation
requirement
Unpaid work or other
activity requirement
Count if OffSupReq3 =
1
Count if OffSupReq3 =
1
The sum of all other
counts
Count if CompReq3 = 1
Count if CompReq3 =
1
The sum of all other
counts
Count if UpWoaReq3 =
1
Count if UpWoaReq3 =
1
The sum of all other
counts
Programme requirement
Count if ProgReq3 = 1
Count if ProgReq3 = 1
Residence requirement
Count if ResReq3 = 1
Count if ResReq3 = 1
Mental health treatment
requirement
Drug treatment
requirement
Alcohol treatment
requirement
Count if MenHeaReq3
=1
Count if MenHeaReq3
=1
The sum of all other
counts
The sum of all other
counts
The sum of all other
counts
Count if DrugReq3 = 1
Count if DrugReq3 = 1
The sum of all other
counts
Count if AlcReq3 = 1
Count if AlcReq3 = 1
The sum of all other
counts
Conduct requirement
Count if ConReq3 = 1
Count if ConReq3 = 1
Unpaid work or other
activity and supervision
Count if OffSupReq3 =
1 and UpWoaReq3 = 1
Count if OffSupReq3 =
1 and UpWoaReq3 = 1
The sum of all other
counts
The sum of all other
counts
Filters
Note – Please refer to generic rule at beginning of this document – section 1.1 for date criteria.
Page 124 of 149
Table 17
Title
Table CPOS17: CPOs completed/terminated in the year (periodstartdate) to (periodenddate) : Information on
breaches
Breach Details
Total breach applications which have
occurred during the life of the Order up to
completion/termination
Of which:
Number of breach applications where the
breach report was lodged with the court
within 5 working days of the decision to
breach
Number of CPOs completed/terminated in
the year (periodstartdate) to
(periodenddate) where:
No breach applications have occurred
during the life of the order
There has been at least 1 breach
application but none of these have
resulted in a change to the order
There has been at least 1 breach
application and, as a result of this, some
changes have been made to the order
TOTAL
Total
0
0
0
0
0
0
Page 125 of 149
The number of CPO breach applications / CPOs to be included within this table is determined by the following list:
Breach Details
Total breach applications which have
occurred during the life of the Order up to
completion/termination
Of which:
Number of breach applications where the
breach report was lodged with the court
within 5 working days of the decision to
breach
Number of CPOs completed/terminated in
the year (periodstartdate) to
(periodenddate) where:
No breach applications have occurred
during the life of the order
There has been at least 1 breach
application but none of these have
resulted in a change to the order
There has been at least 1 breach
application and, as a result of this, some
changes have been made to the order
TOTAL
Total
Count if BrchApps3 is
not null (total is SUM of
BrchApps3).
Count if
BrchApps5wds3 is not
null (total is SUM of
BrchApps5wds3).
Count if BrchApps3 is
0.
Count if BrchApps3 > 0
and BrchAppsChan3 =
0
Count if BrchApps3 > 0
and BrchAppsChan3 =
1
The sum of the
previous three counts
Filters
Note – Please refer to generic rules at beginning of this document – section 1.1 for date criteria.
Page 126 of 149
Page 127 of 149
Table 18
Title
Table CPOS18: Number of completions/terminations of CPOs in the period (periodstartdate) to (periodenddate) by reason and outcome
Outcome of Termination
Reason for Termination
Custodial
sentence
imposed
New CPO
issued
Monetary
penalty
issued
Other
penalty
issued
Other outcome
Not known
Order Successfully
Completed
Early Discharge
TOTAL
0
0
Revoked due to Review
0
0
0
0
0
0
0
Revoked due to Breach
Transfer out of Area
Death
Other
TOTAL
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
The number of CPO completions/terminations to be included within this table is determined by the following list:
Reason for Termination
Outcome of Termination
Page 128 of 149
Custodial
sentence
imposed
New CPO
issued
Monetary
penalty
issued
Other
penalty
issued
Other outcome
Not known
Order Successfully
Completed
Early Discharge
Revoked due to Review
Revoked due to Breach
Count if ReasTer3 = 02
Count if
Count if
Count if
Count if
Count if
Count if
MnocmTer3 =
01and
ReasTer3 =
03
MnocmTer3 =
02 and
ReasTer3 =
03
MnocmTer3 = 03
and ReasTer3 =
03
MnocmTer3 =
04 and
ReasTer3 =
03
MnocmTer3 = 05
and ReasTer3 = 03
MnocmTer3 = 06
and ReasTer3 = 03
Count if
Count if
Count if
Count if
Count if
Count if
MnocmTer3 =
01and
ReasTer3 =
04
MnocmTer3 =
02 and
ReasTer3 =
04
MnocmTer3 = 03
and ReasTer3 =
04
MnocmTer3 =
04 and
ReasTer3 =
04
MnocmTer3 = 05
and ReasTer3 = 04
MnocmTer3 = 06
and ReasTer3 = 04
TOTAL
The sum of all the other
counts
The sum of all the other
counts
Count if ReasTer3 = 05
Transfer out of Area
Death
Other
TOTAL
Count if ReasTer3 = 01
Count if ReasTer3 = 06
Count if
Count if
Count if
Count if
Count if
Count if
MnocmTer3 =
01and
ReasTer3 =
07
The sum of all
the other
counts
MnocmTer3 =
02 and
ReasTer3 =
07
The sum of all
the other
counts
MnocmTer3 = 03
and ReasTer3 =
07
MnocmTer3 =
04 and
ReasTer3 =
07
The sum of all
the other
counts
MnocmTer3 = 05
and ReasTer3 = 07
MnocmTer3 = 06
and ReasTer3 = 07
The sum of all the
other counts
The sum of all the
other counts
The sum of all the
other counts
Filters
Note – Please refer to generic rules at beginning of this document – section 1.1 for date criteria.
Page 129 of 149
The sum of all the other
counts
The sum of all the other
counts
Appendix A - Guidance
This Appendix provides guidance on how to make the best use of this Specification.
A.1 Form
The Form is the parent container for a Data Collection.
You must define a few mandatory properties and can also specify field and sections (neither of which is mandatory, although this would make for an
uninteresting Data Collection).
You can only have one Form per defined Data Collection.
Properties
Property Name
Description
Title
The name of the Data Collection
Xml Root Element
The xml root element name used in the schema.
Is Strict
Yes/No. Defines how the Validation Rules are
applied (see below).
Table 33 – Form Property Guidance
A.2 Sections
Each Section of a collection can be thought of as a child that lives in its parent. Each Section defines the name used, whether it contributes to the xml
schema and whether it is repeatable.
A Section then describes its make up of field values and their validation.
Page 130 of 149
Properties
Property Name
Description
Title
The title of the section (optional)
Contributes to Xml
Yes/No value indicating if the elements in the section
have a parent or are just elements in at the same
level as the parent.
Note: Must be Yes if “Is Repeatable” is Yes
Xml Element Name
The xml element name used in the Schema. Must be
supplied if “Contributes To Xml” is Yes.
Is Repeatable
Defines if this Section can be repeated.
Repeatable Representation
Defines the way a repeated section is represented in
the repeater drop down.
Use {xxx} to define the value of a Field contained
within the Section. You can only use fields from
within this Section. Anything not in curly braces is
deemed to be literal text.
Example:
Pupil {Forename} {Surname} – ({ID})
Table 34 - Section Property Guidance
A.3 Fields
Fields are the data input into the Data Collection. Each field defines a few properties defined below and any validation that applies to their values.
Properties
Property Name
Description
Name
The name of the Field. This is the Label shown next
to the field on the Form
Xml
The xml element name in the schema
Anon
Yes/No. Defines if this field should be anonymised
when submitted
Page 131 of 149
Searchable
Yes/No. Defines whether or not this field can be
used for a search within a repeatable Section
Format
One of the Field Formats defined below (see Table
36)
Value(s)
The list of values that can appear within a list.
Only applicable with the following Formats:
List;
Regular Expression.
Defined in Value - Name pairs.
Example:
0 – First Option
1 – Second Option
99 – Unknown
There will always be a default blank selection
available to the User.
Table 35 - Field Property Guidance
Field Formats
Notes
Integer
Float
No Format
No validation is performed against the input
No Format – Multiline
No validation is performed against the input. A
multiline, scrolling entry box is displayed
Date Time
Date
List
The User must have selected one of the values from
the list. The actual values defined for the list are
what are stored and not the Name defined for each
Page 132 of 149
Field Formats
Notes
entry.
It is also the values that are used for validation. (This
is the case for the xml upload in particular)
Boolean (Yes/No, True/False)
Note that this field format does not support blank
values. If a tri-boolean field is required, a List should
be used instead. The XML representation of a
Boolean is:
0 – No / False
1 – Yes / True
Regular Expression
The regular expression to use.
http://en.wikipedia.org/wiki/Regular_expression
Single Repeater (List that can have
multiple selections)
Used when you want a user to be able to select
multiple entries from a List
Post Code
UK post code
Table 36 - Field Format Guidance
Validation Errors
Error Properties
Validation Errors can be specified for each input field. They can either be just against the value in the field, or use other input fields as well.
Property Name
Description
Rule
The actual validation applied. Can be complex, or
one of the simple validation rules defined below (see
Table 38).
Error Code
This is the code that is used when navigating the
Validation Errors.
Max 32 chars
Error Message
This is the message that appears on the form if the
validation fails
Page 133 of 149
Max 250 chars
Error Description
This is the description of the field to help Users when
viewing the errors through the navigation screen.
Level
The level of the validation. Defined below
Table 37 - Validation Error Property Guidance
Simple Validation Rules
Rule Name
Rule Description
Mandatory
An entry must be supplied
Format
The entry must match the Format specified
If any other Format then No Format is defined then a
Format rule must be supplied
Range
The value must fall within the specified range.
Only applies to the following formats:
Integer;
Float;
Date;
Date Time.
You must specify at least one of the max and min
values.
Table 38 - Validation Rule Guidance
Validation Error Levels
Validation Error Levels
Description
Warning
A user has entered a value that has failed validation.
Does not prevent the User from submitting the data.
Error
A user has entered a value that has failed validation.
Prevents the User from submitting the Data for a strict Data Collection. But for a loose Data Collection, this
Page 134 of 149
would be allowed to pass.
Fatal
A user has entered a value that has failed validation and must correct the entry before the form can be
submitted.
Table 39 - Validation Error Level Guidance
The fields are laid out on the form in the order that they are placed in the tables.
To enter that another section should appear somewhere, create full row and enter the name of the Section.
Example:
Name
Xml
Anon
Searchable
Format
Value(s)
Validation
Rule
Error Code
Error Message
Error Description
Level
Error Code
Error Message
Error Description
Level
Validation
Rule
Table 2.3.40 - Section Fields
Page 135 of 149
Appendix B - Rule Details
A.4
Definitions
Enter details of specific rules applied
Holidays

Weekends are any Saturday and Sunday

Christmas Holidays
o
If 26th December falls on a Saturday the immediate following Monday is a given holiday
o
If 26th December falls on a Sunday the immediate following Monday and Tuesday are given holidays
o
25th and 26th are holidays if they fall on any Monday – Friday
o
If 1st Jan falls on a Saturday or Sunday the immediate following Monday is a given holiday
Stage Definitions
The Following conditions are possible
 A stage 2 record and no stage 1 or 3 record.
 A stage 3 record and no stage 1 or 2 record.
 A stage 1 and a stage 2 record and no stage 3 record.
 A stage 1 and a stage 3 record and no stage 2 record.
However, the following are not possible:
 A stage 1 record on its own (if a record starts it either ends in the same year – needs a Stage 3 record - or it is still in force at the end of that year –
needs a Stage 2 record
 A stage 2 and stage 3 record (as a record has to have either ended during a year or be in force at end of that year, but can’t be both).
Page 136 of 149
Appendix B - List Definitions
Lacodes
100
Aberdeen City
110
Aberdeenshire
120
Angus
130
Argyll & Bute
150
Clackmannanshire
170
Dumfries & Galloway
180
Dundee City
190
East Ayrshire
200
East Dunbartonshire
210
East Lothian
220
East Renfrewshire
230
Edinburgh, City of
235
Eilean Siar
240
Falkirk
250
Fife
260
Glasgow City
270
Highland
280
Inverclyde
290
Midlothian
300
Moray
Page 137 of 149
310
North Ayrshire
320
North Lanarkshire
330
Orkney Islands
340
Perth & Kinross
350
Renfrewshire
355
Scottish Borders
360
Shetland Islands
370
South Ayrshire
380
South Lanarkshire
390
Stirling
395
West Dunbartonshire
400
West Lothian
Genders
Value
Display
1
Male
2
Female
Ethnic Origins
Value
Display
01
White Scottish
02
White Other British
03
White Irish
04
White Gypsy / Traveller
05
White Polish
Page 138 of 149
06
White Other
07
Mixed or multiple
08
Pakistani, Pakistani Scottish or Pakistani British
09
Indian, Indian Scottish or Indian British
10
Bangladeshi, Bangladeshi Scottish or Bangladeshi British
11
Chinese, Chinese Scottish or Chinese British
12
Other Asian, Asian Scottish or Asian British
13
African, African Scottish or African British
14
Other African
15
Caribbean, Caribbean Scottish or Caribbean British
16
Black, Black Scottish or Black British
17
Other Caribbean or Black
18
Arab, Arab Scottish or Arab British
19
Other
97
Not Disclosed
99
Not Known
Employment Statuses
Value
Display
01
Full-time education
02
Employed / self-employed
03
Unemployed
04
On Government sponsored training scheme
05
Not seeking employment
Page 139 of 149
06
Other
Court Types
Value
Display
01
High/appeal
02
Sheriff solemn
03
Sheriff summary
04
Stipendiary magistrates
05
Justice of the peace
06
Court outwith Scotland
Court Codes
Value
Display
9701
Aberdeen Sheriff Court
9702
Airdrie Sheriff Court
9703
Alloa Sheriff Court
9704
Ayr Sheriff Court
9705
Arbroath Sheriff Court
9711
Banff Sheriff Court
9716
Campbeltown Sheriff Court
9717
Cupar Sheriff Court
9721
Dingwall Sheriff Court
9722
Dornoch Sheriff Court
Page 140 of 149
9723
Dumbarton Sheriff Court
9724
Dumfries Sheriff Court
9726
Dundee Sheriff Court
9727
Dunfermline Sheriff Court
9728
Dunoon Sheriff Court
9729
Duns Sheriff Court
9741
Edinburgh Sheriff Court
9742
Elgin Sheriff Court
9751
Falkirk Sheriff Court
9752
Forfar Sheriff Court
9753
Fort William Sheriff Court
9761
Glasgow Sheriff Court
9762
Greenock Sheriff Court
9771
Haddington Sheriff Court
9772
Hamilton Sheriff Court
9781
Inverness Sheriff Court
9791
Jedburgh Sheriff Court
9801
Kilmarnock Sheriff Court
9803
Kirkcaldy Sheriff Court
9804
Kirkcudbright Sheriff Court
9805
Kirkwall Sheriff Court
Page 141 of 149
9811
Lanark Sheriff Court
9812
Lerwick Sheriff Court
9813
Linlithgow Sheriff Court
9814
Lochmaddy Sheriff Court
9815
Livingston Sheriff Court
9841
Oban Sheriff Court
9851
Paisley Sheriff Court
9852
Peebles Sheriff Court
9853
Perth Sheriff Court
9854
Peterhead Sheriff Court
9855
Portree Sheriff Court
9861
Rothesay Sheriff Court
9871
Selkirk Sheriff Court
9872
Stirling Sheriff Court
9873
Stonehaven Sheriff Court
9874
Stornoway Sheriff Court
9875
Stranraer Sheriff Court
9881
Tain Sheriff Court
9891
Wick Sheriff Court
9240
Alloa JP Court
9245
Annan JP Court
Page 142 of 149
9246
Dumfries JP Court
9247
Kirkcudbright JP Court
9250
Stranraer JP Court
9251
Aberdeen JP Court
9252
Banff JP Court
9253
Peterhead JP Court
9254
Stonehaven JP Court
9256
Dundee JP Court
9261
Kilmarnock JP Court
9263
Arbroath JP Court
9264
Forfar JP Court
9270
Haddington JP Court
9278
Edinburgh JP Court
9282
Falkirk JP Court
9285
Cupar JP Court
9286
Dunfermline JP Court
9287
Kirkcaldy JP Court
9289
Campbeltown JP Court
9290
Dunoon JP Court
9292
Lochgilphead JP Court
9293
Oban JP Court
Page 143 of 149
9295
Glasgow City JP Court
9340
Greenock JP Court
9341
Elgin JP Court
9342
Paisley JP Court
9343
Dingwall JP Court
9344
Dornoch JP Court
9345
Fort William JP Court
9346
Inverness JP Court
9347
Portree JP Court
9348
Tain JP Court
9349
Wick JP Court
9350
Duns JP Court
9351
Jedburgh JP Court
9352
Peebles JP Court
9353
Selkirk JP Court
9354
Irvine JP Court
9355
Coatbridge JP Court
9356
Cumbernauld JP Court
9357
Motherwell JP Court
9358
Perth JP Court
9360
Ayr JP Court
Page 144 of 149
9366
Hamilton JP Court
9367
Lanark JP Court
9372
Stirling JP Court
9376
Dumbarton JP Court
9380
Livingston JP Court
9384
Stornoway JP Court
9999
Missing
Transfer types
Value
Display
01
Not transferred in
02
Transferred in from another Scottish local authority area
03
Transferred in from outwith Scotland but within the UK (including Isle of
Man and Channel Islands)
04
Transferred from outwith the UK (and outwith Isle of Man and Channel
Islands)
Reason Terminations
Value
Display
01
Order successfully completed
02
Early discharge
03
Revoked due to review
04
Revoked due to breach
05
Transfer out of area
Page 145 of 149
06
Death
07
Other
Outcome Terminations
Value
Display
01
Custodial sentence imposed
02
New CPO issued
03
Monetary penalty issued
04
Other penalty issued
05
Other outcome
06
Outcome not known
YesNoList
Value
Display
0
0
1
1
Page 146 of 149
Transfer types2
Value
Display
01
Transferred to another Scottish local authority area
02
Transferred to outwith Scotland but within the UK (including Isle of Man
and Channel Islands)
03
Transferred to outwith the UK (and outwith Isle of Man and Channel
Islands)
Freas
Value
Display
01
Offender ill
02
Offender undertaking paid employment
03
Offender in custody
04
Suitable social work staff not available
05
Offender didn’t turn up
06
Offender currently on order or supervision
07
Other client-based
08
Other non-client-based
Page 147 of 149
Ireas
Value
Display
01
Offender ill
02
Offender undertaking paid employment
03
Offender in custody
04
Suitable social work staff not available
05
Offender didn’t turn up
06
First direct contact occurred late
07
Offender currently on order or supervision
08
Other client-based
09
Other non-client-based
Wreas
Value
Display
01
Offender ill
02
Offender undertaking paid employment
03
Offender in custody
04
First direct contact occurred late
05
Suitable work not available
06
Suitable social work staff not available
07
Offender didn’t turn up for first date of placement
Page 148 of 149
08
Offender currently on order or supervision
09
Other client-based
10
Other non-client-based
Treas
Value
Display
01
Non-compliance
02
Court set later completion date
03
Offender’s ill health
04
Offender’s paid employment
05
Difficulty finding suitable work
06
Suitable social work staff not available
07
Other client-based
08
Other non-client-based
Page 149 of 149
Download