3 {php}html_header_show();{/php}
5 <script language=
"javascript">
6 function calculateBMI()
9 var height
= document
.vitals
.height
.value
;
10 var weight
= document
.vitals
.weight
.value
;
11 if(height
> 0 && weight
> 0)
13 bmi
= weight
/height/height
*10000;
15 document
.vitals
.BMI
.value
= bmi
;
19 <style type=
"text/css" title=
"mystyles" media=
"all">
23 font-family: helvetica;
27 font-family: helvetica;
32 font-family: helvetica;
35 font-family: sans-serif;
38 text-decoration: none;
43 font-family: sans-serif;
45 text-decoration: none;
53 <body bgcolor=
"{$STYLE.BGCOLOR2}">
54 <p><span class=
"title">Vitals (Metric)
</span></p>
55 <form name=
"vitals" method=
"post" action=
"{$FORM_ACTION}/interface/forms/vitalsM/save.php"
56 onsubmit=
"return top.restoreSession()">
59 <th align=
"left">Name
</th><th align=
"left">Unit
</th>
60 <th align=
"right">{$vitals-
>get_date()|date_format:
"%m/%d/%y"}
</th>
61 {foreach item=result from=$results}
62 <th align='right'
>{$result.date|date_format:
"%m/%d/%y"}
</th>
67 <td>Weight
</td><td>kg
</td>
68 <td align='right'
><input type=
"text" size='
5'
69 name=
"weight" value=
"{$vitals->get_weight()}"/></td>
70 {foreach item=result from=$results}
71 <td align='right'
>{$result.weight}
</td>
76 <td>Height
</td><td>cm
</td>
77 <td align='right'
><input type=
"text" size='
5'
78 name=
"height" value=
"{$vitals->get_height()}" onchange=
"calculateBMI();"/></td>
79 {foreach item=result from=$results}
80 <td align='right'
>{$result.height}
</td>
85 <td>BP Systolic
</td><td>mm/hg
</td>
86 <td align='right'
><input type=
"text" size='
5'
87 name=
"bps" value=
"{$vitals->get_bps()}"/></td>
88 {foreach item=result from=$results}
89 <td align='right'
>{$result.bps}
</td>
94 <td>BP Diastolic
</td><td>mm/hg
</td>
95 <td align='right'
><input type=
"text" size='
5'
96 name=
"bpd" value=
"{$vitals->get_bpd()}"/></td>
97 {foreach item=result from=$results}
98 <td align='right'
>{$result.bpd}
</td>
103 <td>Pulse
</td><td>per min
</td>
104 <td align='right'
><input type=
"text" size='
5'
105 name=
"pulse" value=
"{$vitals->get_pulse()}"/></td>
106 {foreach item=result from=$results}
107 <td align='right'
>{$result.pulse}
</td>
111 <tr><td>Respiration
</td><td>per min
</td>
112 <td align='right'
><input type=
"text" size='
5'
113 name=
"respiration" value=
"{$vitals->get_respiration()}"/></td>
114 {foreach item=result from=$results}
115 <td align='right'
>{$result.respiration}
</td>
120 <td>Temperature
</td><td>C
</td>
121 <td align='right'
><input type=
"text" size='
5'
122 name=
"temperature" value=
"{$vitals->get_temperature()}"/></td>
123 {foreach item=result from=$results}
124 <td align='right'
>{$result.temperature}
</td>
129 <td>Temp Location
</td>
131 <select name=
"temp_method"/><option value=
""> </option>
132 <option value=
"Oral" {if $vitals-
>get_temp_method() ==
"Oral" || $vitals-
>get_temp_method() ==
2 } selected{/if}
>Oral
133 <option value=
"Tympanic Membrane" {if $vitals-
>get_temp_method() ==
"Tympanic Membrane" || $vitals-
>get_temp_method() ==
1 } selected{/if}
>Tympanic Membrane
134 <option value=
"Rectal" {if $vitals-
>get_temp_method() ==
"Rectal" || $vitals-
>get_temp_method() ==
3 } selected{/if}
>Rectal
135 <option value=
"Axillary" {if $vitals-
>get_temp_method() ==
"Axillary" || $vitals-
>get_temp_method() ==
4 } selected{/if}
>Axillary
136 <option value=
"Temporal Artery" {if $vitals-
>get_temp_method() ==
"Temporal Artery" } selected{/if}
>Temporal Artery
139 <td align='right'
>{$result.temp_method}
</td>
142 <tr><td>Oxygen Saturation
</td><td>%
</td>
143 <td align='right'
><input type=
"text" size='
5'
144 name=
"oxygen_saturation" value=
"{$vitals->get_oxygen_saturation()}"/></td>
145 {foreach item=result from=$results}
146 <td align='right'
>{$result.oxygen_saturation}
</td>
150 <tr><td>Head Circumference
</td><td>cm
</td>
151 <td align='right'
><input type=
"text" size='
5'
152 name=
"head_circ" value=
"{$vitals->get_head_circ()}"/></td>
153 {foreach item=result from=$results}
154 <td align='right'
>{$result.head_circ}
</td>
158 <tr><td>Waist Circumference
</td><td>cm
</td>
159 <td align='right'
><input type=
"text" size='
5'
160 name=
"waist_circ" value=
"{$vitals->get_waist_circ()}"/></td>
161 {foreach item=result from=$results}
162 <td align='right'
>{$result.waist_circ}
</td>
166 <tr><td>BMI
</td><td>%
</td>
167 <td align='right'
><input type=
"text" size='
5'
168 name=
"BMI" value=
"{$vitals->get_BMI()}"/></td>
169 {foreach item=result from=$results}
170 <td align='right'
>{$result.BMI}
</td>
173 <tr><td>BMI Status
</td><td>Type
</td>
174 <td align='right'
>{$vitals-
>get_BMI_status()}
</td>
175 {foreach item=result from=$results}
176 <td align='right'
>{$result.BMI_status}
</td>
180 <tr><td>Other Notes
</td>
181 <td colspan='
2' align='right'
><input type=
"text" size='
20'
182 name=
"note" value=
"{$vitals->get_note()}" /></td>
183 {foreach item=result from=$results}
184 <td align='right'
>{$result.note}
</td>
188 <td><input type=
"submit" name=
"Submit" value=
"Save Form"> <a href=
"{$DONT_SAVE_LINK}" class=
"link">[Don't Save]
</a></td>
191 <input type=
"hidden" name=
"id" value=
"{$vitals->get_id()}" />
192 <input type=
"hidden" name=
"activity" value=
"{$vitals->get_activity()}">
193 <input type=
"hidden" name=
"pid" value=
"{$vitals->get_pid()}">
194 <input type=
"hidden" name=
"process" value=
"true">