Skip to content

Commit

Permalink
Merge pull request #49 from ministryofjustice/tidy-up-more-interventi…
Browse files Browse the repository at this point in the history
…on-teams

Move contract/programme managers to InterventionTeams
  • Loading branch information
sldblog authored Aug 13, 2020
2 parents 47c551e + f86e079 commit 57703d5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/kotlin/defineModelWithDeprecatedSyntax.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ fun defineModelWithDeprecatedSyntax(model: Model) {
pom.uses(OffenderManagementInCustody.allocationManager, "look at service users who need handing over to community in")

// lifted from probation model
val contractManager = model.addPerson("Contract Manager for CRCs", null)
val courtAdmin = model.addPerson("NPS court administrator", null)
val crcProgrammeManager = model.addPerson("CRC programme manager", "People who provide interventions on behalf of Community Rehabilitation Companies").apply { Tags.PROVIDER.addTo(this) }
val sentencingPolicy = model.addPerson("Sentencing Policy", "Pseudo-team to capture sentencing policy meeting participants")

val hmip = model.addPerson("HM Inspectorate of Probation", "Reports to the government on the effectiveness of work with people who offended to reduce reoffending and protect the public")
Expand All @@ -33,11 +31,9 @@ fun defineModelWithDeprecatedSyntax(model: Model) {
probationCaseSampler.setUrl("https://dsdmoj.atlassian.net/wiki/spaces/NDSS/pages/1989181486/HMIP+Case+Sampling")

caseNotesToProbation.uses(Delius.system, "pushes case notes to")
contractManager.interactsWith(EPF.projectManager, "sends a signed off version of the CRC's Discretionary Services rate card brochure to")
courtAdmin.uses(Delius.system, "records CAS decision, referrals in")
courtAdmin.uses(prepareCaseForCourt, "captures court judgements in")
ProbationPractitioners.crc.uses(oasys, "records offender risk (attendance, contact, etc.) and assessment in")
crcProgrammeManager.interactsWith(Delius.supportTeam, "opens tickets to update interventions")
Delius.system.uses(oasys, "offender details, offence details, sentence info are copied into", "NDH")
EPF.projectManager.interactsWith(sentencingPolicy, "listens to owners of interventions for changes in policy")
Reporting.ndmis.uses(OffenderManagementInCustody.allocationManager, "sends extracts containing service user allocation to", "email")
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/model/Delius.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Delius private constructor() {
ProbationPractitioners.nps.uses(system, "records and reviews assessment decision, sentence plan, pre-sentence report, referrals in")

InterventionTeams.interventionServicesTeam.interactsWith(supportTeam, "raises task to create or update an accredited programme with")
InterventionTeams.crcProgrammeManager.interactsWith(supportTeam, "raises task to update interventions with")
supportTeam.uses(system, "updates interventions in")
}

Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/model/EPF.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class EPF private constructor() {
ProbationPractitioners.nps.uses(system, "enters court, location, offender needs, assessment score data to receive a shortlist of recommended interventions for Pre-Sentence Report Proposal from")
ProbationPractitioners.nps.uses(system, "enters location, offender needs, assessment score data to receive recommended interventions for licence condition planning from")
InterventionTeams.interventionServicesTeam.interactsWith(projectManager, "provide programme suitability guide for accredited programme eligibility to")
InterventionTeams.contractManagerForCRC.interactsWith(projectManager, "sends a signed off version of the CRC's Discretionary Services rate card brochure to")
}

override fun defineViews(views: ViewSet) {
Expand Down
11 changes: 11 additions & 0 deletions src/main/kotlin/model/InterventionTeams.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,27 @@ class InterventionTeams private constructor() {
companion object : HMPPSSoftwareSystem {
lateinit var interventionServicesTeam: Person
lateinit var npsTreatmentManager: Person
lateinit var contractManagerForCRC: Person
lateinit var crcTreatmentManager: Person
lateinit var crcProgrammeManager: Person

override fun defineModelEntities(model: Model) {
interventionServicesTeam = model.addPerson(
"Intervention Services Team",
"They accredit intervention programmes and do business development of the interventions"
)
npsTreatmentManager = model.addPerson("NPS treatment manager")
contractManagerForCRC = model.addPerson("Contract Manager for CRCs")

crcTreatmentManager = model.addPerson("CRC treatment manager")
.apply { Tags.PROVIDER.addTo(this) }

crcProgrammeManager = model.addPerson(
"CRC programme manager",
"People who provide interventions on behalf of Community Rehabilitation Companies"
).apply { Tags.PROVIDER.addTo(this) }

crcProgrammeManager.interactsWith(contractManagerForCRC, "sends rate card brochure to")
}

override fun defineRelationships() {
Expand Down

0 comments on commit 57703d5

Please sign in to comment.