Skip to content

Commit

Permalink
Merge branch 'develop' into jwt-api
Browse files Browse the repository at this point in the history
  • Loading branch information
indraniBan authored Dec 19, 2024
2 parents eb2f985 + c0f27fe commit 0ba7079
Showing 6 changed files with 546 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
@@ -89,3 +89,5 @@ spring.redis.host=localhost
jwt.secret=@env.JWT_SECRET_KEY@


#ELK logging file name
logging.file.name=@env.HWC_API_LOGGING_FILE_NAME@
Original file line number Diff line number Diff line change
@@ -160,5 +160,35 @@ public String getLabResultForVisitCode(@RequestBody String requestOBJ) {
}
return response.toString();
}

@CrossOrigin
@Operation(summary = "Get procedure component mapped master data")
@PostMapping(value = { "/get/fetchProcCompMapMasterData" })
public String getProcedureComponentMappedMasterData(@RequestBody String requestOBJ) {
OutputResponse response = new OutputResponse();
try {
logger.info("Request obj to fetch procedure component mapped master data ");
JsonObject jsnOBJ = new JsonObject();
JsonElement jsnElement = JsonParser.parseString(requestOBJ);
jsnOBJ = jsnElement.getAsJsonObject();

if (jsnOBJ != null && !jsnOBJ.isJsonNull() && jsnOBJ.has("providerServiceMapID")) {

String s = labTechnicianServiceImpl.getProcedureComponentMappedMasterData(
jsnOBJ.get("providerServiceMapID").getAsLong());
if (s != null)
response.setResponse(s);
else
response.setError(5000, "Error in fetching procedure component mapped master data");
} else {
response.setError(5000, "Invalid request");
}
} catch (Exception e) {
logger.error("Error while fetching procedure component mapped master data:" + e);
response.setError(5000, "Error while fetching procedure component mapped master data");
}
return response.toString();
}


}
Loading

0 comments on commit 0ba7079

Please sign in to comment.