generated from Nereare/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsadt.php
361 lines (316 loc) · 11.2 KB
/
sadt.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<?php
/**
* The slug for this page.
* IMPORTANT: Set the variable below so that the header works properly!
* @var string
*/
$page = "sadt";
$subtitle = "SADTs";
require_once "header.php";
function getUnit($line = 3) {
if ( isset($_COOKIE["place"]) ) { $data = json_decode( $_COOKIE["place"] ); }
elseif ( isset($_SESSION["place"]) ) { $data = $_SESSION["place"]; }
else { $line = 4; }
if ( $line > 3 ) { return " "; }
else { return $data[ $line ]; }
}
?>
<main class="section">
<div class="container">
<div class="box">
<h2 class="title is-4">Identificação</h2>
<div class="field has-addons">
<div class="control">
<button class="button is-static" tabindex="-1">Nome Completo</button>
</div>
<div class="control is-expanded">
<input type="text" class="input" id="name" placeholder="Nome completo">
</div>
</div>
<div class="columns">
<div class="column">
<div class="field has-addons">
<div class="control">
<button class="button is-static" tabindex="-1">Prontuário</button>
</div>
<div class="control is-expanded">
<input type="text" class="input" id="pront" placeholder="#">
</div>
</div>
<div class="field has-addons">
<div class="control">
<button class="button is-static" tabindex="-1">Diagnóstico</button>
</div>
<div class="control is-expanded">
<input type="text" class="input" id="dx" placeholder="Diagnóstico, Justificativa ou CID-10">
</div>
</div>
</div>
<div class="column">
<div class="field has-addons">
<div class="control">
<button class="button is-static" tabindex="-1">Nascimento</button>
</div>
<div class="control is-expanded">
<input type="text" class="input" id="birth" placeholder="Data de Nascimento">
</div>
</div>
<div class="field has-addons">
<div class="control">
<label for="urgent" class="button">
<span class="icon">
<i class="mdi mdi-checkbox-blank-outline mdi-24px"></i>
</span>
<input type="checkbox" class="is-hidden checkbutton" id="urgent" value="true">
</label>
</div>
<div class="control is-expanded">
<button class="button is-static is-fullwidth" tabindex="-1">Coleta Urgente</button>
</div>
</div>
</div>
</div>
</div>
<div class="box">
<h2 class="title is-4">Modelos</h2>
<div class="field">
<div class="control is-expanded">
<div class="select is-fullwidth">
<select id="presets">
<option value="" disabled selected>escolha um modelo...</option>
<option value="screening1">Rastreio (sem PSOF)</option>
<option value="screening2">Rastreio (com PSOF)</option>
<option value="has1">Hipertensão / Diabetes (sem PSOF)</option>
<option value="has2">Hipertensão / Diabetes (com PSOF)</option>
<option value="ckd">DRC (sem PSOF)</option>
<option value="preg1">Gestação 1º Trimestre / Abertura PN</option>
<option value="preg23">Gestação 2/3º Trimestre (SEM Toxoplasmose)</option>
<option value="preg23toxo">Gestação 2/3º Trimestre (COM Toxoplasmose)</option>
<option value="preg2428">Gestação TOTG (24-28sem)</option>
<option value="pegb">Gestação PEGB (35-36sem)</option>
<option value="tb1">Tuberculose (Início de Tratamento, não inclui Rx)</option>
<option value="tb2">Tuberculose (Seguimento)</option>
<option value="infert_f1">Infertilidade (♀, Pág. 1/2)</option>
<option value="infert_f2">Infertilidade (♀. Pág. 2/2)</option>
<option value="infert_m1">Infertilidade (♂, Pág. 1/2)</option>
<option value="infert_m2">Infertilidade (♂, Pág. 2/2)</option>
<option value="pcos">SOP</option>
</select>
</div>
</div>
</div>
</div>
<div class="box">
<h2 class="title is-4">SADT 1</h2>
<div class="field">
<div class="control is-expanded">
<input type="text" class="input" id="lab1-1" placeholder="Exames (1º SADT, 1ª Linha)">
</div>
</div>
<div class="field">
<div class="control is-expanded">
<input type="text" class="input" id="lab1-2" placeholder="Exames (1º SADT, 2ª Linha)">
</div>
</div>
<div class="field">
<div class="control is-expanded">
<input type="text" class="input" id="lab1-3" placeholder="Exames (1º SADT, 3ª Linha)">
</div>
</div>
<h2 class="title is-4">SADT 1</h2>
<div class="field">
<div class="control is-expanded">
<input type="text" class="input" id="lab2-1" placeholder="Exames (2º SADT, 1ª Linha)">
</div>
</div>
<div class="field">
<div class="control is-expanded">
<input type="text" class="input" id="lab2-2" placeholder="Exames (2º SADT, 2ª Linha)">
</div>
</div>
<div class="field">
<div class="control is-expanded">
<input type="text" class="input" id="lab2-3" placeholder="Exames (2º SADT, 3ª Linha)">
</div>
</div>
</div>
</div>
</main>
<div id="sadt-print">
<table class="sadt-header">
<tr>
<td>
<p class="print-urgent">URGENTE</p>
</td>
<td>
<ul>
<li>Análises Clínicas</li>
<li>Radiologia</li>
<li>Outros</li>
</ul>
</td>
<td>
<p class="top">Guia de Encaminhamento</p>
<p class="top">SADT</p>
<p class="pront">
Pront. Nº:
<span class="print-pront"> </span>
</p>
</td>
</tr>
</table>
<table class="sadt">
<tr>
<td colspan="6" label="Nome">
<span class="print-name"> </span>
</td>
<td colspan="2" label="Data de Nasc"><span class="print-birth"> </span></td>
<td colspan="3" label="Identificação"><span> </span></td>
</tr>
<tr>
<td colspan="6" label="Endereço"><span> </span></td>
<td colspan="2" label="Município"><span> </span></td>
<td colspan="1" label="UF"><span> </span></td>
<td colspan="2" label="Telefone"><span> </span></td>
</tr>
<tr>
<td colspan="11" label="Hipótese Diagnóstica"><span class="print-dx"> </span></td>
</tr>
<tr>
<td colspan="11" label=" "><span> </span></td>
</tr>
<tr>
<td colspan="11" label="Área e/ou seguimento anatômico a ser examinado"><span> </span></td>
</tr>
<tr>
<td colspan="11" label=" "><span> </span></td>
</tr>
<tr>
<td colspan="11" label="Exames ou serviços solicitados"><span class="print-lab1-1"> </span></td>
</tr>
<tr>
<td colspan="11" label=" "><span class="print-lab1-2"> </span></td>
</tr>
<tr>
<td colspan="11" label=" "><span class="print-lab1-3"> </span></td>
</tr>
<tr>
<td colspan="3" rowspan="2" label="Assinatura CRM e Carimbo"><span> </span><span> </span><span> </span></td>
<td colspan="3" label="Data Emissão"><span> </span></td>
<td colspan="5" label="Unidade Solicitante"><span class="has-text-right pr-2"><?php echo getUnit(0); ?></span></td>
</tr>
<tr>
<td colspan="8" label="Encaminhado para"><span class="has-text-right pr-2">CNES <?php echo getUnit(1); ?> | Tel.: <?php echo getUnit(2); ?></span></td>
</tr>
<tr>
<td colspan="3" rowspan="2" label="Carimbo de Autorização"><span> </span><span> </span><span> </span></td>
<td colspan="8" label="Endereço"><span class="has-text-right pr-2"><?php echo getUnit(3); ?></span></td>
</tr>
<tr>
<td colspan="8" label=" "><span> </span></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<hr>
<table class="sadt-header">
<tr>
<td>
<p class="print-urgent">URGENTE</p>
</td>
<td>
<ul>
<li>Análises Clínicas</li>
<li>Radiologia</li>
<li>Outros</li>
</ul>
</td>
<td>
<p class="top">Guia de Encaminhamento</p>
<p class="top">SADT</p>
<p class="pront">
Pront. Nº:
<span class="print-pront"> </span>
</p>
</td>
</tr>
</table>
<table class="sadt">
<tr>
<td colspan="6" label="Nome">
<span class="print-name"> </span>
</td>
<td colspan="2" label="Data de Nasc"><span class="print-birth"> </span></td>
<td colspan="3" label="Identificação"><span> </span></td>
</tr>
<tr>
<td colspan="6" label="Endereço"><span> </span></td>
<td colspan="2" label="Município"><span> </span></td>
<td colspan="1" label="UF"><span> </span></td>
<td colspan="2" label="Telefone"><span> </span></td>
</tr>
<tr>
<td colspan="11" label="Hipótese Diagnóstica"><span class="print-dx"> </span></td>
</tr>
<tr>
<td colspan="11" label=" "><span> </span></td>
</tr>
<tr>
<td colspan="11" label="Área e/ou seguimento anatômico a ser examinado"><span> </span></td>
</tr>
<tr>
<td colspan="11" label=" "><span> </span></td>
</tr>
<tr>
<td colspan="11" label="Exames ou serviços solicitados"><span class="print-lab2-1"> </span></td>
</tr>
<tr>
<td colspan="11" label=" "><span class="print-lab2-2"> </span></td>
</tr>
<tr>
<td colspan="11" label=" "><span class="print-lab2-3"> </span></td>
</tr>
<tr>
<td colspan="3" rowspan="2" label="Assinatura CRM e Carimbo"><span> </span><span> </span><span> </span></td>
<td colspan="3" label="Data Emissão"><span> </span></td>
<td colspan="5" label="Unidade Solicitante"><span class="has-text-right pr-2"><?php echo getUnit(0); ?></span></td>
</tr>
<tr>
<td colspan="8" label="Encaminhado para"><span class="has-text-right pr-2">CNES <?php echo getUnit(1); ?> | Tel.: <?php echo getUnit(2); ?></span></td>
</tr>
<tr>
<td colspan="3" rowspan="2" label="Carimbo de Autorização"><span> </span><span> </span><span> </span></td>
<td colspan="8" label="Endereço"><span class="has-text-right pr-2"><?php echo getUnit(3); ?></span></td>
</tr>
<tr>
<td colspan="8" label=" "><span> </span></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
<?php
require_once "footer.php";
?>