LeireTedCas commited on
Commit
61fb884
1 Parent(s): ef7b55c

Upload 32 files

Browse files
app.py ADDED
@@ -0,0 +1,898 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask ,render_template ,request ,jsonify #line:1
2
+ import pandas as pd #line:2
3
+ import numpy as np #line:3
4
+ import xlrd2 as xlrd #line:4
5
+ import unicodedata #line:5
6
+ import spacy #line:6
7
+ import inflect #line:7
8
+ nlp =spacy .load ("es_dep_news_trf")#line:8
9
+ from inflector import Inflector ,Spanish #line:9
10
+ inflector =Inflector (Spanish )#line:10
11
+ import speech_recognition as sr #line:11
12
+ import os #line:12
13
+ import requests #line:13
14
+ from requests .auth import HTTPBasicAuth #line:14
15
+ import asyncio #line:15
16
+ import aiohttp #line:16
17
+ auth =aiohttp .BasicAuth ('1234','API')#line:18
18
+ base_url ='https://orva.tedcas.com/api/'#line:19
19
+ async def buscar_faq (O0000O0OO000000OO ,O0OOO0OO0O00O00O0 ):#line:21
20
+ OO00O0O00OOO0O000 ="C:/Users/leire/OneDrive/Escritorio/MASTER ING. BIOMEDICA/3. CUATRI/TEDCAS/Quirohelp/preguntas_qh_tags2.xlsx"#line:22
21
+ O00OOOO000OOO00O0 =pd .read_excel (OO00O0O00OOO0O000 ,engine ="openpyxl")#line:23
22
+ O00000OO00000000O =0 #line:24
23
+ OO0O0OOOO0OO00OO0 =O0000O0OO000000OO #line:25
24
+ O0000OOOO0OO00O00 =[]#line:26
25
+ print ("result"+str (OO0O0OOOO0OO00OO0 ))#line:27
26
+ for OO0O0OOOOO0O0O0O0 ,O0OOOO000O0O000O0 in O00OOOO000OOO00O0 .iterrows ():#line:28
27
+ OOOOO00O00OO0O0OO =O00OOOO000OOO00O0 .loc [OO0O0OOOOO0O0O0O0 ,'TAGS2']#line:29
28
+ OOOOO00O00OO0O0OO =OOOOO00O00OO0O0OO .split (",")#line:30
29
+ O0000OOOO0OO00O00 .append (OOOOO00O00OO0O0OO )#line:31
30
+ OOO00O0OOOO00OO00 =[]#line:32
31
+ OOOOO00O00OO0O0OO =[]#line:33
32
+ for O0O000OO00O000O00 ,O000OOO0000OOO0OO in enumerate (OO0O0OOOO0OO00OO0 ):#line:34
33
+ OO0O0OOOO0OO00OO0 [O0O000OO00O000O00 ]=inflector .singularize (str (O000OOO0000OOO0OO ))#line:35
34
+ OO00O00OO00O00OOO =np .zeros (len (O00OOOO000OOO00O0 .index ),dtype =int )#line:36
35
+ for OOOO00O0000000O00 ,O0OOOO000O0O000O0 in enumerate (O0000OOOO0OO00O00 ):#line:37
36
+ OO0OOO0O0OOOOOO0O =[]#line:38
37
+ for O000OOO0000OOO0OO in O0OOOO000O0O000O0 :#line:39
38
+ if O0OOO0OO0O00O00O0 ==0 :#line:40
39
+ if O000OOO0000OOO0OO !=[]:#line:41
40
+ O00000OO00000000O =0 #line:42
41
+ for O00O00OO0O0O0O0O0 in range (100 ):#line:43
42
+ O00O00OO0O0O0O0O0 =O00O00OO0O0O0O0O0 /10 #line:44
43
+ O00O00OO0O0O0O0O0 =str (O00O00OO0O0O0O0O0 )#line:45
44
+ if O000OOO0000OOO0OO ==O00O00OO0O0O0O0O0 :#line:46
45
+ O00O00OO0O0O0O0O0 =O00O00OO0O0O0O0O0 .split (".")#line:47
46
+ OO0OOO0O0OOOOOO0O .append (O00O00OO0O0O0O0O0 [0 ])#line:48
47
+ OO0OOO0O0OOOOOO0O .append ("con")#line:49
48
+ OO0OOO0O0OOOOOO0O .append (O00O00OO0O0O0O0O0 [1 ])#line:50
49
+ O00000OO00000000O =O00000OO00000000O +1 #line:51
50
+ if O00000OO00000000O ==0 :#line:52
51
+ OO0OOO0O0OOOOOO0O .append (O000OOO0000OOO0OO )#line:53
52
+ if O0OOO0OO0O00O00O0 ==1 :#line:54
53
+ OO0OOO0O0OOOOOO0O .append (O000OOO0000OOO0OO )#line:55
54
+ OOO00O0OOOO00OO00 .append (OO0OOO0O0OOOOOO0O )#line:56
55
+ for OOOO0OOOO0OO0O0OO in OO0O0OOOO0OO00OO0 :#line:57
56
+ for O00OOOOO0000O0000 ,O000OOO0000OOO0OO in enumerate (OOO00O0OOOO00OO00 [OOOO00O0000000O00 ]):#line:58
57
+ if str (OOOO0OOOO0OO0O0OO )=="maya":#line:59
58
+ OOOO0OOOO0OO0O0OO ="malla"#line:60
59
+ if str (OOOO0OOOO0OO0O0OO )=="pilos"or str (OOOO0OOOO0OO0O0OO )=="pilo":#line:61
60
+ OOOO0OOOO0OO0O0OO ="philo"#line:62
61
+ if str (OOOO0OOOO0OO0O0OO )=="filos"or str (OOOO0OOOO0OO0O0OO )=="filo":#line:63
62
+ OOOO0OOOO0OO0O0OO ="philo"#line:64
63
+ if str (OOOO0OOOO0OO0O0OO )=="sinces"or str (OOOO0OOOO0OO0O0OO )=="sinc":#line:65
64
+ OOOO0OOOO0OO0O0OO ="synthe"#line:66
65
+ if str (OOOO0OOOO0OO0O0OO )=="sintes"or str (OOOO0OOOO0OO0O0OO )=="sint":#line:67
66
+ OOOO0OOOO0OO0O0OO ="synthe"#line:68
67
+ if str (OOOO0OOOO0OO0O0OO )=="axos"or str (OOOO0OOOO0OO0O0OO )=="axo":#line:69
68
+ OOOO0OOOO0OO0O0OO ="axso"#line:70
69
+ if str (OOOO0OOOO0OO0O0OO )=="uno":#line:71
70
+ OOOO0OOOO0OO0O0OO ="1"#line:72
71
+ if str (OOOO0OOOO0OO0O0OO )=="dos"or str (OOOO0OOOO0OO0O0OO )=="do":#line:73
72
+ OOOO0OOOO0OO0O0OO ="2"#line:74
73
+ if str (OOOO0OOOO0OO0O0OO )=="tres"or str (OOOO0OOOO0OO0O0OO )=="tr":#line:75
74
+ OOOO0OOOO0OO0O0OO ="3"#line:76
75
+ if str (OOOO0OOOO0OO0O0OO )=="cuatro":#line:77
76
+ OOOO0OOOO0OO0O0OO ="4"#line:78
77
+ if str (OOOO0OOOO0OO0O0OO )=="cinco":#line:79
78
+ OOOO0OOOO0OO0O0OO ="5"#line:80
79
+ if str (OOOO0OOOO0OO0O0OO )=="seis"or str (OOOO0OOOO0OO0O0OO )=="sei":#line:81
80
+ OOOO0OOOO0OO0O0OO ="6"#line:82
81
+ if str (OOOO0OOOO0OO0O0OO )=="siete":#line:83
82
+ OOOO0OOOO0OO0O0OO ="7"#line:84
83
+ if str (OOOO0OOOO0OO0O0OO )=="ocho":#line:85
84
+ OOOO0OOOO0OO0O0OO ="8"#line:86
85
+ if str (OOOO0OOOO0OO0O0OO )=="nueve":#line:87
86
+ OOOO0OOOO0OO0O0OO ="9"#line:88
87
+ if str (OOOO0OOOO0OO0O0OO )=="cero":#line:89
88
+ OOOO0OOOO0OO0O0OO ="0"#line:90
89
+ if str (OOOO0OOOO0OO0O0OO )=="veintiuno":#line:91
90
+ OOOO0OOOO0OO0O0OO ="21"#line:92
91
+ if str (OOOO0OOOO0OO0O0OO )=="veinte":#line:93
92
+ OOOO0OOOO0OO0O0OO ="20"#line:94
93
+ if str (OOOO0OOOO0OO0O0OO )=="veintidos"or str (OOOO0OOOO0OO0O0OO )=="veintido":#line:95
94
+ OOOO0OOOO0OO0O0OO ="22"#line:96
95
+ if str (OOOO0OOOO0OO0O0OO )=="veintitres"or str (OOOO0OOOO0OO0O0OO )=="veintitre":#line:97
96
+ OOOO0OOOO0OO0O0OO ="23"#line:98
97
+ if str (OOOO0OOOO0OO0O0OO )=="veinticuatro":#line:99
98
+ OOOO0OOOO0OO0O0OO ="24"#line:100
99
+ if str (OOOO0OOOO0OO0O0OO )=="veinticinco":#line:101
100
+ OOOO0OOOO0OO0O0OO ="25"#line:102
101
+ if str (OOOO0OOOO0OO0O0OO )=="veintiseis"or str (OOOO0OOOO0OO0O0OO )=="veintisei":#line:103
102
+ OOOO0OOOO0OO0O0OO ="26"#line:104
103
+ if str (OOOO0OOOO0OO0O0OO )=="veintisiete":#line:105
104
+ OOOO0OOOO0OO0O0OO ="27"#line:106
105
+ if str (OOOO0OOOO0OO0O0OO )=="veintiocho":#line:107
106
+ OOOO0OOOO0OO0O0OO ="28"#line:108
107
+ if str (OOOO0OOOO0OO0O0OO )=="veintinueve":#line:109
108
+ OOOO0OOOO0OO0O0OO ="29"#line:110
109
+ if str (OOOO0OOOO0OO0O0OO )=="treinta":#line:111
110
+ OOOO0OOOO0OO0O0OO ="30"#line:112
111
+ if str (remove_accents (O000OOO0000OOO0OO )).lower ()==str (remove_accents (OOOO0OOOO0OO0O0OO )).lower ():#line:113
112
+ OO00O00OO00O00OOO [OOOO00O0000000O00 ]=OO00O00OO00O00OOO [OOOO00O0000000O00 ]+1 #line:114
113
+ OOO00O0OOOO00OO00 [OOOO00O0000000O00 ].pop (O00OOOOO0000O0000 )#line:115
114
+ O00O00000000OOO0O =np .argwhere (OO00O00OO00O00OOO ==np .amax (OO00O00OO00O00OOO ))#line:117
115
+ OOOO0000OOO0OO00O =[]#line:118
116
+ OOO0OO000OO0O0OOO ={}#line:119
117
+ O00OOOO000OOO00O0 =xlrd .open_workbook (OO00O0O00OOO0O000 )#line:120
118
+ O00OOOO000OOO00O0 =O00OOOO000OOO00O0 .sheet_by_index (0 )#line:121
119
+ if not np .all (OO00O00OO00O00OOO ==0 ):#line:122
120
+ for O0O0OOOO00OOO0O00 in O00O00000000OOO0O :#line:123
121
+ OO000O0O0O000OO0O =O00OOOO000OOO00O0 .cell (int (O0O0OOOO00OOO0O00 )+1 ,3 )#line:124
122
+ O00O0000OO0000O0O =O00OOOO000OOO00O0 .cell (int (O0O0OOOO00OOO0O00 )+1 ,4 )#line:125
123
+ OO000O0O0O000OO0O =str (OO000O0O0O000OO0O )#line:126
124
+ O00O0000OO0000O0O =str (O00O0000OO0000O0O )#line:127
125
+ OO000O0O0O000OO0O =OO000O0O0O000OO0O .split ("'")#line:128
126
+ O00O0000OO0000O0O =O00O0000OO0000O0O .split ("'")#line:129
127
+ OOOO0000OOO0OO00O .append (f" {OO000O0O0O000OO0O[1]} {O00O0000OO0000O0O[1]} ")#line:130
128
+ return OOOO0000OOO0OO00O #line:131
129
+ async def boton_pdf_video (OO0OO0OOO0O0O0OO0 ,OO00O00O00000OO00 ,O00OO0O000OO0OO0O ):#line:133
130
+ O00O0OOOOO0OO0O00 =aiohttp .TCPConnector (ssl =True )#line:134
131
+ async with aiohttp .ClientSession (connector =O00O0OOOOO0OO0O00 )as O0O0OOOO00O000O00 :#line:135
132
+ O0O00000OO0OOO000 =await O0O0OOOO00O000O00 .get (f'{base_url}all-content/{OO0OO0OOO0O0O0OO0}',auth =auth )#line:136
133
+ O0OOOO000000O00OO =await O0O00000OO0OOO000 .json ()#line:137
134
+ OO0O0000O0O0OO0OO =[]#line:139
135
+ OOOO0OO00O000O000 ={}#line:140
136
+ if O00OO0O000OO0OO0O =="0":#line:142
137
+ for OO00OOO000OO0000O in O0OOOO000000O00OO :#line:143
138
+ if OO00OOO000OO0000O ['type']=="Intervencion":#line:144
139
+ OO0O0000O0O0OO0OO .append (OO00OOO000OO0000O ['nid'])#line:145
140
+ else :#line:146
141
+ OO0O0000O0O0OO0OO .append (O00OO0O000OO0OO0O )#line:147
142
+ for OO0OOO0000O000000 in OO0O0000O0O0OO0OO :#line:149
143
+ OO0O00O00O00OOO0O =await O0O0OOOO00O000O00 .get (f'{base_url}intervenciones/{OO0OOO0000O000000}',auth =auth )#line:150
144
+ O0OOO0OOO0O000000 =await OO0O00O00O00OOO0O .json ()#line:151
145
+ O0OOO0OOO0O000000 =O0OOO0OOO0O000000 [0 ]#line:152
146
+ O0O0OO0OOOOO0000O ={}#line:153
147
+ if OO00O00O00000OO00 in O0OOO0OOO0O000000 :#line:155
148
+ OO00000OO00OO0O0O =O0OOO0OOO0O000000 [OO00O00O00000OO00 ]#line:156
149
+ for OOO0OO00O0O00OOO0 in OO00000OO00OO0O0O :#line:157
150
+ if OO00O00O00000OO00 =='field_pdf':#line:158
151
+ O0O0OO0OOOOO0000O [OOO0OO00O0O00OOO0 ['descripcion']]="https://orva.tedcas.com/"+str (OOO0OO00O0O00OOO0 ['url'])#line:159
152
+ if OO00O00O00000OO00 =='field_video':#line:160
153
+ O0O0OO0OOOOO0000O [OOO0OO00O0O00OOO0 ['descripcion']]=str (OOO0OO00O0O00OOO0 ['url'])#line:161
154
+ OOOO0OO00O000O000 [O0OOO0OOO0O000000 ['title']]=O0O0OO0OOOOO0000O #line:163
155
+ else :#line:164
156
+ if O00OO0O000OO0OO0O =='0':#line:165
157
+ O00OO0O000OO0OO0O ='0'#line:166
158
+ else :#line:167
159
+ print ("nid dentro del if "+str (O00OO0O000OO0OO0O ))#line:168
160
+ O0O0OO0OOOOO0000O ["No hay archivos"]=""#line:169
161
+ OOOO0OO00O000O000 ["No hay archivos"]=O0O0OO0OOOOO0000O #line:170
162
+ return OOOO0OO00O000O000 #line:172
163
+ async def boton_word_ppt (O0OOO00OOO0000O00 ,OOO0OO00O0O0OOO0O ,OO0OO0OO0O00000OO ):#line:174
164
+ OOOO000O0OO0OO000 =aiohttp .TCPConnector (ssl =True )#line:175
165
+ async with aiohttp .ClientSession (connector =OOOO000O0OO0OO000 )as OO0000000O000O00O :#line:176
166
+ OOOOOOO00OOO0O0OO =await OO0000000O000O00O .get (f'{base_url}all-content/{O0OOO00OOO0000O00}',auth =auth )#line:177
167
+ O0O0OOO0O00O0O000 =await OOOOOOO00OOO0O0OO .json ()#line:178
168
+ O0000OO00O000O000 =[]#line:180
169
+ OO0OOO0O0OOOOO0OO ={}#line:181
170
+ if OO0OO0OO0O00000OO =='0':#line:183
171
+ for OO0OOOOOOOOOO00OO in O0O0OOO0O00O0O000 :#line:184
172
+ if OO0OOOOOOOOOO00OO ['type']=="Intervencion":#line:185
173
+ O0000OO00O000O000 .append (OO0OOOOOOOOOO00OO ['nid'])#line:186
174
+ else :#line:187
175
+ O0000OO00O000O000 .append (OO0OO0OO0O00000OO )#line:188
176
+ for OOO0OOO000O000OO0 in O0000OO00O000O000 :#line:190
177
+ O00O000OOOOOOO00O =await OO0000000O000O00O .get (f'{base_url}intervenciones/{OOO0OOO000O000OO0}',auth =auth )#line:191
178
+ OOO0O0OOOOOO00O00 =await O00O000OOOOOOO00O .json ()#line:192
179
+ OOO0O0OOOOOO00O00 =OOO0O0OOOOOO00O00 [0 ]#line:193
180
+ if len (OOO0O0OOOOOO00O00 [OOO0OO00O0O0OOO0O ])!=0 :#line:194
181
+ OO0OOO0O0OOOOO0OO [OOO0O0OOOOOO00O00 ['title']]="https://orva.tedcas.com/"+str (OOO0O0OOOOOO00O00 [OOO0OO00O0O0OOO0O ])#line:195
182
+ if len (OOO0O0OOOOOO00O00 [OOO0OO00O0O0OOO0O ])==0 and OO0OO0OO0O00000OO !='0':#line:196
183
+ OO0OOO0O0OOOOO0OO ["No hay archivos"]=""#line:197
184
+ return OO0OOO0O0OOOOO0OO #line:199
185
+ async def boton_materiales (O00O000OO0O00O000 ,O00OO0OOO00O000OO ):#line:201
186
+ O0O0O0OOOOOOO0O0O =aiohttp .TCPConnector (ssl =True )#line:202
187
+ async with aiohttp .ClientSession (connector =O0O0O0OOOOOOO0O0O )as O0O0OO000O0O00O0O :#line:203
188
+ OOO0OO0O000O0OO00 ={}#line:204
189
+ if O00OO0OOO00O000OO =='0':#line:206
190
+ O0OO000OOO0OO0OOO =await O0O0OO000O0O00O0O .get (f'{base_url}listado_completo_cajas/{O00O000OO0O00O000}',auth =auth )#line:207
191
+ O00O00OO00O0000O0 =await O0OO000OOO0OO0OOO .json ()#line:208
192
+ for OO0OO0OOOOOO0OO00 in O00O00OO00O0000O0 :#line:209
193
+ OOO0OO0O000O0OO00 [OO0OO0OOOOOO0OO00 ['title']]=OO0OO0OOOOOO0OO00 ['nid']#line:210
194
+ OOO0OO0O000O0OO00 ['']="si hay"#line:211
195
+ else :#line:212
196
+ O0OO000OOO0OO0OOO =await O0O0OO000O0O00O0O .get (f'{base_url}intervenciones/{O00OO0OOO00O000OO}',auth =auth )#line:213
197
+ O00O00OO00O0000O0 =await O0OO000OOO0OO0OOO .json ()#line:214
198
+ O00O00OO00O0000O0 =O00O00OO00O0000O0 [0 ]#line:215
199
+ if 'field_cajas'in O00O00OO00O0000O0 :#line:216
200
+ O00O00OO00O0000O0 =O00O00OO00O0000O0 ['field_cajas']#line:217
201
+ for OO0OO0OOOOOO0OO00 in O00O00OO00O0000O0 :#line:218
202
+ OOO0OO0O000O0OO00 [OO0OO0OOOOOO0OO00 ['caja']]=OO0OO0OOOOOO0OO00 ['id']#line:219
203
+ OOO0OO0O000O0OO00 ['']="si hay"#line:220
204
+ else :#line:221
205
+ if O00OO0OOO00O000OO !=0 :#line:222
206
+ OOO0OO0O000O0OO00 ['']=""#line:223
207
+ return OOO0OO0O000O0OO00 #line:224
208
+ async def cargar_base_datos (OOOOO0O0O0O0O0O00 ,OO00O0OO0O0O00O00 ):#line:226
209
+ O00O0OOOO0O0O00OO =None #line:227
210
+ OO0O00OO000O0O0O0 =[]#line:228
211
+ O000O0O00O0O0OO00 =aiohttp .TCPConnector (ssl =True )#line:229
212
+ async with aiohttp .ClientSession (connector =O000O0O00O0O0OO00 )as O00OO0OO00O0OO00O :#line:230
213
+ O0O00OOOO0000OOOO =await O00OO0OO00O0OO00O .get ('https://orva.tedcas.com/api/all-content/'+str (OO00O0OO0O0O00O00 ),auth =auth )#line:231
214
+ O000O0O0OO0000000 =await O0O00OOOO0000OOOO .json ()#line:232
215
+ OO00OO0OO0OO00OO0 =np .zeros (len (O000O0O0OO0000000 ),dtype =int )#line:233
216
+ OOO0OO00O0OOOOO00 =[]#line:234
217
+ for O0OO0O0000OOOOOO0 in OOOOO0O0O0O0O0O00 :#line:235
218
+ O0O0O0OO0OO000OO0 =0 #line:236
219
+ for O0000OO00O0O000O0 in range (100 ):#line:237
220
+ O0000OO00O0O000O0 =O0000OO00O0O000O0 /10 #line:238
221
+ if O0OO0O0000OOOOOO0 ==str (O0000OO00O0O000O0 ):#line:239
222
+ O0OO0O0000OOOOOO0 =str (O0000OO00O0O000O0 ).split ('.')#line:240
223
+ OOO0OO00O0OOOOO00 .append (O0OO0O0000OOOOOO0 )#line:241
224
+ O0O0O0OO0OO000OO0 =O0O0O0OO0OO000OO0 +1 #line:242
225
+ if O0OO0O0000OOOOOO0 =='con':#line:243
226
+ O0O0O0OO0OO000OO0 =O0O0O0OO0OO000OO0 +1 #line:244
227
+ if O0O0O0OO0OO000OO0 ==0 :#line:245
228
+ OOO0OO00O0OOOOO00 .append (O0OO0O0000OOOOOO0 )#line:246
229
+ for O0OOO0OOO0O000O00 in range (len (O000O0O0OO0000000 )):#line:247
230
+ O0OOOO000000O0OOO =0 #line:248
231
+ OOOO000OO0O00O0O0 =O000O0O0OO0000000 [O0OOO0OOO0O000O00 ]#line:249
232
+ OOOO0O0O0000OOOOO =str (OOOO000OO0O00O0O0 ['title']).lower ()#line:250
233
+ OOOO0O0O0000OOOOO =remove_accents (OOOO0O0O0000OOOOO )#line:251
234
+ OOOO0O0O0000OOOOO =OOOO0O0O0000OOOOO .split (' ')#line:252
235
+ for OOOO0O0OO000O0OO0 ,OO0O000O00000OOO0 in enumerate (OOOO0O0O0000OOOOO ):#line:253
236
+ for OOOO00OOOOO0OOOOO ,O0OOO00O00OO000O0 in enumerate (OOOO0O0O0000OOOOO ):#line:254
237
+ if OOOO00OOOOO0OOOOO !=OOOO0O0OO000O0OO0 :#line:255
238
+ if OO0O000O00000OOO0 ==O0OOO00O00OO000O0 :#line:256
239
+ OOOO0O0O0000OOOOO .pop (OOOO00OOOOO0OOOOO )#line:257
240
+ for OOOO0O0OO000O0OO0 ,OO0O000O00000OOO0 in enumerate (OOOO0O0O0000OOOOO ):#line:258
241
+ for O0000OO00O0O000O0 in range (100 ):#line:259
242
+ O0000OO00O0O000O0 =O0000OO00O0O000O0 /10 #line:260
243
+ if OO0O000O00000OOO0 ==str (O0000OO00O0O000O0 ):#line:261
244
+ OO0O000O00000OOO0 =str (O0000OO00O0O000O0 ).split ('.')#line:262
245
+ OOOO0O0O0000OOOOO .append (OO0O000O00000OOO0 )#line:263
246
+ for OOO00O0O0OOO00000 in OOO0OO00O0OOOOO00 :#line:264
247
+ if OOO00O0O0OOO00000 =="maya":#line:265
248
+ OOO00O0O0OOO00000 ="malla"#line:266
249
+ if OOO00O0O0OOO00000 =="pilos"or OOO00O0O0OOO00000 =="pilo":#line:267
250
+ OOO00O0O0OOO00000 ="philo"#line:268
251
+ if OOO00O0O0OOO00000 =="filos"or OOO00O0O0OOO00000 =="filo":#line:269
252
+ OOO00O0O0OOO00000 ="philo"#line:270
253
+ if OOO00O0O0OOO00000 =="sinces"or OOO00O0O0OOO00000 =="sinc":#line:271
254
+ OOO00O0O0OOO00000 ="synthe"#line:272
255
+ if OOO00O0O0OOO00000 =="sintes"or OOO00O0O0OOO00000 =="sint":#line:273
256
+ OOO00O0O0OOO00000 ="synthe"#line:274
257
+ if OOO00O0O0OOO00000 =="axos"or OOO00O0O0OOO00000 =="axo":#line:275
258
+ OOO00O0O0OOO00000 ="axso"#line:276
259
+ if OOO00O0O0OOO00000 =="uno":#line:277
260
+ OOO00O0O0OOO00000 =1 #line:278
261
+ if OOO00O0O0OOO00000 =="dos"or OOO00O0O0OOO00000 =="do":#line:279
262
+ OOO00O0O0OOO00000 =2 #line:280
263
+ if OOO00O0O0OOO00000 =="tres"or OOO00O0O0OOO00000 =="tr":#line:281
264
+ OOO00O0O0OOO00000 =3 #line:282
265
+ if OOO00O0O0OOO00000 =="cuatro":#line:283
266
+ OOO00O0O0OOO00000 =4 #line:284
267
+ if OOO00O0O0OOO00000 =="cinco":#line:285
268
+ OOO00O0O0OOO00000 =5 #line:286
269
+ if OOO00O0O0OOO00000 =="seis"or OOO00O0O0OOO00000 =="sei":#line:287
270
+ OOO00O0O0OOO00000 =6 #line:288
271
+ if OOO00O0O0OOO00000 =="siete":#line:289
272
+ OOO00O0O0OOO00000 =7 #line:290
273
+ if OOO00O0O0OOO00000 =="ocho":#line:291
274
+ OOO00O0O0OOO00000 =8 #line:292
275
+ if OOO00O0O0OOO00000 =="nueve":#line:293
276
+ OOO00O0O0OOO00000 =9 #line:294
277
+ if OOO00O0O0OOO00000 =="cero":#line:295
278
+ OOO00O0O0OOO00000 =0 #line:296
279
+ if OOO00O0O0OOO00000 =="veintiuno":#line:297
280
+ OOO00O0O0OOO00000 ="21"#line:298
281
+ if OOO00O0O0OOO00000 =="veinte":#line:299
282
+ OOO00O0O0OOO00000 ="20"#line:300
283
+ if OOO00O0O0OOO00000 =="veintidos"or OOO00O0O0OOO00000 =="veintido":#line:301
284
+ OOO00O0O0OOO00000 ="22"#line:302
285
+ if OOO00O0O0OOO00000 =="veintitres"or OOO00O0O0OOO00000 =="veintitre":#line:303
286
+ OOO00O0O0OOO00000 ="23"#line:304
287
+ if OOO00O0O0OOO00000 =="veinticuatro":#line:305
288
+ OOO00O0O0OOO00000 ="24"#line:306
289
+ if OOO00O0O0OOO00000 =="veinticinco":#line:307
290
+ OOO00O0O0OOO00000 ="25"#line:308
291
+ if OOO00O0O0OOO00000 =="veintiseis"or OOO00O0O0OOO00000 =="veintisei":#line:309
292
+ OOO00O0O0OOO00000 ="26"#line:310
293
+ if OOO00O0O0OOO00000 =="veintisiete":#line:311
294
+ OOO00O0O0OOO00000 ="27"#line:312
295
+ if OOO00O0O0OOO00000 =="veintiocho":#line:313
296
+ OOO00O0O0OOO00000 ="28"#line:314
297
+ if OOO00O0O0OOO00000 =="veintinueve":#line:315
298
+ OOO00O0O0OOO00000 ="29"#line:316
299
+ if OOO00O0O0OOO00000 =="treinta":#line:317
300
+ OOO00O0O0OOO00000 ="30"#line:318
301
+ if type (OOO00O0O0OOO00000 )==int and type (O00O0OOOO0O0O00OO )==int :#line:319
302
+ O0000OO00O0O000O0 =str (O00O0OOOO0O0O00OO )+'.'+str (OOO00O0O0OOO00000 )#line:320
303
+ OOO00O0O0OOO00000 =O0000OO00O0O000O0 .split ('.')#line:321
304
+ O00O0OOOO0O0O00OO =OOO00O0O0OOO00000 #line:322
305
+ OOO00O0O0OOO00000 =inflector .singularize (str (OOO00O0O0OOO00000 ))#line:323
306
+ OO0O000O00000OOO0 =inflector .singularize (str (OO0O000O00000OOO0 ))#line:324
307
+ OOO00O0O0OOO00000 =remove_accents (OOO00O0O0OOO00000 )#line:325
308
+ if OO0O000O00000OOO0 ==OOO00O0O0OOO00000 :#line:326
309
+ O0OOOO000000O0OOO =O0OOOO000000O0OOO +1 #line:327
310
+ OO00OO0OO0OO00OO0 [O0OOO0OOO0O000O00 ]=O0OOOO000000O0OOO #line:328
311
+ OOOOOOOO00OO00O00 =np .argwhere (OO00OO0OO0OO00OO0 ==np .amax (OO00OO0OO0OO00OO0 ))#line:329
312
+ for O0OOO0OOO0O000O00 in OOOOOOOO00OO00O00 :#line:330
313
+ OO0O00OO000O0O0O0 .append (O000O0O0OO0000000 [int (O0OOO0OOO0O000O00 )])#line:331
314
+ if np .all (OO00OO0OO0OO00OO0 ==0 ):#line:332
315
+ OO0O00OO000O0O0O0 =None #line:333
316
+ return OO0O00OO000O0O0O0 #line:334
317
+ async def cargar_tipo (O000000OO000O0OO0 ,OOO0OOO000O000O0O ):#line:336
318
+ O0O0OO0O00OOO0OOO =aiohttp .TCPConnector (ssl =True )#line:337
319
+ async with aiohttp .ClientSession (connector =O0O0OO0O00OOO0OOO )as OOO0OOOO00OO0000O :#line:338
320
+ OOO0OO0O0OOO0OO00 =await OOO0OOOO00OO0000O .get (f'{base_url}all-content/{OOO0OOO000O000O0O}',auth =auth )#line:339
321
+ OO0O00O0OOO0OOO00 =await OOO0OO0O0OOO0OO00 .json ()#line:340
322
+ OOO0000OOOOOO00OO =None #line:341
323
+ O00OO00OOO0OO0000 =None #line:342
324
+ for OOOOOO0O0OOOOO0O0 in OO0O00O0OOO0OOO00 :#line:343
325
+ if O000000OO000O0OO0 ==OOOOOO0O0OOOOO0O0 ["nid"]:#line:344
326
+ OOO0000OOOOOO00OO =OOOOOO0O0OOOOO0O0 ["type"]#line:345
327
+ O00OO00OOO0OO0000 =OOOOOO0O0OOOOO0O0 #line:346
328
+ break #line:347
329
+ return O00OO00OOO0OO0000 ,OOO0000OOOOOO00OO #line:348
330
+ async def cargar_archivo (O0OOO0OOO00OOOOOO ,O0O0O0O0OOOO00000 ,OO0OO0000OOOO0O0O ):#line:350
331
+ O0OO0OOO00OOO0O0O =[]#line:351
332
+ O00O0OO000OOO0OO0 =aiohttp .TCPConnector (ssl =True )#line:352
333
+ async with aiohttp .ClientSession (connector =O00O0OO000OOO0OO0 )as O000O0O0000OOO000 :#line:353
334
+ O000OO0O0O00OO0O0 =await O000O0O0000OOO000 .get ('https://orva.tedcas.com/api/'+str (OO0OO0000OOOO0O0O ),auth =auth )#line:354
335
+ OO00O0000O0OOOOOO =await O000OO0O0O00OO0O0 .json ()#line:355
336
+ OO00O0000O0OOOOOO =OO00O0000O0OOOOOO [0 ]#line:356
337
+ O000OOOO0OOOOO00O ="field_"+str (O0OOO0OOO00OOOOOO )#line:357
338
+ OOOO00OO0O00OO0O0 =OO00O0000O0OOOOOO [O000OOOO0OOOOO00O ]#line:358
339
+ if O000OOOO0OOOOO00O =="field_image":#line:359
340
+ OO00O0000O0OOOOOO =OO00O0000O0OOOOOO ['field_image']#line:360
341
+ OO00O0000O0OOOOOO =OO00O0000O0OOOOOO .split (',')#line:361
342
+ OO00O0000O0OOOOOO =[O0OO0OO00O00OO0O0 .replace (' ','')for O0OO0OO00O00OO0O0 in OO00O0000O0OOOOOO ]#line:362
343
+ for O00000OO00O0O0O00 in OO00O0000O0OOOOOO :#line:363
344
+ O0OO0OOO00OOO0O0O .append ("https://orva.tedcas.com/"+str (O00000OO00O0O0O00 ))#line:364
345
+ print (O0OO0OOO00OOO0O0O )#line:365
346
+ return O0OO0OOO00OOO0O0O #line:366
347
+ if len (OOOO00OO0O00OO0O0 )==0 :#line:367
348
+ O0O0O0O0OO0O0O0O0 ="No hay archivos subidos"#line:368
349
+ O0OO0OOO00OOO0O0O ="http://127.0.0.1:5000/especialidad"#line:369
350
+ elif type (OOOO00OO0O00OO0O0 )==str :#line:370
351
+ O0OO0OOO00OOO0O0O ="https://orva.tedcas.com/"+str (OOOO00OO0O00OO0O0 )#line:371
352
+ O0O0O0O0OO0O0O0O0 =OOOO00OO0O00OO0O0 #line:372
353
+ elif type (OOOO00OO0O00OO0O0 )==list :#line:373
354
+ for O0OOOO00O00OO00OO ,OO00O0000O0OO0OOO in OOOO00OO0O00OO0O0 :#line:374
355
+ O0OO0OOO00OOO0O0O [O0OOOO00O00OO00OO ]="https://orva.tedcas.com/"+str (OO00O0000O0OO0OOO )#line:375
356
+ O0O0O0O0OO0O0O0O0 =OOOO00OO0O00OO0O0 #line:376
357
+ return O0O0O0O0OOOO00000 ,O0OO0OOO00OOO0O0O ,O0O0O0O0OO0O0O0O0 #line:377
358
+ async def cargar_archivo_grande (OO0OOO0OOOO0000O0 ,O0OO0OOOOOO0O0OOO ,OOOOOOOO000000O0O ):#line:379
359
+ OO0OOO0000OO0O00O =aiohttp .TCPConnector (ssl =True )#line:380
360
+ async with aiohttp .ClientSession (connector =OO0OOO0000OO0O00O )as O0O000OOOO00OOO0O :#line:381
361
+ O0O0O000OOO000O00 =await O0O000OOOO00OOO0O .get ('https://orva.tedcas.com/api/'+str (OOOOOOOO000000O0O ),auth =auth )#line:382
362
+ OO00O000OOO0000OO =await O0O0O000OOO000O00 .json ()#line:383
363
+ OOO0O0OO0O00OO00O ={}#line:384
364
+ if OO0OOO0OOOO0000O0 =='title_material':#line:385
365
+ for O00O0O0OOOO0O0O00 in OO00O000OOO0000OO :#line:386
366
+ OOO0O0OO0O00OO00O [O00O0O0OOOO0O0O00 [OO0OOO0OOOO0000O0 ]]=(O00O0O0OOOO0O0O00 [OO0OOO0OOOO0000O0 ])#line:387
367
+ return OOO0O0OO0O00OO00O ,O0OO0OOOOOO0O0OOO #line:388
368
+ OO00O000OOO0000OO =OO00O000OOO0000OO [0 ]#line:389
369
+ OOO0O00OOOO00OO00 ="field_"+str (OO0OOO0OOOO0000O0 )#line:390
370
+ OOO0O00OOOO00OO00 =OO00O000OOO0000OO [OOO0O00OOOO00OO00 ]#line:391
371
+ if len (OOO0O00OOOO00OO00 )==0 :#line:392
372
+ OOO0O0OO0O00OO00O ["No hay archivos"]="http://127.0.0.1:5000/especialidad"#line:393
373
+ else :#line:394
374
+ for O00O0O0OOOO0O0O00 in OOO0O00OOOO00OO00 :#line:395
375
+ OOO0O0OO0O00OO00O [O00O0O0OOOO0O0O00 ['descripcion']]="https://orva.tedcas.com/"+str (O00O0O0OOOO0O0O00 ['url'])#line:396
376
+ return O0OO0OOOOOO0O0OOO ,OOO0O0OO0O00OO00O #line:397
377
+ async def cargar_caja (O00000O0O0O000O0O ,OO0OO0O000O0O00O0 ):#line:399
378
+ OOOO000O000OO0000 ={}#line:400
379
+ O00O0OOOOOOO000OO =aiohttp .TCPConnector (ssl =True )#line:401
380
+ async with aiohttp .ClientSession (connector =O00O0OOOOOOO000OO )as O00000O0O0OOO0OOO :#line:402
381
+ O0000O000O0OOO000 =await O00000O0O0OOO0OOO .get (f'{base_url}intervenciones/{O00000O0O0O000O0O}',auth =auth )#line:403
382
+ O0O00OO0000O0OOO0 =await O0000O000O0OOO000 .json ()#line:404
383
+ O0O00OO0000O0OOO0 =O0O00OO0000O0OOO0 [0 ]#line:405
384
+ if 'field_cajas'in O0O00OO0000O0OOO0 :#line:406
385
+ O0O00OO0000O0OOO0 =O0O00OO0000O0OOO0 ['field_cajas']#line:407
386
+ for OOO00OO0OO0O0OOOO in O0O00OO0000O0OOO0 :#line:408
387
+ OOOO000O000OO0000 [OOO00OO0OO0O0OOOO ['id']]=OOO00OO0OO0O0OOOO ['caja']#line:409
388
+ else :#line:410
389
+ OOOO000O000OO0000 [str (O00000O0O0O000O0O )]="No hay archivos"#line:411
390
+ return OOOO000O000OO0000 ,OO0OO0O000O0O00O0 #line:412
391
+ async def cargar_instrumental (OO00O0O0OOO0OOO0O ,OOO0OOOOO00O00OOO ):#line:414
392
+ OO00O0000000OOO0O ={}#line:415
393
+ OO00000000O0OOO00 =aiohttp .TCPConnector (ssl =True )#line:416
394
+ async with aiohttp .ClientSession (connector =OO00000000O0OOO00 )as OO00O000OO0OOO0OO :#line:417
395
+ OO000OOO0OO0O0000 =await OO00O000OO0OOO0OO .get ('https://orva.tedcas.com/api/'+str (OOO0OOOOO00O00OOO ),auth =auth )#line:418
396
+ O00OOOOO00OOOOO0O =await OO000OOO0OO0O0000 .json ()#line:419
397
+ for O0O0O0000OOO0O0O0 in O00OOOOO00OOOOO0O :#line:420
398
+ if 'instrumental'in O0O0O0000OOO0O0O0 :#line:421
399
+ for O000000O0OO0OO00O in O0O0O0000OOO0O0O0 ['instrumental']:#line:422
400
+ if O000000O0OO0OO00O ['id']==OO00O0O0OOO0OOO0O :#line:423
401
+ OO00O0000000OOO0O [O0O0O0000OOO0O0O0 ['nid']]=O0O0O0000OOO0O0O0 ['title']#line:424
402
+ return OO00O0000000OOO0O #line:425
403
+ async def cargar_botones_pdf_admision ():#line:427
404
+ O00OO0O0O0O0O0OOO ={}#line:428
405
+ OO00O0OOO00000OO0 ={}#line:429
406
+ O0OOOO00OOOO0O00O ={}#line:430
407
+ O0000O000O0000OOO ={}#line:431
408
+ O000OO00OOOO0O00O =aiohttp .TCPConnector (ssl =True )#line:432
409
+ async with aiohttp .ClientSession (connector =O000OO00OOOO0O00O )as OO0OO0000OOO000O0 :#line:433
410
+ OO0O0OOO0O000OOOO =await OO0OO0000OOO000O0 .get ('https://orva.tedcas.com/api/all-content/1621',auth =auth )#line:434
411
+ OO0OO000O00000000 =await OO0O0OOO0O000OOOO .json ()#line:435
412
+ for OO0OO0OOOO00O0OO0 in OO0OO000O00000000 :#line:436
413
+ OO00OOO0OOO0OO0O0 =await OO0OO0000OOO000O0 .get ('https://orva.tedcas.com/api/intervenciones/'+str (OO0OO0OOOO00O0OO0 ['nid']),auth =auth )#line:437
414
+ OO0O0O00O00000000 =await OO00OOO0OOO0OO0O0 .json ()#line:438
415
+ OO0O0O00O00000000 =OO0O0O00O00000000 [0 ]#line:439
416
+ O000O0O000OO0OO00 =OO0O0O00O00000000 ['field_pdf']#line:440
417
+ O000O0O000OO0OO00 =O000O0O000OO0OO00 [0 ]#line:441
418
+ if OO0O0O00O00000000 ['field_tecnica']=="Mapa de camas":#line:442
419
+ O00OO0O0O0O0O0OOO [OO0O0O00O00000000 ['title']]="https://orva.tedcas.com/"+str (O000O0O000OO0OO00 ['url'])#line:443
420
+ elif OO0O0O00O00000000 ['field_tecnica']=="Ambulancias":#line:444
421
+ OO00O0OOO00000OO0 [OO0O0O00O00000000 ['title']]="https://orva.tedcas.com/"+str (O000O0O000OO0OO00 ['url'])#line:445
422
+ elif OO0O0O00O00000000 ['field_tecnica']=="Programación quirúrgica":#line:446
423
+ O0OOOO00OOOO0O00O [OO0O0O00O00000000 ['title']]="https://orva.tedcas.com/"+str (O000O0O000OO0OO00 ['url'])#line:447
424
+ elif OO0O0O00O00000000 ['field_tecnica']=="Otros":#line:448
425
+ O0000O000O0000OOO [OO0O0O00O00000000 ['title']]="https://orva.tedcas.com/"+str (O000O0O000OO0OO00 ['url'])#line:449
426
+ return O00OO0O0O0O0O0OOO ,OO00O0OOO00000OO0 ,O0OOOO00OOOO0O00O ,O0000O000O0000OOO #line:450
427
+ def remove_accents (OO000OO0O0000O000 ):#line:452
428
+ OO0O0000O0O0O00OO =unicodedata .normalize ('NFKD',OO000OO0O0000O000 )#line:453
429
+ return u"".join ([OOOOO0O000O0O0OOO for OOOOO0O000O0O0OOO in OO0O0000O0O0O00OO if not unicodedata .combining (OOOOO0O000O0O0OOO )])#line:454
430
+ def adaptar_salida (O0O0O000000000000 ):#line:456
431
+ OO00O0O0O00OO0OOO =[]#line:457
432
+ O0O0O000000000000 =str (O0O0O000000000000 ).lower ()#line:458
433
+ O0O0O000000000000 =O0O0O000000000000 .split ("}")#line:459
434
+ O0O0O000000000000 =O0O0O000000000000 [0 ].split (":")#line:460
435
+ if len (O0O0O000000000000 )>=2 :#line:461
436
+ O0OOOO0OOO000OO0O =O0O0O000000000000 [1 ].split ("'")#line:462
437
+ OO00O0O0O00OO0OOO =O0OOOO0OOO000OO0O [1 ].split ()#line:463
438
+ return OO00O0O0O00OO0OOO #line:464
439
+ def takeCommand ():#line:466
440
+ OO0OO00OO0OOOO00O =sr .Recognizer ()#line:467
441
+ with sr .Microphone ()as OOO00O0O0OOO0OOO0 :#line:468
442
+ print ("Listening...")#line:469
443
+ OO0OO00OO0OOOO00O .pause_threshold =1 #line:470
444
+ OO00OO00OO0OOO0OO =OO0OO00OO0OOOO00O .adjust_for_ambient_noise (OOO00O0O0OOO0OOO0 )#line:471
445
+ OO00OO00OO0OOO0OO =OO0OO00OO0OOOO00O .listen (OOO00O0O0OOO0OOO0 )#line:472
446
+ try :#line:473
447
+ print ("Recognizing...")#line:474
448
+ OOO0OOO000O00O00O =OO0OO00OO0OOOO00O .recognize_google (OO00OO00OO0OOO0OO ,language ='es-ES')#line:475
449
+ print (f"User said: {OOO0OOO000O00O00O}\n")#line:476
450
+ except Exception as O00O0OOO0O0OOO00O :#line:477
451
+ print (O00O0OOO0O0OOO00O )#line:478
452
+ print ("Unable to Recognize your voice.")#line:479
453
+ return "none"#line:480
454
+ return OOO0OOO000O00O00O #line:481
455
+ app =Flask (__name__ )#line:483
456
+ app .config ['SECRET_KEY']='mysecretkey'#line:484
457
+ IMG_FOLDER =os .path .join ('static','IMG')#line:486
458
+ app .config ['UPLOAD_FOLDER']=IMG_FOLDER #line:487
459
+ @app .route ("/")#line:489
460
+ async def hello ():#line:490
461
+ O0OO00OO0O000O0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'trauma.jpeg')#line:491
462
+ OO0O00OOO0O0OOO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'uro.jpeg')#line:492
463
+ O0O0OO00OO0O0O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'adm.jpeg')#line:493
464
+ O00O0O0OOOO0OO0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'tijerass.png')#line:494
465
+ return render_template ('especialidad.html',user_image0 =O00O0O0OOOO0OO0OO ,user_image1 =O0OO00OO0O000O0O0 ,user_image2 =OO0O00OOO0O0OOO0O ,user_image3 =O0O0OO00OO0O0O0OO )#line:495
466
+ @app .route ("/especialidad")#line:497
467
+ async def especialidad ():#line:498
468
+ O00OO0O0OO0OO0O0O =os .path .join (app .config ['UPLOAD_FOLDER'],'trauma.jpeg')#line:499
469
+ OOOO000O00O00OOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'uro.jpeg')#line:500
470
+ OO000OOOOOO00O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'adm.jpeg')#line:501
471
+ OO0O0000OOOO0000O =os .path .join (app .config ['UPLOAD_FOLDER'],'tijerass.png')#line:502
472
+ return render_template ('especialidad.html',user_image0 =OO0O0000OOOO0000O ,user_image1 =O00OO0O0OO0OO0O0O ,user_image2 =OOOO000O00O00OOO0 ,user_image3 =OO000OOOOOO00O000 )#line:503
473
+ @app .route ("/seleccion_trauma",methods =['GET','POST'])#line:505
474
+ async def seleccion_trauma ():#line:506
475
+ OO0OO00O0000OO000 =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:507
476
+ OO00OO000OO0OOO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:508
477
+ O0OOO0OOOOOOOO0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:509
478
+ O0OOOO0O0OOOOOO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:510
479
+ return render_template ('seleccion_trauma.html',user_image4 =OO0OO00O0000OO000 ,user_image5 =OO00OO000OO0OOO00 ,user_image6 =O0OOO0OOOOOOOO0O0 ,user_image7 =O0OOOO0O0OOOOOO0O )#line:511
480
+ @app .route ("/buscador_trauma",methods =['GET','POST'])#line:513
481
+ async def buscador_trauma ():#line:514
482
+ O00O0OOOO0O000OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:515
483
+ O0OO00O0O0OOOO000 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:516
484
+ OOO00O0OO0O00O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:517
485
+ OOOOOOOO0O00OOO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:518
486
+ O0OO00O000OO0OO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:519
487
+ OO0O00000OO0O000O =os .path .join (app .config ['UPLOAD_FOLDER'],'materiales.png')#line:520
488
+ O000OOO0OOO00O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:521
489
+ OO00O0OOOOO0OO000 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:522
490
+ OO0OO00OO0000OOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:523
491
+ OOO00OO00OOO00OOO =str (request .form .to_dict ())#line:524
492
+ OOO00OO00OOO00OOO =adaptar_salida (OOO00OO00OOO00OOO )#line:525
493
+ O0OOO0OOOOO000O00 ={}#line:526
494
+ O0OOO0OOOOO000O00 [""]=""#line:527
495
+ if len (OOO00OO00OOO00OOO )==0 :#line:528
496
+ return render_template ('buscador_trauma.html',result_busqueda =O0OOO0OOOOO000O00 ,user_image4 =O00O0OOOO0O000OOO ,user_image5 =O0OO00O0O0OOOO000 ,user_image6 =OOO00O0OO0O00O0OO ,user_image7 =OOOOOOOO0O00OOO00 ,user_image8 =O000OOO0OOO00O000 ,user_image9 =OO00O0OOOOO0OO000 ,user_image10 =O0OO00O000OO0OO00 ,user_image11 =OO0OO00OO0000OOO0 ,user_image12 =OO0O00000OO0O000O ,nid2 =0 )#line:529
497
+ elif OOO00OO00OOO00OOO !=None or "{}":#line:530
498
+ OOOOO0O000O0O00O0 =1 #line:531
499
+ O0OO00OO0OO00OOOO =await cargar_base_datos (OOO00OO00OOO00OOO ,OOOOO0O000O0O00O0 )#line:532
500
+ OOOO0O0O0OOO00OOO =await buscar_faq (OOO00OO00OOO00OOO ,1 )#line:533
501
+ if O0OO00OO0OO00OOOO ==None :#line:534
502
+ if len (OOOO0O0O0OOO00OOO )==0 :#line:535
503
+ return render_template ('buscador_trauma.html',result_busqueda =O0OOO0OOOOO000O00 ,prediction_text ="No hay resultados para tu busqueda",user_image4 =O00O0OOOO0O000OOO ,user_image5 =O0OO00O0O0OOOO000 ,user_image6 =OOO00O0OO0O00O0OO ,user_image7 =OOOOOOOO0O00OOO00 ,user_image8 =O000OOO0OOO00O000 ,user_image9 =OO00O0OOOOO0OO000 ,user_image10 =O0OO00O000OO0OO00 ,user_image11 =OO0OO00OO0000OOO0 ,user_image12 =OO0O00000OO0O000O ,nid2 =0 )#line:536
504
+ else :#line:537
505
+ return render_template ('buscador_trauma.html',faqs =OOOO0O0O0OOO00OOO ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOO0OOOOO000O00 ,user_image4 =O00O0OOOO0O000OOO ,user_image5 =O0OO00O0O0OOOO000 ,user_image6 =OOO00O0OO0O00O0OO ,user_image7 =OOOOOOOO0O00OOO00 ,user_image8 =O000OOO0OOO00O000 ,user_image9 =OO00O0OOOOO0OO000 ,user_image10 =O0OO00O000OO0OO00 ,user_image11 =OO0OO00OO0000OOO0 ,user_image12 =OO0O00000OO0O000O ,nid2 =0 )#line:538
506
+ elif len (O0OO00OO0OO00OOOO )>=1 :#line:539
507
+ OOOOOO0OO0OOOOO00 =[]#line:540
508
+ OOO00OO0000000O00 =[]#line:541
509
+ O0OOO0OOOOO000O00 ={}#line:542
510
+ for O0O00000OO0O0000O in O0OO00OO0OO00OOOO :#line:543
511
+ OOOOOO0OO0OOOOO00 .append (O0O00000OO0O0000O ["title"])#line:544
512
+ OOO00OO0000000O00 .append (O0O00000OO0O0000O ["nid"])#line:545
513
+ for O0O00O000OOO0OO00 ,O0O00000OO0O0000O in enumerate (OOOOOO0OO0OOOOO00 ):#line:546
514
+ O0OOO0OOOOO000O00 [OOO00OO0000000O00 [O0O00O000OOO0OO00 ]]=O0O00000OO0O0000O #line:547
515
+ if len (OOOO0O0O0OOO00OOO )!=0 :#line:549
516
+ return render_template ('buscador_trauma.html',faqs =OOOO0O0O0OOO00OOO ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOO0OOOOO000O00 ,user_image4 =O00O0OOOO0O000OOO ,user_image5 =O0OO00O0O0OOOO000 ,user_image6 =OOO00O0OO0O00O0OO ,user_image7 =OOOOOOOO0O00OOO00 ,user_image8 =O000OOO0OOO00O000 ,user_image9 =OO00O0OOOOO0OO000 ,user_image10 =O0OO00O000OO0OO00 ,user_image11 =OO0OO00OO0000OOO0 ,user_image12 =OO0O00000OO0O000O ,nid2 =0 )#line:550
517
+ else :#line:551
518
+ return render_template ('buscador_trauma.html',result_busqueda =O0OOO0OOOOO000O00 ,user_image4 =O00O0OOOO0O000OOO ,user_image5 =O0OO00O0O0OOOO000 ,user_image6 =OOO00O0OO0O00O0OO ,user_image7 =OOOOOOOO0O00OOO00 ,user_image8 =O000OOO0OOO00O000 ,user_image9 =OO00O0OOOOO0OO000 ,user_image10 =O0OO00O000OO0OO00 ,user_image11 =OO0OO00OO0000OOO0 ,user_image12 =OO0O00000OO0O000O ,nid2 =0 )#line:552
519
+ @app .route ("/resultado_trauma",methods =['GET','POST'])#line:554
520
+ async def resultado_trauma ():#line:555
521
+ O000OOO000OO0OOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:556
522
+ OOO0O00O000O0OO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:557
523
+ O0000OO0O0O0OO00O =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:558
524
+ O0O00O00O00OO00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'materiales.png')#line:559
525
+ O00O00O0O0OOO00OO =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:560
526
+ O000O00OO000O0OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:561
527
+ O0OO0OOO0O0000OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:562
528
+ O0OOO0OO0OOOOOO0O =request .args .get ('link')#line:563
529
+ OOO00OO000OOOO00O ,OOOOOO0O0OO00O00O =await cargar_tipo (O0OOO0OO0OOOOOO0O ,1 )#line:564
530
+ O0O0OO0OOO0O00O0O =OOO00OO000OOOO00O ['title']#line:565
531
+ if OOOOOO0O0OO00O00O =="Intervencion":#line:567
532
+ OOO0000000OO0OOO0 ,O0OO0OOO00O0000OO =await cargar_caja (str (O0OOO0OO0OOOOOO0O ),'Materiales - Cajas: ')#line:568
533
+ return render_template ('intervencion_trauma.html',user_image8 =O00O00O0O0OOO00OO ,user_image9 =O000O00OO000O0OOO ,user_image10 =O0000OO0O0O0OO00O ,user_image11 =O0OO0OOO0O0000OO0 ,user_image12 =O0O00O00O00OO00O0 ,instrumental =OOO0000000OO0OOO0 ,texto_cajas =O0OO0OOO00O0000OO ,title =O0O0OO0OOO0O00O0O ,user_image6 =O000OOO000OO0OOO0 ,user_image7 =OOO0O00O000O0OO00 ,nid2 =O0OOO0OO0OOOOOO0O )#line:569
534
+ elif OOOOOO0O0OO00O00O =='Caja':#line:570
535
+ OOO0OOO000OOO0O00 ,O000OOO0000O0O000 ,OOOO00OOOO000000O =await cargar_archivo ("ubicacion","Ubicacion: ","cajas/"+str (O0OOO0OO0OOOOOO0O ))#line:571
536
+ O00000OOOO00O0O0O =await cargar_archivo ("image","Imagen: ","cajas/"+str (O0OOO0OO0OOOOOO0O ))#line:572
537
+ O00OO0O0OO00O0OOO ,OO0OOO0OOO0OOOOO0 =await cargar_archivo_grande ("title_material","Material : ","cajas/"+str (O0OOO0OO0OOOOOO0O ))#line:573
538
+ return render_template ('caja_trauma.html',title =O0O0OO0OOO0O00O0O ,files_instru =O00OO0O0OO00O0OOO ,texto_instru =OO0OOO0OOO0OOOOO0 ,texto_ubi =OOO0OOO000OOO0O00 ,file_texto_ubi =OOOO00OOOO000000O ,file_imagen =O00000OOOO00O0O0O ,user_image6 =O000OOO000OO0OOO0 ,user_image7 =OOO0O00O000O0OO00 )#line:574
539
+ elif OOOOOO0O0OO00O00O =='Instrumental':#line:575
540
+ OO000O0OOOO0O00OO =await cargar_instrumental (O0OOO0OO0OOOOOO0O ,'listado_completo_cajas/1')#line:576
541
+ return render_template ('instrumental_trauma.html',cajas =OO000O0OOOO0O00OO ,texto ='El instrumental que buscas esta presente en las siguientes cajas: ',title =O0O0OO0OOO0O00O0O ,user_image6 =O000OOO000OO0OOO0 ,user_image7 =OOO0O00O000O0OO00 )#line:577
542
+ @app .route ("/protocolos_trauma",methods =['GET','POST'])#line:579
543
+ async def protocolos_trauma ():#line:580
544
+ OOO00OOOOO00O0OO0 =request .args .get ('link2')#line:581
545
+ O0O0OO00000O00O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:582
546
+ O000OOO000OO00O00 =await boton_word_ppt (1 ,"field_protocolo",OOO00OOOOO00O0OO0 )#line:583
547
+ return render_template ('protocolo.html',protocolos =O000OOO000OO00O00 ,user_image7 =O0O0OO00000O00O00 )#line:584
548
+ @app .route ("/guia_visual_trauma",methods =['GET','POST'])#line:586
549
+ async def guia_visual_trauma ():#line:587
550
+ O0O0OO0O0O0OO0O0O =request .args .get ('link2')#line:588
551
+ OOOO0O0O00000O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:589
552
+ O0OO00O00O0OO0OOO =await boton_word_ppt (1 ,"field_guia_visual",O0O0OO0O0O0OO0O0O )#line:590
553
+ return render_template ('guia_visual.html',guia_visual =O0OO00O00O0OO0OOO ,user_image7 =OOOO0O0O00000O000 )#line:591
554
+ @app .route ("/pdf_casa_trauma",methods =['GET','POST'])#line:593
555
+ async def pdf_casa_trauma ():#line:594
556
+ OOOOOO0OOOOOO000O =request .args .get ('link2')#line:595
557
+ O0OO0O0OOO000OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:596
558
+ O000O0OO000O000O0 =await boton_pdf_video (1 ,"field_pdf",OOOOOO0OOOOOO000O )#line:597
559
+ return render_template ('pdf_casa_comercial.html',user_image7 =O0OO0O0OOO000OO0O ,titulos =O000O0OO000O000O0 )#line:598
560
+ @app .route ("/videos_trauma",methods =['GET','POST'])#line:600
561
+ async def videos_trauma ():#line:601
562
+ O0OO0OO00O00O0OO0 =request .args .get ('link2')#line:602
563
+ OOOOO0OOOOOO0OOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:603
564
+ O0OOOO0000OO000O0 =await boton_pdf_video (1 ,"field_video",O0OO0OO00O00O0OO0 )#line:604
565
+ return render_template ('videos.html',user_image7 =OOOOO0OOOOOO0OOOO ,titulos =O0OOOO0000OO000O0 )#line:605
566
+ @app .route ("/materiales_trauma",methods =['GET','POST'])#line:607
567
+ async def materiales_trauma ():#line:608
568
+ OOOO0000000O00O0O =request .args .get ('link2')#line:609
569
+ OO00O000OO0OOOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:610
570
+ O0O0O0OO0OOOOOO0O =await boton_materiales (1 ,OOOO0000000O00O0O )#line:611
571
+ if len (O0O0O0OO0OOOOOO0O [''])==0 :#line:612
572
+ return render_template ('materiales.html',user_image7 =OO00O000OO0OOOOOO ,cajas =O0O0O0OO0OOOOOO0O ,no_hay ="No hay materiales")#line:613
573
+ return render_template ('materiales.html',user_image7 =OO00O000OO0OOOOOO ,cajas =O0O0O0OO0OOOOOO0O )#line:614
574
+ @app .route ("/escuchar_trauma1",methods =['GET','POST'])#line:616
575
+ async def escuchar_trauma1 ():#line:617
576
+ OOO000O0O00OOO00O =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:618
577
+ O00OO00OO0O00O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'materiales.png')#line:619
578
+ O0O0OOOOOO0OOO00O =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:620
579
+ O00OO0OO000O0000O =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:621
580
+ OO00OO000O0OO0O0O =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:622
581
+ OO000O0OO0000O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:623
582
+ OO0000OO00OO00000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:624
583
+ O0O0000OOOO0O00OO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:625
584
+ return render_template ('escuchar_trauma1.html',nid2 =0 ,prediction_text ="Dale a `Escuchar´ y haz tu pregunta",user_image5 =OO000O0OO0000O0OO ,user_image6 =OO0000OO00OO00000 ,user_image7 =O0O0000OOOO0O00OO ,user_image8 =O0O0OOOOOO0OOO00O ,user_image9 =O00OO0OO000O0000O ,user_image10 =OOO000O0O00OOO00O ,user_image11 =OO00OO000O0OO0O0O ,user_image12 =O00OO00OO0O00O000 )#line:626
585
+ @app .route ("/escuchar_trauma",methods =['GET','POST'])#line:628
586
+ async def escuchar_trauma ():#line:629
587
+ O00OOO0OOOOO0O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:630
588
+ OO0O000OOOO0OOOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'materiales.png')#line:631
589
+ OOO0OOOO0000O0OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:632
590
+ O0000000O0O0O00OO =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:633
591
+ OOO00000O0000OO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:634
592
+ O0OO0O0OO00000000 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:635
593
+ OO00000OOOOO000OO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:636
594
+ OO0O0000OO0O00O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:637
595
+ OOO000OOOO000O000 =takeCommand ()#line:638
596
+ OOO000OOOO000O000 =str (OOO000OOOO000O000 ).lower ()#line:639
597
+ OOO000OOOO000O000 =OOO000OOOO000O000 .split ()#line:640
598
+ OO00000O0O00OO000 ={}#line:641
599
+ OO00000O0O00OO000 [""]=""#line:642
600
+ if OOO000OOOO000O000 [0 ]!="none":#line:643
601
+ O000O0OO00OOOOO00 =1 #line:644
602
+ O0OO0O00OOO00OO00 =await cargar_base_datos (OOO000OOOO000O000 ,O000O0OO00OOOOO00 )#line:645
603
+ O00OO00OO000OOO0O =await buscar_faq (OOO000OOOO000O000 ,0 )#line:646
604
+ if O0OO0O00OOO00OO00 ==None :#line:647
605
+ if len (O00OO00OO000OOO0O )==0 :#line:648
606
+ return render_template ('escuchar_trauma.html',nid2 =0 ,result_busqueda =OO00000O0O00OO000 ,prediction_text ="No hay resultados para tu busqueda",user_image6 =OO00000OOOOO000OO ,user_image7 =OO0O0000OO0O00O00 ,user_image5 =O0OO0O0OO00000000 ,user_image8 =OOO0OOOO0000O0OOO ,user_image9 =O0000000O0O0O00OO ,user_image10 =O00OOO0OOOOO0O0OO ,user_image11 =OOO00000O0000OO00 ,user_image12 =OO0O000OOOO0OOOO0 )#line:649
607
+ else :#line:650
608
+ return render_template ('escuchar_trauma.html',nid2 =0 ,faqs =O00OO00OO000OOO0O ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OO00000O0O00OO000 ,user_image6 =OO00000OOOOO000OO ,user_image7 =OO0O0000OO0O00O00 ,user_image5 =O0OO0O0OO00000000 ,user_image8 =OOO0OOOO0000O0OOO ,user_image9 =O0000000O0O0O00OO ,user_image10 =O00OOO0OOOOO0O0OO ,user_image11 =OOO00000O0000OO00 ,user_image12 =OO0O000OOOO0OOOO0 )#line:651
609
+ elif len (O0OO0O00OOO00OO00 )>=1 :#line:652
610
+ OOOOO00000O000OO0 =[]#line:653
611
+ O0000000O0000OO0O =[]#line:654
612
+ OO00000O0O00OO000 ={}#line:655
613
+ for O0O0OO0OO0OO00000 in O0OO0O00OOO00OO00 :#line:656
614
+ OOOOO00000O000OO0 .append (O0O0OO0OO0OO00000 ["title"])#line:657
615
+ O0000000O0000OO0O .append (O0O0OO0OO0OO00000 ["nid"])#line:658
616
+ for OO0O0OO00O0OOO0O0 ,O0O0OO0OO0OO00000 in enumerate (OOOOO00000O000OO0 ):#line:659
617
+ OO00000O0O00OO000 [O0000000O0000OO0O [OO0O0OO00O0OOO0O0 ]]=O0O0OO0OO0OO00000 #line:660
618
+ if len (O00OO00OO000OOO0O )==0 :#line:662
619
+ return render_template ('escuchar_trauma.html',nid2 =0 ,result_busqueda =OO00000O0O00OO000 ,user_image6 =OO00000OOOOO000OO ,user_image7 =OO0O0000OO0O00O00 ,user_image5 =O0OO0O0OO00000000 ,user_image8 =OOO0OOOO0000O0OOO ,user_image9 =O0000000O0O0O00OO ,user_image10 =O00OOO0OOOOO0O0OO ,user_image11 =OOO00000O0000OO00 ,user_image12 =OO0O000OOOO0OOOO0 )#line:663
620
+ else :#line:664
621
+ return render_template ('escuchar_trauma.html',nid2 =0 ,faqs =O00OO00OO000OOO0O ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =OO00000O0O00OO000 ,user_image6 =OO00000OOOOO000OO ,user_image7 =OO0O0000OO0O00O00 ,user_image5 =O0OO0O0OO00000000 ,user_image8 =OOO0OOOO0000O0OOO ,user_image9 =O0000000O0O0O00OO ,user_image10 =O00OOO0OOOOO0O0OO ,user_image11 =OOO00000O0000OO00 ,user_image12 =OO0O000OOOO0OOOO0 )#line:665
622
+ else :#line:666
623
+ return render_template ('escuchar_trauma.html',nid2 =0 ,result_busqueda =OO00000O0O00OO000 ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",user_image5 =O0OO0O0OO00000000 ,user_image6 =OO00000OOOOO000OO ,user_image7 =OO0O0000OO0O00O00 ,user_image8 =OOO0OOOO0000O0OOO ,user_image9 =O0000000O0O0O00OO ,user_image10 =O00OOO0OOOOO0O0OO ,user_image11 =OOO00000O0000OO00 ,user_image12 =OO0O000OOOO0OOOO0 )#line:667
624
+ @app .route ("/buscador_admision",methods =['GET','POST'])#line:669
625
+ async def buscador_admision ():#line:670
626
+ OOO000O00OOOO0OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:671
627
+ OO0OOO00OOOOOOO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:672
628
+ O00OOOO00OO0O00OO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:673
629
+ OOOO0O0000O00O0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:674
630
+ OO00000OOOOOO0000 =os .path .join (app .config ['UPLOAD_FOLDER'],'otros_img.png')#line:675
631
+ O0O000000OO000OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'programacion_img.png')#line:676
632
+ O0OO0OOO000O000O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'ambulancias_img.jpg')#line:677
633
+ O0O0O0OOO000O0O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'mapa_camas_img.jpg')#line:678
634
+ O000O0O000O0000O0 =str (request .form .to_dict ())#line:679
635
+ O000O0O000O0000O0 =adaptar_salida (O000O0O000O0000O0 )#line:680
636
+ O0000OOOOOOO00O0O ={}#line:681
637
+ O0000OOOOOOO00O0O [""]=""#line:682
638
+ if len (O000O0O000O0000O0 )==0 :#line:683
639
+ return render_template ('buscador_admision.html',user_image8 =O0O0O0OOO000O0O00 ,user_image9 =O0OO0OOO000O000O0 ,user_image10 =O0O000000OO000OO0 ,user_image11 =OO00000OOOOOO0000 ,result_busqueda =O0000OOOOOOO00O0O ,prediction_text ="ya puedes hacer tu pregunta",user_image4 =OOO000O00OOOO0OOO ,user_image5 =OO0OOO00OOOOOOO0O ,user_image6 =O00OOOO00OO0O00OO ,user_image7 =OOOO0O0000O00O0OO )#line:684
640
+ elif O000O0O000O0000O0 !=None or "{}":#line:685
641
+ OO0000OO0000OO0O0 =1621 #line:686
642
+ OO0OOOOOOO00OOO00 =await cargar_base_datos (O000O0O000O0000O0 ,OO0000OO0000OO0O0 )#line:687
643
+ OO0O000000OO0O0O0 =await buscar_faq (O000O0O000O0000O0 ,1 )#line:688
644
+ if OO0OOOOOOO00OOO00 ==None :#line:689
645
+ if len (OO0O000000OO0O0O0 )==0 :#line:690
646
+ return render_template ('buscador_admision.html',user_image8 =O0O0O0OOO000O0O00 ,user_image9 =O0OO0OOO000O000O0 ,user_image10 =O0O000000OO000OO0 ,user_image11 =OO00000OOOOOO0000 ,result_busqueda =O0000OOOOOOO00O0O ,prediction_text ="No hay resultados para tu busqueda",user_image4 =OOO000O00OOOO0OOO ,user_image5 =OO0OOO00OOOOOOO0O ,user_image6 =O00OOOO00OO0O00OO ,user_image7 =OOOO0O0000O00O0OO )#line:691
647
+ else :#line:692
648
+ return render_template ('buscador_admision.html',user_image8 =O0O0O0OOO000O0O00 ,user_image9 =O0OO0OOO000O000O0 ,user_image10 =O0O000000OO000OO0 ,user_image11 =OO00000OOOOOO0000 ,faqs =OO0O000000OO0O0O0 ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0000OOOOOOO00O0O ,user_image4 =OOO000O00OOOO0OOO ,user_image5 =OO0OOO00OOOOOOO0O ,user_image6 =O00OOOO00OO0O00OO ,user_image7 =OOOO0O0000O00O0OO )#line:693
649
+ elif len (OO0OOOOOOO00OOO00 )>=1 :#line:694
650
+ OOOOOO00OOO0OO000 =[]#line:695
651
+ O00O00000OOOO00OO =[]#line:696
652
+ O0000OOOOOOO00O0O ={}#line:697
653
+ for OOO00O0O00O000000 in OO0OOOOOOO00OOO00 :#line:698
654
+ O00O00000OOOO00OO .append (OOO00O0O00O000000 ["nid"])#line:699
655
+ for OOO0O0OO000O00O0O in O00O00000OOOO00OO :#line:700
656
+ OO000O0O0OOOOOO00 =aiohttp .TCPConnector (ssl =True )#line:701
657
+ async with aiohttp .ClientSession (connector =OO000O0O0OOOOOO00 )as O0O00O0OOO00000O0 :#line:702
658
+ O0O0000O0O0OOOO00 =await O0O00O0OOO00000O0 .get ('https://orva.tedcas.com/api/intervenciones/'+str (OOO0O0OO000O00O0O ),auth =auth )#line:703
659
+ O0O0O0OOOO0O0O000 =await O0O0000O0O0OOOO00 .json ()#line:704
660
+ O0O0O0OOOO0O0O000 =O0O0O0OOOO0O0O000 [0 ]#line:705
661
+ O00O00O0OO0OO000O =O0O0O0OOOO0O0O000 ['field_pdf']#line:706
662
+ O00O00O0OO0OO000O =O00O00O0OO0OO000O [0 ]#line:707
663
+ O0000OOOOOOO00O0O [O0O0O0OOOO0O0O000 ['title']]="https://orva.tedcas.com/"+str (O00O00O0OO0OO000O ['url'])#line:708
664
+ if len (OO0O000000OO0O0O0 )==0 :#line:709
665
+ return render_template ('buscador_admision.html',user_image8 =O0O0O0OOO000O0O00 ,user_image9 =O0OO0OOO000O000O0 ,user_image10 =O0O000000OO000OO0 ,user_image11 =OO00000OOOOOO0000 ,result_busqueda =O0000OOOOOOO00O0O ,user_image4 =OOO000O00OOOO0OOO ,user_image5 =OO0OOO00OOOOOOO0O ,user_image6 =O00OOOO00OO0O00OO ,user_image7 =OOOO0O0000O00O0OO )#line:710
666
+ else :#line:711
667
+ return render_template ('buscador_admision.html',faqs =OO0O000000OO0O0O0 ,faq_titulo ="Preguntas y respuestas: ",user_image8 =O0O0O0OOO000O0O00 ,user_image9 =O0OO0OOO000O000O0 ,user_image10 =O0O000000OO000OO0 ,user_image11 =OO00000OOOOOO0000 ,result_busqueda =O0000OOOOOOO00O0O ,user_image4 =OOO000O00OOOO0OOO ,user_image5 =OO0OOO00OOOOOOO0O ,user_image6 =O00OOOO00OO0O00OO ,user_image7 =OOOO0O0000O00O0OO )#line:712
668
+ @app .route ("/mapa_camas",methods =['GET','POST'])#line:714
669
+ async def mapa_camas ():#line:715
670
+ O0O00OOO0000000O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:716
671
+ O000O0OO0O00OOO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:717
672
+ O00O0O000O000OOOO ,O0000OO0O00O0OO00 ,OOOOOOO0000O0OO00 ,OOOO0O0O00OOO0OO0 =await cargar_botones_pdf_admision ()#line:718
673
+ return render_template ('mapa_camas.html',text =O00O0O000O000OOOO ,user_image6 =O0O00OOO0000000O0 ,user_image7 =O000O0OO0O00OOO00 )#line:719
674
+ @app .route ("/ambulancias",methods =['GET','POST'])#line:721
675
+ async def ambulancias ():#line:722
676
+ OOO00OOOOO0000000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:723
677
+ OOOOO0O00O0O0O00O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:724
678
+ OOO00O0O0OO0O00OO ,O0OO0O0000O00OOO0 ,OOO0OOO00OO0OOOO0 ,OOO00OO00000O0OO0 =await cargar_botones_pdf_admision ()#line:725
679
+ return render_template ('ambulancias.html',text =O0OO0O0000O00OOO0 ,user_image6 =OOO00OOOOO0000000 ,user_image7 =OOOOO0O00O0O0O00O )#line:726
680
+ @app .route ("/programacion_quirurgica",methods =['GET','POST'])#line:728
681
+ async def programacion_quirurgica ():#line:729
682
+ OO00O000O0OO000O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:730
683
+ O00O0O0O0OO00OOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:731
684
+ O00OO0O0OOO00OOO0 ,O0O000OO0O0O000O0 ,OOO0OO00OOOOO00OO ,O00OOO0OO000O0O00 =await cargar_botones_pdf_admision ()#line:732
685
+ return render_template ('programacion_quirurgica.html',text =OOO0OO00OOOOO00OO ,user_image6 =OO00O000O0OO000O0 ,user_image7 =O00O0O0O0OO00OOO0 )#line:733
686
+ @app .route ("/otros",methods =['GET','POST'])#line:735
687
+ async def otros ():#line:736
688
+ OOO0OOOO00O00000O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:737
689
+ O0OOO0O0000OO0000 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:738
690
+ O00OOOO000OOOOO00 ,O00OOO00OO0O0OO00 ,O0O0OO0O0O0000OO0 ,O0OOO0000OOOOO000 =await cargar_botones_pdf_admision ()#line:739
691
+ return render_template ('otros.html',text =O0OOO0000OOOOO000 ,user_image6 =OOO0OOOO00O00000O ,user_image7 =O0OOO0O0000OO0000 )#line:740
692
+ @app .route ("/escuchar_admision1",methods =['GET','POST'])#line:742
693
+ async def escuchar_admision1 ():#line:743
694
+ O00OOOOO00OOO00OO =os .path .join (app .config ['UPLOAD_FOLDER'],'otros_img.png')#line:744
695
+ O0OOOO00O0O0O000O =os .path .join (app .config ['UPLOAD_FOLDER'],'programacion_img.png')#line:745
696
+ OO0OOOOOO000O00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'ambulancias_img.jpg')#line:746
697
+ OO000OOO000OOOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'mapa_camas_img.jpg')#line:747
698
+ O0O000OOOO00OO0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:748
699
+ OOOOO0O0OO000O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:749
700
+ O0O0O00OO000OOO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:750
701
+ return render_template ('escuchar_admision1.html',user_image8 =OO000OOO000OOOOOO ,user_image9 =OO0OOOOOO000O00O0 ,user_image10 =O0OOOO00O0O0O000O ,user_image11 =O00OOOOO00OOO00OO ,prediction_text ="Dale a `Escuchar´ y haz tu pregunta",user_image5 =O0O000OOOO00OO0OO ,user_image6 =OOOOO0O0OO000O000 ,user_image7 =O0O0O00OO000OOO0O )#line:751
702
+ @app .route ("/escuchar_admision",methods =['GET','POST'])#line:753
703
+ async def escuchar_admision ():#line:754
704
+ OO000O0000O0OOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'otros_img.png')#line:755
705
+ O00OO000OO0OOO000 =os .path .join (app .config ['UPLOAD_FOLDER'],'programacion_img.png')#line:756
706
+ OO00O00OO0OOO0000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ambulancias_img.jpg')#line:757
707
+ OOO0000O0OOOO0OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'mapa_camas_img.jpg')#line:758
708
+ O000000000O000OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:759
709
+ O0OO0O0OOO000O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:760
710
+ OOO0O00O0O000OOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:761
711
+ OOOO0OOO0OO0OOOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:762
712
+ OO00OOOO00O0O0OOO =takeCommand ()#line:763
713
+ OO00OOOO00O0O0OOO =str (OO00OOOO00O0O0OOO ).lower ()#line:764
714
+ OO00OOOO00O0O0OOO =OO00OOOO00O0O0OOO .split ()#line:765
715
+ O0O00000OOO0OO0O0 ={}#line:766
716
+ O0O00000OOO0OO0O0 [""]=""#line:767
717
+ if OO00OOOO00O0O0OOO [0 ]!="none":#line:768
718
+ OOO0000O0OO00OO00 =1621 #line:769
719
+ O0OO00OOO0OO0O000 =await cargar_base_datos (OO00OOOO00O0O0OOO ,OOO0000O0OO00OO00 )#line:770
720
+ O000O0O0O0OO00OOO =await buscar_faq (OO00OOOO00O0O0OOO ,0 )#line:771
721
+ if O0OO00OOO0OO0O000 ==None :#line:772
722
+ if len (O000O0O0O0OO00OOO )==0 :#line:773
723
+ return render_template ('escuchar_admision.html',user_image8 =OOO0000O0OOOO0OOO ,user_image9 =OO00O00OO0OOO0000 ,user_image10 =O00OO000OO0OOO000 ,user_image11 =OO000O0000O0OOOOO ,result_busqueda =O0O00000OOO0OO0O0 ,prediction_text ="No hay resultados para tu busqueda",user_image4 =O000000000O000OO0 ,user_image5 =O0OO0O0OOO000O000 ,user_image6 =OOO0O00O0O000OOOO ,user_image7 =OOOO0OOO0OO0OOOO0 )#line:774
724
+ else :#line:775
725
+ return render_template ('escuchar_admision.html',faqs =O000O0O0O0OO00OOO ,faq_titulo ="Preguntas y respuestas: ",user_image8 =OOO0000O0OOOO0OOO ,user_image9 =OO00O00OO0OOO0000 ,user_image10 =O00OO000OO0OOO000 ,user_image11 =OO000O0000O0OOOOO ,result_busqueda =O0O00000OOO0OO0O0 ,user_image4 =O000000000O000OO0 ,user_image5 =O0OO0O0OOO000O000 ,user_image6 =OOO0O00O0O000OOOO ,user_image7 =OOOO0OOO0OO0OOOO0 )#line:776
726
+ elif len (O0OO00OOO0OO0O000 )>=1 :#line:777
727
+ OO00O000OOO0OOO0O =[]#line:778
728
+ O0000O0000OOO0000 =[]#line:779
729
+ O0O00000OOO0OO0O0 ={}#line:780
730
+ for OOOOOOOOOOOO00OOO in O0OO00OOO0OO0O000 :#line:781
731
+ O0000O0000OOO0000 .append (OOOOOOOOOOOO00OOO ["nid"])#line:782
732
+ for O0O000OOOO0000OOO in O0000O0000OOO0000 :#line:783
733
+ OO0O0OO000O00000O =aiohttp .TCPConnector (ssl =True )#line:784
734
+ async with aiohttp .ClientSession (connector =OO0O0OO000O00000O )as OO00OO0OO0OOOOOO0 :#line:785
735
+ O00000OO0000000OO =await OO00OO0OO0OOOOOO0 .get ('https://orva.tedcas.com/api/intervenciones/'+str (O0O000OOOO0000OOO ),auth =auth )#line:786
736
+ O0OO0OOOO0O0000O0 =await O00000OO0000000OO .json ()#line:787
737
+ O0OO0OOOO0O0000O0 =O0OO0OOOO0O0000O0 [0 ]#line:788
738
+ OOOOOO0OOO00O0O0O =O0OO0OOOO0O0000O0 ['field_pdf']#line:789
739
+ OOOOOO0OOO00O0O0O =OOOOOO0OOO00O0O0O [0 ]#line:790
740
+ O0O00000OOO0OO0O0 [O0OO0OOOO0O0000O0 ['title']]="https://orva.tedcas.com/"+str (OOOOOO0OOO00O0O0O ['url'])#line:791
741
+ if len (O000O0O0O0OO00OOO )==0 :#line:792
742
+ return render_template ('escuchar_admision.html',user_image8 =OOO0000O0OOOO0OOO ,user_image9 =OO00O00OO0OOO0000 ,user_image10 =O00OO000OO0OOO000 ,user_image11 =OO000O0000O0OOOOO ,result_busqueda =O0O00000OOO0OO0O0 ,user_image4 =O000000000O000OO0 ,user_image5 =O0OO0O0OOO000O000 ,user_image6 =OOO0O00O0O000OOOO ,user_image7 =OOOO0OOO0OO0OOOO0 )#line:793
743
+ else :#line:794
744
+ return render_template ('escuchar_admision.html',faqs =O000O0O0O0OO00OOO ,faq_titulo ="Preguntas y respuestas: ",user_image8 =OOO0000O0OOOO0OOO ,user_image9 =OO00O00OO0OOO0000 ,user_image10 =O00OO000OO0OOO000 ,user_image11 =OO000O0000O0OOOOO ,result_busqueda =O0O00000OOO0OO0O0 ,user_image4 =O000000000O000OO0 ,user_image5 =O0OO0O0OOO000O000 ,user_image6 =OOO0O00O0O000OOOO ,user_image7 =OOOO0OOO0OO0OOOO0 )#line:795
745
+ else :#line:796
746
+ return render_template ('escuchar_admision.html',user_image8 =OOO0000O0OOOO0OOO ,user_image9 =OO00O00OO0OOO0000 ,user_image10 =O00OO000OO0OOO000 ,user_image11 =OO000O0000O0OOOOO ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",result_busqueda =O0O00000OOO0OO0O0 ,user_image4 =O000000000O000OO0 ,user_image5 =O0OO0O0OOO000O000 ,user_image6 =OOO0O00O0O000OOOO ,user_image7 =OOOO0OOO0OO0OOOO0 )#line:797
747
+ @app .route ("/buscador_uro",methods =['GET','POST'])#line:799
748
+ async def buscador_uro ():#line:800
749
+ O0O00OOO0OO0OOO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'lupa.png')#line:801
750
+ OOO000OO0OOO0O00O =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:802
751
+ OO0O0O000O000O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:803
752
+ OO00O00O00O0OOO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:804
753
+ OO0000000OO0OO000 =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:805
754
+ O00O000O00OO0O0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'materiales.png')#line:806
755
+ OO0000O0OO00OOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:807
756
+ OOO0OO0OO000OO0O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:808
757
+ O00O000O000O0OO0O =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:809
758
+ O0OOO000OO00OO0OO =str (request .form .to_dict ())#line:810
759
+ O0OOO000OO00OO0OO =adaptar_salida (O0OOO000OO00OO0OO )#line:811
760
+ O0OOO0O0000OO0OOO ={}#line:812
761
+ O0OOO0O0000OO0OOO [""]=""#line:813
762
+ if len (O0OOO000OO00OO0OO )==0 :#line:814
763
+ return render_template ('buscador_uro.html',result_busqueda =O0OOO0O0000OO0OOO ,user_image4 =O0O00OOO0OO0OOO00 ,user_image5 =OOO000OO0OOO0O00O ,user_image6 =OO0O0O000O000O000 ,user_image7 =OO00O00O00O0OOO0O ,user_image8 =OO0000O0OO00OOOOO ,user_image9 =OOO0OO0OO000OO0O0 ,user_image10 =OO0000000OO0OO000 ,user_image11 =O00O000O000O0OO0O ,user_image12 =O00O000O00OO0O0O0 ,nid2 =0 )#line:815
764
+ elif O0OOO000OO00OO0OO !=None or "{}":#line:816
765
+ OO0OO0OOOO000OO0O =1620 #line:817
766
+ OOO000O0000000O00 =await cargar_base_datos (O0OOO000OO00OO0OO ,OO0OO0OOOO000OO0O )#line:818
767
+ OO0O00OOO0O000O0O =await buscar_faq (O0OOO000OO00OO0OO ,1 )#line:819
768
+ if OOO000O0000000O00 ==None :#line:820
769
+ if len (OO0O00OOO0O000O0O )==0 :#line:821
770
+ return render_template ('buscador_uro.html',result_busqueda =O0OOO0O0000OO0OOO ,prediction_text ="No hay resultados para tu busqueda",user_image4 =O0O00OOO0OO0OOO00 ,user_image5 =OOO000OO0OOO0O00O ,user_image6 =OO0O0O000O000O000 ,user_image7 =OO00O00O00O0OOO0O ,user_image8 =OO0000O0OO00OOOOO ,user_image9 =OOO0OO0OO000OO0O0 ,user_image10 =OO0000000OO0OO000 ,user_image11 =O00O000O000O0OO0O ,user_image12 =O00O000O00OO0O0O0 ,nid2 =0 )#line:822
771
+ else :#line:823
772
+ return render_template ('buscador_uro.html',faqs =OO0O00OOO0O000O0O ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOO0O0000OO0OOO ,user_image4 =O0O00OOO0OO0OOO00 ,user_image5 =OOO000OO0OOO0O00O ,user_image6 =OO0O0O000O000O000 ,user_image7 =OO00O00O00O0OOO0O ,user_image8 =OO0000O0OO00OOOOO ,user_image9 =OOO0OO0OO000OO0O0 ,user_image10 =OO0000000OO0OO000 ,user_image11 =O00O000O000O0OO0O ,user_image12 =O00O000O00OO0O0O0 ,nid2 =0 )#line:824
773
+ elif len (OOO000O0000000O00 )>=1 :#line:825
774
+ OOO0OO0O000O00OO0 =[]#line:826
775
+ OO000O0OOOOOOO000 =[]#line:827
776
+ O0OOO0O0000OO0OOO ={}#line:828
777
+ for OO0OO0000OO00OO00 in OOO000O0000000O00 :#line:829
778
+ OOO0OO0O000O00OO0 .append (OO0OO0000OO00OO00 ["title"])#line:830
779
+ OO000O0OOOOOOO000 .append (OO0OO0000OO00OO00 ["nid"])#line:831
780
+ for OO0000O0O0OO0000O ,OO0OO0000OO00OO00 in enumerate (OOO0OO0O000O00OO0 ):#line:832
781
+ O0OOO0O0000OO0OOO [OO000O0OOOOOOO000 [OO0000O0O0OO0000O ]]=OO0OO0000OO00OO00 #line:833
782
+ if len (OO0O00OOO0O000O0O )!=0 :#line:834
783
+ return render_template ('buscador_uro.html',faqs =OO0O00OOO0O000O0O ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O0OOO0O0000OO0OOO ,user_image4 =O0O00OOO0OO0OOO00 ,user_image5 =OOO000OO0OOO0O00O ,user_image6 =OO0O0O000O000O000 ,user_image7 =OO00O00O00O0OOO0O ,user_image8 =OO0000O0OO00OOOOO ,user_image9 =OOO0OO0OO000OO0O0 ,user_image10 =OO0000000OO0OO000 ,user_image11 =O00O000O000O0OO0O ,user_image12 =O00O000O00OO0O0O0 ,nid2 =0 )#line:835
784
+ else :#line:836
785
+ return render_template ('buscador_uro.html',result_busqueda =O0OOO0O0000OO0OOO ,user_image4 =O0O00OOO0OO0OOO00 ,user_image5 =OOO000OO0OOO0O00O ,user_image6 =OO0O0O000O000O000 ,user_image7 =OO00O00O00O0OOO0O ,user_image8 =OO0000O0OO00OOOOO ,user_image9 =OOO0OO0OO000OO0O0 ,user_image10 =OO0000000OO0OO000 ,user_image11 =O00O000O000O0OO0O ,user_image12 =O00O000O00OO0O0O0 ,nid2 =0 )#line:837
786
+ @app .route ("/resultado_uro",methods =['GET','POST'])#line:839
787
+ async def resultado_uro ():#line:840
788
+ OOO0O0O0OO0O0O00O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:841
789
+ O0000OO0OOO0O0000 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:842
790
+ O000O000OO00O00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:843
791
+ OO0O0OOOO000OO00O =os .path .join (app .config ['UPLOAD_FOLDER'],'materiales.png')#line:844
792
+ O00OO00O000OO0O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:845
793
+ OO000OO00O000OOO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:846
794
+ OO0OOO0O0O0OO0OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:847
795
+ OO000OO0O0OOO000O =request .args .get ('link')#line:848
796
+ OO0O0O000OO0O0OOO ,OOO00OO0OO00O00O0 =await cargar_tipo (OO000OO0O0OOO000O ,1620 )#line:849
797
+ OOO00OO00OOOOOO0O =OO0O0O000OO0O0OOO ['title']#line:850
798
+ if OOO00OO0OO00O00O0 =="Intervencion":#line:851
799
+ print ("hola1")#line:852
800
+ OO000000OOOO0O0OO ,O0OO000000OOOOOOO =await cargar_caja (str (OO000OO0O0OOO000O ),'Materiales - Cajas: ')#line:853
801
+ return render_template ('intervencion_uro.html',user_image8 =O00OO00O000OO0O00 ,user_image9 =OO000OO00O000OOO0 ,user_image10 =O000O000OO00O00O0 ,user_image11 =OO0OOO0O0O0OO0OOO ,user_image12 =OO0O0OOOO000OO00O ,instrumental =OO000000OOOO0O0OO ,texto_cajas =O0OO000000OOOOOOO ,title =OOO00OO00OOOOOO0O ,user_image6 =OOO0O0O0OO0O0O00O ,user_image7 =O0000OO0OOO0O0000 ,nid2 =OO000OO0O0OOO000O )#line:854
802
+ elif OOO00OO0OO00O00O0 =='Caja':#line:855
803
+ O0OO0000O0O0OOO0O ,O0OOOO00O00OO0O00 ,OO0O0O0OO0OO0OOO0 =await cargar_archivo ("ubicacion","Ubicacion: ","cajas/"+str (OO000OO0O0OOO000O ))#line:856
804
+ OOO0O000O0O00OOO0 =await cargar_archivo ("image","Imagen: ","cajas/"+str (OO000OO0O0OOO000O ))#line:857
805
+ O00O0OO00OO00OO00 ,O0O00OO00OO00000O =await cargar_archivo_grande ("title_material","Material : ","cajas/"+str (OO000OO0O0OOO000O ))#line:858
806
+ return render_template ('caja_trauma.html',title =OOO00OO00OOOOOO0O ,files_instru =O00O0OO00OO00OO00 ,texto_instru =O0O00OO00OO00000O ,texto_ubi =O0OO0000O0O0OOO0O ,file_texto_ubi =OO0O0O0OO0OO0OOO0 ,file_imagen =OOO0O000O0O00OOO0 ,user_image6 =OOO0O0O0OO0O0O00O ,user_image7 =O0000OO0OOO0O0000 )#line:859
807
+ elif OOO00OO0OO00O00O0 =='Instrumental':#line:860
808
+ print ("hola2")#line:861
809
+ OO0OO000OOOOO00OO =await cargar_instrumental (OO000OO0O0OOO000O ,'listado_completo_cajas/1620')#line:862
810
+ return render_template ('instrumental_uro.html',cajas =OO0OO000OOOOO00OO ,texto ='El instrumental que buscas esta presente en las siguientes cajas: ',title =OOO00OO00OOOOOO0O ,user_image6 =OOO0O0O0OO0O0O00O ,user_image7 =O0000OO0OOO0O0000 )#line:863
811
+ @app .route ("/protocolos_uro",methods =['GET','POST'])#line:865
812
+ async def protocolos_uro ():#line:866
813
+ OOOO0OOO0O00000OO =request .args .get ('link2')#line:867
814
+ O00O0O0O0O0O0OO00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:868
815
+ OOOO00O0O0O0O000O =await boton_word_ppt (1620 ,"field_protocolo",OOOO0OOO0O00000OO )#line:869
816
+ return render_template ('protocolo.html',protocolos =OOOO00O0O0O0O000O ,user_image7 =O00O0O0O0O0O0OO00 )#line:870
817
+ @app .route ("/guia_visual_uro",methods =['GET','POST'])#line:872
818
+ async def guia_visual_uro ():#line:873
819
+ OO000O000O00OOOOO =request .args .get ('link2')#line:874
820
+ O0O00OOO0O0OO0000 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:875
821
+ OOOO00OO00OOO000O =await boton_word_ppt (1620 ,"field_guia_visual",OO000O000O00OOOOO )#line:876
822
+ return render_template ('guia_visual.html',guia_visual =OOOO00OO00OOO000O ,user_image7 =O0O00OOO0O0OO0000 )#line:877
823
+ @app .route ("/pdf_casa_uro",methods =['GET','POST'])#line:879
824
+ async def pdf_casa_uro ():#line:880
825
+ O00O00O00O00O0O0O =request .args .get ('link2')#line:881
826
+ OOOO0OO00OO0OOOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:882
827
+ OOO0OO0O00OOO00OO =await boton_pdf_video (1620 ,"field_pdf",O00O00O00O00O0O0O )#line:883
828
+ return render_template ('pdf_casa_comercial.html',user_image7 =OOOO0OO00OO0OOOOO ,titulos =OOO0OO0O00OOO00OO )#line:884
829
+ @app .route ("/videos_uro",methods =['GET','POST'])#line:886
830
+ async def videos_uro ():#line:887
831
+ O0O0OOOOOOOO0OO00 =request .args .get ('link2')#line:888
832
+ OOO0OOO000OO00O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:889
833
+ OOOO00OO0OOOOOOOO =await boton_pdf_video (1620 ,"field_video",O0O0OOOOOOOO0OO00 )#line:890
834
+ return render_template ('videos.html',user_image7 =OOO0OOO000OO00O00 ,titulos =OOOO00OO0OOOOOOOO )#line:891
835
+ @app .route ("/materiales_uro",methods =['GET','POST'])#line:893
836
+ async def materiales_uro ():#line:894
837
+ OO00OOOOOOO000OO0 =request .args .get ('link2')#line:895
838
+ OO000O00OOO00OOOO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:896
839
+ OOO0OO0OO0OOO000O =await boton_materiales (1620 ,OO00OOOOOOO000OO0 )#line:897
840
+ if len (OOO0OO0OO0OOO000O [''])==0 :#line:898
841
+ return render_template ('materiales_uro.html',user_image7 =OO000O00OOO00OOOO ,cajas =OOO0OO0OO0OOO000O ,no_hay ="No hay materiales")#line:899
842
+ return render_template ('materiales_uro.html',user_image7 =OO000O00OOO00OOOO ,cajas =OOO0OO0OO0OOO000O )#line:900
843
+ @app .route ("/escuchar_uro1",methods =['GET','POST'])#line:902
844
+ async def escuchar_uro1 ():#line:903
845
+ O00000O0OO000O00O =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:904
846
+ O00OO0OOOOO0O0OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'materiales.png')#line:905
847
+ O00OO0OO00OOO000O =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:906
848
+ OOOOO000000O00O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:907
849
+ OOOOOOO0OO00O00O0 =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:908
850
+ O00O000O0000O0OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:909
851
+ O0O0O000O00000O0O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:910
852
+ O00OOOO0OO0O0O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:911
853
+ return render_template ('escuchar_uro1.html',nid2 =0 ,prediction_text ="Dale a `Escuchar´ y haz tu pregunta",user_image5 =O00O000O0000O0OO0 ,user_image6 =O0O0O000O00000O0O ,user_image7 =O00OOOO0OO0O0O000 ,user_image8 =O00OO0OO00OOO000O ,user_image9 =OOOOO000000O00O00 ,user_image10 =O00000O0OO000O00O ,user_image11 =OOOOOOO0OO00O00O0 ,user_image12 =O00OO0OOOOO0O0OO0 )#line:912
854
+ @app .route ("/escuchar_uro",methods =['GET','POST'])#line:914
855
+ async def escuchar_uro ():#line:915
856
+ OOO000OOO0000O000 =os .path .join (app .config ['UPLOAD_FOLDER'],'guia_visual.png')#line:916
857
+ O00OO0O000OOO000O =os .path .join (app .config ['UPLOAD_FOLDER'],'materiales.png')#line:917
858
+ O0OOO0OO0O0OOO0OO =os .path .join (app .config ['UPLOAD_FOLDER'],'pdf_casa.jpg')#line:918
859
+ OOO000OOO00OO0000 =os .path .join (app .config ['UPLOAD_FOLDER'],'protocolo.jpg')#line:919
860
+ O00O0O0O0OO0O0OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'visualizar_video.png')#line:920
861
+ OO000O0OO0O000OO0 =os .path .join (app .config ['UPLOAD_FOLDER'],'micro.png')#line:921
862
+ OOOOO00OO00000O0O =os .path .join (app .config ['UPLOAD_FOLDER'],'ajustes.png')#line:922
863
+ OOOOO000O00OO0OOO =os .path .join (app .config ['UPLOAD_FOLDER'],'flecha.png')#line:923
864
+ OOO00OO000OO00O0O =takeCommand ()#line:924
865
+ OOO00OO000OO00O0O =str (OOO00OO000OO00O0O ).lower ()#line:925
866
+ OOO00OO000OO00O0O =OOO00OO000OO00O0O .split ()#line:926
867
+ O00000O0OO0O00O00 ={}#line:927
868
+ O00000O0OO0O00O00 [""]=""#line:928
869
+ if OOO00OO000OO00O0O [0 ]!="none":#line:929
870
+ OOOO0O000OO0O00OO =1620 #line:930
871
+ OOOOOOOO0O0OO00O0 =await cargar_base_datos (OOO00OO000OO00O0O ,OOOO0O000OO0O00OO )#line:931
872
+ O0OO000OO00O0000O =await buscar_faq (OOO00OO000OO00O0O ,0 )#line:932
873
+ if OOOOOOOO0O0OO00O0 ==None :#line:933
874
+ if len (O0OO000OO00O0000O )==0 :#line:934
875
+ return render_template ('escuchar_uro.html',nid2 =0 ,result_busqueda =O00000O0OO0O00O00 ,prediction_text ="No hay resultados para tu busqueda",user_image6 =OOOOO00OO00000O0O ,user_image7 =OOOOO000O00OO0OOO ,user_image5 =OO000O0OO0O000OO0 ,user_image8 =O0OOO0OO0O0OOO0OO ,user_image9 =OOO000OOO00OO0000 ,user_image10 =OOO000OOO0000O000 ,user_image11 =O00O0O0O0OO0O0OO0 ,user_image12 =O00OO0O000OOO000O )#line:935
876
+ else :#line:936
877
+ return render_template ('escuchar_uro.html',nid2 =0 ,faqs =O0OO000OO00O0000O ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O00000O0OO0O00O00 ,user_image6 =OOOOO00OO00000O0O ,user_image7 =OOOOO000O00OO0OOO ,user_image5 =OO000O0OO0O000OO0 ,user_image8 =O0OOO0OO0O0OOO0OO ,user_image9 =OOO000OOO00OO0000 ,user_image10 =OOO000OOO0000O000 ,user_image11 =O00O0O0O0OO0O0OO0 ,user_image12 =O00OO0O000OOO000O )#line:937
878
+ elif len (OOOOOOOO0O0OO00O0 )>=1 :#line:938
879
+ O0OO00OO00OO0O0O0 =[]#line:939
880
+ O0OOO0O0O00OOOO00 =[]#line:940
881
+ O00000O0OO0O00O00 ={}#line:941
882
+ for OOOO0OO0OOOOO0000 in OOOOOOOO0O0OO00O0 :#line:942
883
+ O0OO00OO00OO0O0O0 .append (OOOO0OO0OOOOO0000 ["title"])#line:943
884
+ O0OOO0O0O00OOOO00 .append (OOOO0OO0OOOOO0000 ["nid"])#line:944
885
+ for OOOOO0O0O0OOO0OO0 ,OOOO0OO0OOOOO0000 in enumerate (O0OO00OO00OO0O0O0 ):#line:945
886
+ O00000O0OO0O00O00 [O0OOO0O0O00OOOO00 [OOOOO0O0O0OOO0OO0 ]]=OOOO0OO0OOOOO0000 #line:946
887
+ if len (O0OO000OO00O0000O )==0 :#line:948
888
+ return render_template ('escuchar_uro.html',nid2 =0 ,result_busqueda =O00000O0OO0O00O00 ,user_image6 =OOOOO00OO00000O0O ,user_image7 =OOOOO000O00OO0OOO ,user_image5 =OO000O0OO0O000OO0 ,user_image8 =O0OOO0OO0O0OOO0OO ,user_image9 =OOO000OOO00OO0000 ,user_image10 =OOO000OOO0000O000 ,user_image11 =O00O0O0O0OO0O0OO0 ,user_image12 =O00OO0O000OOO000O )#line:949
889
+ else :#line:950
890
+ return render_template ('escuchar_uro.html',nid2 =0 ,faqs =O0OO000OO00O0000O ,faq_titulo ="Preguntas y respuestas: ",result_busqueda =O00000O0OO0O00O00 ,user_image6 =OOOOO00OO00000O0O ,user_image7 =OOOOO000O00OO0OOO ,user_image5 =OO000O0OO0O000OO0 ,user_image8 =O0OOO0OO0O0OOO0OO ,user_image9 =OOO000OOO00OO0000 ,user_image10 =OOO000OOO0000O000 ,user_image11 =O00O0O0O0OO0O0OO0 ,user_image12 =O00OO0O000OOO000O )#line:951
891
+ else :#line:952
892
+ return render_template ('escuchar_uro.html',nid2 =0 ,result_busqueda =O00000O0OO0O00O00 ,prediction_text ="No te he entendido bien, dale al boton `Escuchar´ y repite tu pregunta",user_image5 =OO000O0OO0O000OO0 ,user_image6 =OOOOO00OO00000O0O ,user_image7 =OOOOO000O00OO0OOO ,user_image8 =O0OOO0OO0O0OOO0OO ,user_image9 =OOO000OOO00OO0000 ,user_image10 =OOO000OOO0000O000 ,user_image11 =O00O0O0O0OO0O0OO0 ,user_image12 =O00OO0O000OOO000O )#line:953
893
+ @app .route ("/ajustes")#line:955
894
+ async def ajustes ():#line:956
895
+ OOO0OOOOO0OOO0O00 =os .path .join (app .config ['UPLOAD_FOLDER'],'estrella.png')#line:957
896
+ return render_template ('ajustes.html',user_image7 =OOO0OOOOO0OOO0O00 )#line:958
897
+ if __name__ =="__main__":#line:960
898
+ app .run ()#line:961
index.html CHANGED
@@ -1,19 +1,41 @@
1
  <!DOCTYPE html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
  <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+
