This repository was 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-input.ts
79 lines (66 loc) · 1.8 KB
/
model-input.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
/**
* A generalized description of the input to an epidemiological model.
*/
export interface ModelInput {
region: string
subregion?: string
parameters: ModelParameters
}
export interface ModelParameters {
/**
* An ISO-8601 string encoding the date of the most recent case data in the region.
*/
calibrationDate: ISODate
/**
* The total number of confirmed cases in the region before the calibration date.
*/
calibrationCaseCount: number
/**
* The total number of deaths in the region before the calibration date.
*/
calibrationDeathCount: number
/**
* The assumed reproduction number for the virus. If this is null, then each
* model will use its own default value.
*/
r0: number | null
/**
* A list of time periods, each with a different set of interventions.
*/
interventionPeriods: InterventionPeriod[]
}
export interface InterventionPeriod {
/**
* An ISO-8601 string encoding the date that these interventions begin.
*/
startDate: ISODate
/**
* The level of social distancing in the region.
*/
socialDistancing?: Intensity
/**
* The level of school closure in the region.
*/
schoolClosure?: Intensity
/**
* The level to which individuals with symptoms self-isolate.
*/
caseIsolation?: Intensity
/**
* The level to which entire households self-isolate when one member
* of the household has symptoms.
*/
voluntaryHomeQuarantine?: Intensity
/**
* The estimated reduction in population contact resulting from
* all of the above interventions. Some models require this generalized
* parameter instead of the individual interventions.
*/
reductionPopulationContact: number
}
export type ISODate = string
export enum Intensity {
Mild = 'mild',
Moderate = 'moderate',
Aggressive = 'aggressive',
}