Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4149b14
merge with main
SauravBizbRolly Sep 12, 2025
1fca232
merge with main
SauravBizbRolly Sep 12, 2025
896012c
merge with main
SauravBizbRolly Sep 12, 2025
067cc02
Merge pull request #290 from toarunmishra/release-3.7.0
SauravBizbRolly Sep 12, 2025
ac39698
fix ben death param issue
SauravBizbRolly Sep 12, 2025
ce7fa31
fix ben death param issue
SauravBizbRolly Sep 12, 2025
e5d4234
fix strict-origin-when-cross-origin
SauravBizbRolly Sep 17, 2025
c4603b0
fix strict-origin-when-cross-origin
SauravBizbRolly Sep 17, 2025
13aa4ba
fix strict-origin-when-cross-origin
SauravBizbRolly Sep 17, 2025
b14952b
fix strict-origin-when-cross-origin
SauravBizbRolly Sep 17, 2025
eba0f45
fix strict-origin-when-cross-origin
SauravBizbRolly Sep 17, 2025
0dfad08
fix strict-origin-when-cross-origin
SauravBizbRolly Sep 17, 2025
d0dc555
fix strict-origin-when-cross-origin
SauravBizbRolly Sep 17, 2025
dddc108
fix strict-origin-when-cross-origin
SauravBizbRolly Sep 17, 2025
772a9e0
fix strict-origin-when-cross-origin
SauravBizbRolly Oct 14, 2025
c581bf3
Merge remote-tracking branch 'upstream/release-3.6.0' into release-3.7.0
SauravBizbRolly Nov 4, 2025
4604845
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 7, 2025
4b7cb37
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 7, 2025
c668610
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 7, 2025
9324652
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 7, 2025
168291a
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 7, 2025
1121b75
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 7, 2025
ba4da8f
Merge remote-tracking branch 'upstream/release-3.6.1' into release-3.7.0
SauravBizbRolly Nov 21, 2025
ca7bc2e
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 21, 2025
5b195cf
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 21, 2025
e7828c2
fix strict-origin-when-cross-origin
SauravBizbRolly Nov 24, 2025
543b022
add column in create BeneficiaryModel
SauravBizbRolly Nov 26, 2025
19a5291
Add UAT domain to allowed CORS origins
SauravBizbRolly Nov 26, 2025
cb2ac7f
Update application.properties
SauravBizbRolly Nov 26, 2025
a49f09b
Remove CORS allowed origin from properties
SauravBizbRolly Nov 26, 2025
948d72c
add column in create BeneficiaryModel
SauravBizbRolly Nov 26, 2025
be6843f
Merge remote-tracking branch 'upstream/release-3.7.0' into release-3.7.0
SauravBizbRolly Nov 26, 2025
65d5b3b
add column in create BeneficiaryModel
SauravBizbRolly Nov 26, 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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
<artifactId>logback-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ grievanceUserAuthenticate = @env.GRIEVANCE_USER_AUTHENTICATE@
grievanceDataSyncDuration = @env.GRIEVANCE_DATA_SYNC_DURATION@

springdoc.api-docs.enabled=@env.SWAGGER_DOC_ENABLED@
springdoc.swagger-ui.enabled=@env.SWAGGER_UI_ENABLED@
springdoc.swagger-ui.enabled=@env.SWAGGER_DOC_ENABLED@


isProduction=@env.IS_PRODUCTION@
Expand Down
2 changes: 1 addition & 1 deletion src/main/environment/common_docker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ grievanceUserAuthenticate = ${GRIEVANCE_USER_AUTHENTICATE}
grievanceDataSyncDuration = ${GRIEVANCE_DATA_SYNC_DURATION}

springdoc.api-docs.enabled=${SWAGGER_DOC_ENABLED}
springdoc.swagger-ui.enabled=${SWAGGER_UI_ENABLED}
springdoc.swagger-ui.enabled=${SWAGGER_DOC_ENABLED}


