Skip to content

Commit

Permalink
added facility param for Sample Report filter (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apurva-Nagar authored Aug 31, 2021
1 parent e2b28d6 commit 07be6a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion care/facility/api/viewsets/patient_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.db.models.query_utils import Q
from django_filters import rest_framework as filters
from dry_rest_permissions.generics import DRYPermissionFiltersBase, DRYPermissions
from rest_framework import viewsets, mixins
from rest_framework import mixins, viewsets
from rest_framework.decorators import action
from rest_framework.exceptions import ValidationError
from rest_framework.permissions import IsAuthenticated
Expand Down Expand Up @@ -39,6 +39,7 @@ class PatientSampleFilterSet(filters.FilterSet):
status = filters.ChoiceFilter(choices=PatientSample.SAMPLE_TEST_FLOW_CHOICES)
result = filters.ChoiceFilter(choices=PatientSample.SAMPLE_TEST_RESULT_CHOICES)
patient_name = filters.CharFilter(field_name="patient__name", lookup_expr="icontains")
facility = filters.UUIDFilter(field_name="consultation__facility__external_id")


class PatientSampleViewSet(
Expand Down

0 comments on commit 07be6a7

Please sign in to comment.