generated from EyeSeeTea/dhis2-app-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Alerts Performance overview table
- Loading branch information
Showing
22 changed files
with
891 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/data/repositories/consts/AlertsPerformanceOverviewConstants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Id } from "../../../domain/entities/Ref"; | ||
|
||
export type AlertsPerformanceOverviewDimensions = { | ||
teiId: "tei"; | ||
eventEBSId: Id; | ||
eventIBSId: Id; | ||
nationalDiseaseOutbreakEventId: Id; | ||
hazardType: Id; | ||
suspectedDisease: Id; | ||
orgUnit: "ouname"; | ||
orgUnitHierarchy: "ounamehierarchy"; | ||
cases: Id; | ||
deaths: Id; | ||
date: "enrollmentdate"; | ||
notify1d: Id; | ||
detect7d: Id; | ||
incidentManager: Id; | ||
respond7d: Id; | ||
incidentStatus: Id; | ||
}; | ||
|
||
export type AlertsPerformanceOverviewDimensionsKey = keyof AlertsPerformanceOverviewDimensions; | ||
|
||
export type AlertsPerformanceOverviewDimensionsValue = | ||
AlertsPerformanceOverviewDimensions[AlertsPerformanceOverviewDimensionsKey]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import { CodedNamedRef } from "./Ref"; | ||
|
||
export type OrgUnitLevelType = "National" | "Province" | "District"; | ||
export type OrgUnitLevelType = "National" | "Province" | "District" | "Health Facility"; | ||
|
||
export type OrgUnit = CodedNamedRef & { | ||
level: OrgUnitLevelType; | ||
}; | ||
|
||
export const orgUnitLevelTypeByLevelNumber: Record<number, OrgUnitLevelType> = { | ||
1: "National", | ||
2: "Province", | ||
3: "District", | ||
4: "Health Facility", | ||
}; |
Oops, something went wrong.