-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
63 lines (59 loc) · 2.22 KB
/
types.go
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
package main
// CovidCase is a structure of Covid-19 cases
type CovidCase struct {
FechaActualizacion string `db:"FECHA_ACTUALIZACION"`
IDRegistro string `db:"ID_REGISTRO"`
Origen int `db:"ORIGEN"`
Sector int `db:"SECTOR"`
EntidadUm int `db:"ENTIDAD_UM"`
Sexo int `db:"SEXO"`
EntidadNac int `db:"ENTIDAD_NAC"`
EntidadRes int `db:"ENTIDAD_RES"`
MunicipioRes int `db:"MUNICIPIO_RES"`
TipoPaciente int `db:"TIPO_PACIENTE"`
FechaIngreso string `db:"FECHA_INGRESO"`
FechaSintomas string `db:"FECHA_SINTOMAS"`
FechaDefuncion string `db:"FECHA_DEF"`
Intubado int `db:"INTUBADO"`
Neumonia int `db:"NEUMONIA"`
Edad int `db:"EDAD"`
Nacionalidad int `db:"NACIONALIDAD"`
Embarazo int `db:"EMBARAZO"`
HablaLenguaIndig int `db:"HABLA_LENGUA_INDIG"`
Diabetes int `db:"DIABETES"`
Epoc int `db:"EPOC"`
Asma int `db:"ASMA"`
Inmusupr int `db:"INMUSUPR"`
Hipertension int `db:"HIPERTENSION"`
OtraCom int `db:"OTRA_COM"`
Cardiovascular int `db:"CARDIOVASCULAR"`
Obesidad int `db:"OBESIDAD"`
RenalCronica int `db:"RENAL_CRONICA"`
Tabaquismo int `db:"TABAQUISMO"`
OtroCaso int `db:"OTRO_CASO"`
Resultado int `db:"RESULTADO"`
Migrante int `db:"MIGRANTE"`
PaisNacionalidad string `db:"PAIS_NACIONALIDAD"`
PaisOrigen string `db:"PAIS_ORIGEN"`
Uci int `db:"UCI"`
}
type Stats struct {
Tested int `db:"total"`
Confirmed int `db:"confirmed"`
Dead int `db:"dead"`
}
type StateStat struct {
EntidadRes int `db:"ENTIDAD_RES"`
Confirmados int `db:"CONFIRMADOS"`
Fallecidos int `db:"FALLECIDOS"`
}
type DailyNewStat struct {
ID int `db:"id"`
FechaIngreso string `db:"fecha_ingreso"`
NewConfirmed int `db:"nuevos_confirmados"`
NewDead int `db:"nuevos_fallecidos"`
NewTested int `db:"nuevos_pruebas"`
Total int `db:"total_pruebas"`
Confirmed int `db:"total_confirmados"`
Dead int `db:"total_fallecidos"`
}