Skip to content

Commit

Permalink
Fix issue with encounter filter in questionnaire response
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 6, 2025
1 parent ffaea05 commit dda9e93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,3 @@ jobs:
service: ${{ env.ECS_SERVICE_BACKEND }}
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true


4 changes: 2 additions & 2 deletions care/emr/api/viewsets/questionnaire_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from rest_framework.generics import get_object_or_404

from care.emr.api.viewsets.base import EMRModelReadOnlyViewSet
from care.emr.models import Patient
from care.emr.models import Encounter, Patient
from care.emr.models.questionnaire import QuestionnaireResponse
from care.emr.resources.questionnaire_response.spec import QuestionnaireResponseReadSpec
from care.security.authorization import AuthorizationController
Expand Down Expand Up @@ -39,7 +39,7 @@ def get_queryset(self):
)
if "encounter" in self.request.GET:
encounter = get_object_or_404(
Patient, external_id=self.request.GET["encounter"]
Encounter, external_id=self.request.GET["encounter"]
)
else:
obj = get_object_or_404(QuestionnaireResponse, self.kwargs["external_id"])
Expand Down

0 comments on commit dda9e93

Please sign in to comment.