Compare commits
10 Commits
No-6-Month
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| bff3c6b947 | |||
| 739aae0357 | |||
| fd37fac283 | |||
| 2df128a4d7 | |||
| 9321a33c1b | |||
| c80f19c537 | |||
| f1761dce8c | |||
| 8ef3392e4d | |||
| c7b1e348a2 | |||
| aac259da42 |
Binary file not shown.
BIN
config/Endobest_Dashboard_Config-sav-260130-1615.xlsx
Normal file
BIN
config/Endobest_Dashboard_Config-sav-260130-1615.xlsx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
config/eb_dashboard_extended_template-sav-260130-1615.xlsx
Normal file
BIN
config/eb_dashboard_extended_template-sav-260130-1615.xlsx
Normal file
Binary file not shown.
Binary file not shown.
@@ -1135,8 +1135,9 @@ def _process_inclusion_data(inclusion, organization):
|
|||||||
output_inclusion = {}
|
output_inclusion = {}
|
||||||
|
|
||||||
# --- Prepare all data sources ---
|
# --- Prepare all data sources ---
|
||||||
# 1. 6-month visit loading disabled on this branch (No-6-Month-Visit)
|
# 1. Launch Visit Search asynchronously (it's slow, ~5s)
|
||||||
# visit_future = subtasks_thread_pool.submit(run_with_context, search_visit_by_pseudo_and_order, ctx, pseudo, 2)
|
# We use run_with_context to pass the patient identity to the new thread
|
||||||
|
visit_future = subtasks_thread_pool.submit(run_with_context, search_visit_by_pseudo_and_order, ctx, pseudo, 2)
|
||||||
|
|
||||||
# 2. Prepare inclusion_data: enrich inclusion with organization info
|
# 2. Prepare inclusion_data: enrich inclusion with organization info
|
||||||
inclusion_data = dict(inclusion)
|
inclusion_data = dict(inclusion)
|
||||||
@@ -1160,8 +1161,11 @@ def _process_inclusion_data(inclusion, organization):
|
|||||||
logging.error(f"Error fetching request data for patient {patient_id}: {e}")
|
logging.error(f"Error fetching request data for patient {patient_id}: {e}")
|
||||||
request_data = None
|
request_data = None
|
||||||
|
|
||||||
# 6-month visit loading disabled on this branch (No-6-Month-Visit)
|
try:
|
||||||
six_month_visit_data = None
|
six_month_visit_data = visit_future.result()
|
||||||
|
except Exception as e:
|
||||||
|
logging.error(f"Error searching 6-month visit for patient {pseudo}: {e}")
|
||||||
|
six_month_visit_data = None
|
||||||
|
|
||||||
# --- Process all fields from configuration ---
|
# --- Process all fields from configuration ---
|
||||||
process_inclusions_mapping(output_inclusion, inclusion_data, record_data, request_data, all_questionnaires, six_month_visit_data)
|
process_inclusions_mapping(output_inclusion, inclusion_data, record_data, request_data, all_questionnaires, six_month_visit_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user