Skip to content

Commit

Permalink
Fix questionnaire submit
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 2, 2025
1 parent 954ddca commit c027cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion care/emr/api/viewsets/questionnaire.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def submit(self, request, *args, **kwargs):
request_params = QuestionnaireSubmitRequest(**request.data)
questionnaire = self.get_object()
patient = get_object_or_404(Patient, external_id=request_params.patient)
if questionnaire.encounter:
if request_params.encounter:
encounter = get_object_or_404(
Encounter, external_id=request_params.encounter, patient=patient
)
Expand Down

0 comments on commit c027cde

Please sign in to comment.