Skip to content

Commit d807595

Browse files
KA40094929KA40094929
authored andcommitted
fix: coderabbitai suggestions
1 parent 3fd09d8 commit d807595

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/com/wipro/fhir/service/healthID/HealthIDServiceImpl.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public class HealthIDServiceImpl implements HealthIDService {
6464
@Override
6565
public String mapHealthIDToBeneficiary(String request) throws FHIRException {
6666
BenHealthIDMapping health = InputMapper.gson().fromJson(request, BenHealthIDMapping.class);
67-
health = InputMapper.gson().fromJson(request, BenHealthIDMapping.class);
6867
String[] beneficiaryIdsList = null;
6968
try {
7069
if (health.getBeneficiaryRegID() == null && health.getBeneficiaryID() == null)
@@ -80,8 +79,8 @@ public String mapHealthIDToBeneficiary(String request) throws FHIRException {
8079
health = benHealthIDMappingRepo.save(health);
8180
else {
8281
if (health.getBeneficiaryID() != null) {
83-
Long check1 = benHealthIDMappingRepo.getBenRegID(health.getBeneficiaryID());
84-
health.setBeneficiaryRegID(check1);
82+
Long benRegId = benHealthIDMappingRepo.getBenRegID(health.getBeneficiaryID());
83+
health.setBeneficiaryRegID(benRegId);
8584
health = benHealthIDMappingRepo.save(health);
8685
}
8786
}

0 commit comments

Comments
 (0)