Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
logger.info("Invalid Request Data.");
response.setError(5000, "Invalid request");
}
logger.info("getBenCaseRecordFromDoctorGeneralOPD response:" + response);
//logger.info("getBenCaseRecordFromDoctorGeneralOPD response:" + response);

Check warning on line 317 in src/main/java/com/iemr/hwc/controller/generalOPD/GeneralOPDController.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZ8So8bAK31AziteXvih&open=AZ8So8bAK31AziteXvih&pullRequest=214
} catch (Exception e) {
response.setError(5000, "Error while getting beneficiary doctor data");
logger.error("Error in getBenCaseRecordFromDoctorGeneralOPD:" + e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,17 @@
? requestObj.get("parkingPlaceID").getAsInt()
: 0);

beneficiaryDetailsRmnch.addProperty("facilityID",
requestObj.has("facilityID") && !requestObj.get("facilityID").isJsonNull()
? requestObj.get("facilityID").getAsInt()
: null);

beneficiaryDetailsRmnch.addProperty("vanID",
requestObj.has("facilityID") && !requestObj.get("facilityID").isJsonNull()
? requestObj.get("facilityID").getAsInt()
: requestObj.has("vanID") && !requestObj.get("vanID").isJsonNull()
? requestObj.get("vanID").getAsInt()
: 0);
// beneficiaryDetailsRmnch.addProperty("facilityID",
// requestObj.has("facilityID") && !requestObj.get("facilityID").isJsonNull()
// ? requestObj.get("facilityID").getAsInt()
// : null);

Check warning on line 340 in src/main/java/com/iemr/hwc/service/choApp/CHOAppSyncServiceImpl.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZ8So8XvK31AziteXvid&open=AZ8So8XvK31AziteXvid&pullRequest=214

// beneficiaryDetailsRmnch.addProperty("vanID",
// requestObj.has("facilityID") && !requestObj.get("facilityID").isJsonNull()
// ? requestObj.get("facilityID").getAsInt()
// : requestObj.has("vanID") && !requestObj.get("vanID").isJsonNull()
// ? requestObj.get("vanID").getAsInt()
// : 0);

Check warning on line 347 in src/main/java/com/iemr/hwc/service/choApp/CHOAppSyncServiceImpl.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZ8So8XvK31AziteXvie&open=AZ8So8XvK31AziteXvie&pullRequest=214

JsonElement providerServiceMapElement =
requestObj.has("providerServiceMapID")
Expand Down Expand Up @@ -588,13 +588,13 @@
beneficiaryDetailsRmnch.addProperty("emergencyRegistration", requestObj.get("emergencyRegistration").getAsBoolean());

beneficiaryDetailsRmnch.addProperty("parkingPlaceID", requestObj.get("parkingPlaceID").getAsInt());
beneficiaryDetailsRmnch.addProperty("facilityID",
requestObj.has("facilityID") && !requestObj.get("facilityID").isJsonNull()
? requestObj.get("facilityID").getAsInt() : null);
beneficiaryDetailsRmnch.addProperty("vanID",
requestObj.has("facilityID") && !requestObj.get("facilityID").isJsonNull()
? requestObj.get("facilityID").getAsInt()
: requestObj.get("vanID").getAsInt());
// beneficiaryDetailsRmnch.addProperty("facilityID",
// requestObj.has("facilityID") && !requestObj.get("facilityID").isJsonNull()
// ? requestObj.get("facilityID").getAsInt() : null);

Check warning on line 593 in src/main/java/com/iemr/hwc/service/choApp/CHOAppSyncServiceImpl.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZ8So8XvK31AziteXvif&open=AZ8So8XvK31AziteXvif&pullRequest=214
// beneficiaryDetailsRmnch.addProperty("vanID",
// requestObj.has("facilityID") && !requestObj.get("facilityID").isJsonNull()
// ? requestObj.get("facilityID").getAsInt()
// : requestObj.get("vanID").getAsInt());

JsonElement psmID = requestObj.has("providerServiceMapID")
? requestObj.get("providerServiceMapID")
Expand Down Expand Up @@ -1084,12 +1084,12 @@
}
}
}
logger.info("Ben FLow data" +
new GsonBuilder()
.excludeFieldsWithoutExposeAnnotation()
.serializeNulls()
.create()
.toJson(benFlowList));
// logger.info("Ben FLow data" +
// new GsonBuilder()
// .excludeFieldsWithoutExposeAnnotation()
// .serializeNulls()
// .create()
// .toJson(benFlowList));

Check warning on line 1092 in src/main/java/com/iemr/hwc/service/choApp/CHOAppSyncServiceImpl.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZ8So8XvK31AziteXvig&open=AZ8So8XvK31AziteXvig&pullRequest=214
outputResponse.setResponse(new GsonBuilder().excludeFieldsWithoutExposeAnnotation().serializeNulls().create().toJson(benFlowList.stream().filter(beneficiaryFlowStatus -> beneficiaryFlowStatus.getReproductiveStatus()
.equals("Eligible Couple"))));
} else {
Expand Down