Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
6a3b96b
Incentive for Completing treatment of PB (Paucibacillary) leprosy pat…
SauravBizbRolly Feb 5, 2026
e4af5f9
fix code rabit comment
SauravBizbRolly Feb 6, 2026
22c538e
fix code rabit comment
SauravBizbRolly Feb 6, 2026
249b22b
fix code rabit comment
SauravBizbRolly Feb 6, 2026
48d5076
Merge pull request #195 from PSMRI/test/incentive_leprosy
SauravBizbRolly Feb 6, 2026
d14afc4
fix code rabit comment
SauravBizbRolly Feb 6, 2026
9292e4a
Merge pull request #193 from PSMRI/feature/incentive_leprosy_confirme…
SauravBizbRolly Feb 6, 2026
e9ee718
Changes incentive loigc for CG in VillageLevel
SauravBizbRolly Feb 9, 2026
56d1bd2
incentive upload files
SauravBizbRolly Feb 10, 2026
8994d31
Merge pull request #197 from PSMRI/fix/incentive_upload_file
SauravBizbRolly Feb 10, 2026
79ddfa2
incentive upload files
SauravBizbRolly Feb 11, 2026
41daa70
Merge pull request #198 from PSMRI/fix/incentive_upload_file_fix
SauravBizbRolly Feb 11, 2026
dc86499
incentive upload files
SauravBizbRolly Feb 11, 2026
234eaf6
Merge pull request #199 from PSMRI/fix/incentive_upload_file_
SauravBizbRolly Feb 11, 2026
7261231
add record id
SauravBizbRolly Feb 11, 2026
189c098
Merge pull request #200 from PSMRI/fix/add_record_id
SauravBizbRolly Feb 11, 2026
c7f2758
add record id
SauravBizbRolly Feb 11, 2026
f369d0d
Merge pull request #201 from PSMRI/fix/add_record_id_fix
SauravBizbRolly Feb 11, 2026
917f8bc
add record id
SauravBizbRolly Feb 12, 2026
63c6273
Merge pull request #202 from PSMRI/fix/fix_upload_file_incentive
SauravBizbRolly Feb 12, 2026
4db1fb2
fix method name
SauravBizbRolly Feb 12, 2026
9c305ae
Merge pull request #203 from PSMRI/fix/update_incentive_fix_method
SauravBizbRolly Feb 12, 2026
adf16a4
make changes in response
SauravBizbRolly Feb 12, 2026
986c0ca
Merge pull request #204 from PSMRI/fix/correct_response_of_update_inc…
SauravBizbRolly Feb 12, 2026
d1f8140
implement check on pending doc for incentive review
SauravBizbRolly Feb 19, 2026
e051408
Merge remote-tracking branch 'upstream/incentive_changes_3.8.0' into …
SauravBizbRolly Feb 19, 2026
fc13d61
implement check on pending doc for incentive review
SauravBizbRolly Feb 19, 2026
d13fe8a
implement check on pending doc for incentive review
SauravBizbRolly Feb 19, 2026
3593e45
implement check on pending doc for incentive review
SauravBizbRolly Feb 19, 2026
13fedf9
implement check on pending doc for incentive review
SauravBizbRolly Feb 19, 2026
1cb9e14
implement check on pending doc for incentive review
SauravBizbRolly Feb 19, 2026
aa46e6b
implement check on pending doc for incentive review
SauravBizbRolly Feb 20, 2026
655f6a3
implement check on pending doc for incentive review
SauravBizbRolly Feb 20, 2026
2ad53c1
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
3da48c3
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
79b564e
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
95c5137
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
3a226a8
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
10ab15f
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
c1ec40d
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
7fd1644
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
e4da85a
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
3ca3727
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
56d7e9c
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
e324e00
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
d61625e
optmiz code of get all Beneficiary
SauravBizbRolly Feb 23, 2026
ed03ce0
optmiz code of get all Beneficiary
SauravBizbRolly Feb 24, 2026
94e4aff
optmiz code of get all Beneficiary
SauravBizbRolly Feb 24, 2026
d8f3a0d
fix DeliveryOutcome data issue
SauravBizbRolly Feb 24, 2026
aa41248
fix DeliveryOutcome data issue
SauravBizbRolly Feb 24, 2026
9518f5e
fix DeliveryOutcome data issue
SauravBizbRolly Feb 24, 2026
af33afe
fix DeliveryOutcome data issue
SauravBizbRolly Feb 24, 2026
a7831ef
fix DeliveryOutcome data issue
SauravBizbRolly Feb 24, 2026
12837a8
fix DeliveryOutcome data issue
SauravBizbRolly Feb 25, 2026
a870b3c
optimize ben address query
SauravBizbRolly Feb 25, 2026
63a8d25
optimize ben address query
SauravBizbRolly Feb 25, 2026
564b1dc
optimize ben address query
SauravBizbRolly Feb 25, 2026
00aa3e7
optimize ben address query
SauravBizbRolly Feb 25, 2026
de32d2b
optimize ben address query
SauravBizbRolly Feb 25, 2026
f410000
optimize ben address query
SauravBizbRolly Feb 25, 2026
b0f74e9
optimize ben address query
SauravBizbRolly Feb 25, 2026
cd59518
optimize ben address query
SauravBizbRolly Feb 25, 2026
fa11710
optimize ben address query
SauravBizbRolly Feb 25, 2026
896dae7
optimize ben address query
SauravBizbRolly Feb 25, 2026
4437488
optimize ben address query
SauravBizbRolly Feb 25, 2026
df1182b
optimize ben address query
SauravBizbRolly Feb 25, 2026
167004f
optimize ben address query
SauravBizbRolly Feb 25, 2026
3e4f8c7
optimize ben address query
SauravBizbRolly Feb 26, 2026
3920c9e
fix logic of upload file for death reporting
SauravBizbRolly Feb 26, 2026
9d2163d
fix logic of upload file for death reporting
SauravBizbRolly Feb 26, 2026
03b610b
update version in pom.xml
SauravBizbRolly Feb 27, 2026
b144c90
fix incentive logic in childcare
SauravBizbRolly Mar 2, 2026
b85482a
fix: handle flexible date formats for Timestamp deserialization
SauravBizbRolly Mar 2, 2026
1eece8a
fix
SauravBizbRolly Mar 2, 2026
8996d30
fix
SauravBizbRolly Mar 2, 2026
7e1b55c
fix
SauravBizbRolly Mar 2, 2026
4e40952
fix column issue
SauravBizbRolly Mar 6, 2026
5b8ef8e
fix bug for ANC incentive
SauravBizbRolly Mar 10, 2026
288f8e0
Merge pull request #211 from PSMRI/bug/fix_anc_incentive
SauravBizbRolly Mar 10, 2026
8cde06d
fix bug for ANC incentive
SauravBizbRolly Mar 10, 2026
301ed0f
Merge branch 'incentive_changes_3.8.0' into bug/fix_sync_and_incentiv…
SauravBizbRolly Mar 10, 2026
1186a8d
Merge pull request #213 from PSMRI/bug/fix_sync_and_incentive_issues
SauravBizbRolly Mar 12, 2026
ae6f3bf
add jwt token in irs round
SauravBizbRolly Mar 12, 2026
2ed23ff
Merge remote-tracking branch 'upstream/release-3.8.0' into incentive_…
SauravBizbRolly Mar 12, 2026
9a7b6b8
fix incentive issue for tb and camping
SauravBizbRolly Mar 12, 2026
7497393
Merge pull request #217 from PSMRI/fix/incentive_tb_and_campaign
SauravBizbRolly Mar 12, 2026
db13e3a
fixed pnc incentive
SauravBizbRolly Mar 13, 2026
456ff60
Merge pull request #218 from PSMRI/fix/pnc_incentive_for_both
SauravBizbRolly Mar 13, 2026
0f328c9
change status code
SauravBizbRolly Mar 13, 2026
9d7ec41
change status code
SauravBizbRolly Mar 13, 2026
1c5fde7
fix baby weight issue
SauravBizbRolly Mar 13, 2026
5e65970
optimize incentive api
SauravBizbRolly Mar 13, 2026
016b6ac
optimize incentive api
SauravBizbRolly Mar 13, 2026
814d083
optimize incentive api
SauravBizbRolly Mar 13, 2026
7a1ec01
optimize incentive api
SauravBizbRolly Mar 13, 2026
5f0f01c
optimize incentive api
SauravBizbRolly Mar 13, 2026
007b654
optimize incentive api
SauravBizbRolly Mar 13, 2026
0d27fa6
Merge pull request #219 from PSMRI/fix/incentive_api_optmization
SauravBizbRolly Mar 13, 2026
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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.iemr.common.flw</groupId>
<artifactId>flw-api</artifactId>
<version>3.7.0</version>
<version>3.8.0</version>
<packaging>war</packaging>

