diff --git a/config/eb_dashboard_extended_template.xlsx b/config/eb_dashboard_extended_template.xlsx index e5451ec..eabe845 100644 Binary files a/config/eb_dashboard_extended_template.xlsx and b/config/eb_dashboard_extended_template.xlsx differ diff --git a/eb_dashboard.py b/eb_dashboard.py index 9875b8e..64b201d 100644 --- a/eb_dashboard.py +++ b/eb_dashboard.py @@ -1005,10 +1005,12 @@ def get_organization_counters(organization): organization_id = organization['id'] stats = _get_organization_statistics(organization_id) - organization["patients_count"] = stats.get("totalInclusions", 0) organization["preincluded_count"] = stats.get("preIncluded", 0) organization["included_count"] = stats.get("included", 0) organization["prematurely_terminated_count"] = stats.get("prematurelyTerminated", 0) + organization["patients_count"] = (organization["preincluded_count"] + + organization["included_count"] + + organization["prematurely_terminated_count"]) return organization