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">{xl
t=
"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">{xl
t=
"Name"}
</th><th align=
"left">{xl
t=
"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>{xl
t=
"Weight"}
</td><td>{xl
t=
"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>{xl
t=
"Height"}
</td><td>{xl
t=
"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>{xl
t=
"BP Systolic"}
</td><td>{xl
t=
"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>{xl
t=
"BP Diastolic"}
</td><td>{xl
t=
"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>{xl
t=
"Pulse"}
</td><td>{xl
t=
"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>{xl
t=
"Respiration"}
</td><td>{xl
t=
"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>{xl
t=
"Temperature"}
</td><td>{xl
t=
"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>{xl
t=
"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}
>{xl
t=
"Oral"}
133 <option value=
"Tympanic Membrane" {if $vitals-
>get_temp_method() ==
"Tympanic Membrane" || $vitals-
>get_temp_method() ==
1 } selected{/if}
>{xl
t=
"Tympanic Membrane"}
134 <option value=
"Rectal" {if $vitals-
>get_temp_method() ==
"Rectal" || $vitals-
>get_temp_method() ==
3 } selected{/if}
>{xl
t=
"Rectal"}
135 <option value=
"Axillary" {if $vitals-
>get_temp_method() ==
"Axillary" || $vitals-
>get_temp_method() ==
4 } selected{/if}
>{xl
t=
"Axillary"}
136 <option value=
"Temporal Artery" {if $vitals-
>get_temp_method() ==
"Temporal Artery" } selected{/if}
>{xl
t=
"Temporal Artery"}
139 {foreach item=result from=$results}
140 <td align='right'
>{xl t=$result.temp_method}
</td>
144 <tr><td>{xl
t=
"Oxygen Saturation"}
</td><td>{xl
t=
"%"}
</td>
145 <td align='right'
><input type=
"text" size='
5'
146 name=
"oxygen_saturation" value=
"{$vitals->get_oxygen_saturation()}"/></td>
147 {foreach item=result from=$results}
148 <td align='right'
>{$result.oxygen_saturation}
</td>
152 <tr><td>{xl
t=
"Head Circumference"}
</td><td>{xl
t=
"cm"}
</td>
153 <td align='right'
><input type=
"text" size='
5'
154 name=
"head_circ" value=
"{$vitals->get_head_circ()}"/></td>
155 {foreach item=result from=$results}
156 <td align='right'
>{$result.head_circ}
</td>
160 <tr><td>{xl
t=
"Waist Circumference"}
</td><td>{xl
t=
"cm"}
</td>
161 <td align='right'
><input type=
"text" size='
5'
162 name=
"waist_circ" value=
"{$vitals->get_waist_circ()}"/></td>
163 {foreach item=result from=$results}
164 <td align='right'
>{$result.waist_circ}
</td>
168 <tr><td>{xl
t=
"BMI"}
</td><td>{xl
t=
"%"}
</td>
169 <td align='right'
><input type=
"text" size='
5'
170 name=
"BMI" value=
"{$vitals->get_BMI()}"/></td>
171 {foreach item=result from=$results}
172 <td align='right'
>{$result.BMI}
</td>
175 <tr><td>{xl
t=
"BMI Status"}
</td><td>{xl
t=
"Type"}
</td>
176 <td align='right'
>{$vitals-
>get_BMI_status()}
</td>
177 {foreach item=result from=$results}
178 <td align='right'
>{xl t=$result.BMI_status}
</td>
182 <tr><td>{xl
t=
"Other Notes"}
</td>
183 <td colspan='
2' align='right'
><input type=
"text" size='
20'
184 name=
"note" value=
"{$vitals->get_note()}" /></td>
185 {foreach item=result from=$results}
186 <td align='right'
>{$result.note}
</td>
190 <td><input type=
"submit" name=
"Submit" value=
"{xl t="Save Form
"}"> <a href=
"{$DONT_SAVE_LINK}" class=
"link">[{xl
t=
"Don't Save"}]
</a></td>
193 <input type=
"hidden" name=
"id" value=
"{$vitals->get_id()}" />
194 <input type=
"hidden" name=
"activity" value=
"{$vitals->get_activity()}">
195 <input type=
"hidden" name=
"pid" value=
"{$vitals->get_pid()}">
196 <input type=
"hidden" name=
"process" value=
"true">