Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 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
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
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
d549203
fix: amm-2063 added beneficiarytype but not reflecting in the DB level
snehar-nd Feb 3, 2026
966aef4
Merge pull request #125 from PSMRI/sn/3.6.1
snehar-nd Feb 4, 2026
9b6a94b
Bump version from 3.6.0 to 3.6.2
snehar-nd Feb 4, 2026
3fbbb79
Merge pull request #126 from PSMRI/snehar-nd-patch-1
snehar-nd Feb 6, 2026
41a496e
fix: amm-2063 updated the updateBeneficiary flow
snehar-nd Feb 6, 2026
537cedf
Merge pull request #128 from PSMRI/sn/3.6.1
snehar-nd Feb 6, 2026
833d8b9
feat: amm-2175 ecg abnormal findings feature added
5Amogh Mar 4, 2026
90a931a
Merge pull request #133 from PSMRI/amm-2175
5Amogh Mar 10, 2026
d9506a9
fix: amm-2175 api issue fix
5Amogh Mar 11, 2026
7dc4053
fix: amm-2175 api issue fix
5Amogh Mar 11, 2026
6e856d1
Merge pull request #135 from PSMRI/amm-2175
5Amogh Mar 11, 2026
8edc363
fix: rebase with 3.6.1
vanitha1822 Mar 24, 2026
9f46e4b
Merge pull request #142 from PSMRI/fix-release-3.6.2
snehar-nd Mar 25, 2026
2a681fa
feat(security)Allow public access to health and version endpoints (#143)
DurgaPrasad-54 Mar 25, 2026
ac0fa54
feat(security)Allow public access to health and version endpoints (#143)
DurgaPrasad-54 Mar 25, 2026
d887c44
Add Lab Technician Role for ECG (#144)
vanitha1822 Mar 31, 2026
e19ad70
Resolve OpenKM download failure and ECG controller access issue (#145)
vanitha1822 Apr 7, 2026
7284ca0
Fix the Update issue (#147)
vanitha1822 Apr 8, 2026
06f0f65
Revert "Fix the Update issue (#147)" (#148)
vishwab1 Apr 13, 2026
73cf097
fix: 2346 handling duplicate entry of clinical observation
Jun 19, 2026
3916bc0
fix: 2346 ignoring softdeleted data
Jun 19, 2026
799a627
Merge pull request #152 from PSMRI/sn/duplicate
snehar-nd Jun 22, 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
44 changes: 40 additions & 4 deletions 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.2</version>
<packaging>war</packaging>

<name>TM-API</name>
Expand Down Expand Up @@ -56,21 +56,31 @@
<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>
<exclusions>
<!-- <exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</exclusions> -->
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>co.elastic.logging</groupId>
<artifactId>logback-ecs-encoder</artifactId>
<version>1.3.2</version>
</dependency>

<!-- Swagger -->
<dependency>
<groupId>org.springdoc</groupId>
Expand Down Expand Up @@ -299,7 +309,7 @@


<build>
<finalName>${artifactId}-${version}</finalName>
<finalName>${project.artifactId}-${project.version}</finalName>

<plugins>
<plugin>
Expand Down Expand Up @@ -343,6 +353,32 @@
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>9.0.2</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<property>^git.branch$</property>
<property>^git.commit.id.abbrev$</property>
<property>^git.build.version$</property>
<property>^git.build.time$</property>
</includeOnlyProperties>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ carestreamOrderCreateURL=@env.COMMON_API@carestream/createOrder

## Identity - Common URLs
# Registration
registrationUrl =@env.COMMON_API@beneficiary/create
registrationUrl =@env.COMMON_API@beneficiary/createBeneficiary

registrarQuickSearchByIdUrl =@env.COMMON_API@beneficiary/searchUserByID

Expand All @@ -19,7 +19,7 @@ registrarQuickSearchByPhoneNoUrl =@env.COMMON_API@beneficiary/searchUserByPhone
getBenImageFromIdentity =@env.IDENTITY_API@id/benImageByBenRegID

##beneficiary edit
beneficiaryEditUrl =@env.COMMON_API@beneficiary/update
beneficiaryEditUrl =@env.COMMON_API@beneficiary/updateBenefciaryDetails

## Advance Search
registrarAdvanceSearchUrl =@env.COMMON_API@beneficiary/searchBeneficiary
Expand Down
4 changes: 2 additions & 2 deletions src/main/environment/common_docker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ carestreamOrderCreateURL=${COMMON_API}/carestream/createOrder

## Identity - Common URLs
# Registration
registrationUrl=${COMMON_API}/beneficiary/create
registrationUrl=${COMMON_API}/beneficiary/createBeneficiary

registrarQuickSearchByIdUrl=${COMMON_API}/beneficiary/searchUserByID

Expand All @@ -19,7 +19,7 @@ registrarQuickSearchByPhoneNoUrl=${COMMON_API}/beneficiary/searchUserByPhone
getBenImageFromIdentity=${IDENTITY_API}/id/benImageByBenRegID

## beneficiary edit
beneficiaryEditUrl=${COMMON_API}/beneficiary/update
beneficiaryEditUrl=${COMMON_API}/beneficiary/updateBenefciaryDetails

## Advance Search
registrarAdvanceSearchUrl=${COMMON_API}/beneficiary/searchBeneficiary
Expand Down
4 changes: 2 additions & 2 deletions src/main/environment/common_example.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ carestreamOrderCreateURL =http://localhost:8083/carestream/createOrder

## Identity - Common URLs
# Registration
registrationUrl =http://localhost:8083/beneficiary/create
registrationUrl =http://localhost:8083/beneficiary/createBeneficiary

registrarQuickSearchByIdUrl =http://localhost:8083/beneficiary/searchUserByID

Expand All @@ -20,7 +20,7 @@ registrarQuickSearchByPhoneNoUrl =http://localhost:8083/beneficiary/searchUserBy
getBenImageFromIdentity =http://localhost:8094/id/benImageByBenRegID

##beneficiary edit
beneficiaryEditUrl =http://localhost:8083/beneficiary/update
beneficiaryEditUrl =http://localhost:8083/beneficiary/updateBenefciaryDetails

## Advance Search
registrarAdvanceSearchUrl =http://localhost:8083/beneficiary/searchBeneficiary
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