Skip to content

Cherry-pick health and version API enhancements to release-3.6.1 (#136)

4385e61
Select commit
Loading
Failed to load commit list.
Merged

Merge Release 3.6.1 to main #137

Cherry-pick health and version API enhancements to release-3.6.1 (#136)
4385e61
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 19, 2026 in 45s

Quality Gate failed

Failed conditions
1 Security Hotspot
13.1% Duplication on New Code (required ≀ 3%)
B Security Rating on New Code (required β‰₯ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 343 in src/main/java/com/iemr/tm/service/quickConsultation/QuickConsultationServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 6 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzwn3jy-9gvRa9KRH&open=AZ0Fzwn3jy-9gvRa9KRH&pullRequest=137

Check failure on line 716 in src/main/java/com/iemr/tm/controller/common/main/WorklistController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Unauthorized access" 3 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw8Jjy-9gvRa9KRX&open=AZ0Fzw8Jjy-9gvRa9KRX&pullRequest=137

Check failure on line 1027 in src/main/java/com/iemr/tm/service/ncdscreening/NCDScreeningServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 3 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzwyojy-9gvRa9KRM&open=AZ0Fzwyojy-9gvRa9KRM&pullRequest=137

Check failure on line 985 in src/main/java/com/iemr/tm/service/covid19/Covid19ServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 6 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzwx3jy-9gvRa9KRL&open=AZ0Fzwx3jy-9gvRa9KRL&pullRequest=137

Check failure on line 98 in src/main/java/com/iemr/tm/service/ncdscreening/NCDSCreeningDoctorServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 3 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzwzJjy-9gvRa9KRN&open=AZ0FzwzJjy-9gvRa9KRN&pullRequest=137

Check warning on line 283 in src/main/java/com/iemr/tm/service/benFlowStatus/CommonBenStatusFlowServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw0Sjy-9gvRa9KRP&open=AZ0Fzw0Sjy-9gvRa9KRP&pullRequest=137

Check failure on line 758 in src/main/java/com/iemr/tm/service/generalOPD/GeneralOPDServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 6 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzwtvjy-9gvRa9KRI&open=AZ0Fzwtvjy-9gvRa9KRI&pullRequest=137

Check warning on line 30 in src/main/java/com/iemr/tm/service/benFlowStatus/CommonBenStatusFlowServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.checkerframework.checker.units.qual.s'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw0Sjy-9gvRa9KRR&open=AZ0Fzw0Sjy-9gvRa9KRR&pullRequest=137

Check failure on line 354 in src/main/java/com/iemr/tm/service/anc/ANCServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 6 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw1Qjy-9gvRa9KRS&open=AZ0Fzw1Qjy-9gvRa9KRS&pullRequest=137

Check failure on line 775 in src/main/java/com/iemr/tm/service/ncdCare/NCDCareServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 6 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzwz1jy-9gvRa9KRO&open=AZ0Fzwz1jy-9gvRa9KRO&pullRequest=137

Check warning on line 132 in src/main/java/com/iemr/tm/controller/login/IemrMmuLoginController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this code to not log user-controlled data.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw5qjy-9gvRa9KRW&open=AZ0Fzw5qjy-9gvRa9KRW&pullRequest=137

Check warning on line 38 in src/main/java/com/iemr/tm/utils/mapper/RoleAuthenticationFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzxDajy-9gvRa9KRe&open=AZ0FzxDajy-9gvRa9KRe&pullRequest=137

Check failure on line 32 in src/main/java/com/iemr/tm/utils/mapper/RoleAuthenticationFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

"logger" is the name of a field in "GenericFilterBean".

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzxDajy-9gvRa9KRc&open=AZ0FzxDajy-9gvRa9KRc&pullRequest=137

Check warning on line 119 in src/main/java/com/iemr/tm/utils/redis/RedisStorage.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty collection instead of null.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzxCJjy-9gvRa9KRZ&open=AZ0FzxCJjy-9gvRa9KRZ&pullRequest=137

Check failure on line 319 in src/main/java/com/iemr/tm/service/pnc/PNCServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 6 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzwudjy-9gvRa9KRJ&open=AZ0Fzwudjy-9gvRa9KRJ&pullRequest=137

Check warning on line 305 in src/main/java/com/iemr/tm/service/benFlowStatus/CommonBenStatusFlowServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw0Sjy-9gvRa9KRQ&open=AZ0Fzw0Sjy-9gvRa9KRQ&pullRequest=137

Check warning on line 58 in src/main/java/com/iemr/tm/controller/login/IemrMmuLoginController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw5qjy-9gvRa9KRV&open=AZ0Fzw5qjy-9gvRa9KRV&pullRequest=137

Check warning on line 35 in src/main/java/com/iemr/tm/utils/mapper/RoleAuthenticationFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzxDajy-9gvRa9KRd&open=AZ0FzxDajy-9gvRa9KRd&pullRequest=137

Check warning on line 53 in src/main/java/com/iemr/tm/controller/videoconsultationcontroller/VideoConsultationController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw5Jjy-9gvRa9KRU&open=AZ0Fzw5Jjy-9gvRa9KRU&pullRequest=137

Check warning on line 41 in src/main/java/com/iemr/tm/utils/mapper/RoleAuthenticationFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzxDajy-9gvRa9KRf&open=AZ0FzxDajy-9gvRa9KRf&pullRequest=137

Check warning on line 118 in src/main/java/com/iemr/tm/utils/mapper/RoleAuthenticationFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzxDajy-9gvRa9KRh&open=AZ0FzxDajy-9gvRa9KRh&pullRequest=137

Check warning on line 78 in src/main/java/com/iemr/tm/utils/mapper/RoleAuthenticationFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested try block into a separate method.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzxDajy-9gvRa9KRb&open=AZ0FzxDajy-9gvRa9KRb&pullRequest=137

Check warning on line 58 in src/main/java/com/iemr/tm/controller/teleconsultation/TeleConsultationController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0Fzw3Zjy-9gvRa9KRT&open=AZ0Fzw3Zjy-9gvRa9KRT&pullRequest=137

Check warning on line 99 in src/main/java/com/iemr/tm/utils/redis/RedisStorage.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this field injection and use constructor injection instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzxCJjy-9gvRa9KRY&open=AZ0FzxCJjy-9gvRa9KRY&pullRequest=137

Check failure on line 815 in src/main/java/com/iemr/tm/service/cancerScreening/CSServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "doctorSignatureFlag" 3 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AZ0FzwxKjy-9gvRa9KRK&open=AZ0FzwxKjy-9gvRa9KRK&pullRequest=137