Skip to content

Limit Ni-kshay enrollment to villages with a NAAT login - #168

Open
vikas31121978 wants to merge 1 commit into
release-3.13.0from
fix/nikshay-enrollment-naat-login
Open

vikas31121978 wants to merge 1 commit into
release-3.13.0from
fix/nikshay-enrollment-naat-login

Conversation

@vikas31121978

Copy link
Copy Markdown

Summary

  • The first Ni-kshay enrollment pick for index patients and all-negative households now keeps only villages that already have an active NAAT device login.
  • A village mapped more than once still returns one row per person. Contacts looked up by beneficiary id are unchanged.

Test plan

  • Run the index and all-negative enrollment queries and confirm they complete without a SQL error.
  • Confirm a village with an active NAAT login, PHI user, and password is still picked.
  • Confirm a village with no device, an X-ray device only, an inactive device, or a blank user or password is not picked.
  • Confirm a person is not duplicated when the same NAAT device is mapped to the village more than once.

Made with Cursor

…ve NAAT login.

Index and all-negative household queries cannot enroll a person whose village has no usable NAAT device login, so those rows are left out of the first pick.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a20c708e-2fa5-433c-a635-8ac77b29099f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants