Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
db7796b
Update version in pom.xml to 3.4.0
5Amogh Jul 21, 2025
1652329
story: amm-1668 task - 1754
5Amogh Jul 31, 2025
dd39e29
Merge pull request #91 from PSMRI/amo-3.4
5Amogh Jul 31, 2025
cf8ad95
story: amm-1668 task - 1754 dto updated (#92)
5Amogh Aug 1, 2025
317ae6f
story: amm-1668 task - 1754 dto updated (#93)
5Amogh Aug 1, 2025
784f42f
fix: amm-1879 doctor signature was not coming for ncdcare
snehar-nd Oct 6, 2025
7ecddea
Added the CreatedBy and created Date field in to the responce of Prin…
snehar-nd Oct 7, 2025
3cecdb8
fix: aam-1896 prescribed quantity was not coming in the casesheet
snehar-nd Oct 14, 2025
2806427
Merge pull request #99 from PSMRI/sn/3.5.1
snehar-nd Oct 14, 2025
cfcaba1
Update pom.xml
snehar-nd Oct 15, 2025
f3df470
fix: amm-1919 fix for update doctor data for higher refferal data
snehar-nd Oct 31, 2025
0068d0e
Merge pull request #100 from PSMRI/sn/3.5.1
snehar-nd Oct 31, 2025
e5aa845
fix: signature enhancement for casesheet
snehar-nd Nov 3, 2025
e8f5ba2
fix: signature enhancement for casesheet
snehar-nd Nov 4, 2025
a1766fd
fix: signature enhancement for casesheet
snehar-nd Nov 4, 2025
3647439
fix: signature enhancement for casesheet for ncdscreening
snehar-nd Nov 4, 2025
7f43bb3
fix: updated beneficiaryflowststusrepo file
snehar-nd Nov 4, 2025
b23f4c7
fix: wasa-IDOR Vulnerability
vanitha1822 Nov 17, 2025
9cd210c
fix: coderabbit comments
vanitha1822 Nov 17, 2025
5e5aca1
fix: amm-1927 res headers based on origin via allowed cors
5Amogh Nov 17, 2025
c8f1b33
fix: amm-1927 coderabbit comments resolved
5Amogh Nov 17, 2025
8b431b6
localhost regex added
5Amogh Nov 18, 2025
ce2a0b0
Update regex pattern for localhost in interceptor
5Amogh Nov 18, 2025
c455c66
fix: remove userid from request
vanitha1822 Nov 18, 2025
5dbf22f
Merge pull request #102 from PSMRI/nd/vs/wasa_1922
vanitha1822 Nov 19, 2025
eb786bf
fix: amm-1927 res headers based on origin via allowed cors (#103)
5Amogh Nov 20, 2025
2e76160
Role Based Broken Access Control Implementation : WASA (#104)
vanitha1822 Nov 27, 2025
67952c6
fix:1896 added space for single dose after food string due
snehar-nd Nov 28, 2025
844ed52
Merge pull request #105 from PSMRI/sn/3.5.1
snehar-nd Nov 28, 2025
c7b4dac
fix:1896 added single dose after and before food confition for calcul…
snehar-nd Nov 28, 2025
207192e
Merge pull request #106 from PSMRI/sn/3.5.1
snehar-nd Nov 28, 2025
340c831
fix: amm-1963 frequncy is not calculating for single dose frequency
snehar-nd Dec 3, 2025
d7d91ad
Merge pull request #107 from PSMRI/release-3.4.0
5Amogh Dec 3, 2025
42211a6
Merge pull request #108 from PSMRI/release-3.4.1
5Amogh Dec 3, 2025
ddc905f
Merge pull request #109 from PSMRI/release-3.5.0
5Amogh Dec 3, 2025
0889338
Merge branch 'release-3.6.0' into release-3.6.1
5Amogh Dec 3, 2025
3e4ae1e
Merge pull request #110 from PSMRI/release-3.6.1
5Amogh Dec 3, 2025
7994ac8
fix: amm-1963 remoed the comments
snehar-nd Dec 4, 2025
fb27280
fix: sonarqubecloud fixs
snehar-nd Dec 4, 2025
114cee6
fix: added const variable to doctorsignature object to remove duplicate
snehar-nd Dec 4, 2025
fce7824
Merge pull request #111 from PSMRI/sn/3.5.1
snehar-nd Dec 5, 2025
61f7738
fix: Added proper space in the string
snehar-nd Dec 5, 2025
cb2b837
fix: Added proper space in the string
snehar-nd Dec 5, 2025
872730c
fix: Added condition for the single dose after and before food
snehar-nd Dec 5, 2025
902b0a8
fix: reverting the code which I made for single dose after and before
snehar-nd Dec 5, 2025
cf05b5a
Merge pull request #112 from PSMRI/sn/3.6.0
snehar-nd Dec 8, 2025
55415fa
fix role issue in register api
SauravBizbRolly Dec 11, 2025
cb356fb
Merge pull request #115 from PSMRI/bug/fix_role_issue_in_regigesterapi
SauravBizbRolly Dec 11, 2025
64904e1
attach logger
SauravBizbRolly Dec 16, 2025
2f8ca3d
Merge pull request #116 from PSMRI/debug/check_auth
SauravBizbRolly Dec 16, 2025
54cf26d
remove user agent
SauravBizbRolly Dec 16, 2025
c7741b2
Merge pull request #117 from PSMRI/debug/remove_user_agent
SauravBizbRolly Dec 16, 2025
caecbae
revert user agent
SauravBizbRolly Dec 16, 2025
aedd681
Merge pull request #118 from PSMRI/fix_revert_user_agent
SauravBizbRolly Dec 16, 2025
48cccad
update RestTemplateUtil
SauravBizbRolly Dec 16, 2025
f653136
Merge pull request #119 from PSMRI/fix/update_restTemplateUtils
SauravBizbRolly Dec 16, 2025
4aada05
add constant class
SauravBizbRolly Dec 16, 2025
2d6512f
Merge pull request #120 from PSMRI/add_constant_class
SauravBizbRolly Dec 16, 2025
4e626a5
fix: role based on both jwt and auth token
vanitha1822 Dec 17, 2025
09a9511
Merge pull request #121 from PSMRI/nd/vs/rbac_authtoken
SauravBizbRolly Dec 17, 2025
7929c79
add role in register api
SauravBizbRolly Dec 17, 2025
cf1492b
Merge pull request #122 from PSMRI/fix/add_role_in_registerapi
SauravBizbRolly Dec 17, 2025
5901e3d
Merge branch 'release-3.6.1' into release-3.6.0
SauravBizbRolly Dec 18, 2025
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
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.iemr.tm</groupId>
<artifactId>tm-api</artifactId>
<version>3.4.0</version>
<version>3.6.0</version>
<packaging>war</packaging>

<name>TM-API</name>
Expand Down Expand Up @@ -56,6 +56,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
Expand All @@ -71,6 +75,7 @@
<artifactId>logback-ecs-encoder</artifactId>
<version>1.3.2</version>
</dependency>

<!-- Swagger -->
<dependency>
<groupId>org.springdoc</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.transaction.annotation.Transactional;

import org.springframework.web.bind.annotation.PostMapping;
Expand Down Expand Up @@ -66,6 +67,7 @@ public void setAncServiceImpl(ANCServiceImpl ancServiceImpl) {
*/
@Operation(summary = "Save ANC nurse data")
@PostMapping(value = { "/save/nurseData" })
@PreAuthorize("hasRole('NURSE') ")
public String saveBenANCNurseData(@RequestBody String requestObj,
@RequestHeader(value = "Authorization") String Authorization) throws Exception {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -98,6 +100,7 @@ public String saveBenANCNurseData(@RequestBody String requestObj,

@Operation(summary = "Save ANC doctor data")
@PostMapping(value = { "/save/doctorData" })
@PreAuthorize("hasRole('DOCTOR') ")
public String saveBenANCDoctorData(@RequestBody String requestObj,
@RequestHeader(value = "Authorization") String Authorization) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -132,6 +135,7 @@ public String saveBenANCDoctorData(@RequestBody String requestObj,
@Operation(summary = "Get ANC beneficiary visit details from nurse")
@PostMapping(value = { "/getBenVisitDetailsFrmNurseANC" })
@Transactional(rollbackFor = Exception.class)
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenVisitDetailsFrmNurseANC(
@Param(value = "{\"benRegID\":\"Long\", \"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand All @@ -158,6 +162,7 @@ public String getBenVisitDetailsFrmNurseANC(
@Operation(summary = "Get ANC beneficiary details from nurse")
@PostMapping(value = { "/getBenANCDetailsFrmNurseANC" })
@Transactional(rollbackFor = Exception.class)
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenANCDetailsFrmNurseANC(
@Param(value = "{\"benRegID\":\"Long\", \"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand All @@ -184,6 +189,7 @@ public String getBenANCDetailsFrmNurseANC(

@Operation(summary = "Get ANC beneficiary history from nurse")
@PostMapping(value = { "/getBenANCHistoryDetails" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenANCHistoryDetails(
@Param(value = "{\"benRegID\":\"Long\", \"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand All @@ -209,6 +215,7 @@ public String getBenANCHistoryDetails(

@Operation(summary = "Get ANC beneficiary vitals from nurse")
@PostMapping(value = { "/getBenANCVitalDetailsFrmNurseANC" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenANCVitalDetailsFrmNurseANC(
@Param(value = "{\"benRegID\":\"Long\",\"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand All @@ -235,6 +242,7 @@ public String getBenANCVitalDetailsFrmNurseANC(

@Operation(summary = "Get ANC beneficiary examination details from nurse")
@PostMapping(value = { "/getBenExaminationDetailsANC" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenExaminationDetailsANC(
@Param(value = "{\"benRegID\":\"Long\",\"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand All @@ -260,6 +268,7 @@ public String getBenExaminationDetailsANC(

@Operation(summary = "Get ANC beneficiary case record")
@PostMapping(value = { "/getBenCaseRecordFromDoctorANC" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
@Transactional(rollbackFor = Exception.class)
public String getBenCaseRecordFromDoctorANC(
@Param(value = "{\"benRegID\":\"Long\",\"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
Expand Down Expand Up @@ -288,6 +297,7 @@ public String getBenCaseRecordFromDoctorANC(
@Operation(summary = "Check high risk pregnancy status for ANC beneficiary")
@PostMapping(value = { "/getHRPStatus" })
@Transactional(rollbackFor = Exception.class)
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getHRPStatus(
@Param(value = "{\"benRegID\":\"Long\",\"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -316,6 +326,7 @@ public String getHRPStatus(

@Operation(summary = "Update ANC beneficiary data")
@PostMapping(value = { "/update/ANCScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String updateANCCareNurse(@RequestBody String requestObj) {

OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -344,6 +355,7 @@ public String updateANCCareNurse(@RequestBody String requestObj) {

@Operation(summary = "Update ANC beneficiary history")
@PostMapping(value = { "/update/historyScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String updateANCHistoryNurse(@RequestBody String requestObj) {

OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -372,6 +384,7 @@ public String updateANCHistoryNurse(@RequestBody String requestObj) {

@Operation(summary = "Update ANC beneficiary vitals")
@PostMapping(value = { "/update/vitalScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String updateANCVitalNurse(@RequestBody String requestObj) {

OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -400,6 +413,7 @@ public String updateANCVitalNurse(@RequestBody String requestObj) {

@Operation(summary = "Update ANC examination data")
@PostMapping(value = { "/update/examinationScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String updateANCExaminationNurse(@RequestBody String requestObj) {

OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -428,6 +442,7 @@ public String updateANCExaminationNurse(@RequestBody String requestObj) {

@Operation(summary = "Update ANC doctor data")
@PostMapping(value = { "/update/doctorData" })
@PreAuthorize("hasRole('DOCTOR') ")
public String updateANCDoctorData(@RequestBody String requestObj,
@RequestHeader(value = "Authorization") String Authorization) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.transaction.annotation.Transactional;

import org.springframework.web.bind.annotation.PostMapping;
Expand Down Expand Up @@ -70,6 +71,7 @@ public void setCancerScreeningServiceImpl(CSServiceImpl cSServiceImpl) {
*/
@Operation(summary = "Save cancer screening data collected by nurse")
@PostMapping(value = { "/save/nurseData" })
@PreAuthorize("hasRole('NURSE') ")
public String saveBenCancerScreeningNurseData(@RequestBody String requestObj,
@RequestHeader(value = "Authorization") String Authorization) throws Exception {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -106,6 +108,7 @@ public String saveBenCancerScreeningNurseData(@RequestBody String requestObj,
*/
@Operation(summary = "Update cancer screening data by the doctor")
@PostMapping(value = { "/save/doctorData" })
@PreAuthorize("hasRole('DOCTOR') ")
public String saveBenCancerScreeningDoctorData(@RequestBody String requestObj,
@RequestHeader String Authorization) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -137,6 +140,7 @@ public String saveBenCancerScreeningDoctorData(@RequestBody String requestObj,

@Operation(summary = "Get beneficiary visit details")
@PostMapping(value = { "/getBenDataFrmNurseToDocVisitDetailsScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenDataFrmNurseScrnToDocScrnVisitDetails(
@Param(value = "{\"benRegID\":\"Long\", \"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -166,6 +170,7 @@ public String getBenDataFrmNurseScrnToDocScrnVisitDetails(
*/
@Operation(summary = "Get beneficiary cancer history")
@PostMapping(value = { "/getBenDataFrmNurseToDocHistoryScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenDataFrmNurseScrnToDocScrnHistory(
@Param(value = "{\"benRegID\":\"Long\", \"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -195,6 +200,7 @@ public String getBenDataFrmNurseScrnToDocScrnHistory(
*/
@Operation(summary = "Get beneficiary vitals")
@PostMapping(value = { "/getBenDataFrmNurseToDocVitalScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenDataFrmNurseScrnToDocScrnVital(
@Param(value = "{\"benRegID\":\"Long\", \"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -224,6 +230,7 @@ public String getBenDataFrmNurseScrnToDocScrnVital(
*/
@Operation(summary = "Get beneficiary examination details")
@PostMapping(value = { "/getBenDataFrmNurseToDocExaminationScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenDataFrmNurseScrnToDocScrnExamination(
@Param(value = "{\"benRegID\":\"Long\", \"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -253,6 +260,7 @@ public String getBenDataFrmNurseScrnToDocScrnExamination(
*/
@Operation(summary = "Get beneficiary family history")
@PostMapping(value = { "/getBenCancerFamilyHistory" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenCancerFamilyHistory(
@Param(value = "{\"benRegID\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -284,6 +292,7 @@ public String getBenCancerFamilyHistory(
*/
@Operation(summary = "Get beneficiary personal history")
@PostMapping(value = { "/getBenCancerPersonalHistory" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenCancerPersonalHistory(
@Param(value = "{\"benRegID\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -315,6 +324,7 @@ public String getBenCancerPersonalHistory(
*/
@Operation(summary = "Get beneficiary personal diet history")
@PostMapping(value = { "/getBenCancerPersonalDietHistory" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenCancerPersonalDietHistory(
@Param(value = "{\"benRegID\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -346,6 +356,7 @@ public String getBenCancerPersonalDietHistory(
*/
@Operation(summary = "Get beneficiary obstetric history")
@PostMapping(value = { "/getBenCancerObstetricHistory" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String getBenCancerObstetricHistory(
@Param(value = "{\"benRegID\":\"Long\"}") @RequestBody String comingRequest) {
OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -376,6 +387,7 @@ public String getBenCancerObstetricHistory(
*/
@Operation(summary = "Get beneficiary case record and referral details")
@PostMapping(value = { "/getBenCaseRecordFromDoctorCS" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
@Transactional(rollbackFor = Exception.class)
public String getBenCaseRecordFromDoctorCS(
@Param(value = "{\"benRegID\":\"Long\", \"visitCode\":\"Long\"}") @RequestBody String comingRequest) {
Expand All @@ -402,6 +414,7 @@ public String getBenCaseRecordFromDoctorCS(

@Operation(summary = "Update cancer screening history")
@PostMapping(value = { "/update/historyScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String updateCSHistoryNurse(
@Param(value = "{\"historyDetails\": {\"familyHistory\":{\"diseases\": [{\"beneficiaryRegID\":\"Long\", \"benVisitID\":\"Long\", "
+ "\"providerServiceMapID\":\"Integer\", \"cancerDiseaseType\":\"String\", \"otherDiseaseType\":\"String\", \"familyMemberList\":\"List\", "
Expand Down Expand Up @@ -453,6 +466,7 @@ public String updateCSHistoryNurse(
*/
@Operation(summary = "Update beneficiary vitals")
@PostMapping(value = { "/update/vitalScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String upodateBenVitalDetail(
@Param(value = "{\"ID\": \"Long\", \"beneficiaryRegID\":\"Long\",\"benVisitID\":\"Long\","
+ "\"weight_Kg\":\"Double\", \"height_cm\":\"Double\", \"waistCircumference_cm\":\"Double\", \"bloodGlucose_Fasting\":\"Short\","
Expand Down Expand Up @@ -491,6 +505,7 @@ public String upodateBenVitalDetail(
*/
@Operation(summary = "Update beneficiary examination details")
@PostMapping(value = { "/update/examinationScreen" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') ")
public String upodateBenExaminationDetail(@RequestBody String requestObj) {

OutputResponse response = new OutputResponse();
Expand Down Expand Up @@ -526,6 +541,7 @@ public String upodateBenExaminationDetail(@RequestBody String requestObj) {
*/
@Operation(summary = "Update cancer diagnosis details by oncologist")
@PostMapping(value = { "/update/examinationScreen/diagnosis" })
@PreAuthorize("hasRole('NURSE') || hasRole('DOCTOR') || hasRole('ONCOLOGIST') ")
public String updateCancerDiagnosisDetailsByOncologist(
@Param(value = "{\"beneficiaryRegID\":\"Long\", \"benVisitID\":\"Long\", \"visitCode\":\"Long\", "
+ "\"provisionalDiagnosisOncologist\":\"String\", \"modifiedBy\":\"string\"}") @RequestBody String requestObj) {
Expand Down Expand Up @@ -560,6 +576,7 @@ public String updateCancerDiagnosisDetailsByOncologist(
*/
@Operation(summary = "Update cancer screening data")
@PostMapping(value = { "/update/doctorData" })
@PreAuthorize("hasRole('DOCTOR') ")
public String updateCancerScreeningDoctorData(@RequestBody String requestObj) {

OutputResponse response = new OutputResponse();
Expand Down
Loading
Loading