Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
al-hmcts committed Jun 19, 2024
1 parent a26bd27 commit b6c9d7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

import java.util.List;
import java.util.Map;
import java.util.Optional;

import static uk.gov.hmcts.reform.bsp.common.mapper.GenericMapper.getValueFromOcrDataFields;
import static uk.gov.hmcts.reform.bsp.common.utils.BulkScanCommonHelper.transformFormDateIntoCcdDate;
import static uk.gov.hmcts.reform.finrem.caseorchestration.model.ccd.Gender.NOT_GIVEN;
import static uk.gov.hmcts.reform.finrem.caseorchestration.service.bulkscan.transformation.mappers.ChildrenInfoMapper.Fields.COUNTRY;
import static uk.gov.hmcts.reform.finrem.caseorchestration.service.bulkscan.transformation.mappers.ChildrenInfoMapper.Fields.DOB;
import static uk.gov.hmcts.reform.finrem.caseorchestration.service.bulkscan.transformation.mappers.ChildrenInfoMapper.Fields.GENDER;
Expand Down Expand Up @@ -52,7 +52,7 @@ private static ChildInfo mapChild(int index, List<OcrDataField> ocrDataFields) {
return ChildInfo.builder()
.name(getValueOrEmptyString(index, ocrDataFields, NAME_OF_CHILD))
.dateOfBirth(dob)
.gender(StringUtils.isNotBlank(gender) ? gender : "notGiven")
.gender(StringUtils.isNotBlank(gender) ? gender : NOT_GIVEN.getValue())
.relationshipToApplicant(getValueOrEmptyString(index, ocrDataFields, RELATION_TO_APPLICANT))
.relationshipToRespondent(getValueOrEmptyString(index, ocrDataFields, RELATION_TO_RESPONDENT))
.countryOfResidence(getValueOrEmptyString(index, ocrDataFields, COUNTRY))
Expand Down

0 comments on commit b6c9d7c

Please sign in to comment.