-
Notifications
You must be signed in to change notification settings - Fork 10
/
consultbackground.php
381 lines (378 loc) · 18.1 KB
/
consultbackground.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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<?php
session_start();
include('modules/dbhandler.php');
include('modules/functions.php');
if(isset($_SESSION['id'])){
if($_SESSION['privileges'] == 'sec' || $_SESSION['privileges'] == 'aux' || $_SESSION['privileges'] == 'den' || $_SESSION['privileges'] == 'man' || $_SESSION['privileges'] == 'web'){
if(isset($_GET['id'])){
$handler = new DBHandler();
$patientdata = $handler->getPatientDataById($_GET['id']);
}
else{
header('Location:error.php');
}
}
else{
header('Location:denied.php');
}
}
else{
header('Location:index.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dental: Consultar Antecedentes</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
<link rel="stylesheet" type="text/css" href="styles/reset.css" />
<link rel="stylesheet" type="text/css" href="styles/default.css" />
<link rel="stylesheet" type="text/css" href="cupertino/jquery-ui-1.8.10.custom.css" />
<script type="text/javascript" src="javascript/jquery-1.5.min.js"></script>
<script type="text/javascript" src="cupertino/jquery-ui-1.8.10.custom.min.js"></script>
<script type="text/javascript" src="javascript/consultbackground.js"></script>
</head>
<body>
<div id="header">
<div class="center"><a href="menu.php"><img alt="logo" src="images/logo.png" /></a></div>
<div class="usersession">
<img alt="user" src="images/user.png" />
Registrado como <?php echo $_SESSION['firstname'] . ' ' . $_SESSION['firstlastname'] . ' ' . $_SESSION['secondlastname'];?> |
<a href="logout.php" class="session">Cerrar Sesión</a>
</div>
</div>
<div id="outer-wrapper">
<fieldset>
<?php
if($patientdata != null){
?>
<legend><a href="medicalrecord.php?id=<?php echo $patientdata['id'];?>">Historia Clínica</a> → Antecedentes: <a href="patient.php?id=<?php echo $patientdata['id'];?>"><?php echo $patientdata['firstname'] . ' ' . $patientdata['firstlastname'] . ' ' . $patientdata['secondlastname'];?></a></legend>
<?php
if($patientdata['active'] == 1){
?>
<form action="#" id="medicalrecord" method="post">
<h1>Información Inicial</h1>
<hr />
<p class="form">
<label for="id">Id Antecedentes</label>
<input id="id" name="id" style="width:10%;" type="text" />
</p>
<p class="form">
<label for="patient">Id Paciente</label>
<input id="patient" name="patient" style="width:10%;" type="text" value="<?php echo $patientdata['id'];?>" />
</p>
<p class="form">
<label for="user">Id Usuario</label>
<input id="user" name="user" style="width:10%;" type="text" />
</p>
<p class="form">
<label for="username">Nombre Usuario</label>
<input id="username" name="username" type="text" />
</p><p class="form">
<label for="date">Fecha</label>
<input id="date" name="date" style="width:10%;" type="text" />
<span style="font-style:italic;">mm/dd/aaaa</span>
</p>
<h1>1. Antecedentes Familiares</h1>
<hr />
<p class="form">
<label for="familiar1">Afecciones cardiacas</label>
<select id="familiar1" name="familiar1"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="familiar2">Diabetes mellitus</label>
<select id="familiar2" name="familiar2"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="familiar3">Hipertensión</label>
<select id="familiar3" name="familiar3"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="familiar4">Epilepsia</label>
<select id="familiar4" name="familiar4"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="familiar5">Cáncer</label>
<select id="familiar5" name="familiar5"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="familiar6">Tuberculosis</label>
<select id="familiar6" name="familiar6"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="familiardescription">Otros / Descripción</label>
<textarea id="familiardescription" name="familiardescription" cols="200" rows="20"></textarea>
</p>
<h1>2. Antecedentes Patológicos</h1>
<hr />
<p class="form">
<label for="pathological1">VIH</label>
<select id="pathological1" name="pathological1"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological2">Hepatitis</label>
<select id="pathological2" name="pathological2"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological3">Fiebre reumática</label>
<select id="pathological3" name="pathological3"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological4">Diabetes</label>
<select id="pathological4" name="pathological4"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological5">Ulcera gástrica</label>
<select id="pathological5" name="pathological5"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological6">Hernia hiatal</label>
<select id="pathological6" name="pathological6"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological7">Epilepsia</label>
<select id="pathological7" name="pathological7"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological8">Tensión arterial alta</label>
<select id="pathological8" name="pathological8"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological9">Convulsiones</label>
<select id="pathological9" name="pathological9"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological10">Mareos frecuentes</label>
<select id="pathological10" name="pathological10"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological11">Fracturas/accidentes</label>
<select id="pathological11" name="pathological11"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological12">Cicatriza normalmente</label>
<select id="pathological12" name="pathological12"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological13">Ha tenido infarto del miocardio</label>
<select id="pathological13" name="pathological13"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological14">Ha tenido reemplazo de válvulas</label>
<select id="pathological14" name="pathological14"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological15">Ha perdido el conocimiento</label>
<select id="pathological15" name="pathological15"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="pathological16">Ha perdido peso últimamente</label>
<select id="pathological16" name="pathological16"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="allergies">¿Alergias a qué?</label>
<textarea id="allergies" name="allergies" cols="200" rows="20"></textarea>
</p>
<p class="form">
<label for="pathologicaldescription">Otros / Descripción</label>
<textarea id="pathologicaldescription" name="pathologicaldescription" cols="200" rows="20"></textarea>
</p>
<h1>3. Antecedentes Toxicológicos</h1>
<hr />
<p class="form">
<label for="toxicological1">Fuma</label>
<select id="toxicological1" name="toxicological1"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="toxicological2">Ingiere bebidas alcohólicas</label>
<select id="toxicological2" name="toxicological2"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="toxicological3">Usa drogas</label>
<select id="toxicological3" name="toxicological3"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="toxicological4">Alérgico a la anestesia</label>
<select id="toxicological4" name="toxicological4"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="toxicological5">Toma medicamentos</label>
<select id="toxicological5" name="toxicological5"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="currentmedication">¿Cuáles?</label>
<textarea id="currentmedication" name="currentmedication" cols="200" rows="20" ></textarea>
</p>
<p class="form">
<label for="toxicological6">Es alérgico a algún medicamento</label>
<select id="toxicological6" name="toxicological6"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="allergicmedication">¿Cuáles?</label>
<textarea id="allergicmedication" name="allergicmedication" cols="200" rows="20"></textarea>
</p>
<p class="form">
<label for="toxicologicaldescription">Otros / Descripción</label>
<textarea id="toxicologicaldescription" name="toxicologicaldescription" cols="200" rows="20"></textarea>
</p>
<h1>4. Antecedentes Ginecobstétricos</h1>
<hr />
<p class="form">
<label for="gynecoobstetrical1">Toma anticonceptivos</label>
<select id="gynecoobstetrical1" name="gynecoobstetrical1"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="gynecoobstetrical2">Está embarazada</label>
<select id="gynecoobstetrical2" name="gynecoobstetrical2"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="months">¿Cuantos meses?</label>
<select id="months" name="months">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">Mas</option>
</select>
</p>
<p class="form">
<label for="gynecoobstetrical3">Reemplazo de cadera</label>
<select id="gynecoobstetrical3" name="gynecoobstetrical3"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="gynecoobstetrical4">Fractura de fémur</label>
<select id="gynecoobstetrical4" name="gynecoobstetrical4"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="gynecoobstetricaldescription">Otros / Descripción</label>
<textarea id="gynecoobstetricaldescription" name="gynecoobstetricaldescription" cols="200" rows="20"></textarea>
</p>
<h1>5. Antecedentes Hospitalarios</h1>
<hr />
<p class="form">
<label for="hospital1">Ha recibido transfusiones</label>
<select id="hospital1" name="hospital1"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="hospital2">Ha sido hospitalizado</label>
<select id="hospital2" name="hospital2"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="hospitaldescription">Otros / Descripción</label>
<textarea id="hospitaldescription" name="hospitaldescription" cols="200" rows="20"></textarea>
</p>
<h1>6. Antecedentes Estomatológicos</h1>
<hr />
<p class="form">
<label for="stomatological1">Luxación de mandíbula</label>
<select id="stomatological1" name="stomatological1"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="stomatological2">Fractura de mandíbula</label>
<select id="stomatological2" name="stomatological2"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="stomatological3">Amigdalitis</label>
<select id="stomatological3" name="stomatological3"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="stomatological4">Repetición infecciones orales</label>
<select id="stomatological4" name="stomatological4"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="stomatological5">Mal aliento</label>
<select id="stomatological5" name="stomatological5"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="stomatological6">Fuegos</label>
<select id="stomatological6" name="stomatological6"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="stomatologicaldescription">Otros / Descripción</label>
<textarea id="stomatologicaldescription" name="stomatologicaldescription" cols="200" rows="20"></textarea>
</p>
<h1>7. Antecedentes Odontológicos</h1>
<hr />
<p class="form">
<label for="odontological1">Bruxismo</label>
<select id="odontological1" name="odontological1"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="odontological2">Onicofagia</label>
<select id="odontological2" name="odontological2"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="odontological3">Mordedura labio (sup / inf)</label>
<select id="odontological3" name="odontological3"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="odontological4">Succión digital</label>
<select id="odontological4" name="odontological4"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="odontological5">Biberón</label>
<select id="odontological5" name="odontological5"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="odontological6">Deglución atípica</label>
<select id="odontological6" name="odontological6"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="odontological7">Respirador bucal</label>
<select id="odontological7" name="odontological7"><option value="0">No</option><option value="1">Si</option></select>
</p>
<p class="form">
<label for="odontologicaldescription">Otros / Descripción</label>
<textarea id="odontologicaldescription" name="odontologicaldescription" cols="200" rows="20"></textarea>
</p>
<h1>8. Motivo de la Consulta</h1>
<hr />
<p class="form">
<label for="lastvisit">Última visita al odontólogo</label>
<input id="lastvisit" name="lastvisit" type="text" />
</p>
<p class="form">
<label for="origin">Origen de la enfermedad</label>
<select id="origin" name="origin">
<option value="0">---</option>
<option value="1">Enfermedad General</option>
<option value="2">Accidente de Trabajo</option>
<option value="3">Enfermedad Profesional</option>
</select>
</p>
<p class="form">
<label for="originhistory">Historia de la enfermedad</label>
<textarea id="originhistory" name="originhistory" cols="200" rows="20"></textarea>
</p>
<p class="form">
<label for="background">Antecedentes de importancia</label>
<textarea id="background" name="background" cols="200" rows="20"></textarea>
</p>
</form>
<?php
}
else{
?>
<p class="center warning">El paciente se encuentra inactivo<br />Consulte a gerencia para el proceso de activación</p>
<?php
}
}
else{
?>
<legend>Paciente no encontrado</legend>
<p class="center warning">Paciente no encontrado</p>
<?php
}
?>
</fieldset>
<div id="message" style="display:none;"></div>
</div>
</body>
</html>