Skip to content

Commit

Permalink
Shifting Transfer API Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Sep 8, 2020
1 parent 07ff10c commit 7fec13c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions care/facility/api/viewsets/shifting.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ def transfer(self, request, *args, **kwargs):
patient.is_active = True
patient.allow_transfer = False
patient.save()
shifting_obj.status = 80
shifting_obj.save(update_fields=["status"])
return Response({"transfer": "completed"}, status=status.HTTP_200_OK)
return Response({"error": "Invalid Request"}, status=status.HTTP_400_BAD_REQUEST)

Expand Down

0 comments on commit 7fec13c

Please sign in to comment.