You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/assessment-summary-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt
Copy file name to clipboardExpand all lines: projects/assessment-summary-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/entity/Registration.kt
+6-6
Original file line number
Diff line number
Diff line change
@@ -77,16 +77,16 @@ class Registration(
77
77
var reviews:MutableList<RegistrationReview> =mutableListOf()
Copy file name to clipboardExpand all lines: projects/assessment-summary-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/RiskService.kt
+25-11
Original file line number
Diff line number
Diff line change
@@ -76,21 +76,24 @@ class RiskService(
76
76
val (matchingRegistrations, registrationsToRemove) = registrations.partition { it.level!!.code == riskLevel.code }
77
77
val events = registrationsToRemove.map { person.removeRegistration(it) }.toMutableList()
78
78
79
-
//Add registration with the identified level if it doesn't already exist
79
+
//Get RoSH answers from OASys
80
80
val type = registerTypeRepository.getByCode(riskType.code)
81
81
val existingLevel =RiskLevel.maxByCode(registrationsToRemove.mapNotNull { it.level?.code })
82
82
val assessmentNote ="The OASys assessment of ${summary.furtherInformation.pOAssessmentDesc} on "+
83
83
"${summary.dateCompleted.toDeliusDate()} identified the ${type.description}"+
0 commit comments