-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoctor-history.php
269 lines (247 loc) · 16.4 KB
/
doctor-history.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
<?php
include("include/doctor-header.php");
if(isset($_POST['View']))
{
if(isset($_POST['pid']))
{
$Pid = $_POST["pid"];
$sql1 = "SELECT * FROM hospital.casebook where pid='$Pid' ;";
$result = mysqli_query($conn, $sql1);
if (mysqli_num_rows($result) > 0)
{
$row=mysqli_fetch_assoc($result);
echo"<div class='row clealfix'>";
echo"<div class='col-lg-12 col-md-12'>";
echo"<div class='card'>";
echo"<div class='header'>";
echo"<h2>Casebook</h2>";
echo"</div>";
echo"<div class='body'>";
echo"<ul class='list-group list-group-flush'>";
echo"<li class='list-group-item'>Ref Doctor : ".$row['refDoc']."</li>";
echo"<li class='list-group-item'>Allergy : ".$row['allergy']."</li>";
echo"<li class='list-group-item'>Vaccination : ".$row['immunisation']."</li>";
echo"<li class='list-group-item'>Genetic Diseases : ".$row['geneticDisease']."</li>";
echo"<li class='list-group-item'>Current Diseases : ".$row['cTreatingDisease']."</li>";
echo"<li class='list-group-item'>Health Effect : ".$row['ctdHealthEffect']."</li>";
echo"<li class='list-group-item'>Sergical History : ".$row['surgicalHisrory']."</li>";
echo"<li class='list-group-item'>Social History : ".$row['social']."</li>";
echo"<li class='list-group-item'>Mental History : ".$row['mentalDisease']."</li>";
echo"<li class='list-group-item'>NewBorn Complication : ".$row['newbornComplications']."</li>";
echo"<li class='list-group-item'>Pregnancy/Period Details : ".$row['pregnancyPeriodDetails']."</li>";
echo"</ul>";
echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";
}else echo"<script>window.alert('No Data Found');</script>";
$sql1 = "SELECT * FROM hospital.admitpatients where pid='$Pid' ";
$result = mysqli_query($conn, $sql1);
while($row=mysqli_fetch_assoc($result)){
$did=$row['refDocID'];
$result = mysqli_query($conn,"SELECT * FROM hospital.hospitalstaff where hsid=$did");
if (mysqli_num_rows($result) > 0)
{
$row1=mysqli_fetch_assoc($result);
echo"<div class='row clearfix'>
<div class='col-lg-12 col-md-12'>
<div class='card'>
<div class='body'>
<ul class='nav nav-tabs-new2'>
<li class='nav-item'><a class='nav-link active' data-toggle='tab' href='#current'>Admit Patient Details</a></li>
<!-- <li class='nav-item'><a class='nav-link' data-toggle='tab' href='#hist'>History</a></li> -->
</ul>
<div class='tab-content mt-3'>
<!--Current -->
<div class='tab-pane active' id='current'>
<div class='timeline-item green'>
<span class='date'>".$row['status']."</span>
<p> Admit Date : ".$row['dateTime']."</p>
<span>Attend by :<a href='javascript:void(0);' title=''> Dr. ". $row1['name']."<br>
</a>
Contact Number :".$row1['cNumber']."
Email :".$row1['email']."
</span>
</div>
<div class='timeline-item warning '>
<span class='date'>Admit Address</span>
<span> Ward Name:".$row['ward']."<br>
<i class=' fa fa-arrow-down'></i> <br>
Room Number :".$row['room']." <br>
<i class='' fa fa-arrow-down'></i> <br>
Bed Number :".$row['bedNumber']." </span>
</div>
<div class='timeline-item warning '>
<span class='date'>Vitals </span>
<p> Blood Pressur :".$row['bloodpressure']."</p>
<p> Heart Rate :".$row['heartrate']."</p>
<p> Temprature :".$row['temprature']."</p>
</div>
<div class='timeline-item danger'>
<span class='date'>Discription </span>
<p>".$row['admitDiscription']."</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
}
}
}else echo"<script>window.alert('Enter Valid Patient ID');</script>";
}
?>
<!--MAIN Content-->
<div class="row clearfix">
<div class="col-md-12">
<div class="card">
<div class="header">
<h2>Enter ID To View Casebook</h2>
</div>
<div class="body">
<form id="basic-form" action="#" method="post" novalidate>
<div class="form-group">
<label><small>Patient Id</small></label>
<input type="text" class="form-control" required name="pid">
</div>
<br>
<button type="submit" class="btn btn-primary" name="View">View </button>
</form>
</div>
</div>
</div>
</div>
<?php
?>
<!-- <div class="row clearfix">
<div class="col-lg-12 col-md-12">
<div class="card">
<div class="body">
<div class="header">
<h2>Admit Details</h2>
</div>
<ul class="nav nav-tabs-new2">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#current">Current Activity</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#hist">History</a></li>
</ul>
<div class="tab-content mt-3">
<div class="tab-pane active" id="current">
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. </p>
<div class="timeline-item green">
<span class="date">Just now</span>
<h5>Discharge</h5>
</div>
<div class="timeline-item warning ">
<span class="date">02 Jun 2018</span>
<h6>Spinal Osteomyelitis Surgery</h6>
<span><a href="javascript:void(0);" title="">Dr. Chandler Bing</a></span>
<div class="msg">
<p>web by far While that's mock-ups and this is politics, are they really so different? I think the only card she has is the Lorem card.</p>
<ul class="list-unstyled team-info">
<li><img src="assets/images/xs/avatar1.jpg" data-toggle="tooltip" data-placement="top" title="" alt="Avatar" data-original-title="Dr. Chris Fox"></li>
<li><img src="assets/images/xs/avatar2.jpg" data-toggle="tooltip" data-placement="top" title="" alt="Avatar" data-original-title="Dr. Joge Lucky"></li>
<li><img src="assets/images/xs/avatar5.jpg" data-toggle="tooltip" data-placement="top" title="" alt="Avatar" data-original-title="Isabella" aria-describedby="tooltip698705"></li>
</ul>
<div class="timeline_img m-b-20">
<img class="w-25" src="assets/images/blog/blog-page-4.jpg" alt="Awesome Image">
<img class="w-25" src="assets/images/blog/blog-page-2.jpg" alt="Awesome Image">
</div>
</div>
</div>
<div class="timeline-item danger">
<span class="date">01 Jun 2018</span>
<h6>Blood Report</h6>
<div class="msg">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<div class="row">
<div class="col-md-6">
<strong>Analysis IDFB-3</strong>
<table class="table table-hover">
<tbody>
<tr>
<td>Down Cluster</td>
<td>90.9% </td>
</tr>
<tr>
<td>Down Fiber</td>
<td>1.8%</td>
</tr>
<tr>
<td>Waterfowl Feathers </td>
<td>1.7%</td>
</tr>
<tr>
<td>Quill</td>
<td>0.0%</td>
</tr>
<tr>
<td>Landfowl</td>
<td>0.1%</td>
</tr>
<tr>
<td>Total</td>
<td>100.0%</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6">
<strong>Species IDFB-12</strong>
<table class="table table-hover">
<tbody>
<tr>
<td>Goose Down </td>
<td>90.9% </td>
</tr>
<tr>
<td>Duck Down</td>
<td>1.8%</td>
</tr>
<tr>
<td>Goose Feathers</td>
<td>1.7%</td>
</tr>
<tr>
<td>Duck Feathers</td>
<td>0.0%</td>
</tr>
<tr>
<td>Total Duck</td>
<td>0.1%</td>
</tr>
<tr>
<td>Total Goose</td>
<td>100.0%</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="timeline-item danger">
<span class="date">01 Jun 2018</span>
<h6>Blood checkup test</h6>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div class="timeline-item dark pb-0">
<span class="date">01 Jun 2018</span>
<h6>Admit patient ward no. 21</h6>
<span><a href="javascript:void(0);" title="">Katherine Lumaad</a> Oakland, CA</span>
<div class="msg">
<div class="timeline_img m-b-20">
<img class="w-25" src="assets/images/image-gallery/10.jpg" alt="Awesome Image">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> -->
<?php
include("include/doctor-footer.php");
?>