<name>FLW-API</name>
Expand Down
14 changes: 0 additions & 14 deletions src/main/java/com/iemr/flw/controller/AshaProfileController.java
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
package com.iemr.flw.controller;

import com.iemr.flw.domain.iemr.AshaWorker;
import com.iemr.flw.domain.iemr.M_User;
import com.iemr.flw.dto.iemr.UserServiceRoleDTO;
import com.iemr.flw.repo.iemr.UserServiceRoleRepo;
import com.iemr.flw.service.AshaProfileService;
import com.iemr.flw.service.EmployeeMasterInter;
import com.iemr.flw.service.UserService;
import io.lettuce.core.dynamic.annotation.Param;
import com.iemr.flw.utils.JwtUtil;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;

import com.iemr.flw.utils.JwtAuthenticationUtil;
import com.iemr.flw.utils.JwtUtil;
import com.iemr.flw.utils.exception.IEMRException;
import io.jsonwebtoken.Claims;
import io.swagger.v3.oas.annotations.Operation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

@RestController
@RequestMapping(value = "/asha", produces = "application/json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public String getCdrRecords(@RequestBody GetBenRequestHandler requestDTO,
logger.info("fetching All CDR Details for user: " + requestDTO.getAshaId());
if (requestDTO != null) {
List<CdrDTO> result = deathReportsService.getCdrRecords(requestDTO);
Gson gson = new GsonBuilder()
.setDateFormat("MMM dd, yyyy h:mm:ss a") // Set the desired date format
Gson gson = new GsonBuilder()// Set the desired date format
.setDateFormat("MMM dd, yyyy h:mm:ss a")
.create();
String s = gson.toJson(result);
if (s != null)
Expand All @@ -111,8 +111,8 @@ public String getMdsrRecords(@RequestBody GetBenRequestHandler requestDTO,
logger.info("fetching All MDSR Details for user: " + requestDTO.getAshaId());
if (requestDTO != null) {
List<MdsrDTO> result = deathReportsService.getMdsrRecords(requestDTO);
Gson gson = new GsonBuilder()
.setDateFormat("MMM dd, yyyy h:mm:ss a") // Set the desired date format
Gson gson = new GsonBuilder()// Set the desired date format
.setDateFormat("MMM dd, yyyy h:mm:ss a")
.create();
String s = gson.toJson(result);
if (s != null)
Expand Down
38 changes: 19 additions & 19 deletions src/main/java/com/iemr/flw/controller/DiseaseControlController.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ public ResponseEntity<Map<String, Object>> saveMalaria(@RequestBody MalariaDTO m
response.put("data", diseaseControlService.saveMalaria(malariaDTO));
}else {
response.put("message", "Invalid request");
response.put("statusCode", 400);
response.put("statusCode", 5000);
}

} catch (Exception e) {
response.put("status", "Error" + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response);

Expand All @@ -86,12 +86,12 @@ public ResponseEntity<Map<String, Object>> saveKalaAzar(@RequestBody KalaAzarDTO
response.put("data", diseaseControlService.saveKalaAzar(kalaAzarDTO));
}else {
response.put("message", "Invalid request");
response.put("statusCode", 400);
response.put("statusCode", 5000);
}

} catch (Exception e) {
response.put("status", "Error" + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response);

Expand All @@ -108,12 +108,12 @@ public ResponseEntity<Map<String, Object>> saveAESJE(@RequestBody AesJeDTO aesJe
response.put("data", diseaseControlService.saveAES(aesJeDTO));
}else {
response.put("message", "Invalid request");
response.put("statusCode", 400);
response.put("statusCode", 5000);
}

} catch (Exception e) {
response.put("status", "Error" + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response);

Expand All @@ -130,12 +130,12 @@ public ResponseEntity<Map<String, Object>> saveFilaria(@RequestBody FilariaDTO f
response.put("data", diseaseControlService.saveFilaria(filariaDTO));
}else {
response.put("message", "Invalid request");
response.put("statusCode", 400);
response.put("statusCode", 5000);
}

} catch (Exception e) {
response.put("status", "Error" + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response);

Expand All @@ -151,12 +151,12 @@ public ResponseEntity<Map<String, Object>> saveLeprosy(@RequestBody LeprosyDTO l
response.put("data", diseaseControlService.saveLeprosy(leprosyDTO));
}else {
response.put("message", "Invalid request");
response.put("statusCode", 400);
response.put("statusCode", 5000);
}

} catch (Exception e) {
response.put("status", "Error" + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response);

Expand All @@ -175,11 +175,11 @@ public ResponseEntity<Map<String, Object>> saveLeprosyFollowUP(@RequestBody List
response.put("message", "All follow-ups saved successfully");
} else {
response.put("message", "Invalid request - no follow-up data");
response.put("statusCode", 400);
response.put("statusCode", 5000);
}
} catch (Exception e) {
response.put("status", "Error: " + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response);

Expand All @@ -203,15 +203,15 @@ public ResponseEntity<Map<String, Object>> getAllLeprosy(
response.put("data", result); // ← Put list directly, no gson.toJson()
} else {
response.put("message", "No record found");
response.put("statusCode", 404);
response.put("statusCode", 5000);
}
} else {
response.put("message", "Invalid request - userName required");
response.put("statusCode", 400);
response.put("statusCode", 5000);
}
} catch (Exception e) {
response.put("status", "Error: " + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response); // ← Spring serializes the whole map
}
Expand All @@ -233,15 +233,15 @@ public ResponseEntity<Map<String, Object>> getAllLeprosyFollowUp(
response.put("data", result); // ← Put list directly, no gson.toJson()
} else {
response.put("message", "No record found");
response.put("statusCode", 404);
response.put("statusCode", 5000);
}
} else {
response.put("message", "Invalid request - userName required");
response.put("statusCode", 400);
response.put("statusCode", 5000);
}
} catch (Exception e) {
response.put("status", "Error: " + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response); // ← Spring serializes the whole map
}
Expand All @@ -257,7 +257,7 @@ public ResponseEntity<Map<String, Object>> getAllData(

} catch (Exception e) {
response.put("status", "Error" + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public ResponseEntity<Map<String, Object>> getBeneficiaryDataByAsha(@RequestBody

} catch (Exception e) {
logger.error("Error in get data : " + e);
response.put("status", 500);
response.put("statusCode", 5000);
response.put("message", "Error in get data : " + e);
}
return ResponseEntity.ok(response);
Expand Down
12 changes: 10 additions & 2 deletions src/main/java/com/iemr/flw/controller/IRSRoundController.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.iemr.flw.dto.iemr.IRSRoundDTO;
import com.iemr.flw.dto.iemr.IRSRoundListDTO;
import com.iemr.flw.service.IRSRoundService;
import com.iemr.flw.utils.JwtUtil;
import com.iemr.flw.utils.response.OutputResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
Expand All @@ -24,12 +25,19 @@ public class IRSRoundController {
@Autowired
private IRSRoundService irsRoundService;

@Autowired
private JwtUtil jwtUtil;

@PostMapping(value = "/add")
public ResponseEntity<Map<String, Object>> addRound(@RequestBody IRSRoundListDTO dto) {
public ResponseEntity<Map<String, Object>> addRound(@RequestBody IRSRoundListDTO dto,@RequestHeader("jwtToken") String token) {
Map<String, Object> response = new LinkedHashMap<>();
try {
if (dto.getRounds().size() != 0) {
List<IRSRound> s = irsRoundService.addRounds(dto.getRounds());
if(token==null){
response.put("statusCode", 401);
return ResponseEntity.status(HttpStatus.UNAUTHORIZED).body(response) ;
}
List<IRSRound> s = irsRoundService.addRounds(dto.getRounds(),jwtUtil.extractUserId(token),jwtUtil.extractUsername(token));
if (s.size() != 0) {
Map<String, Object> data = new HashMap<>();
data.put("entries", s);
Expand Down
21 changes: 15 additions & 6 deletions src/main/java/com/iemr/flw/controller/IncentiveController.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class IncentiveController {
@Autowired
IncentiveService incentiveService;

@Autowired
private JwtUtil jwtUtil;

@Operation(summary = "save incentive master")
@RequestMapping(value = {"/masterData/saveAll"}, method = {RequestMethod.POST})
public String saveIncentiveMasterData(@RequestBody List<IncentiveActivityDTO> activityDTOS, @RequestHeader(value = "Authorization") String authorization, HttpServletRequest request) {
Expand Down Expand Up @@ -81,11 +84,17 @@ public String saveIncentiveMasterData(@RequestBody IncentiveRequestDTO incentive
@Operation(summary = "get high risk assessment data of all beneficiaries registered with given user id")
@RequestMapping(value = {"/fetchUserData"}, method = {RequestMethod.POST})
public String getAllIncentivesByUserId(@RequestBody GetBenRequestHandler requestDTO,
@RequestHeader(value = "Authorization") String Authorization) {
@RequestHeader(value = "jwtToken") String token) {
OutputResponse response = new OutputResponse();
try {

if (requestDTO != null) {

if(token!=null){
requestDTO.setUserId(jwtUtil.extractUserId(token));
requestDTO.setAshaId(jwtUtil.extractUserId(token));
requestDTO.setUserName(jwtUtil.extractUsername(token));
}
logger.info("request object with timestamp : " + new Timestamp(System.currentTimeMillis()) + " "
+ requestDTO);
String s = incentiveService.getAllIncentivesByUserId(requestDTO);
Expand All @@ -103,8 +112,8 @@ public String getAllIncentivesByUserId(@RequestBody GetBenRequestHandler request
return response.toString();
}

@RequestMapping(value = {"/update"}, method = RequestMethod.POST)
public String updateIncentive(@RequestBody PendingActivityDTO requestDTO) {
@RequestMapping(value = {"/update"}, method = RequestMethod.POST, consumes = {"multipart/form-data"})
public String updateIncentive(@ModelAttribute PendingActivityDTO requestDTO) {
OutputResponse response = new OutputResponse();
try {

Expand All @@ -116,12 +125,12 @@ public String updateIncentive(@RequestBody PendingActivityDTO requestDTO) {
if (s != null)
response.setResponse(s);
else
response.setError(5000, "No record found");
response.setError(500, "No record found");
} else
response.setError(5000, "Invalid/NULL request obj");
response.setError(500, "Invalid/NULL request obj");
} catch (Exception e) {
logger.error("Error in high risk assessment data : " + e);
response.setError(5000, "Error in high risk assessment data : " + e);
response.setError(500, "Error in high risk assessment data : " + e);
}
return response.toString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public ResponseEntity<Map<String, Object>> getFollowUpsByUserId(@RequestBody Get
}
} catch (Exception e) {
response.put("status", "Error: " + e.getMessage());
response.put("statusCode", 500);
response.put("statusCode", 5000);
}
return ResponseEntity.ok(response);

Expand Down
23 changes: 13 additions & 10 deletions src/main/java/com/iemr/flw/controller/MaternalHealthController.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.List;

@RestController
@RequestMapping(value = "/maternalCare", headers = "Authorization", consumes = "application/json", produces = "application/json")
@RequestMapping(value = "/maternalCare", consumes = "application/json", produces = "application/json")
public class MaternalHealthController {

private final Logger logger = LoggerFactory.getLogger(CoupleController.class);
Expand Down Expand Up @@ -98,16 +98,19 @@ public String getPregnantWomanList(@RequestBody GetBenRequestHandler requestDTO,
@Operation(summary = "save anc visit details")
@RequestMapping(value = { "/ancVisit/saveAll" }, method = { RequestMethod.POST })
public String saveANCVisit(@RequestBody List<ANCVisitDTO> ancVisitDTOs,
@RequestHeader(value = "Authorization") String Authorization) {
@RequestHeader(value = "jwtToken") String token) {
OutputResponse response = new OutputResponse();
try {
if (ancVisitDTOs.size() != 0) {
logger.info("Saving ANC visits with timestamp : " + new Timestamp(System.currentTimeMillis()));
String s = maternalHealthService.saveANCVisit(ancVisitDTOs);
if (s != null)
response.setResponse(s);
else
response.setError(5000, "Saving anc data to db failed");
if(token!=null){
String s = maternalHealthService.saveANCVisit(ancVisitDTOs,jwtUtil.extractUserId(token));
if (s != null)
response.setResponse(s);
else
response.setError(5000, "Saving anc data to db failed");
}

} else
response.setError(5000, "Invalid/NULL request obj");
} catch (Exception e) {
Expand Down Expand Up @@ -241,9 +244,9 @@ public String getDeliveryOutcome(@RequestBody GetBenRequestHandler requestDTO,
List<DeliveryOutcomeDTO> result = deliveryOutcomeService.getDeliveryOutcome(requestDTO);
Gson gson = new GsonBuilder().setDateFormat("MMM dd, yyyy h:mm:ss a").create();
String s = gson.toJson(result);
if (s != null)
response.setResponse(s);
else
if (result != null && !result.isEmpty()) {
response.setResponse(gson.toJson(result));
}else
response.setError(5000, "No record found");
} else
response.setError(5000, "Invalid/NULL request obj");
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/iemr/flw/domain/iemr/DeliveryOutcome.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class DeliveryOutcome {
@Column(name = "ben_id")
private Long benId;

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MMM dd, yyyy, h:mm:ss a")
@Column(name = "delivery_date")
private Timestamp dateOfDelivery;

Expand Down Expand Up @@ -54,7 +53,6 @@ public class DeliveryOutcome {
@Column(name = "still_birth")
private Integer stillBirth;

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MMM dd, yyyy, h:mm:ss a")
@Column(name = "discharge_date")
private Timestamp dateOfDischarge;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/iemr/flw/domain/iemr/HbycChildVisit.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class HbycChildVisit {
private String other_place_of_death;

@Column(name = "baby_weight")
private BigDecimal baby_weight; // 0.5 - 7.0
private Integer baby_weight; // 0.5 - 7.0

@Column(name = "is_child_sick")
private Boolean is_child_sick;
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/iemr/flw/domain/iemr/IRSRound.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ public class IRSRound {
@Column(name = "householdId")
private Long householdId;

@Column(name = "created_by")
private String createdBy;

@Column(name = "user_id")
private Integer userId;

}
Loading