Skip to content

Commit

Permalink
Added patient filter for Shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jul 24, 2020
1 parent 483d5f4 commit a77db38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions care/facility/api/viewsets/shifting.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def filter_queryset(self, request, queryset, view):
class ShiftingFilterSet(filters.FilterSet):
status = filters.ChoiceFilter(choices=ShiftingRequest.STATUS_CHOICES)
facility = filters.UUIDFilter(field_name="facility__external_id")
patient = filters.UUIDFilter(field_name="patient__external_id")
orgin_facility = filters.UUIDFilter(field_name="orgin_facility__external_id")
shifting_approving_facility = filters.UUIDFilter(field_name="shifting_approving_facility__external_id")
assigned_facility = filters.UUIDFilter(field_name="assigned_facility__external_id")
Expand Down

0 comments on commit a77db38

Please sign in to comment.