Skip to content

Standardize API error handling and JSON parsing across major controllers

416df9f
Select commit
Loading
Failed to load commit list.
Open

Standardize API error handling and JSON parsing across major controllers #190

Standardize API error handling and JSON parsing across major controllers
416df9f
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 5, 2026 in 38s

Quality Gate failed

Failed conditions
16.2% Duplication on New Code (required ≤ 3%)
B Maintainability 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 warning on line 274 in src/main/java/com/iemr/hwc/controller/ncdCare/NCDCareController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUdnUWGM6cAyS4rW&open=AZy9uUdnUWGM6cAyS4rW&pullRequest=190

Check warning on line 134 in src/main/java/com/iemr/hwc/controller/adolescent/ChildhoodAdolescenceController.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_HWC-API&issues=AZy9uUZ2UWGM6cAyS4p6&open=AZy9uUZ2UWGM6cAyS4p6&pullRequest=190

Check warning on line 355 in src/main/java/com/iemr/hwc/controller/registrar/main/RegistrarController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUdJUWGM6cAyS4rN&open=AZy9uUdJUWGM6cAyS4rN&pullRequest=190

Check warning on line 258 in src/main/java/com/iemr/hwc/controller/common/main/WorklistController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4qq&open=AZy9uUcmUWGM6cAyS4qq&pullRequest=190

Check failure on line 111 in src/main/java/com/iemr/hwc/controller/adolescent/ChildhoodAdolescenceController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUZ2UWGM6cAyS4p-&open=AZy9uUZ2UWGM6cAyS4p-&pullRequest=190

Check failure on line 129 in src/main/java/com/iemr/hwc/controller/generalOPD/GeneralOPDController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "visitCode" 10 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUa6UWGM6cAyS4qT&open=AZy9uUa6UWGM6cAyS4qT&pullRequest=190

Check warning on line 280 in src/main/java/com/iemr/hwc/controller/cancerscreening/CancerScreeningController.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_HWC-API&issues=AZy9uUbdUWGM6cAyS4qb&open=AZy9uUbdUWGM6cAyS4qb&pullRequest=190

Check warning on line 682 in src/main/java/com/iemr/hwc/controller/common/main/WorklistController.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_HWC-API&issues=AZy9uUcmUWGM6cAyS4q-&open=AZy9uUcmUWGM6cAyS4q-&pullRequest=190

Check warning on line 788 in src/main/java/com/iemr/hwc/controller/common/main/WorklistController.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_HWC-API&issues=AZy9uUcmUWGM6cAyS4rA&open=AZy9uUcmUWGM6cAyS4rA&pullRequest=190

Check warning on line 305 in src/main/java/com/iemr/hwc/controller/registrar/main/RegistrarController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUdJUWGM6cAyS4rM&open=AZy9uUdJUWGM6cAyS4rM&pullRequest=190

Check warning on line 145 in src/main/java/com/iemr/hwc/controller/ncdCare/NCDCareController.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_HWC-API&issues=AZy9uUdnUWGM6cAyS4rY&open=AZy9uUdnUWGM6cAyS4rY&pullRequest=190

Check failure on line 172 in src/main/java/com/iemr/hwc/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 "beneficiaryRegID" 7 times.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUcmUWGM6cAyS4rF&open=AZy9uUcmUWGM6cAyS4rF&pullRequest=190

Check warning on line 458 in src/main/java/com/iemr/hwc/controller/common/main/WorklistController.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_HWC-API&issues=AZy9uUcmUWGM6cAyS4q2&open=AZy9uUcmUWGM6cAyS4q2&pullRequest=190

Check warning on line 270 in src/main/java/com/iemr/hwc/controller/covid19/CovidController.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_HWC-API&issues=AZy9uUY7UWGM6cAyS4pv&open=AZy9uUY7UWGM6cAyS4pv&pullRequest=190

Check warning on line 151 in src/main/java/com/iemr/hwc/controller/anc/AntenatalCareController.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_HWC-API&issues=AZy9uUaZUWGM6cAyS4qC&open=AZy9uUaZUWGM6cAyS4qC&pullRequest=190

Check warning on line 211 in src/main/java/com/iemr/hwc/controller/adolescent/ChildhoodAdolescenceController.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_HWC-API&issues=AZy9uUZ2UWGM6cAyS4p7&open=AZy9uUZ2UWGM6cAyS4p7&pullRequest=190

Check warning on line 111 in src/main/java/com/iemr/hwc/controller/covid19/CovidController.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_HWC-API&issues=AZy9uUY7UWGM6cAyS4pw&open=AZy9uUY7UWGM6cAyS4pw&pullRequest=190

Check warning on line 745 in src/main/java/com/iemr/hwc/controller/common/main/WorklistController.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_HWC-API&issues=AZy9uUcmUWGM6cAyS4q_&open=AZy9uUcmUWGM6cAyS4q_&pullRequest=190

Check warning on line 259 in src/main/java/com/iemr/hwc/controller/pnc/PostnatalCareController.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_HWC-API&issues=AZy9uUeJUWGM6cAyS4rk&open=AZy9uUeJUWGM6cAyS4rk&pullRequest=190

Check warning on line 97 in src/main/java/com/iemr/hwc/controller/common/master/CommonMasterController.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_HWC-API&issues=AZy9uUb0UWGM6cAyS4qk&open=AZy9uUb0UWGM6cAyS4qk&pullRequest=190

Check warning on line 150 in src/main/java/com/iemr/hwc/controller/pnc/PostnatalCareController.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_HWC-API&issues=AZy9uUeJUWGM6cAyS4rg&open=AZy9uUeJUWGM6cAyS4rg&pullRequest=190

Check warning on line 254 in src/main/java/com/iemr/hwc/controller/cancerscreening/CancerScreeningController.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_HWC-API&issues=AZy9uUbdUWGM6cAyS4qa&open=AZy9uUbdUWGM6cAyS4qa&pullRequest=190

Check warning on line 459 in src/main/java/com/iemr/hwc/controller/cancerscreening/CancerScreeningController.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_HWC-API&issues=AZy9uUbdUWGM6cAyS4qf&open=AZy9uUbdUWGM6cAyS4qf&pullRequest=190

Check warning on line 275 in src/main/java/com/iemr/hwc/controller/common/main/WorklistController.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_HWC-API&issues=AZy9uUcmUWGM6cAyS4qu&open=AZy9uUcmUWGM6cAyS4qu&pullRequest=190

Check warning on line 61 in src/main/java/com/iemr/hwc/controller/common/master/CommonMasterController.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_HWC-API&issues=AZy9uUb0UWGM6cAyS4qi&open=AZy9uUb0UWGM6cAyS4qi&pullRequest=190