Skip to content

Commit

Permalink
Exact patient no. in filters (#2136)
Browse files Browse the repository at this point in the history
exact patient no for search
  • Loading branch information
shivankacker authored May 8, 2024
1 parent cf6902b commit 059b8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion care/facility/api/viewsets/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class PatientFilterSet(filters.FilterSet):
allow_transfer = filters.BooleanFilter(field_name="allow_transfer")
name = filters.CharFilter(field_name="name", lookup_expr="icontains")
patient_no = filters.CharFilter(
field_name="last_consultation__patient_no", lookup_expr="icontains"
field_name="last_consultation__patient_no", lookup_expr="iexact"
)
gender = filters.NumberFilter(field_name="gender")
age = filters.NumberFilter(field_name="age")
Expand Down

0 comments on commit 059b8ef

Please sign in to comment.