Skip to content

Commit c09de57

Browse files
committed
PI-2370 - remove filter logic, as this is done in the nDeliusGateway api
1 parent 3ebb371 commit c09de57

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetDynamicRisksForPersonService.kt

+2-10
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,8 @@ class GetDynamicRisksForPersonService(
1919

2020
if (deliusCrn != null) {
2121
val allNDeliusDynamicRisks = nDeliusGateway.getDynamicRisksForPerson(deliusCrn)
22-
val filteredNDeliusDynamicRisks =
23-
allNDeliusDynamicRisks.data.filter {
24-
it.code in
25-
listOf(
26-
"RCCO", "RCPR", "REG22", "RVLN", "ALT8", "STRG", "AVIS", "ALT1", "WEAP",
27-
"RHRH", "RLRH", "RMRH", "RVHR", "RCHD", "REG15", "REG16", "REG17",
28-
"ALT4", "AVS2", "ALT7", "ALSH",
29-
)
30-
}
31-
nDeliusDynamicRisks = Response(data = filteredNDeliusDynamicRisks, errors = allNDeliusDynamicRisks.errors)
22+
23+
nDeliusDynamicRisks = Response(data = allNDeliusDynamicRisks.data, errors = allNDeliusDynamicRisks.errors)
3224
}
3325

3426
return Response(

0 commit comments

Comments
 (0)