Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added validation to prevent duplicate IP numbers in same facility #2530

Conversation

Jacobjeevan
Copy link
Contributor

@Jacobjeevan Jacobjeevan commented Oct 11, 2024

Proposed Changes

  • Added validation check to prevent duplicate IP numbers for patients in same facility

Associated Issue

  • 8262 on Front end.
image

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete
  • Any other necessary step

Only PR's with test cases included and passing lint and test pipelines will be reviewed

@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins

@Jacobjeevan Jacobjeevan requested a review from a team as a code owner October 11, 2024 05:51
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.60%. Comparing base (08f0c72) to head (7de0cf3).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2530      +/-   ##
===========================================
+ Coverage    65.59%   65.60%   +0.01%     
===========================================
  Files          223      223              
  Lines        13383    13387       +4     
  Branches      1855     1857       +2     
===========================================
+ Hits          8779     8783       +4     
  Misses        4218     4218              
  Partials       386      386              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +622 to +624
result_count = PatientConsultation.objects.filter(
facility=facility, patient_no=patient_no
).count()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've had issue with readmissions using this validation
ohcnetwork/care_fe#7798

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