6
+ <title> Quirohelp </title>
7
+ <style>
8
+
9
+ .quiro {
10
+ background-color: blueviolet;
11
+ color: white;
12
+ font-size: 3.5rem;
13
+ font-family: Georgia, 'Times New Roman', Times, serif;
14
+ }
15
+ </style>
16
+
17
+
18
+ </head>
19
+ <body>
20
+ <div class="login2">
21
+ <h1 class="quiro"><img src="{{ user_image0 }}" alt="holaaa" style="max-width: 5%;"> QuiroHelp </h1>
22
+
23
+ <p style="font-size: 1.1rem">Haz click en tu especialidad:</p>
24
+ <form action="{{url_for('especialidad')}}" method="post">
25
+
26
+
27
+
28
+
29
+ <input class="" type="button" value="Traumatologia" style="width: 78%; background-color:darkcyan;font-size: 1.5rem; " onclick="location.href='http://127.0.0.1:5000/buscador_trauma'">
30
+ <h3></h3><img src="{{ user_image1 }}" alt="" style="max-width: 100%" onclick="location.href='http://127.0.0.1:5000/buscador_trauma'">
31
+ <br>
32
+ <input type="button" value="Urologia" style="width: 78%; background-color:saddlebrown;font-size: 1.5rem;" onclick="location.href='http://127.0.0.1:5000/buscador_uro'">
33
+ <h3></h3><img src="{{ user_image2 }}" alt="" style="max-width: 100%" onclick="location.href='http://127.0.0.1:5000/buscador_uro'">
34
+ <br>
35
+ <input type="button" value="Admisión" style="width: 78%; background-color:dimgray;font-size: 1.5rem;" onclick="location.href='http://127.0.0.1:5000/buscador_admision'">
36
+ <h3></h3><img src="{{ user_image3 }}" alt="" style="max-width: 100%" onclick="location.href='http://127.0.0.1:5000/buscador_admision'">
37
+ </form>
38
+
39
+ </div>
40
+ </body>
41
  </html>
