Skip to content

Commit

Permalink
Merge pull request #4490 from mikhailprivalov/fix_cda_data_gen
Browse files Browse the repository at this point in the history
fix get additional_data_doctor
  • Loading branch information
Wellheor1 authored Nov 26, 2024
2 parents f6f266e + abb1806 commit 3fdf56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_framework/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ def direction_data(request):

signed_documents.append(document)

doctor_direction_create = direction.doc.additional_info
additional_data_create_direction = None
if direction.doc.additional_info:
if direction.doc and direction.doc.additional_info:
doctor_direction_create = direction.doc.additional_info
if "{" in doctor_direction_create and "}" in doctor_direction_create:
try:
additional_data_create_direction = json.loads(doctor_direction_create)
Expand Down

0 comments on commit 3fdf56e

Please sign in to comment.