3 use OpenEMR\Common\ORDataObject\ORDataObject
;
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 FormSOAP
extends ORDataObject
52 * Constructor sets all Form attributes to their default value
55 function __construct($id = "", $_prefix = "")
57 if (is_numeric($id)) {
61 $this->date
= date("Y-m-d H:i:s");
64 $this->_table
= "form_soap2";
66 $this->pid
= $GLOBALS['pid'];
69 //$this->date = $this->get_date();
75 //$this->temp_methods = parent::_load_enum("temp_locations",false);
78 function toString($html = false)
81 . "ID: " . $this->id
. "\n";
84 return nl2br($string);
91 if (!empty($id) && is_numeric($id)) {
99 function set_pid($pid)
101 if (!empty($pid) && is_numeric($pid)) {
109 function set_activity($tf)
111 if (!empty($tf) && is_numeric($tf)) {
112 $this->activity
= $tf;
115 function get_activity()
117 return $this->activity
;
124 function set_date($dt)
134 function set_user($u)
140 function get_subjective()
142 return $this->subjective
;
144 function set_subjective($data)
147 $this->subjective
= $data;
150 function get_objective()
152 return $this->objective
;
154 function set_objective($data)
157 $this->objective
= $data;
161 function get_assessment()
163 return $this->assessment
;
165 function set_assessment($data)
168 $this->assessment
= $data;
174 /* The following code replaces assessment. It is
175 part of the SOAP form Dr J has requested.
179 // **** General *****
180 function get_general()
182 return $this->general
;
184 function set_general($data)
187 $this->general
= $data;
196 function set_heent($data)
199 $this->heent
= $data;
208 function set_neck($data)
216 function get_cardio()
218 return $this->cardio
;
220 function set_cardio($data)
223 $this->cardio
= $data;
228 function get_respiratory()
230 return $this->respiratory
;
232 function set_respiratory($data)
235 $this->respiratory
= $data;
239 // **** Breasts *****
240 // * my personal favorite :> ***
241 function get_breasts()
243 return $this->breasts
;
245 function set_breasts($data)
248 $this->breasts
= $data;
252 // **** Abdomen *****
253 function get_abdomen()
255 return $this->abdomen
;
257 function set_abdomen($data)
260 $this->abdomen
= $data;
265 function get_gastro()
267 return $this->gastro
;
269 function set_gastro($data)
272 $this->gastro
= $data;
276 // **** Bones/Joints/Extremities *****
277 function get_extremities()
279 return $this->extremities
;
281 function set_extremities($data)
284 $this->extremities
= $data;
293 function set_skin($data)
300 // **** Neuro/Psych *****
301 function get_neurological()
303 return $this->neurological
;
305 function set_neurological($data)
308 $this->neurological
= $data;
312 // **** Mental Status *****
313 function get_mentalstatus()
315 return $this->mentalstatus
;
317 function set_mentalstatus($data)
320 $this->mentalstatus
= $data;
328 function set_plan($data)