4 define("EVENT_VEHICLE",1);
5 define("EVENT_WORK_RELATED",2);
6 define("EVENT_SLIP_FALL",3);
7 define("EVENT_OTHER",4);
11 * class FormHpTjePrimary
14 class FormSOAP
extends ORDataObject
{
51 * Constructor sets all Form attributes to their default value
54 function __construct($id= "", $_prefix = "") {
55 if (is_numeric($id)) {
60 $this->date
= date("Y-m-d H:i:s");
63 $this->_table
= "form_soap2";
65 $this->pid
= $GLOBALS['pid'];
68 //$this->date = $this->get_date();
73 //$this->temp_methods = parent::_load_enum("temp_locations",false);
76 function toString($html = false) {
78 ."ID: " . $this->id
. "\n";
81 return nl2br($string);
87 function set_id($id) {
88 if (!empty($id) && is_numeric($id)) {
95 function set_pid($pid) {
96 if (!empty($pid) && is_numeric($pid)) {
103 function set_activity($tf) {
104 if (!empty($tf) && is_numeric($tf)) {
105 $this->activity
= $tf;
108 function get_activity() {
109 return $this->activity
;
112 function get_date() {
115 function set_date($dt) {
120 function get_user() {
123 function set_user($u) {
128 function get_subjective() {
129 return $this->subjective
;
131 function set_subjective($data) {
133 $this->subjective
= $data;
136 function get_objective() {
137 return $this->objective
;
139 function set_objective($data) {
141 $this->objective
= $data;
145 function get_assessment() {
146 return $this->assessment
;
148 function set_assessment($data) {
150 $this->assessment
= $data;
156 /* The following code replaces assessment. It is
157 part of the SOAP form Dr J has requested.
161 // **** General *****
162 function get_general() {
163 return $this->general
;
165 function set_general($data) {
167 $this->general
= $data;
172 function get_heent() {
175 function set_heent($data) {
177 $this->heent
= $data;
182 function get_neck() {
185 function set_neck($data) {
192 function get_cardio() {
193 return $this->cardio
;
195 function set_cardio($data) {
197 $this->cardio
= $data;
202 function get_respiratory() {
203 return $this->respiratory
;
205 function set_respiratory($data) {
207 $this->respiratory
= $data;
211 // **** Breasts *****
212 // * my personal favorite :> ***
213 function get_breasts() {
214 return $this->breasts
;
216 function set_breasts($data) {
218 $this->breasts
= $data;
222 // **** Abdomen *****
223 function get_abdomen() {
224 return $this->abdomen
;
226 function set_abdomen($data) {
228 $this->abdomen
= $data;
233 function get_gastro() {
234 return $this->gastro
;
236 function set_gastro($data) {
238 $this->gastro
= $data;
242 // **** Bones/Joints/Extremities *****
243 function get_extremities() {
244 return $this->extremities
;
246 function set_extremities($data) {
248 $this->extremities
= $data;
253 function get_skin() {
256 function set_skin($data) {
262 // **** Neuro/Psych *****
263 function get_neurological() {
264 return $this->neurological
;
266 function set_neurological($data) {
268 $this->neurological
= $data;
272 // **** Mental Status *****
273 function get_mentalstatus() {
274 return $this->mentalstatus
;
276 function set_mentalstatus($data) {
278 $this->mentalstatus
= $data;
282 function get_plan() {
285 function set_plan($data) {