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);
12 * class FormHpTjePrimary
15 class FormVitals
extends ORDataObject
{
47 var $oxygen_saturation;
51 * Constructor sets all Form attributes to their default value
54 function FormVitals($id= "", $_prefix = "") {
61 $this->date
= $this->get_date();
64 $this->_table
= "form_vitals";
66 $this->pid
= $GLOBALS['pid'];
74 //$this->temp_methods = parent::_load_enum("temp_locations",false);
77 function toString($html = false) {
79 ."ID: " . $this->id
. "\n";
82 return nl2br($string);
88 function set_id($id) {
89 if (!empty($id) && is_numeric($id)) {
96 function set_pid($pid) {
97 if (!empty($pid) && is_numeric($pid)) {
104 function set_activity($tf) {
105 if (!empty($tf) && is_numeric($tf)) {
106 $this->activity
= $tf;
109 function get_activity() {
110 return $this->activity
;
113 function get_date() {
115 $this->date
= date('YmdHis', time());
120 function set_date($dt) {
122 $dt = str_replace('-', '', $dt);
123 $dt = str_replace(':', '', $dt);
124 $dt = str_replace(' ', '', $dt);
125 while (strlen($dt) < 14) $dt .= '0';
130 function get_user() {
133 function set_user($u) {
141 function set_bps($bps) {
149 function set_bpd($bpd) {
154 function get_weight() {
155 return $this->weight
;
157 function set_weight($w) {
158 if(!empty($w) && is_numeric($w)){
162 function get_height() {
163 return $this->height
;
165 function set_height($h) {
166 if(!empty($h) && is_numeric($h)){
170 function get_temperature() {
171 return $this->temperature
;
173 function set_temperature($t) {
174 if(!empty($t) && is_numeric($t)){
175 $this->temperature
= $t;
178 function get_temp_method() {
179 return $this->temp_method
;
181 function set_temp_method($tm) {
182 $this->temp_method
= $tm;
184 // function get_temp_methods() {
185 // return $this->temp_methods;
187 function get_pulse() {
190 function set_pulse($p) {
191 if(!empty($p) && is_numeric($p)){
195 function get_respiration() {
196 return $this->respiration
;
198 function set_respiration($r) {
199 if(!empty($r) && is_numeric($r)){
200 $this->respiration
= $r;
203 function get_note() {
206 function set_note($n) {
214 function set_BMI($bmi) {
215 if(!empty($bmi) && is_numeric($bmi)){
219 function get_BMI_status() {
220 return $this->BMI_status
;
222 function set_BMI_status($status) {
223 $this->BMI_status
= $status;
225 function get_waist_circ() {
226 return $this->waist_circ
;
228 function set_waist_circ($w) {
229 if(!empty($w) && is_numeric($w)){
230 $this->waist_circ
= $w;
233 function get_head_circ() {
234 return $this->head_circ
;
236 function set_head_circ($h) {
237 if(!empty($h) && is_numeric($h)){
238 $this->head_circ
= $h;
241 function get_oxygen_saturation() {
242 return $this->oxygen_saturation
;
244 function set_oxygen_saturation($o) {
245 if(!empty($o) && is_numeric($o)){
246 $this->oxygen_saturation
= $o;