Skip to content

Commit

Permalink
Merge pull request #296 from rcpch/anchit/refactor-kpi-calcs-to-use-s…
Browse files Browse the repository at this point in the history
…hared-denoms

Anchit/refactor-kpi-calcs-to-use-shared-denoms
  • Loading branch information
anchit-chandran authored Oct 5, 2024
2 parents d4a2f37 + 0b001aa commit 1f7df4b
Show file tree
Hide file tree
Showing 7 changed files with 268 additions and 180 deletions.
17 changes: 16 additions & 1 deletion project/constants/types/kpi_types.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
# Object types
from dataclasses import dataclass
from datetime import date, datetime
from typing import Dict, Union


@dataclass
class KPIResult:
total_eligible: int
total_ineligible: int
total_passed: int
total_failed: int
total_failed: int


@dataclass
class KPICalculationsObject:
pz_code: str
calculation_datetime: datetime
audit_start_date: date
audit_end_date: date
total_patients_count: int
calculated_kpi_values: Dict[
str,
Union[KPIResult, str],
] # looks like { 'kpi_name' : KPIResult OR "Not implemented"}
Loading

0 comments on commit 1f7df4b

Please sign in to comment.