Rollback ignore unlinked answers
This commit is contained in:
@@ -1238,9 +1238,9 @@ def get_all_questionnaires_by_patient(patient_id, record_data):
|
|||||||
# patient_id, the questionnaire is considered unlinked → clear answers
|
# patient_id, the questionnaire is considered unlinked → clear answers
|
||||||
# to prevent use of orphaned data.
|
# to prevent use of orphaned data.
|
||||||
# (disable: comment out the block below)
|
# (disable: comment out the block below)
|
||||||
answers_patient = answers.get("subject") if isinstance(answers, dict) else None
|
#answers_patient = answers.get("subject") if isinstance(answers, dict) else None
|
||||||
if not answers_patient or answers_patient != patient_id:
|
#if not answers_patient or answers_patient != patient_id:
|
||||||
answers = {}
|
# answers = {}
|
||||||
# ────────────────────────────────────────────────────────────────────────
|
# ────────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
if q_id:
|
if q_id:
|
||||||
|
|||||||
Reference in New Issue
Block a user