3 require_once(dirname(__FILE__
) . "/../../../library/classes/ORDataObject.class.php");
5 define("EVENT_VEHICLE",1);
6 define("EVENT_WORK_RELATED",2);
7 define("EVENT_SLIP_FALL",3);
8 define("EVENT_OTHER",4);
14 class FormVitalsM
extends ORDataObject
{
45 var $oxygen_saturation;
48 * Constructor sets all Form attributes to their default value
51 function FormVitalsM($id= "", $_prefix = "") {
57 $this->date
= $this->get_date();
59 $this->_table
= "form_vitalsM";
61 $this->pid
= $GLOBALS['pid'];
71 function toString($html = false) {
73 ."ID: " . $this->id
. "\n";
75 return nl2br($string);
82 function set_id($id) {
83 if (!empty($id) && is_numeric($id)) {
92 function set_pid($pid) {
93 if (!empty($pid) && is_numeric($pid)) {
102 function set_activity($tf) {
103 if (!empty($tf) && is_numeric($tf)) {
104 $this->activity
= $tf;
108 function get_activity() {
109 return $this->activity
;
112 function get_date() {
114 $dbconn = $GLOBALS['adodb']['db'];
115 $sql = "SELECT date from form_encounter where encounter =" . $GLOBALS{'encounter'} ;
116 $result = $dbconn->Execute($sql);
117 $this->date
= $result->fields
['date'];
122 function set_date($dt) {
128 function get_user() {
132 function set_user($u) {
142 function set_bps($bps) {
152 function set_bpd($bpd) {
158 function get_weight() {
159 return $this->weight
;
162 function set_weight($w) {
163 if(!empty($w) && is_numeric($w)){
168 function get_height() {
169 return $this->height
;
172 function set_height($h) {
173 if(!empty($h) && is_numeric($h)){
178 function get_temperature() {
179 return $this->temperature
;
182 function set_temperature($t) {
183 if(!empty($t) && is_numeric($t)){
184 $this->temperature
= $t;
188 function get_temp_method() {
189 return $this->temp_method
;
192 function set_temp_method($tm) {
193 $this->temp_method
= $tm;
196 function get_pulse() {
200 function set_pulse($p) {
201 if(!empty($p) && is_numeric($p)){
206 function get_respiration() {
207 return $this->respiration
;
210 function set_respiration($r) {
211 if(!empty($r) && is_numeric($r)){
212 $this->respiration
= $r;
216 function get_note() {
220 function set_note($n) {
230 function set_BMI($bmi) {
231 if(!empty($bmi) && is_numeric($bmi)){
236 function get_BMI_status() {
237 return $this->BMI_status
;
240 function set_BMI_status($status) {
241 $this->BMI_status
= $status;
244 function get_waist_circ() {
245 return $this->waist_circ
;
248 function set_waist_circ($w) {
249 if(!empty($w) && is_numeric($w)){
250 $this->waist_circ
= $w;
254 function get_head_circ() {
255 return $this->head_circ
;
258 function set_head_circ($h) {
259 if(!empty($h) && is_numeric($h)){
260 $this->head_circ
= $h;
264 function get_oxygen_saturation() {
265 return $this->oxygen_saturation
;
268 function set_oxygen_saturation($o) {
269 if(!empty($o) && is_numeric($o)){
270 $this->oxygen_saturation
= $o;