isProduction=${IS_PRODUCTION}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/iemr/common/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@Configuration
public class CorsConfig implements WebMvcConfigurer {

@Value("${cors.allowed-origins}")
@Value("${cors.allowed-origin}")
private String allowedOrigins;
@Override
public void addCorsMappings(CorsRegistry registry) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public class BeneficiaryRegistrationController {
private BeneficiaryOccupationService beneficiaryOccupationService;
private GovtIdentityTypeService govtIdentityTypeService;


@Autowired
public void setBenRelationshipTypeService(BenRelationshipTypeService benRelationshipTypeService) {
this.benRelationshipTypeService = benRelationshipTypeService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.iemr.common.utils.response.ApiResponse;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.Query;

Check warning on line 10 in src/main/java/com/iemr/common/controller/dynamicForm/DynamicFormController.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this unused import 'org.springframework.data.jpa.repository.Query'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZri5KuKmKr6wbF77wvJ&open=AZri5KuKmKr6wbF77wvJ&pullRequest=315
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand All @@ -19,7 +20,7 @@
@Autowired
private FormMasterService formMasterService;

@PostMapping(value = "createModule",headers = "Authorization")
@PostMapping(value = "createModule")
public ResponseEntity<ApiResponse<?>> createModule(@Valid @RequestBody ModuleDTO moduleDTO) {
try {
Object result = formMasterService.createModule(moduleDTO);
Expand All @@ -34,7 +35,7 @@
}
}

@PostMapping(value = "createForm",headers = "Authorization")
@PostMapping(value = "createForm")
public ResponseEntity<ApiResponse<?>> createForm(@Valid @RequestBody FormDTO dto) {
try {
Object result = formMasterService.createForm(dto);
Expand All @@ -46,7 +47,7 @@
}
}

@PostMapping(value = "createFields",headers = "Authorization")
@PostMapping(value = "createFields")
public ResponseEntity<ApiResponse<?>> createField(@Valid @RequestBody List<FieldDTO> dto) {
try {
Object result = formMasterService.createField(dto);
Expand Down Expand Up @@ -83,14 +84,15 @@
}

@GetMapping(value = "form/{formId}/fields")
public ResponseEntity<ApiResponse<?>> getStructuredForm(@PathVariable String formId) {
public ResponseEntity<ApiResponse<?>> getStructuredForm(@PathVariable String formId, @RequestParam(name = "lang", defaultValue = "en") String lang) {

Check failure on line 87 in src/main/java/com/iemr/common/controller/dynamicForm/DynamicFormController.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove usage of generic wildcard type.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Common-API&issues=AZri5KuKmKr6wbF77wvI&open=AZri5KuKmKr6wbF77wvI&pullRequest=315
try {
Object result = formMasterService.getStructuredFormByFormId(formId);
Object result = formMasterService.getStructuredFormByFormId(formId,lang);
return ResponseEntity.status(HttpStatus.OK)
.body(ApiResponse.success("Form structure fetched successfully", HttpStatus.OK.value(), result));
} catch (Exception e) {

return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR)
.body(ApiResponse.error("Failed to fetch form structure", HttpStatus.INTERNAL_SERVER_ERROR.value(), null));
.body(ApiResponse.error("Failed to fetch form structure:"+e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR.value(), e));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public class IEMRAdminController {
private final Logger logger = LoggerFactory.getLogger(this.getClass().getName());
private InputMapper inputMapper = new InputMapper();

@Value("${captcha.enable-captcha}")
private boolean enableCaptcha;
// @Value("${captcha.enable-captcha}")
private boolean enableCaptcha =false;

@Autowired
private CaptchaValidationService captchaValidatorService;
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/com/iemr/common/data/translation/Translation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.iemr.common.data.translation;

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

@Entity
@Table(name = "m_translation")
@Data
public class Translation {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;
@Column(name = "label_key")
private String labelKey;
@Column(name = "english")
private String english;
@Column(name = "hindi_translation")
private String hindiTranslation;
@Column(name = "is_active")
private Boolean isActive;
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,47 @@ public class BeneficiaryModel implements Comparable<BeneficiaryModel> {
@Expose
private Boolean isConsent=false;

@Expose
private Boolean isDeath;

@Expose
private String dateOfDeath;

@Expose
private String isDeathValue;

@Expose
private String timeOfDeath;

@Expose
private String reasonOfDeath;

@Expose
private Integer reasonOfDeathId;

@Expose
private String placeOfDeath;

@Expose
private Integer placeOfDeathId;

@Expose
private String otherPlaceOfDeath;

@Expose
private Boolean isSpouseAdded;

@Expose
private Boolean isChildrenAdded;

@Expose
private Boolean isMarried;

@Expose
private Integer doYouHavechildren;

@Expose
private Integer noofAlivechildren;

@Expose
private String beneficiaryID;
Expand Down
Loading
Loading