-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblood.php
executable file
·164 lines (158 loc) · 8.83 KB
/
blood.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
<?php
include 'includes/header.php';
// show errors
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
if(isset($_POST['pid']) && $_POST['pid']!=''){
$data=get_api_data_post('https://apis.stmorg.in/medical/investigations/blood',$_POST);
$data=json_decode($data,true);
// Check for API errors
if ($data['status'] == 'error') {
echo '<script>alert("'.$data['data'].'");</script>';
} else {
$insert_id=$data['data'];
}
}else{
$pid = '';
}
?>
<!-- partial -->
<div class="main-panel">
<div class="content-wrapper">
<div class="page-header">
<h3 class="page-title">
<span class="page-title-icon bg-gradient-danger text-white me-2">
<i class="mdi mdi-home"></i>
</span>
Blood Investigations
</h3>
<nav aria-label="breadcrumb">
<ul class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page">
<span></span>Overview
<i class="mdi mdi-alert-circle-outline icon-sm text-primary align-middle"></i>
</li>
</ul>
</nav>
</div>
<!-- blood requests table -->
<div class="row">
<div class="col-md-6 grid-margin stretch-card">
<div class="card">
<div class="card-body">
<h4 class="card-title">Blood Investigations</h4>
<p class="card-description"> Enter Details
</p>
<h4 style="color:red"> <?php if(isset($insert_id)){
echo 'Record Added Successfully with ID: '.$insert_id.'';
} ?></h4>
<form class="forms-sample" method="POST">
<div class="form-group">
<label for="exampleInputUsername1">Patient Id :</label>
<input type="text" class="form-control" id="exampleInputUsername1" placeholder="Name"
name="pid">
</div>
<h4 class="card-title">Complete Blood Picture</h4>
<!-- Heamoglobin -->
<div class="form-group">
<label for="exampleInputUsername1">Heamoglobin :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Heamoglobin" name="heamoglobin">
</div>
<!-- RBC Count -->
<div class="form-group">
<label for="exampleInputUsername1">RBC Count :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="RBC Count" name="rbc_count">
</div>
<!-- WBC Count -->
<div class="form-group">
<label for="exampleInputUsername1">WBC Count :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="WBC Count" name="wbc_count">
</div>
<h4 class="card-title">Differential Count</h4>
<!-- Neutrophils -->
<div class="form-group">
<label for="exampleInputUsername1">Neutrophils :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Neutrophils" name="neutrophils">
</div>
<!-- Lymphocytes -->
<div class="form-group">
<label for="exampleInputUsername1">Lymphocytes :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Lymphocytes" name="lymphocytes">
</div>
<!-- Eosinophils -->
<div class="form-group">
<label for="exampleInputUsername1">Eosinophils :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Eosinophils" name="eosinophils">
</div>
<!-- Monocytes -->
<div class="form-group">
<label for="exampleInputUsername1">Monocytes :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Monocytes" name="monocytes">
</div>
<!-- Basophils -->
<div class="form-group">
<label for="exampleInputUsername1">Basophils :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Basophils" name="basophils">
</div>
<!-- Platelet Count -->
<div class="form-group">
<label for="exampleInputUsername1">Platelet Count :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Platelet Count" name="platelet_count">
</div>
<!-- Haemotocrit(PCV) -->
<div class="form-group">
<label for="exampleInputUsername1">Haemotocrit(PCV) :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Haemotocrit(PCV)" name="haemotocrit">
</div>
<!-- Mean Cell Volume(MCV) : -->
<div class="form-group">
<label for="exampleInputUsername1">Mean Cell Volume(MCV) :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Mean Cell Volume(MCV)" name="mcv">
</div>
<!-- Mean Cell Haemoglobin(MCH) : -->
<div class="form-group">
<label for="exampleInputUsername1">Mean Cell Haemoglobin(MCH) :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Mean Cell Haemoglobin(MCH)" name="mch">
</div>
<!-- Mean Cell Haemoglobin Concentration(MCHC) : -->
<div class="form-group">
<label for="exampleInputUsername1">Mean Cell Haemoglobin Concentration(MCHC) :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="Mean Cell Haemoglobin Concentration(MCHC)" name="mchc">
</div>
<!-- RDW-CV -->
<div class="form-group">
<label for="exampleInputUsername1">RDW-CV :</label>
<input type="number" class="form-control" id="exampleInputUsername1"
placeholder="RDW-CV" name="rdw_cv">
</div>
<!-- Band forms -->
<div class="form-group">
<label for="exampleInputUsername1">Band forms :</label>
<input type="text" class="form-control" id="exampleInputUsername1"
placeholder="Band forms" name="band_forms">
</div>
<button type="submit" class="btn btn-gradient-primary me-2">Submit</button>
<button class="btn btn-light">Cancel</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- content-wrapper ends -->
<?php
include 'includes/footer.php';