Manage Offences and Delius
Business Need
Inbound service that responds to events raised by the HMPPS Manage Offences service when there are changes to the set of CJS Offence Codes managed by that service. Any changes to the set of offence codes is reflected in the Delius database. This ensures that Delius is up-to-date with the common set of offence codes used across HMPPS Digital services.
Context Map
Ignored Offence Codes
Certain offence codes are not replicated into Delius, as they correspond to court processes rather than actual offences. At the time of writing, these are:
- Offences that have expired (i.e. have an end date in the past)
- Home office codes of
222/22 - Home office code prefixes of
598/* - CJS code suffixes of
500or above
For the up-to-date list of ignored offence codes, see IgnoredOffences.kt.
Interfaces
Message Formats
The service responds to an HMPPS Domain Event message via an SQS Queue. The events are raised by the Manage Offences API when a CJS offence code is either created or updated.
| Business Event | Message Class | Message Event Type / Filter |
|---|---|---|
| Change to CJS offence code | HMPPS Domain Event | manage-offences.offence.changed |