Skip to content

fix(stoptb): skip re-sent unchanged OPD, no new visit or prescription copy (STOP-855) - #415

Merged
vishwab1 merged 4 commits into
release-3.13.0from
vb/STOP-855-opd-repeat-guard-3.13.0
Nov 20, 2026
Merged

vishwab1 merged 4 commits into
release-3.13.0from
vb/STOP-855-opd-repeat-guard-3.13.0

fix(stoptb): address review on OPD repeat check (STOP-855)

d65ec08
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 19, 2026 in 47s

Annotations

Check failure on line 212 in src/main/java/com/iemr/flw/service/StopTBPrescriptionService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-API&issues=AaHzwIcmNIrkaf_HUZjV&open=AaHzwIcmNIrkaf_HUZjV&pullRequest=415

Check failure on line 407 in src/main/java/com/iemr/flw/service/impl/StopTBServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-API&issues=AaHzwIZnNIrkaf_HUZjU&open=AaHzwIZnNIrkaf_HUZjU&pullRequest=415

Check warning on line 591 in src/main/java/com/iemr/flw/service/StopTBPrescriptionService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-API&issues=AaHzwIcmNIrkaf_HUZjX&open=AaHzwIcmNIrkaf_HUZjX&pullRequest=415

Check failure on line 130 in src/main/java/com/iemr/flw/service/StopTBPrescriptionService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-API&issues=AaHzwIcmNIrkaf_HUZjW&open=AaHzwIcmNIrkaf_HUZjW&pullRequest=415