Data Description
Justice Organisations and Prisons in England and Wales.
A standard set of unique identification codes for Justice entities including Prisons, Police Stations, Constabularies, Courts, Young Offender Institutions, Secure Training Centres, Secure Children’s Homes, Immigration Removal Centres and Sexual Assault Referral Centres in England and Wales.
How Data is Maintained
ODS obtain Justice Organisation information from the Ministry of Justice. The Ministry of Justice publish a list of Justice Organisations which ODS use to check the validity of requests for new organisation codes. If an entity is not present within this publication ODS contact the Ministry of Justice directly to check its validity before coding the new entity and Prisons data is obtained from the Prison Health team within the Department of Health.
Key Information - Roles, Code Formats and Data Source
Key Information | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Geographic coverage |
| ||||||||||||||||||||||||||||||||||||
Primary Role ID | RO236 | Primary Role Name | SEXUAL ASSAULT REFERRAL CENTRE | ||||||||||||||||||||||||||||||||||
RO235 | COURT | ||||||||||||||||||||||||||||||||||||
RO234 | POLICE CUSTODY SUITE | ||||||||||||||||||||||||||||||||||||
RO233 | CONSTABULARY | ||||||||||||||||||||||||||||||||||||
RO231 | SECURE CHILDREN'S HOME | ||||||||||||||||||||||||||||||||||||
RO230 | SECURE TRAINING CENTRE | ||||||||||||||||||||||||||||||||||||
RO228 | YOUNG OFFENDER INSTITUTION | ||||||||||||||||||||||||||||||||||||
RO175 | PRISON | ||||||||||||||||||||||||||||||||||||
Non Primary Role ID | RO229 | Non Primary Role Name | NON RESIDENTIAL INSTITUTION | Linked to RO234 and RO235 only | |||||||||||||||||||||||||||||||||
RO83 | RESIDENTIAL INSTITUTION | Linked to RO230, RO231 and RO228 only | |||||||||||||||||||||||||||||||||||
RO220 | SECURE TRAINING CENTRE | Linked to RO175 only | |||||||||||||||||||||||||||||||||||
RO69 | IMMIGRATION REMOVAL CENTRE | Linked to RO175 only | |||||||||||||||||||||||||||||||||||
Code Format |
| ||||||||||||||||||||||||||||||||||||
Raw Data Source | Ministry of Justice | Update Frequency | Ad-hoc | For Justice Organisations | |||||||||||||||||||||||||||||||||
Prison Health team within the Department of Health | Ad-hoc | For Prisons |
Permitted Relationships
Permitted Relationships - Justice organisations can be linked to (upward): | ||||
Source Primary Role ID | Relationship Type ID | Relationship Type Name | Target Primary Role ID | Target Primary Role Name |
RO175 | RE4 | IS COMMISSIONED BY | RO107 | CARE TRUST |
RE4 | IS COMMISSIONED BY | RO142 | LOCAL HEALTH BOARD | |
RE4 | IS COMMISSIONED BY | RO144 | WELSH LOCAL HEALTH BOARD | |
RE4 | IS COMMISSIONED BY | RO179 | PRIMARY CARE TRUST | |
RE4 | IS COMMISSIONED BY | RO98 | CLINICAL COMMISSIONING GROUP | |
RO228 | RE4 | IS COMMISSIONED BY | RO142 | LOCAL HEALTH BOARD |
RE4 | IS COMMISSIONED BY | RO98 | CLINICAL COMMISSIONING GROUP | |
RO230 | RE4 | IS COMMISSIONED BY | RO142 | LOCAL HEALTH BOARD |
RE4 | IS COMMISSIONED BY | RO98 | CLINICAL COMMISSIONING GROUP | |
RO231 | RE4 | IS COMMISSIONED BY | RO142 | LOCAL HEALTH BOARD |
RE4 | IS COMMISSIONED BY | RO98 | CLINICAL COMMISSIONING GROUP | |
RO233 | RE4 | IS COMMISSIONED BY | RO142 | LOCAL HEALTH BOARD |
RE4 | IS COMMISSIONED BY | RO98 | CLINICAL COMMISSIONING GROUP | |
RO234 | RE6 | IS OPERATED BY | RO233 | CONSTABULARY |
RO235 | RE4 | IS COMMISSIONED BY | RO142 | LOCAL HEALTH BOARD |
RE4 | IS COMMISSIONED BY | RO98 | CLINICAL COMMISSIONING GROUP | |
RO236 | RE4 | IS COMMISSIONED BY | RO142 | LOCAL HEALTH BOARD |
RE4 | IS COMMISSIONED BY | RO98 | CLINICAL COMMISSIONING GROUP |
Legacy .csv File Mapping
Click here for an explanation of the baseline data differences between legacy csv files and ODS Data Search and Export and the ODS APIs.
ejustice.csv
Primary Role ID = RO228, RO230, RO231, RO232, RO233, RO234, RO235, RO236 and RO175
Col | Data Item | Report Alias (legacy csv) | Notes |
1 | [OrganisationCode] | Organisation Code | |
2 | [OrgName] | Justice Estate Name | |
3 | [NHSER_code] | National Grouping | Change from Legacy csv: Geographic extension of the postcode. No longer using default codes for Wales (W00), now null. Note that the column heading previously specified in the ODS Standards Repository referred to this field as National Grouping Code - this has now been amended for consistency across reports. |
4 | [ICB_code] | High Level Health Geography | Change from Legacy csv: Geographic extension of the postcode. No longer using default codes for Wales (Q99), now null. Note that the column heading previously specified in the ODS Standards Repository referred to this field as High Level Health Geography Code - this has now been amended for consistency across reports. |
5 | [Address1] | Address Line 1 | |
6 | [Address2] | Address Line 2 | |
7 | [Address3] | Address Line 3 | |
8 | [Town] | Address Line 4 | |
9 | [County] | Address Line 5 | Change from legacy csv: As this is a legacy field, not populated for new addresses since 2018, this field within the ODS Data Search & Export tool (including pre defined reports) will not be populated. Note that the value (where populated) is available via the FHIR Organization Resource in the address.district property. |
10 | [Postcode] | Postcode | |
11 | [LegalStartDate] | Open Date | |
12 | [LegalEndDate] | Close Date | |
13 | NULL | Column 13 | |
14 | RoleID | Residency Indicator | Change from legacy csv: Previously populated with a 2 character indicator of 'RI' (Residential Institution) or 'RJ' (Non-Residential Institution). Now only populated where there is a corresponding non primary role (PrimaryRole = 0) that is active or has a legal end date equal to the organisation’s end date. |
15 | [TargetOrgCode] | Parent Organisation Code | Target organisation code for the RE6 'is operated by' relationship – Where LegalEndDate is null, or where the relationship LegalEndDate is equal to the organisation LegalEndDate. Only applies to RO234 ‘Police Custody Suite’ |
16 | NULL | Column 16 | |
17 | NULL | Column 17 | |
18 | NULL | Column 18 | |
19 | NULL | Column 19 | |
20 | NULL | Column 20 | |
21 | NULL | Column 21 | |
22 | ‘1’ | Amended Record Indicator | Set to 1 for Report |
23 | NULL | Column 23 | |
24 | NULL | Column 24 | |
25 | NULL | Column 25 | |
26 | RoleID | Primary Role | Change from legacy csv: Previously populated with a 2 character indicator of PN (Prison), JA (Young Offender Institution), JB (Secure Training Centre), JC (Secure Children's Home), JD (Immigration Removal Centre), JE (Constabulary), JF (Police Custody Suite), JG (Courts), JH (Sexual Assault Referral Centre). Now populated with the corresponding primary role ID (where PrimaryRole = 1) as per the Key Information table above. |
27 | NULL | Column 27 |