From ce8281ed753dc9493fda97892c2b5e5d160bdf68 Mon Sep 17 00:00:00 2001 From: pmcphee77 <150798161+pmcphee77@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:31:31 +0100 Subject: [PATCH] PI-2521: Do not default selfDescribedGender to gender (#4225) --- .../hmpps/integrations/delius/service/OffenderService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/court-case-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/service/OffenderService.kt b/projects/court-case-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/service/OffenderService.kt index e54df23dd3..81606e89d0 100644 --- a/projects/court-case-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/service/OffenderService.kt +++ b/projects/court-case-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/service/OffenderService.kt @@ -222,7 +222,7 @@ fun DocumentEntity?.toPreviousConviction() = PreviousConviction(convictionDate = fun Person.toProfile(previousConviction: DocumentEntity?) = OffenderProfile( genderIdentity = genderIdentity?.description, - selfDescribedGender = genderIdentityDescription ?: genderIdentity?.description, + selfDescribedGender = genderIdentityDescription, disabilities = disabilities.filter { d -> !d.softDeleted }.sortedBy { it.startDate }.reversed().map { it.toDisability() }.takeIf { disabilities.isNotEmpty() },