Counters adjustment and minor template update
This commit is contained in:
Binary file not shown.
@@ -1005,10 +1005,12 @@ def get_organization_counters(organization):
|
|||||||
organization_id = organization['id']
|
organization_id = organization['id']
|
||||||
stats = _get_organization_statistics(organization_id)
|
stats = _get_organization_statistics(organization_id)
|
||||||
|
|
||||||
organization["patients_count"] = stats.get("totalInclusions", 0)
|
|
||||||
organization["preincluded_count"] = stats.get("preIncluded", 0)
|
organization["preincluded_count"] = stats.get("preIncluded", 0)
|
||||||
organization["included_count"] = stats.get("included", 0)
|
organization["included_count"] = stats.get("included", 0)
|
||||||
organization["prematurely_terminated_count"] = stats.get("prematurelyTerminated", 0)
|
organization["prematurely_terminated_count"] = stats.get("prematurelyTerminated", 0)
|
||||||
|
organization["patients_count"] = (organization["preincluded_count"] +
|
||||||
|
organization["included_count"] +
|
||||||
|
organization["prematurely_terminated_count"])
|
||||||
return organization
|
return organization
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user