-
Notifications
You must be signed in to change notification settings - Fork 1
/
generate_default_values.py
97 lines (74 loc) · 2.75 KB
/
generate_default_values.py
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
85
86
87
88
89
90
91
92
93
94
95
96
97
from oncologia import app
from oncologia.extensions.database import db
from oncologia.extensions.models import EntryPoin, EntryTeam, ExamType, TumorGroup
with app.test_request_context():
print("Inserting exam types...")
exam_types = [
ExamType(name="Anatomopatológico"),
ExamType(name="Imunohistoquímica"),
ExamType(name="Imagem"),
ExamType(name="Outros"),
]
db.session.add_all(exam_types)
db.session.commit()
print('Inserting entry poins...')
entry_poins = [
EntryPoin(name="Ambulatório"),
EntryPoin(name="Emergência HCR"),
EntryPoin(name="Emergência HNSC"),
EntryPoin(name="Emergência HF"),
EntryPoin(name="Emergência UPA MS"),
EntryPoin(name="Transferência"),
]
db.session.add_all(entry_poins)
db.session.commit()
print('Inserting entry teams...')
entry_teams = [
EntryTeam(name="Cuidados paliativos"),
EntryTeam(name="Otorrinolaringologia"),
EntryTeam(name="Cardiologia"),
EntryTeam(name="Cirurgia Vascular"),
EntryTeam(name="Gastroenterologia"),
EntryTeam(name="Cirurgia oncológica"),
EntryTeam(name="Oncologia clínica"),
EntryTeam(name="Mastologia"),
EntryTeam(name="Ginecologia"),
EntryTeam(name="Urologia"),
EntryTeam(name="Cirurgia Torácica"),
EntryTeam(name="Pneumologia"),
EntryTeam(name="Radiologia Intervencionista"),
EntryTeam(name="Dermatologia"),
EntryTeam(name="Odontologia"),
EntryTeam(name="Oftalmologia"),
EntryTeam(name="Hematologia"),
EntryTeam(name="Neurocirurgia"),
EntryTeam(name="Neurologia"),
EntryTeam(name="Endocrinologia"),
EntryTeam(name="Proctologia"),
EntryTeam(name="Cirurgia do aparelho digestivo"),
EntryTeam(name="Cirurgia Plástica"),
EntryTeam(name="Medicina interna"),
EntryTeam(name="Infectologia"),
]
db.session.add_all(entry_teams)
db.session.commit()
print('Inserting tumor groups...')
tumor_groups = [
TumorGroup(name="Cabeça e Pescoço"),
TumorGroup(name="Colorretal"),
TumorGroup(name="Cutâneo"),
TumorGroup(name="Digestivo alto"),
TumorGroup(name="Endocrinológico"),
TumorGroup(name="Ginecológico"),
TumorGroup(name="Hematológico"),
TumorGroup(name="Hepato-Pancreato-Biliar"),
TumorGroup(name="Mama"),
TumorGroup(name="Pulmão e Tórax"),
TumorGroup(name="Sarcoma"),
TumorGroup(name="SNC"),
TumorGroup(name="Urológico"),
TumorGroup(name="Sincrônico"),
TumorGroup(name="Oftalmológico"),
]
db.session.add_all(tumor_groups)
db.session.commit()