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
|
||||
# to prevent use of orphaned data.
|
||||
# (disable: comment out the block below)
|
||||
answers_patient = answers.get("subject") if isinstance(answers, dict) else None
|
||||
if not answers_patient or answers_patient != patient_id:
|
||||
answers = {}
|
||||
#answers_patient = answers.get("subject") if isinstance(answers, dict) else None
|
||||
#if not answers_patient or answers_patient != patient_id:
|
||||
# answers = {}
|
||||
# ────────────────────────────────────────────────────────────────────────
|
||||
|
||||
if q_id:
|
||||
|
||||
Reference in New Issue
Block a user