Repository navigation
STOP-750: save tablet records as pending upload; bring release-3.12.0 into release-3.13.0 #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SauravBizbRolly
merged 15 commits into
release-3.13.0
from
vb/STOP-750-household-processed-3.13.0
Nov 24, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
fc931e8
fix: edit in ES (#185)
vanitha1822 cadf4d8
fix: benregid null issue in i_beneficiarydetails table (#188)
vanitha1822 a87adf0
fix: load beneficiary mapping associations lazily (#189)
vanitha1822 77b3849
Vb/release 3.9.0 merge (#190)
vishwab1 33abfc8
fix: edit in ES (#193)
vanitha1822 d4078d1
Vb/release 3.9.0 fix (#195)
vishwab1 acbd7a6
Fix edit fields for benficiary (#196)
vishwab1 367d924
fix: benregid null issue in i_beneficiarydetails table (#194)
vanitha1822 f17e952
feat: stop-542 write data anthropometry and vitals table (#201)
chetansaroya 5634e6d
Bugfix/stop 542 (#202)
chetansaroya 3f91c09
Removing gpsLatitude and gpsLongitude, and setting values into latituβ¦
sehjotsinghunthinkable 54a3c48
Merge pull request #203 from sehjotsinghunthinkable/feature/lat-long-β¦
SauravBizbRolly ad8e38d
fix(STOP-457): safe repeat import and correct free BenID count (#206)
vishwab1 1bf1def
fix(stoptb): save tablet records as pending upload, not with the tablβ¦
vishwab1 1efd3e6
Merge release-3.13.0 into STOP-750 branch, keeping release-3.12.0 conβ¦
vishwab1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
src/main/java/com/iemr/common/identity/data/rmnch/BenAnthropometryDetail.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| /* | ||
| * AMRIT β Accessible Medical Records via Integrated Technology | ||
| * Integrated EHR (Electronic Health Records) Solution | ||
| * | ||
| * Copyright (C) "Piramal Swasthya Management and Research Institute" | ||
| * | ||
| * This file is part of AMRIT. | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see https://www.gnu.org/licenses/. | ||
| */ | ||
| package com.iemr.common.identity.data.rmnch; | ||
|
|
||
| import java.sql.Timestamp; | ||
|
|
||
| import jakarta.persistence.Column; | ||
| import jakarta.persistence.Entity; | ||
| import jakarta.persistence.GeneratedValue; | ||
| import jakarta.persistence.GenerationType; | ||
| import jakarta.persistence.Id; | ||
| import jakarta.persistence.Table; | ||
|
|
||
| import lombok.Data; | ||
|
|
||
| /** | ||
| * Mirrors FLW-API's BenAnthropometryDetail (same db_iemr.t_phy_anthropometry table), so syncDataToAmrit can write | ||
| * registration-time values that FLW-API getBeneficiaryData reads back. | ||
| */ | ||
| @Entity | ||
| @Table(name = "t_phy_anthropometry", catalog = "db_iemr") | ||
| @Data | ||
| public class BenAnthropometryDetail { | ||
| @Id | ||
| @GeneratedValue(strategy = GenerationType.IDENTITY) | ||
| @Column(name = "ID") | ||
| private Long id; | ||
|
|
||
| @Column(name = "BeneficiaryRegID") | ||
| private Long beneficiaryRegID; | ||
|
|
||
| @Column(name = "BenVisitID") | ||
| private Long benVisitID; | ||
|
|
||
| @Column(name = "ProviderServiceMapID") | ||
| private Integer providerServiceMapID; | ||
|
|
||
| @Column(name = "VisitCode") | ||
| private Long visitCode; | ||
|
|
||
| @Column(name = "Weight_Kg") | ||
| private Double weightKg; | ||
|
|
||
| @Column(name = "Height_cm") | ||
| private Double heightCm; | ||
|
|
||
| @Column(name = "BMI") | ||
| private Double bmi; | ||
|
|
||
| @Column(name = "Deleted", insertable = false, updatable = true) | ||
| private Boolean deleted; | ||
|
|
||
| @Column(name = "Processed", insertable = false, updatable = true) | ||
| private String processed; | ||
|
|
||
| @Column(name = "CreatedBy") | ||
| private String createdBy; | ||
|
|
||
| @Column(name = "CreatedDate", insertable = false, updatable = false) | ||
| private Timestamp createdDate; | ||
|
|
||
| @Column(name = "ModifiedBy") | ||
| private String modifiedBy; | ||
|
|
||
| @Column(name = "LastModDate", insertable = false, updatable = false) | ||
| private Timestamp lastModDate; | ||
|
|
||
| @Column(name = "VanSerialNo") | ||
| private Long vanSerialNo; | ||
|
|
||
| @Column(name = "VanID") | ||
| private Integer vanID; | ||
|
|
||
| @Column(name = "ParkingPlaceID") | ||
| private Integer parkingPlaceID; | ||
|
|
||
| @Column(name = "SyncedBy") | ||
| private String syncedBy; | ||
|
|
||
| @Column(name = "SyncedDate") | ||
| private Timestamp syncedDate; | ||
| } |
107 changes: 107 additions & 0 deletions
107
src/main/java/com/iemr/common/identity/data/rmnch/BenPhysicalVitalDetail.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| /* | ||
| * AMRIT β Accessible Medical Records via Integrated Technology | ||
| * Integrated EHR (Electronic Health Records) Solution | ||
| * | ||
| * Copyright (C) "Piramal Swasthya Management and Research Institute" | ||
| * | ||
| * This file is part of AMRIT. | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see https://www.gnu.org/licenses/. | ||
| */ | ||
| package com.iemr.common.identity.data.rmnch; | ||
|
|
||
| import java.sql.Timestamp; | ||
|
|
||
| import jakarta.persistence.Column; | ||
| import jakarta.persistence.Entity; | ||
| import jakarta.persistence.GeneratedValue; | ||
| import jakarta.persistence.GenerationType; | ||
| import jakarta.persistence.Id; | ||
| import jakarta.persistence.Table; | ||
|
|
||
| import lombok.Data; | ||
|
|
||
| /** | ||
| * Mirrors FLW-API's BenPhysicalVitalDetail (same db_iemr.t_phy_vitals table), so syncDataToAmrit can write | ||
| * registration-time values that FLW-API getBeneficiaryData reads back. | ||
| */ | ||
| @Entity | ||
| @Table(name = "t_phy_vitals", catalog = "db_iemr") | ||
| @Data | ||
| public class BenPhysicalVitalDetail { | ||
| @Id | ||
| @GeneratedValue(strategy = GenerationType.IDENTITY) | ||
| @Column(name = "ID") | ||
| private Long id; | ||
|
|
||
| @Column(name = "BeneficiaryRegID") | ||
| private Long beneficiaryRegID; | ||
|
|
||
| @Column(name = "BenVisitID") | ||
| private Long benVisitID; | ||
|
|
||
| @Column(name = "ProviderServiceMapID") | ||
| private Integer providerServiceMapID; | ||
|
|
||
| @Column(name = "VisitCode") | ||
| private Long visitCode; | ||
|
|
||
| @Column(name = "Temperature") | ||
| private Double temperature; | ||
|
|
||
| @Column(name = "PulseRate") | ||
| private Short pulseRate; | ||
|
|
||
| @Column(name = "SystolicBP_1stReading") | ||
| private Short systolicBP; | ||
|
|
||
| @Column(name = "DiastolicBP_1stReading") | ||
| private Short diastolicBP; | ||
|
|
||
| @Column(name = "BloodGlucose_Random") | ||
| private Short bloodGlucoseRandom; | ||
|
|
||
| @Column(name = "Deleted", insertable = false, updatable = true) | ||
| private Boolean deleted; | ||
|
|
||
| @Column(name = "Processed", insertable = false, updatable = true) | ||
| private String processed; | ||
|
|
||
| @Column(name = "CreatedBy") | ||
| private String createdBy; | ||
|
|
||
| @Column(name = "CreatedDate", insertable = false, updatable = false) | ||
| private Timestamp createdDate; | ||
|
|
||
| @Column(name = "ModifiedBy") | ||
| private String modifiedBy; | ||
|
|
||
| @Column(name = "LastModDate", insertable = false, updatable = false) | ||
| private Timestamp lastModDate; | ||
|
|
||
| @Column(name = "VanSerialNo") | ||
| private Long vanSerialNo; | ||
|
|
||
| @Column(name = "VanID") | ||
| private Integer vanID; | ||
|
|
||
| @Column(name = "ParkingPlaceID") | ||
| private Integer parkingPlaceID; | ||
|
|
||
| @Column(name = "SyncedBy") | ||
| private String syncedBy; | ||
|
|
||
| @Column(name = "SyncedDate") | ||
| private Timestamp syncedDate; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/com/iemr/common/identity/repo/rmnch/BenAnthropometryRepo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /* | ||
| * AMRIT β Accessible Medical Records via Integrated Technology | ||
| * Integrated EHR (Electronic Health Records) Solution | ||
| * | ||
| * Copyright (C) "Piramal Swasthya Management and Research Institute" | ||
| * | ||
| * This file is part of AMRIT. | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see https://www.gnu.org/licenses/. | ||
| */ | ||
| package com.iemr.common.identity.repo.rmnch; | ||
|
|
||
| import org.springframework.data.jpa.repository.Modifying; | ||
| import org.springframework.data.jpa.repository.Query; | ||
| import org.springframework.data.repository.CrudRepository; | ||
| import org.springframework.data.repository.query.Param; | ||
| import org.springframework.stereotype.Repository; | ||
| import org.springframework.transaction.annotation.Transactional; | ||
|
|
||
| import com.iemr.common.identity.data.rmnch.BenAnthropometryDetail; | ||
|
|
||
| @Repository | ||
| public interface BenAnthropometryRepo extends CrudRepository<BenAnthropometryDetail, Long> { | ||
| public BenAnthropometryDetail findFirstByBeneficiaryRegIDOrderByCreatedDateDescIdDesc(Long beneficiaryRegID); | ||
|
|
||
| @Transactional | ||
| @Modifying | ||
| @Query("UPDATE BenAnthropometryDetail t SET t.vanSerialNo = t.id WHERE t.id = :id") | ||
| void updateVanSerialNo(@Param("id") Long id); | ||
| } |
41 changes: 41 additions & 0 deletions
41
src/main/java/com/iemr/common/identity/repo/rmnch/BenPhysicalVitalRepo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /* | ||
| * AMRIT β Accessible Medical Records via Integrated Technology | ||
| * Integrated EHR (Electronic Health Records) Solution | ||
| * | ||
| * Copyright (C) "Piramal Swasthya Management and Research Institute" | ||
| * | ||
| * This file is part of AMRIT. | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see https://www.gnu.org/licenses/. | ||
| */ | ||
| package com.iemr.common.identity.repo.rmnch; | ||
|
|
||
| import org.springframework.data.jpa.repository.Modifying; | ||
| import org.springframework.data.jpa.repository.Query; | ||
| import org.springframework.data.repository.CrudRepository; | ||
| import org.springframework.data.repository.query.Param; | ||
| import org.springframework.stereotype.Repository; | ||
| import org.springframework.transaction.annotation.Transactional; | ||
|
|
||
| import com.iemr.common.identity.data.rmnch.BenPhysicalVitalDetail; | ||
|
|
||
| @Repository | ||
| public interface BenPhysicalVitalRepo extends CrudRepository<BenPhysicalVitalDetail, Long> { | ||
| public BenPhysicalVitalDetail findFirstByBeneficiaryRegIDAndTemperatureIsNotNullOrderByCreatedDateDescIdDesc(Long beneficiaryRegID); | ||
|
|
||
| @Transactional | ||
| @Modifying | ||
| @Query("UPDATE BenPhysicalVitalDetail t SET t.vanSerialNo = t.id WHERE t.id = :id") | ||
| void updateVanSerialNo(@Param("id") Long id); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we do need this 2 tables same as in db_iemr? Cant we do the activity in the existing tables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two alredy impletented in 3.12.0 but missed in 3.13.0 release
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No new tables are created. Both files are JPA entity classes (Java mappings), not tables. They point to the existing tables:
Identity-API does not create or alter tables (no DDL, no migration). These classes only let it insert rows into those existing tables.