forked from banda-health/htmlforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Physical Exam Form - Vitals.html
243 lines (219 loc) · 6.58 KB
/
Physical Exam Form - Vitals.html
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
<htmlform>
<script type="text/javascript">
if(jQuery) {
$j(function() {
$j("#w28").attr("readonly",true);
});
$j(function() {
function getBMI() {
if($j(getValue("weight.value") != "")) {
if(getValue("height.value") != "") {
var bmi = getValue("weight.value") / ( (getValue("height.value") / 100.0) * (getValue("height.value") / 100.0) );
$j("#w28").val(bmi.toPrecision(3));
//setValue("bmi.value", bmi.toPrecision(3));
}
}
}//end getBMI
getField("weight.value").change(getBMI);
getField("height.value").change(getBMI);
getField("bmi.value").blur(getBMI);
beforeSubmit.push(function() {
if(getValue("bmi.value") > 50) {
alert("BMI cannot be greater than 50");
return false;
}
return true;
});
});
$j(function(){
$j('.type').hide();
});
}
</script>
<macros>
paperFormId = (Fill this in)
headerColor =#009d8e
fontOnHeaderColor = white
</macros>
<style>
.section {
border: 1px solid $headerColor;
padding: 2px;
text-align: left;
margin-bottom: 1em;
}
.sectionHeader {
background-color: $headerColor;
color: $fontOnHeaderColor;
display: block;
padding: 2px;
font-weight: bold;
}
table.baseline-aligned td {
vertical-align: baseline;
}
.lookup {
padding-left: 2cm;
}
</style>
<span style="float:right">Paper Form ID: $paperFormId</span>
<h2>PHYSICAL EXAM FORM - VITALS</h2>
<section headerLabel="1. Encounter Details">
<table class="baseline-aligned">
<tr>
<td>Date:</td>
<td><encounterDate default="today"/></td>
<td><pre> </pre></td>
<td>Location:</td>
<td><encounterLocation default="Unknown Location" /></td>
<td><pre> </pre></td>
<td>Provider:</td>
<td><encounterProvider default="currentUser" role="Provider" /></td>
<td><pre> </pre></td>
<td class="type">Type:</td>
<td class="type"><encounterType default="VITALS" /></td>
</tr>
</table>
</section>
<section headerLabel="2. Patient Information">
<table class="baseline-aligned">
<tr>
<td>Name:</td>
<td><lookup class="value" expression="patient.personName"/></td>
<td><pre> </pre></td>
<td>Manual ID:</td>
<td><lookup class="value" complexExpression="#foreach( $patId in $patientIdentifiers.get('Old Identification Number') ) $patId #end "/></td>
<td><pre> </pre></td>
<td>Auto ID:</td>
<td><lookup class="value" complexExpression="#foreach( $patId in $patientIdentifiers.get('OpenMRS Identification Number') ) $patId #end"/></td>
<td><pre> </pre></td>
<td>Gender:</td>
<td><lookup class="value" expression="patient.gender"/></td>
</tr>
</table>
</section>
<section headerLabel="3. Vital Signs">
<table class="baseline-aligned">
<tr>
<th style="background-color: #696969; color: #ffffff;">Question</th>
<th style="background-color: #696969; color: #ffffff;">Answer</th>
<th style="background-color: #696969; color: #ffffff;">Previous Answer</th>
<th style="background-color: #696969; color: #ffffff;" class="lookup">Date Recorded</th>
</tr>
<tr>
<td>Temperature(<sup>0</sup>C):</td>
<td><obs conceptId="5088" /></td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.latestObs(5088).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.latestObs(5088).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
<tr>
<td>RR:</td>
<td><obs conceptId="5242" /></td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.earliestObs(5242).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.earliestObs(5242).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
<tr>
<td>HR:</td>
<td><obs conceptId="5087" /></td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.latestObs(5087).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.latestObs(5087).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
<tr>
<td>Systolic / Diastolic:</td>
<td>
<obs conceptId="5085" /> /
<obs conceptId="5086" />
</td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.latestObs(5085).valueNumeric" class="value"/> /
<lookup expression="fn.latestObs(5086).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.latestObs(5085).obsDatetime" class="value"/> /
<lookup expression="fn.latestObs(5086).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
<tr>
<td>Weight (KG):</td>
<td><obs conceptId="5089" id="weight" /></td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.latestObs(5089).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.latestObs(5089).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
<tr>
<td>Blood Oxygen Saturation:</td>
<td><obs conceptId="5092" /></td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.latestObs(5092).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.latestObs(5092).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
<tr>
<td>Waist (CM):</td>
<td><obs conceptId="161577" /></td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.latestObs(161577).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.latestObs(161577).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
<tr>
<td>Height (CM):</td>
<td><obs conceptId="5090" id="height" /></td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.latestObs(5090).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.latestObs(5090).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
<tr>
<td>Body Mass Index:</td>
<td><obs conceptId="1342" id="bmi" /></td>
<ifMode mode="ENTER">
<td class="lookup">
<lookup expression="fn.latestObs(1342).valueNumeric" class="value"/>
</td>
<td class="lookup">
<lookup expression="fn.latestObs(1342).obsDatetime" class="value"/>
</td>
</ifMode>
</tr>
</table>
</section>
<submit/>
</htmlform>