Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 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
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
10 changes: 5 additions & 5 deletions src/main/java/com/iemr/flw/controller/IncentiveController.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,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 +116,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 @@ -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 @@ -241,9 +241,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
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public class IncentivePendingActivity {

@Column(name = "record_id", nullable = false)
private Long recordId;
@Column(name = "module_name", nullable = false, length = 100)
private String moduleName;

@Column(name = "m_incentive_id")
private Long mincentiveId;

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

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/iemr/flw/domain/iemr/ScreeningKalaAzar.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class ScreeningKalaAzar {
@Column(name = "house_hold_details_Id",nullable = false)
private Long houseHoldDetailsId;

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

@Temporal(TemporalType.DATE)
Expand Down Expand Up @@ -97,7 +97,7 @@ public class ScreeningKalaAzar {
@Column(name = "created_by")
private String createdBy;

@Column(name = "diseaseTypeID")
@Column(name = "disease_type_id")
private Integer diseaseTypeId;

@Column(name = "refer_to_name")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.iemr.flw.domain.iemr;

import java.sql.Timestamp;
import java.time.LocalDate;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.Expose;
Expand All @@ -14,18 +13,10 @@
import jakarta.persistence.Table;
import lombok.Data;

import com.google.gson.annotations.Expose;
import jakarta.persistence.*;
import lombok.Data;
import java.sql.Date;
import java.sql.Timestamp;
import java.time.LocalDate;

@Entity
@Table(name = "m_User", schema = "db_iemr")
@Table(name = "m_user", schema = "db_iemr")
@Data
public class M_User {

public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Expose
Expand Down Expand Up @@ -144,11 +135,11 @@ public class M_User {
@Column(name = "failed_attempt", insertable = false)
private Integer failedAttempt;

public M_User() {
public User() {
// TODO Auto-generated constructor stub
}

public M_User(Integer userID, String userName) {
public User(Integer userID, String userName) {
// TODO Auto-generated constructor stub
this.userID = userID;
this.userName = userName;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/iemr/flw/dto/iemr/CdrDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class CdrDTO {
private String deathCertImage1;

private String deathCertImage2;
private String cdrImage;

private Timestamp updatedDate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class DeliveryOutcomeDTO {
private Long id;
private Long benId;

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
private Timestamp dateOfDelivery;
private String timeOfDelivery;
private String placeOfDelivery;
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/iemr/flw/dto/iemr/MdsrDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ public class MdsrDTO {
private Timestamp updatedDate;

private String updatedBy;

private String mdsr1File;

private String mdsr2File;

private String mdsrDeathCertFile;
}
3 changes: 2 additions & 1 deletion src/main/java/com/iemr/flw/dto/iemr/PendingActivityDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
public class PendingActivityDTO {
private Long id;
private Integer userId;
private List<MultipartFile> Images;
private List<MultipartFile> images;
private String moduleName;
private String activityName;
}
93 changes: 1 addition & 92 deletions src/main/java/com/iemr/flw/dto/iemr/TBScreeningDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,98 +37,7 @@ public class TBScreeningDTO {
private Boolean bmi;
private Boolean contactWithTBPatient;
private Boolean historyOfTBInLastFiveYrs;
private String sympotomatic;
private String sympotomatic;
private String asymptomatic;
private String recommandateTest;




public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public Long getBenId() {
return benId;
}

public void setBenId(Long benId) {
this.benId = benId;
}

public Timestamp getVisitDate() {
return visitDate;
}

public void setVisitDate(Timestamp visitDate) {
this.visitDate = visitDate;
}

public Boolean getCoughMoreThan2Weeks() {
return coughMoreThan2Weeks;
}

public void setCoughMoreThan2Weeks(Boolean coughMoreThan2Weeks) {
this.coughMoreThan2Weeks = coughMoreThan2Weeks;
}

public Boolean getBloodInSputum() {
return bloodInSputum;
}

public void setBloodInSputum(Boolean bloodInSputum) {
this.bloodInSputum = bloodInSputum;
}

public Boolean getFeverMoreThan2Weeks() {
return feverMoreThan2Weeks;
}

public void setFeverMoreThan2Weeks(Boolean feverMoreThan2Weeks) {
this.feverMoreThan2Weeks = feverMoreThan2Weeks;
}

public Boolean getLossOfWeight() {
return lossOfWeight;
}

public void setLossOfWeight(Boolean lossOfWeight) {
this.lossOfWeight = lossOfWeight;
}

public Boolean getNightSweats() {
return nightSweats;
}

public void setNightSweats(Boolean nightSweats) {
this.nightSweats = nightSweats;
}

public Boolean getHistoryOfTb() {
return historyOfTb;
}

public void setHistoryOfTb(Boolean historyOfTb) {
this.historyOfTb = historyOfTb;
}

public Boolean getTakingAntiTBDrugs() {
return takingAntiTBDrugs;
}

public void setTakingAntiTBDrugs(Boolean takingAntiTBDrugs) {
this.takingAntiTBDrugs = takingAntiTBDrugs;
}

public Boolean getFamilySufferingFromTB() {
return familySufferingFromTB;
}

public void setFamilySufferingFromTB(Boolean familySufferingFromTB) {
this.familySufferingFromTB = familySufferingFromTB;
}
}
3 changes: 3 additions & 0 deletions src/main/java/com/iemr/flw/masterEnum/GroupName.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ public String getDisplayName() {
}





Loading