preguntas_qh_tags2.xlsx ADDED
Binary file (39.7 kB). View file
 
requirements.txt ADDED
Binary file (1.05 kB). View file
 
templates/ajustes.html ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 2.5rem;background-color: purple;">AJUSTES:</h2>
12
+
13
+ <form action="{{url_for('buscador_trauma')}}" method="post">
14
+ <h3 onclick="location.href='http://127.0.0.1:5000/especialidad'"style="font-size=1.6rem"> <img src="{{ user_image7 }}" alt="" width="5%">Cambiar de especialidad</h3>
15
+
16
+ </form>
17
+
18
+
19
+ <br>
20
+ <br>
21
+
22
+ </div>
23
+ </body>
24
+ </html>
templates/ambulancias.html ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: lightcyan;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/buscador_admision'"> Ambulancias: </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+
15
+ <form action="{{url_for('ambulancias')}}" method="post">
16
+
17
+
18
+
19
+
20
+ {% for titulo,url in text.items() %}
21
+
22
+ <a href="{{url}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
23
+ <br>
24
+ <br>
25
+ {% endfor %}
26
+
27
+ </form>
28
+
29
+
30
+
31
+
32
+ </div>
33
+ </body>
34
+ </html>
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+ </div>
46
+ </body>
47
+ </html>
templates/buscador_admision.html ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <!DOCTYPE html>
3
+ <html>
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title> Quirohelp </title>
7
+
8
+
9
+ </head>
10
+ <body>
11
+ <div class="login22">
12
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: gray;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Admisión: </h2>
13
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
14
+ <hr/>
15
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Barra de busqueda:</h2>
16
+ <form action="{{url_for('buscador_admision')}}" method="post">
17
+ <input type="search" name="busqueda" placeholder="Escriba aquí la busqueda a realizar" style="box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);width: 70%; border:3px solid black; border-radius: 10px;font-size: 1.5rem;"required="required" >
18
+
19
+
20
+ <button type="submit" class="btn btn-primary btn-block btn-large" style="padding-bottom: 1%;width:4%;background-color: rgb(0, 128, 255);border:1px solid white; border-radius: 30%;box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);" > <img src="{{ user_image4 }}" alt="" style="max-width:100%;padding-bottom: 0.5%;" > </button>
21
+ <br>
22
+ <br>
23
+ <button type="button" name="escu" style="padding-right: 78%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.4rem;background-color: white; border: solid white" onclick="location.href='http://127.0.0.1:5000/escuchar_admision1'">Ir al asistente de voz: <img src="{{ user_image5 }}" style="max-width:20%;border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" onclick="location.href='http://127.0.0.1:5000/escuchar_admision1'"></button>
24
+ <br>
25
+ <br>
26
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
27
+ {% for titulo,link in result_busqueda.items() %}
28
+
29
+ <a href="{{link}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
30
+ <br>
31
+ <br>
32
+ {% endfor %}
33
+
34
+ <b style="font-size: 1.5rem;font-family: Arial, Helvetica, sans-serif;">{{faq_titulo}}</b>
35
+ <br>
36
+ <br>
37
+ {% for faq in faqs %}
38
+
39
+
40
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{faq}}</b>
41
+ <br>
42
+ <br>
43
+
44
+ {% endfor %}
45
+
46
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
47
+ <br>
48
+ <br>
49
+ <img src="{{ user_image8 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/mapa_camas'">
50
+ <img src="{{ user_image9 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/ambulancias'" >
51
+
52
+
53
+ <br>
54
+ <img src="{{ user_image10 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/programacion_quirurgica'">
55
+ <img src="{{ user_image11 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/otros'" >
56
+
57
+
58
+ </form>
59
+
60
+ </div>
61
+ </body>
62
+ </html>
templates/buscador_trauma.html ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: darkcyan;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Traumatología</h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Barra de busqueda:</h2>
15
+ <form action="{{url_for('buscador_trauma')}}" method="post">
16
+ <input type="search" name="busqueda" placeholder="Escriba aquí la busqueda a realizar" style="box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);width: 70%; border:3px solid black; border-radius: 10px;font-size: 1.5rem;"required="required" >
17
+
18
+
19
+ <button type="submit" class="btn btn-primary btn-block btn-large" style="padding-bottom: 1%;width:4%;background-color: rgb(0, 128, 255);border:1px solid white; border-radius: 30%;box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);" > <img src="{{ user_image4 }}" alt="" style="max-width:100%;padding-bottom: 0.5%;" > </button>
20
+ <br>
21
+ <br>
22
+ <button type="button" name="escu" style="padding-right: 78%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.4rem;background-color: white; border: solid white" onclick="location.href='http://127.0.0.1:5000/escuchar_trauma1'">Ir al asistente de voz: <img src="{{ user_image5 }}" style="max-width:20%;border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" onclick="location.href='http://127.0.0.1:5000/escuchar_trauma1'"></button>
23
+ <br>
24
+ <br>
25
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
26
+ {% for nid,titulo in result_busqueda.items() %}
27
+
28
+ <a href="http://127.0.0.1:5000/resultado_trauma?link={{nid}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
29
+ <br>
30
+ <br>
31
+ {% endfor %}
32
+
33
+ <b style="font-size: 1.5rem;font-family: Arial, Helvetica, sans-serif;">{{faq_titulo}}</b>
34
+ <br>
35
+ <br>
36
+ {% for faq in faqs %}
37
+
38
+
39
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{faq}}</b>
40
+ <br>
41
+ <br>
42
+
43
+ {% endfor %}
44
+
45
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
46
+ <br>
47
+ <br>
48
+ <img src="{{ user_image8 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/pdf_casa_trauma?link2={{nid2}}'">
49
+ <img src="{{ user_image9 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/protocolos_trauma?link2={{nid2}}'" >
50
+ <img src="{{ user_image10 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/guia_visual_trauma?link2={{nid2}}'" >
51
+ <br>
52
+ <img src="{{ user_image11 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/videos_trauma?link2={{nid2}}'">
53
+ <img src="{{ user_image12 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/materiales_trauma?link2={{nid2}}'">
54
+ <br>
55
+ <br>
56
+
57
+ <br>
58
+ <br>
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+ </form>
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+ </div>
79
+ </body>
80
+ </html>
templates/buscador_uro.html ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: saddlebrown;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Urología </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Barra de busqueda:</h2>
15
+ <form action="{{url_for('buscador_uro')}}" method="post">
16
+ <input type="search" name="busqueda" placeholder="Escriba aquí la busqueda a realizar" style="box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);width: 50%; border:2% solid black; border-radius: 0.5rem;font-size: 1.5rem;"required="required" >
17
+
18
+
19
+ <button type="submit" class="btn btn-primary btn-block btn-large" style="padding-bottom: 1%;width:4%;background-color: rgb(0, 128, 255);border:solid white; border-radius: 0.8rem;box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);" > <img src="{{ user_image4 }}" alt="" style="max-width:100%;padding-bottom: 0.5%;" > </button>
20
+ <br>
21
+
22
+ <br>
23
+ <button type="button" name="escu" style="padding-right: 78%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.4rem;background-color: white; border: solid white" onclick="location.href='http://127.0.0.1:5000/escuchar_uro1'">Ir al asistente de voz: <img src="{{ user_image5 }}" style="max-width:20%;border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" onclick="location.href='http://127.0.0.1:5000/escuchar_uro1'"></button>
24
+ <br>
25
+ <br>
26
+
27
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
28
+ <br>
29
+
30
+
31
+ {% for nid,titulo in result_busqueda.items() %}
32
+
33
+ <a href="http://127.0.0.1:5000/resultado_uro?link={{nid}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
34
+ <br>
35
+ <br>
36
+ {% endfor %}
37
+
38
+ <b style="font-size: 1.5rem;font-family: Arial, Helvetica, sans-serif;">{{faq_titulo}}</b>
39
+ <br>
40
+ <br>
41
+ {% for faq in faqs %}
42
+
43
+
44
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{faq}}</b>
45
+ <br>
46
+ <br>
47
+
48
+ {% endfor %}
49
+
50
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
51
+ <br>
52
+ <br>
53
+ <img src="{{ user_image8 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/pdf_casa_uro?link2={{nid2}}'">
54
+ <img src="{{ user_image9 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/protocolos_uro?link2={{nid2}}'" >
55
+ <img src="{{ user_image10 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/guia_visual_uro?link2={{nid2}}'" >
56
+ <br>
57
+ <img src="{{ user_image11 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/videos_uro?link2={{nid2}}'">
58
+ <img src="{{ user_image12 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/materiales_uro?link2={{nid2}}'">
59
+
60
+
61
+
62
+
63
+
64
+
65
+ </form>
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ </div>
77
+ </body>
78
+ </html>
templates/caja_trauma.html ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: coral;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Materiales - Cajas : </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.6rem;">{{title}} :</h2>
15
+ <form action="{{url_for('resultado_trauma')}}" method="post">
16
+
17
+ <br>
18
+ <strong style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{texto_ubi}}</b>
19
+ <strong style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;" >{{file_texto_ubi}}</strong>
20
+ <br>
21
+ <br>
22
+ {% for file in file_imagen %}
23
+ <img src="{{file}}" alt="" style="max-width: 100%;">
24
+ {% endfor %}
25
+ <br>
26
+ <br>
27
+ <strong style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{texto_instru}}</strong>
28
+ <br>
29
+ <br>
30
+ {% for file_instru in files_instru %}
31
+ <li>
32
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;" >{{file_instru}}</b>
33
+ </li>
34
+ <br>
35
+ {% endfor %}
36
+
37
+
38
+
39
+
40
+
41
+ </form>
42
+
43
+
44
+ <br>
45
+ <br>
46
+
47
+
48
+ </div>
49
+ </body>
50
+ </html>
templates/escuchar_admision.html ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: gray;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Admisión: </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.7rem;">Asistente de voz:</h2>
15
+ <form action="{{url_for('escuchar_admision')}}" method="post">
16
+ <button type="submit" style="padding-right: 85%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.2rem;padding-left: 1%;background-color: white; border: solid white" >Escuchar: <img src="{{ user_image5 }}" width="30% " style=" border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" ></button>
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+ <br>
25
+ <br>
26
+
27
+ <b style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
28
+ {% for titulo,link in result_busqueda.items() %}
29
+
30
+ <a href="{{link}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
31
+ <br>
32
+ <br>
33
+ {% endfor %}
34
+
35
+ <b style="font-size: 1.5rem;font-family: Arial, Helvetica, sans-serif;">{{faq_titulo}}</b>
36
+ <br>
37
+ <br>
38
+
39
+ {% for faq in faqs %}
40
+
41
+
42
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{faq}}</b>
43
+ <br>
44
+ <br>
45
+
46
+ {% endfor %}
47
+
48
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
49
+ <br>
50
+ <br>
51
+ <img src="{{ user_image8 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/mapa_camas'">
52
+ <img src="{{ user_image9 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/ambulancias'" >
53
+
54
+
55
+ <br>
56
+ <img src="{{ user_image10 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/programacion_quirurgica'">
57
+ <img src="{{ user_image11 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/otros'" >
58
+
59
+
60
+ </form>
61
+
62
+
63
+ </div>
64
+ </body>
65
+ </html>
templates/escuchar_admision1.html ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: gray;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Admisión: </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.7rem;">Asistente de voz:</h2>
15
+ <form action="{{url_for('escuchar_admision1')}}" method="post">
16
+ <button type="button" style="padding-right: 85%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.2rem;padding-left: 1%;background-color: white; border: solid white" onclick="location.href='http://127.0.0.1:5000/escuchar_admision'">Escuchar: <img src="{{ user_image5 }}" width="30% " style=" border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" onclick="location.href='http://127.0.0.1:5000/escuchar_admision'"></button>
17
+
18
+
19
+
20
+
21
+ </form>
22
+
23
+
24
+ <br>
25
+ <br>
26
+
27
+ <b style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
28
+
29
+ <br>
30
+ <br>
31
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
32
+ <br>
33
+ <br>
34
+ <img src="{{ user_image8 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/mapa_camas'">
35
+ <img src="{{ user_image9 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/ambulancias'" >
36
+
37
+
38
+ <br>
39
+ <img src="{{ user_image10 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/programacion_quirurgica'">
40
+ <img src="{{ user_image11 }}" style="max-width:30%;" onclick="location.href='http://127.0.0.1:5000/otros'" >
41
+
42
+
43
+
44
+
45
+ </div>
46
+ </body>
47
+ </html>
templates/escuchar_trauma.html ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: darkcyan;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Traumatología</h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.7rem;">Asistente de voz:</h2>
15
+ <form action="{{url_for('escuchar_trauma')}}" method="post">
16
+ <button type="submit" style="padding-right: 85%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.2rem;padding-left: 1%;background-color: white; border: solid white" >Escuchar: <img src="{{ user_image5 }}" width="30% " style=" border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" ></button>
17
+
18
+
19
+
20
+
21
+ </form>
22
+
23
+
24
+ <br>
25
+ <br>
26
+
27
+ <b style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
28
+ <br>
29
+ <br>
30
+
31
+ {% for nid,titulo in result_busqueda.items() %}
32
+
33
+ <a href="http://127.0.0.1:5000/resultado_trauma?link={{nid}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
34
+ <br>
35
+ <br>
36
+ {% endfor %}
37
+
38
+ <b style="font-size: 1.5rem;font-family: Arial, Helvetica, sans-serif;">{{faq_titulo}}</b>
39
+ <br>
40
+ <br>
41
+
42
+ {% for faq in faqs %}
43
+
44
+
45
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{faq}}</b>
46
+ <br>
47
+ <br>
48
+
49
+ {% endfor %}
50
+
51
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
52
+ <br>
53
+ <br>
54
+ <img src="{{ user_image8 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/pdf_casa_trauma?link2={{nid2}}'">
55
+ <img src="{{ user_image9 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/protocolos_trauma?link2={{nid2}}'" >
56
+ <img src="{{ user_image10 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/guia_visual_trauma?link2={{nid2}}'" >
57
+ <br>
58
+ <img src="{{ user_image11 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/videos_trauma?link2={{nid2}}'">
59
+ <img src="{{ user_image12 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/materiales_trauma?link2={{nid2}}'">
60
+
61
+ </div>
62
+ </body>
63
+ </html>
templates/escuchar_trauma1.html ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: darkcyan;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Traumatología</h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.7rem;">Asistente de voz:</h2>
15
+ <form action="{{url_for('escuchar_trauma1')}}" method="post">
16
+ <button type="button" style="padding-right: 85%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.2rem;padding-left: 1%;background-color: white; border: solid white" onclick="location.href='http://127.0.0.1:5000/escuchar_trauma'">Escuchar: <img src="{{ user_image5 }}" width="30% " style=" border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" onclick="location.href='http://127.0.0.1:5000/escuchar_trauma'"></button>
17
+
18
+
19
+
20
+
21
+ </form>
22
+
23
+
24
+ <br>
25
+ <br>
26
+
27
+ <b style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
28
+
29
+ <br>
30
+ <br>
31
+
32
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
33
+ <br>
34
+ <br>
35
+ <img src="{{ user_image8 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/pdf_casa_trauma?link2={{nid2}}'">
36
+ <img src="{{ user_image9 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/protocolos_trauma?link2={{nid2}}'" >
37
+ <img src="{{ user_image10 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/guia_visual_trauma?link2={{nid2}}'" >
38
+ <br>
39
+ <img src="{{ user_image11 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/videos_trauma?link2={{nid2}}'">
40
+ <img src="{{ user_image12 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/materiales_trauma?link2={{nid2}}'">
41
+
42
+ </div>
43
+ </body>
44
+ </html>
templates/escuchar_uro.html ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: saddlebrown;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Urología </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.7rem;">Asistente de voz:</h2>
15
+ <form action="{{url_for('escuchar_uro')}}" method="post">
16
+ <button type="submit" style="padding-right: 85%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.2rem;padding-left: 1%;background-color: white; border: solid white" >Escuchar: <img src="{{ user_image5 }}" width="30% " style=" border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" ></button>
17
+
18
+
19
+
20
+
21
+ </form>
22
+
23
+
24
+ <br>
25
+ <br>
26
+
27
+ <b style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
28
+ <br>
29
+ <br>
30
+
31
+ {% for nid,titulo in result_busqueda.items() %}
32
+
33
+ <a href="http://127.0.0.1:5000/resultado_uro?link={{nid}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
34
+ <br>
35
+ <br>
36
+ {% endfor %}
37
+
38
+ <b style="font-size: 1.5rem;font-family: Arial, Helvetica, sans-serif;">{{faq_titulo}}</b>
39
+ <br>
40
+ <br>
41
+
42
+ {% for faq in faqs %}
43
+
44
+
45
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{faq}}</b>
46
+ <br>
47
+ <br>
48
+
49
+ {% endfor %}
50
+
51
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
52
+ <br>
53
+ <br>
54
+ <img src="{{ user_image8 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/pdf_casa_uro?link2={{nid2}}'">
55
+ <img src="{{ user_image9 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/protocolos_uro?link2={{nid2}}'" >
56
+ <img src="{{ user_image10 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/guia_visual_uro?link2={{nid2}}'" >
57
+ <br>
58
+ <img src="{{ user_image11 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/videos_uro?link2={{nid2}}'">
59
+ <img src="{{ user_image12 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/materiales_uro?link2={{nid2}}'">
60
+
61
+ </div>
62
+ </body>
63
+ </html>
templates/escuchar_uro1.html ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: saddlebrown;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Urología </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.7rem;">Asistente de voz:</h2>
15
+ <form action="{{url_for('escuchar_uro1')}}" method="post">
16
+ <button type="button" style="padding-right: 85%;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.2rem;padding-left: 1%;background-color: white; border: solid white" onclick="location.href='http://127.0.0.1:5000/escuchar_uro'">Escuchar: <img src="{{ user_image5 }}" width="30% " style=" border-radius: 100%;box-shadow:2px 2px 2px 1px rgba(0, 0, 0, 0.2);" onclick="location.href='http://127.0.0.1:5000/escuchar_trauma'"></button>
17
+
18
+
19
+
20
+
21
+ </form>
22
+
23
+
24
+ <br>
25
+ <br>
26
+
27
+ <b style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
28
+
29
+ <br>
30
+ <br>
31
+
32
+ <b style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.8rem;">Selectores: </b>
33
+ <br>
34
+ <br>
35
+ <img src="{{ user_image8 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/pdf_casa_uro?link2={{nid2}}'">
36
+ <img src="{{ user_image9 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/protocolos_uro?link2={{nid2}}'" >
37
+ <img src="{{ user_image10 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/guia_visual_uro?link2={{nid2}}'" >
38
+ <br>
39
+ <img src="{{ user_image11 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/videos_uro?link2={{nid2}}'">
40
+ <img src="{{ user_image12 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/materiales_uro?link2={{nid2}}'">
41
+
42
+
43
+ </div>
44
+ </body>
45
+ </html>
templates/especialidad.html ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+
6
+ <title> Quirohelp </title>
7
+ <style>
8
+
9
+ .quiro {
10
+
11
+ background-color: blueviolet;
12
+ color:white;
13
+ font-size: 3.5rem;
14
+
15
+ font-family: Georgia, 'Times New Roman', Times, serif;
16
+
17
+
18
+
19
+
20
+ }
21
+
22
+
23
+
24
+
25
+ </style>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="login2">
31
+ <h1 class="quiro"><img src="{{ user_image0 }}" alt="holaaa" style="max-width: 5%;" > QuiroHelp </h1>
32
+
33
+ <p style="font-size: 1.1rem">Haz click en tu especialidad:</p>
34
+ <form action="{{url_for('especialidad')}}" method="post">
35
+
36
+
37
+
38
+
39
+ <input class=""type="button" value="Traumatologia" style="width: 78%; background-color:darkcyan;font-size: 1.5rem; " onclick="location.href='http://127.0.0.1:5000/buscador_trauma'">
40
+ <h3></h3><img src="{{ user_image1 }}" alt="" style="max-width: 100%" onclick="location.href='http://127.0.0.1:5000/buscador_trauma'">
41
+ <br>
42
+ <input type="button" value="Urologia" style="width: 78%; background-color:saddlebrown;font-size: 1.5rem;" onclick="location.href='http://127.0.0.1:5000/buscador_uro'">
43
+ <h3></h3><img src="{{ user_image2 }}" alt="" style="max-width: 100%" onclick="location.href='http://127.0.0.1:5000/buscador_uro'">
44
+ <br>
45
+ <input type="button" value="Admisión" style="width: 78%; background-color:dimgray;font-size: 1.5rem;" onclick="location.href='http://127.0.0.1:5000/buscador_admision'">
46
+ <h3></h3><img src="{{ user_image3 }}" alt="" style="max-width: 100%" onclick="location.href='http://127.0.0.1:5000/buscador_admision'">
47
+ </form>
48
+
49
+ </div>
50
+ </body>
51
+ </html>
templates/guia_visual.html ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: goldenrod;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Guias visuales: </h2>
12
+
13
+ <hr/>
14
+
15
+ <form action="{{url_for('guia_visual_trauma')}}" method="post">
16
+
17
+
18
+ {% for titulo,url in guia_visual.items() %}
19
+
20
+ <a href="{{url}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
21
+ <br>
22
+ <br>
23
+ <hr/>
24
+ {% endfor %}
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+ </form>
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+ </div>
45
+ </body>
46
+ </html>
templates/instrumental_trauma.html ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: darkcyan;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/buscador_trauma'"> Traumatología</h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.6rem;">{{title}} :</h2>
14
+ <form action="{{url_for('resultado_trauma')}}" method="post">
15
+ <br>
16
+ <br>
17
+
18
+ <b style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;" >{{texto}}</b>
19
+ <br>
20
+ <br>
21
+ {% for nid,titulo in cajas.items() %}
22
+
23
+ <a style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;" href="http://127.0.0.1:5000/resultado_trauma?link={{nid}}" >{{titulo}}</a>
24
+
25
+ <br>
26
+ {% endfor %}
27
+
28
+
29
+
30
+
31
+
32
+ </form>
33
+
34
+
35
+ <br>
36
+ <br>
37
+
38
+
39
+ </div>
40
+ </body>
41
+ </html>
templates/instrumental_uro.html ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: coral;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Instrumental: </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 1.6rem;">{{title}} :</h2>
14
+ <form action="{{url_for('resultado_uro')}}" method="post">
15
+ <br>
16
+ <br>
17
+
18
+ <b style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;" >{{texto}}</b>
19
+ <br>
20
+ <br>
21
+ {% for nid,titulo in cajas.items() %}
22
+
23
+ <a style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;" href="http://127.0.0.1:5000/resultado_uro?link={{nid}}" >{{titulo}}</a>
24
+
25
+ <br>
26
+ {% endfor %}
27
+
28
+
29
+
30
+
31
+
32
+ </form>
33
+
34
+
35
+ <br>
36
+ <br>
37
+
38
+
39
+ </div>
40
+ </body>
41
+ </html>
templates/intervencion_trauma.html ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: coral;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Intervención: </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 2rem;">{{title}} :</h2>
15
+ <form action="{{url_for('resultado_trauma')}}" method="post">
16
+
17
+ <br>
18
+ <br>
19
+ <img src="{{ user_image8 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/pdf_casa_trauma?link2={{nid2}}'">
20
+ <img src="{{ user_image9 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/protocolos_trauma?link2={{nid2}}'" >
21
+ <img src="{{ user_image10 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/guia_visual_trauma?link2={{nid2}}'" >
22
+ <br>
23
+ <img src="{{ user_image11 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/videos_trauma?link2={{nid2}}'">
24
+ <img src="{{ user_image12 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/materiales_trauma?link2={{nid2}}'">
25
+
26
+ </form>
27
+
28
+ </div>
29
+ </body>
30
+ </html>
templates/intervencion_uro.html ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: coral;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Intervención: </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 2rem;">{{title}} :</h2>
15
+ <form action="{{url_for('resultado_uro')}}" method="post">
16
+
17
+ <br>
18
+ <br>
19
+ <img src="{{ user_image8 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/pdf_casa_uro?link2={{nid2}}'">
20
+ <img src="{{ user_image9 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/protocolos_uro?link2={{nid2}}'" >
21
+ <img src="{{ user_image10 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/guia_visual_uro?link2={{nid2}}'" >
22
+ <br>
23
+ <img src="{{ user_image11 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/videos_uro?link2={{nid2}}'">
24
+ <img src="{{ user_image12 }}" style="max-width:20%;" onclick="location.href='http://127.0.0.1:5000/materiales_uro?link2={{nid2}}'">
25
+
26
+ </form>
27
+
28
+ </div>
29
+ </body>
30
+ </html>
templates/mapa_camas.html ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: cornflowerblue;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/buscador_admision'"> Mapa de camas: </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+
15
+ <form action="{{url_for('mapa_camas')}}" method="post">
16
+
17
+
18
+
19
+
20
+ {% for titulo,url in text.items() %}
21
+
22
+ <a href="{{url}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
23
+ <br>
24
+ <br>
25
+ {% endfor %}
26
+
27
+ </form>
28
+
29
+
30
+
31
+
32
+ </div>
33
+ </body>
34
+ </html>
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+ </div>
46
+ </body>
47
+ </html>
templates/materiales.html ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: palevioletred;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Materiales - Cajas: </h2>
12
+
13
+ <hr/>
14
+
15
+ <form action="{{url_for('materiales_trauma')}}" method="post">
16
+
17
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{no_hay}}</b>
18
+
19
+ {% for titulo,nid in cajas.items() %}
20
+
21
+ <a href="http://127.0.0.1:5000/resultado_trauma?link={{nid}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
22
+ <br>
23
+ <br>
24
+ <hr/>
25
+ {% endfor %}
26
+
27
+
28
+ </form>
29
+
30
+ </div>
31
+ </body>
32
+ </html>
templates/materiales_uro.html ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: palevioletred;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Materiales - Cajas: </h2>
12
+
13
+ <hr/>
14
+
15
+ <form action="{{url_for('materiales_uro')}}" method="post">
16
+
17
+ <b style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{no_hay}}</b>
18
+
19
+ {% for titulo,nid in cajas.items() %}
20
+
21
+ <a href="http://127.0.0.1:5000/resultado_uro?link={{nid}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
22
+ <br>
23
+ <br>
24
+ <hr/>
25
+ {% endfor %}
26
+
27
+
28
+ </form>
29
+
30
+ </div>
31
+ </body>
32
+ </html>
templates/otros.html ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color:royalblue;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/buscador_admision'"> Otros: </h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+
15
+ <form action="{{url_for('otros')}}" method="post">
16
+
17
+
18
+
19
+
20
+ {% for titulo,url in text.items() %}
21
+
22
+ <a href="{{url}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
23
+ <br>
24
+ <br>
25
+ {% endfor %}
26
+
27
+ </form>
28
+
29
+
30
+
31
+
32
+ </div>
33
+ </body>
34
+ </html>
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+ </div>
46
+ </body>
47
+ </html>
templates/pdf_casa_comercial.html ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: darkred;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Pdf de la casa comercial: </h2>
12
+
13
+ <hr/>
14
+
15
+ <form action="{{url_for('pdf_casa_trauma')}}" method="post">
16
+
17
+ <br>
18
+
19
+
20
+ {% for titulo1,pdfs in titulos.items() %}
21
+ <br>
22
+ <strong style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{titulo1}} :</strong>
23
+ <select style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;" id="mySelect" onchange="window.location.href=this.value;">
24
+
25
+ <option value="">Seleccionar</option>
26
+
27
+ {% for titulo2,url in pdfs.items() %}
28
+ <option value="{{url}}" >{{titulo2}}</option>
29
+
30
+
31
+
32
+ {% endfor %}
33
+
34
+
35
+ </select>
36
+
37
+ <br>
38
+ <br>
39
+ <hr/>
40
+
41
+
42
+ {% endfor %}
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+ </form>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+ </div>
67
+ </body>
68
+ </html>
templates/programacion_quirurgica.html ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: mediumspringgreen;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/buscador_admision'"> Programación quirúrgica:</h2>
12
+ <h3 style="padding-left: 80%;font-size: 1.2rem;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" style="max-width:18%;" ></h3>
13
+ <hr/>
14
+
15
+ <form action="{{url_for('programacion_quirurgica')}}" method="post">
16
+
17
+
18
+
19
+
20
+ {% for titulo,url in text.items() %}
21
+
22
+ <a href="{{url}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
23
+ <br>
24
+ <br>
25
+ {% endfor %}
26
+
27
+ </form>
28
+
29
+
30
+
31
+
32
+ </div>
33
+ </body>
34
+ </html>
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+ </div>
46
+ </body>
47
+ </html>
templates/protocolo.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: blue;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Protocolo: </h2>
12
+
13
+ <hr/>
14
+
15
+ <form action="{{url_for('protocolos_trauma')}}" method="post">
16
+
17
+
18
+ {% for titulo,url in protocolos.items() %}
19
+
20
+ <a href="{{url}}" style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;">{{titulo}}</a>
21
+ <br>
22
+ <br>
23
+ <hr/>
24
+ {% endfor %}
25
+
26
+
27
+ </form>
28
+
29
+ </div>
30
+ </body>
31
+ </html>
templates/seleccion_trauma.html ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+ </head>
7
+ <body>
8
+ <div class="login22">
9
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 50px;background-color: darkcyan;"><img src="{{ user_image7 }}" alt="" height="50px" width="50px" onclick="location.href='http://127.0.0.1:5000/buscador_trauma'"> Traumatología</h2>
10
+ <h3 style="padding-left: 90%;" onclick="location.href='http://127.0.0.1:5000/ajustes'">AJUSTES <img src="{{ user_image6 }}" alt="" height="30px" width="30px" ></h3>
11
+ <hr/>
12
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';font-size: 25px;">Busqueda mediante selectores:</h2>
13
+
14
+ <form action="{{url_for('seleccion_trauma')}}" method="post">
15
+
16
+ <p>Procedimiento:</p>
17
+ <input name=procedimiento type="text" placeholder="Escriba el procedimiento">
18
+ <p>Casa comercial:</p>
19
+ <input name=casa_comercial type="text" placeholder="Escriba la casa comercial">
20
+ <br>
21
+ <br>
22
+ <button type="submit" style="height: 60px;box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);border:2px solid white; border-radius: 10px;background-color: rgb(0, 128, 255);width: 100px; font-size: 20px;font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman';"> Buscar <img src="{{ user_image4 }}" alt="" height="25px" width="32px" > </button>
23
+ <br>
24
+ <br>
25
+ <br>
26
+ <br>
27
+ <b style="font-size: 20px;font-family: Arial, Helvetica, sans-serif;">{{prediction_text}}</b>
28
+
29
+ </form>
30
+ </div>
31
+ </body>
32
+ </html>
templates/videos.html ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title> Quirohelp </title>
6
+
7
+
8
+ </head>
9
+ <body>
10
+ <div class="login22">
11
+ <h2 style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;font-size: 3rem;background-color: blueviolet;"><img src="{{ user_image7 }}" alt="" style="max-width:5%;" onclick="location.href='http://127.0.0.1:5000/especialidad'"> Videos: </h2>
12
+
13
+ <hr/>
14
+
15
+ <form action="{{url_for('videos_trauma')}}" method="post">
16
+
17
+ <br>
18
+
19
+
20
+
21
+ {% for titulo1,pdfs in titulos.items() %}
22
+ <br>
23
+ <strong style="font-size: 1.4rem;font-family: Arial, Helvetica, sans-serif;">{{titulo1}} :</strong>
24
+ <select style="font-size: 1.2rem;font-family: Arial, Helvetica, sans-serif;" id="mySelect" onchange="window.location.href=this.value;">
25
+
26
+ <option value="">Seleccionar</option>
27
+
28
+ {% for titulo2,url in pdfs.items() %}
29
+ <option value="{{url}}" >{{titulo2}}</option>
30
+
31
+
32
+
33
+ {% endfor %}
34
+
35
+
36
+ </select>
37
+
38
+ <br>
39
+ <br>
40
+ <hr/>
41
+
42
+
43
+ {% endfor %}
44
+
45
+ </form>
46
+
47
+ </div>
48
+ </body>
49
+ </html>