Skip to content

Commit

Permalink
Grievance Runtime issues and CICD file committed
Browse files Browse the repository at this point in the history
  • Loading branch information
ravishanigarapu committed Jan 22, 2025
1 parent bcad2f6 commit def5975
Show file tree
Hide file tree
Showing 10 changed files with 460 additions and 381 deletions.
11 changes: 11 additions & 0 deletions src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,14 @@ spring.main.allow-circular-references=true

#ELK logging file name
logging.file.name=@env.COMMON_API_LOGGING_FILE_NAME@

##grievance API call
updateGrievanceDetails = https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/state-wise/grievance-list
updateGrievanceTransactionDetails=https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/grievance_details/

## grievance variables
grievanceUserName = <Enter Grievance username>
grievancePassword = <Enter Grievance password>

grievanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = 15
15 changes: 15 additions & 0 deletions src/main/environment/common_dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ nhm.agent.real.time.data.url= http://175.101.1.83/apps/utility/alive_api.php
nhm.agent.real.time.data.cron.scheduler=0 */2 * ? * *
nhm.agent.real.time.data.cron.flag=true

##----------------------------------------------------#grievance data sync-----------------------------------------------------------

start-grievancedatasync-scheduler=false
cron-scheduler-grievancedatasync=0 0/5 * * * ? *

carestream_socket_ip = 192.168.43.39
carestream_socket_port = 1235

Expand Down Expand Up @@ -166,3 +171,13 @@ spring.main.allow-circular-references=true

fileBasePath =<Enter your required basepath here>/Doc

##grievance API call
updateGrievanceDetails = https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/state-wise/grievance-list
updateGrievanceTransactionDetails=https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/grievance_details/

## grievance variables
grievanceUserName = <Enter Grievance username>
grievancePassword = <Enter Grievance password>

grievanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = 15
15 changes: 15 additions & 0 deletions src/main/environment/common_example.properties
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ spring.mail.properties.mail.smtp.starttls.enable=true
start-email-scheduler=true
cron-scheduler-email=0 0/1 * * * ? *

##----------------------------------------------------#grievance data sync-----------------------------------------------------------

start-grievancedatasync-scheduler=false
cron-scheduler-grievancedatasync=0 0/5 * * * ? *

### generate Beneficiary Config
genben-api=http://localhost:8080/bengenapi-v1.0

Expand Down Expand Up @@ -110,3 +115,13 @@ eausadhaAuthorization=<Enter eausadha authorization key>
spring.main.allow-bean-definition-overriding=true
spring.main.allow-circular-references=true

##grievance API call
updateGrievanceDetails = https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/state-wise/grievance-list
updateGrievanceTransactionDetails=https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/grievance_details/

## grievance variables
grievanceUserName = <Enter Grievance username>
grievancePassword = <Enter Grievance password>

grievanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = 15
14 changes: 14 additions & 0 deletions src/main/environment/common_test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ cron-scheduler-registration=0 34 19 * * ? *

start-everwelldatasync-scheduler=false
cron-scheduler-everwelldatasync=0 0/5 * * * ? *

##----------------------------------------------------#grievance data sync-----------------------------------------------------------

start-grievancedatasync-scheduler=false
cron-scheduler-grievancedatasync=0 0/5 * * * ? *
##-----------------------------------------------#NHM data dashboard schedular----------------------------------------------------------------
# run at everyday 12:01AM
start-nhmdashboard-scheduler=true
Expand Down Expand Up @@ -167,4 +172,13 @@ spring.main.allow-circular-references=true

fileBasePath =<Enter your required basepath here>/Doc

##grievance API call
updateGrievanceDetails = https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/state-wise/grievance-list
updateGrievanceTransactionDetails=https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/grievance_details/

## grievance variables
grievanceUserName = <Enter Grievance username>
grievancePassword = <Enter Grievance password>

greivanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = 15
15 changes: 15 additions & 0 deletions src/main/environment/common_uat.properties
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ cron-scheduler-email=0 0/1 * * * ? *
start-ctidatacheck-scheduler=true
cron-scheduler-ctidatacheck=0 10 00 * * *

##----------------------------------------------------#grievance data sync-----------------------------------------------------------

start-grievancedatasync-scheduler=false
cron-scheduler-grievancedatasync=0 0/5 * * * ? *

### generate Beneficiary IDs URL
genben-api=<Enter your socket address here>/bengenapi-v1.0

Expand Down Expand Up @@ -139,3 +144,13 @@ spring.main.allow-circular-references=true

fileBasePath =<Enter your required basepath here>/Doc

##grievance API call
updateGrievanceDetails = https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/state-wise/grievance-list
updateGrievanceTransactionDetails=https://grievance1097naco.piramalswasthya.org/grsbepro/igemr1097/public/api/v1/grievance_details/

## grievance variables
grievanceUserName = <Enter Grievance username>
grievancePassword = <Enter Grievance password>

grievanceUserAuthenticate = <Enter Grievance UserAuthenticate>
grievanceDataSyncDuration = 15
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.iemr.common.data.grievance;


import javax.persistence.*;
import jakarta.persistence.*;

import com.google.gson.annotations.Expose;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Repository
public interface GrievanceDataRepo extends CrudRepository<GrievanceDetails, Long>{

@Query("SELECT COUNT(g) > 0 FROM GrievanceDetails g WHERE g.complaintId = :complaintId")
@Query("SELECT COUNT(g) > 0 FROM GrievanceDetails g WHERE g.complaintID = :complaintId")
boolean existsByComplaintId(@Param("complaintId") String complaintId);

@Query("select count(request) "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Repository
public interface GrievanceFetchBenDetailsRepo extends CrudRepository<FeedbackDetails, Long> {

@Query("select f.requestID, f.benCallID, f.beneficiaryRegID, f.providerServiceMapID, f.stateID "
@Query("select f.requestID, f.benCallID, f.beneficiaryRegID, f.serviceID, f.stateID "
+ " from FeedbackDetails f where f.requestID = :requestID order by f.requestID desc")
public ArrayList<Object[]> findByComplaintId(@Param("requestID") String requestID);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public interface LocationStateRepository extends CrudRepository<States, Integer>

States findByStateID(Integer stateID);

@Query("select state.state from States state where state.stateID = :id")
@Query("select stateName from States where stateID = :id")
public String findByStateIDForGrievance(@Param("id") int id);


Expand Down
Loading

0 comments on commit def5975

Please sign in to comment.