Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
a46784f
tb screen api changes
SauravBizbRolly Sep 28, 2026
59adb7d
tb screen api changes
SauravBizbRolly Sep 28, 2026
5272ef7
tb screen api changes
SauravBizbRolly Sep 28, 2026
a96c988
tb screen api changes
SauravBizbRolly Sep 28, 2026
6220f27
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
cd1af6b
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
4963ba8
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
5db0853
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
14a7cf7
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
5be34a8
add sync date and sync by column in every table
SauravBizbRolly Sep 29, 2026
1fc4688
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
01d5c3f
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
4c26b1f
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
1fd54ab
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
7c7d2ea
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
537520b
new feature for tb tpt follow up
SauravBizbRolly Oct 1, 2026
d0f7bc4
fix jsy incentive issue
SauravBizbRolly Oct 1, 2026
4f43175
fix jsy incentive issue
SauravBizbRolly Oct 1, 2026
6047f6a
Merge pull request #363 from PSMRI/sm/tb_api_changes
SauravBizbRolly Oct 1, 2026
b5794a7
fix jsy incentive issue
SauravBizbRolly Oct 1, 2026
52c6c4e
fix vhnc incentive issue
SauravBizbRolly Oct 1, 2026
f588eee
fix dto issue
SauravBizbRolly Oct 5, 2026
08677fe
fix dto issue
SauravBizbRolly Oct 5, 2026
fded8f3
tpt incentive logic
SauravBizbRolly Oct 5, 2026
b525a5f
tpt incentive logic
SauravBizbRolly Oct 5, 2026
9e3dd3b
tpt incentive logic
SauravBizbRolly Oct 5, 2026
4dc2459
tpt incentive logic
SauravBizbRolly Oct 6, 2026
8350ac1
tpt incentive logic
SauravBizbRolly Oct 6, 2026
6f364d2
tpt incentive logic
SauravBizbRolly Oct 6, 2026
85176ee
tpt incentive logic
SauravBizbRolly Oct 6, 2026
22ea14d
tpt incentive logic
SauravBizbRolly Oct 6, 2026
9a381e7
fix approval staus issue
SauravBizbRolly Oct 6, 2026
ad11dd7
fix approval staus issue
SauravBizbRolly Oct 6, 2026
3b4cc2b
fix approval staus issue
SauravBizbRolly Oct 6, 2026
77fd3bb
fix approval staus issue
SauravBizbRolly Oct 6, 2026
29e8a91
fix approval staus issue
SauravBizbRolly Oct 6, 2026
ebea387
fix approval staus issue
SauravBizbRolly Oct 6, 2026
4cf8205
fix approval staus issue
SauravBizbRolly Oct 6, 2026
86fdd55
fix approval staus issue
SauravBizbRolly Oct 6, 2026
d8edd9a
fix approval staus issue
SauravBizbRolly Oct 6, 2026
bc779a0
fix approval staus issue
SauravBizbRolly Oct 6, 2026
6e41771
fix approval staus issue
SauravBizbRolly Oct 7, 2026
6b317c8
fix approval staus issue
SauravBizbRolly Oct 7, 2026
d4ec10d
fix incentive activity code maping
SauravBizbRolly Oct 7, 2026
0d85ac3
fix mappping of asha with anm
SauravBizbRolly Oct 7, 2026
72d6015
fix child vaccination get all data issue
SauravBizbRolly Oct 9, 2026
7b1e855
fix child vaccination get all data issue
SauravBizbRolly Oct 9, 2026
34221fb
Merge pull request #368 from PSMRI/sm/testing_issue_fixes
SauravBizbRolly Oct 9, 2026
43c1b50
fix sam visit sync issue
SauravBizbRolly Oct 11, 2026
158e6ea
fix ors distrubution backdate issue
SauravBizbRolly Oct 12, 2026
092e824
Merge pull request #374 from PSMRI/fix/samvisit_sync_issue_3.11.0
SauravBizbRolly Oct 12, 2026
d432b1c
ben id incentive fix issue
SauravBizbRolly Oct 13, 2026
51f30f5
ben id incentive fix issue
SauravBizbRolly Oct 13, 2026
0d7c1e2
ben id incentive fix issue
SauravBizbRolly Oct 13, 2026
ce2e9e8
Merge pull request #376 from PSMRI/fix/ben_id_issue_incentive
SauravBizbRolly Oct 13, 2026
42e88b8
drop column
SauravBizbRolly Oct 14, 2026
eed530f
drop column
SauravBizbRolly Oct 14, 2026
aeda3f5
Merge pull request #377 from PSMRI/fix/drop_column
vishwab1 Oct 14, 2026
ca58b5b
drop column
SauravBizbRolly Oct 14, 2026
b57fe04
drop column
SauravBizbRolly Oct 14, 2026
b43996d
Merge branch 'release-3.11.0' into fix/drop_column_gps_latitude
SauravBizbRolly Oct 14, 2026
a405caa
drop column
SauravBizbRolly Oct 14, 2026
70c9143
Merge remote-tracking branch 'upstream/fix/drop_column_gps_latitude' …
SauravBizbRolly Oct 14, 2026
0d8f317
drop column
SauravBizbRolly Oct 14, 2026
aba34f9
Merge pull request #378 from PSMRI/fix/drop_column_gps_latitude
vishwab1 Oct 14, 2026
f36e2d8
fix mda incentive logic
SauravBizbRolly Oct 14, 2026
058ecaf
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 15, 2026
1f59766
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 15, 2026
71dd249
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 15, 2026
89e8092
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 15, 2026
dee7015
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 16, 2026
9639032
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 16, 2026
cf8e3aa
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 16, 2026
8180cc8
pnc mother incentive
SauravBizbRolly Oct 16, 2026
f04cdb5
pnc mother incentive
SauravBizbRolly Oct 16, 2026
3542d0e
pnc mother incentive
SauravBizbRolly Oct 16, 2026
bef7098
Merge pull request #379 from PSMRI/fix/mp_mda_incentive_logic
SauravBizbRolly Oct 19, 2026
68b637f
add DIAGNOSTIC_DOCUMENTS_STORAGE_ROOT in ci (#385)
SauravBizbRolly Oct 22, 2026
ab9e6a4
update ci proprties (#386)
SauravBizbRolly Oct 22, 2026
e0c21c3
update ci proprties (#387)
SauravBizbRolly Oct 22, 2026
06ef2ec
fix pre prod issue in release 3.11.0
SauravBizbRolly Oct 23, 2026
35a3d7f
fix pre prod issue in release 3.11.0
SauravBizbRolly Oct 23, 2026
38c3f29
Merge pull request #388 from PSMRI/sm/pre_prod_issue_3.11.0
vishwab1 Oct 23, 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
10 changes: 10 additions & 0 deletions src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,14 @@ diagnostic.emrlite.truenat.password=@env.DIAGNOSTIC_EMRLITE_TRUENAT_PASSWORD@

diagnostic.emrlite.token-ttl-seconds=@env.DIAGNOSTIC_EMRLITE_TOKEN_TTL_SECONDS@
diagnostic.emrlite.refresh-ttl-seconds=@env.DIAGNOSTIC_EMRLITE_REFRESH_TTL_SECONDS@
diagnostic.documents.storage-root=@env.DIAGNOSTIC_DOCUMENTS_STORAGE_ROOT@
diagnostic.poll.xray.tick-ms=@env.DIAGNOSTIC_POLL_XRAY_TICK_MS@
diagnostic.poll.truenat.tick-ms=@env.DIAGNOSTIC_POLL_TRUENAT_TICK_MS@
# Daily cutoff (cron expression) after which all outstanding PENDING/IN_PROGRESS orders are marked EXPIRED
diagnostic.poll.expiry-cron=@env.DIAGNOSTIC_POLL_EXPIRY_CRON@

stoptb.enforce.vanid=@env.STOPTB_ENFORCE_VANID@
# Stop TB: this deployment's van/camp ID, replacing the old Redis camp:vanID lookup
stoptb.van.id=@env.STOPTB_VAN_ID@


10 changes: 8 additions & 2 deletions src/main/java/com/iemr/flw/controller/IncentiveController.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.iemr.flw.controller;

import com.google.gson.Gson;
import com.iemr.flw.dto.identity.GetBenRequestHandler;
import com.iemr.flw.dto.iemr.*;
import com.iemr.flw.service.IncentiveService;
Expand Down Expand Up @@ -31,6 +32,9 @@ public class IncentiveController {
@Autowired
IncentiveService incentiveService;

private static final Gson gson = new Gson();


@Autowired
private JwtUtil jwtUtil;

Expand Down Expand Up @@ -91,8 +95,10 @@ public String getAllIncentivesByUserId(@RequestBody GetBenRequestHandler request
try {

if (requestDTO != null) {
logger.info("request object with timestamp : " + new Timestamp(System.currentTimeMillis()) + " "
+ requestDTO);

logger.info("Request object with timestamp: {} | Request JSON: {}",
new Timestamp(System.currentTimeMillis()),
gson.toJson(requestDTO));
String s = incentiveService.getAllIncentivesByUserId(requestDTO);
//logger.info("User Incentive:" + s);
if (s != null)
Expand Down
138 changes: 135 additions & 3 deletions src/main/java/com/iemr/flw/controller/TBController.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import com.iemr.flw.domain.iemr.TBConfirmedCaseDTO;
import com.iemr.flw.dto.identity.GetBenRequestHandler;
import com.iemr.flw.dto.iemr.TBConfirmedRequestDTO;
import com.iemr.flw.dto.iemr.TBScreeningRequestDTO;
import com.iemr.flw.dto.iemr.TBSuspectedRequestDTO;
import com.iemr.flw.dto.iemr.*;
import com.iemr.flw.service.TBConfirmedCaseService;
import com.iemr.flw.service.TBScreeningService;
import com.iemr.flw.service.TBSuspectedService;
Expand Down Expand Up @@ -192,6 +190,140 @@ public String getConfirmedByBenId(
return response.toString();
}

@Operation(summary = "save tb referral follow up")
@RequestMapping(value = { "/referralFollowUp/save" }, method = { RequestMethod.POST })
public String saveReferralFollowUp(
@RequestBody TbReferralFollowUpDTO requestDTO,
@RequestHeader(value = "jwtToken") String token) {

OutputResponse response = new OutputResponse();

try {
if (requestDTO != null) {

logger.info("request object with timestamp : "
+ new Timestamp(System.currentTimeMillis()) + " "
+ requestDTO);

String result = tbConfirmedCaseService.saveReferralFollowUp(requestDTO, token);

if (result != null)
response.setResponse(result);
else
response.setError(500, "No record saved");

} else {
response.setError(500, "Invalid/NULL request obj");
}
} catch (Exception e) {
logger.error("Error in save tb referral follow up details : ", e);
response.setError(500, "Error in save referral follow up details : " + e.getMessage());
}

return response.toString();
}


@Operation(summary = "save tb referral follow up")
@RequestMapping(value = { "/referralFollowUp/getAll" }, method = { RequestMethod.POST })
public String getReferralFollowUp(
@RequestHeader(value = "jwtToken") String token) {

OutputResponse response = new OutputResponse();

try {
if (token != null) {

logger.info("request object with timestamp : "
+ new Timestamp(System.currentTimeMillis()) + " "
+ token);

String result = tbConfirmedCaseService.getReferralFollowUp(token);

if (result != null)
response.setResponse(result);
else
response.setError(500, "No record saved");

} else {
response.setError(500, "Invalid/NULL request obj");
}
} catch (Exception e) {
logger.error("Error in save tb referral follow up details : ", e);
response.setError(500, "Error in save referral follow up details : " + e.getMessage());
}

return response.toString();
}



@Operation(summary = "save tb tpt follow up")
@RequestMapping(value = { "/tptFollowUp/save" }, method = { RequestMethod.POST })
public String savTptFollowUp(
@RequestBody TbTptFollowUpDTO requestDTO,
@RequestHeader(value = "jwtToken") String token) {

OutputResponse response = new OutputResponse();

try {
if (requestDTO != null) {

logger.info("request object with timestamp : "
+ new Timestamp(System.currentTimeMillis()) + " "
+ requestDTO);

String result = tbConfirmedCaseService.saveTptFollowUp(requestDTO, token);

if (result != null)
response.setResponse(result);
else
response.setError(500, "No record saved");

} else {
response.setError(500, "Invalid/NULL request obj");
}
} catch (Exception e) {
logger.error("Error in save tb tpt follow up details : ", e);
response.setError(500, "Error in save tpt follow up details : " + e.getMessage());
}

return response.toString();
}


@Operation(summary = "save tb tpt follow up")
@RequestMapping(value = { "/tptFollowUp/getAll" }, method = { RequestMethod.POST })
public String getTptFollowUp(
@RequestHeader(value = "jwtToken") String token) {

OutputResponse response = new OutputResponse();

try {
if (token != null) {

logger.info("request object with timestamp : "
+ new Timestamp(System.currentTimeMillis()) + " "
+ token);

String result = tbConfirmedCaseService.getTptFollowUp(token);

if (result != null)
response.setResponse(result);
else
response.setError(500, "No record saved");

} else {
response.setError(500, "Invalid/NULL request obj");
}
} catch (Exception e) {
logger.error("Error in save tb tpt follow up details : ", e);
response.setError(500, "Error in save tpt follow up details : " + e.getMessage());
}

return response.toString();
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,11 @@ public class RMNCHBeneficiaryDetailsRmnch {
@Column(name = "longitude")
private BigDecimal longitude;

@Column(name = "gpsLatitude")
private Double gpsLatitude;

@Column(name = "gpsLongitude")
private Double gpsLongitude;

@Expose
@Column(name = "digipin")
private String digipin;

@Expose
@Column(name = "gpsTimestamp")
private Timestamp gpsTimestamp;

@Expose
@Column(name = "isGpsUnavailable", nullable = false, columnDefinition = "TINYINT(1) DEFAULT 0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,6 @@ public class RMNCHHouseHoldDetails {
@Column(name = "isDeactivate")
private Boolean isDeactivate;

@Expose
@Column(name = "gpsLatitude")
private Double gpsLatitude;

@Expose
@Column(name = "gpsLongitude")
private Double gpsLongitude;

@Expose
@Column(name = "address")
Expand All @@ -353,4 +346,12 @@ public class RMNCHHouseHoldDetails {
@Column(name = "registeredAtCampSiteId")
private Integer registeredAtCampSiteId;

@Expose
@Column(name = "placeOfCurrentLiving")
private String placeOfCurrentLiving;

@Expose
@Column(name = "nameOfInstitution")
private String nameOfInstitution;

}
7 changes: 7 additions & 0 deletions src/main/java/com/iemr/flw/domain/iemr/AHDForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ public class AHDForm {

@Column(name = "form_type")
private String formType;

@Column(name = "synced_by")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "synced_date")
private Timestamp syncedDate;
}
5 changes: 5 additions & 0 deletions src/main/java/com/iemr/flw/domain/iemr/ANCVisit.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ public class ANCVisit {
@Column(name = "place_of_ancId")
private Integer placeOfAncId;

@Column(name = "synced_by")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "synced_date")
private Timestamp syncedDate;



Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/iemr/flw/domain/iemr/AdolescentHealth.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,12 @@ public class AdolescentHealth {
@Column(name = "created_by")
private String createdBy;

@Column(name = "synced_by")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "synced_date")
private Timestamp syncedDate;


}
4 changes: 4 additions & 0 deletions src/main/java/com/iemr/flw/domain/iemr/AncCare.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package com.iemr.flw.domain.iemr;

import jakarta.persistence.*;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Data
@Table(name = "t_anccare", schema = "db_iemr")
public class AncCare {
private long id;
Expand Down Expand Up @@ -41,6 +44,7 @@ public class AncCare {
private Timestamp syncedDate;
private String reservedForChange;


@Id
@Column(name = "ID")
public long getId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import jakarta.persistence.*;
import lombok.Data;

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

Expand Down Expand Up @@ -112,6 +113,13 @@ public class AncCounsellingCare {
@Column(name = "malpresentation")
private Boolean malpresentation = false;

@Column(name = "synced_by")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "synced_date")
private Timestamp syncedDate;

/* ---------- Lifecycle Hooks ---------- */

@PrePersist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Entity
@Table(name = "asha_supervisor_mapping")
@Data
Expand All @@ -31,4 +33,11 @@ public class AshaSupervisorMapping {

@Column(name = "deleted", insertable = false, updatable = true)
private Boolean deleted;

@Column(name = "synced_by")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "synced_date")
private Timestamp syncedDate;
}
8 changes: 8 additions & 0 deletions src/main/java/com/iemr/flw/domain/iemr/AshaWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import jakarta.validation.constraints.*;
import lombok.*;

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


Expand Down Expand Up @@ -109,4 +110,11 @@ public class AshaWorker {
@Column(name = "supervisorMobile")
private String supervisorMobile;

@Column(name = "synced_by")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "synced_date")
private Timestamp syncedDate;

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public class BenAnthropometryDetail {
@Column(name = "SyncedBy")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "SyncedDate")
private Timestamp syncedDate;

}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public class BenChiefComplaint {
@Column(name = "SyncedBy")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "SyncedDate")
private Timestamp syncedDate;
}
7 changes: 7 additions & 0 deletions src/main/java/com/iemr/flw/domain/iemr/BenFlowStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,11 @@ public class BenFlowStatus {

@Column(name = "deleted", insertable = false)
private Boolean deleted;

@Column(name = "synced_by")
private String syncedBy;

@org.hibernate.annotations.CreationTimestamp
@Column(name = "synced_date")
private Timestamp syncedDate;
}
Loading
Loading