Skip to content

Commit

Permalink
Patients searche by National ID with partial match
Browse files Browse the repository at this point in the history
Restoring change from previous commit that got deleted. Original commit: 3f60905
  • Loading branch information
paolo7 authored Apr 2, 2024
1 parent b690275 commit f30e7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmh_registry/registry/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def filter_search_term(self, queryset, name, value):
# pylint: disable=unsupported-binary-operation
queryset = queryset.filter(
Q(full_name__icontains=value)
| Q(national_id__iexact=value)
| Q(national_id__icontains=value)
| Q(id__in=patient_ids)
# pylint: enable=unsupported-binary-operation
)
Expand Down

0 comments on commit f30e7cd

Please sign in to comment.