This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmodel-output.ts
84 lines (69 loc) · 1.86 KB
/
model-output.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { ModelInput } from './model-input'
export interface ModelOutput {
metadata: ModelInput
time: {
/**
* An ISO-8601 string encoding the date that each timeseries begins.
*/
t0: string
/**
* The timestamps that correspond to every series of metrics.
* Each value is a number of days after `t0`.
*/
timestamps: number[]
/**
* The minimum and maximum timestamps for the series of reported metrics.
* Each value is a number of days after `t0`.
*/
extent: [number, number]
}
aggregate: {
metrics: SeverityMetrics
}
}
export interface SeverityMetrics {
/**
* Current number of mild cases on this day
*/
Mild: number[]
/**
* Current number of influenza-like illness cases on this day (assume represents GP demand)
*/
ILI: number[]
/**
* Current number of Severe Acute Respiratory Illness cases on this day (assume represents hospital demand)
*/
SARI: number[]
/**
* Current number of critical cases on this day (assume represents ICU demand)
*/
Critical: number[]
/**
* Current number of critical cases on this day who are well enough to leave the ICU but still need a hospital bed
*/
CritRecov: number[]
/**
* Number of deaths occurring on this day
*/
incDeath: number[]
/**
* Total number of mild cases since the beginning of the epidemic
*/
cumMild: number[]
/**
* Total number of influence-like illnesses since the beginning of the epidemic
*/
cumILI: number[]
/**
* Total number of severe acute respiratory illnesses since the beginning of the epidemic
*/
cumSARI: number[]
/**
* Total number of critical cases since the beginning of the epidemic
*/
cumCritical: number[]
/**
* Total number of patients recovered from critical cases since the beginning of the epidemic
*/
cumCritRecov: number[]
}