7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 use OpenEMR\Common\ORDataObject\ORDataObject
;
15 define("EVENT_VEHICLE", 1);
16 define("EVENT_WORK_RELATED", 2);
17 define("EVENT_SLIP_FALL", 3);
18 define("EVENT_OTHER", 4);
22 * class FormHpTjePrimary
25 class FormSOAP
extends ORDataObject
50 * Constructor sets all Form attributes to their default value
53 function __construct($id = "", $_prefix = "")
55 if (is_numeric($id)) {
59 $this->date
= date("Y-m-d H:i:s");
62 $this->_table
= "form_soap";
64 $this->pid
= $GLOBALS['pid'];
67 //$this->date = $this->get_date();
73 //$this->temp_methods = parent::_load_enum("temp_locations",false);
76 function toString($html = false)
79 . "ID: " . $this->id
. "\n";
82 return nl2br($string);
89 if (!empty($id) && is_numeric($id)) {
97 function set_pid($pid)
99 if (!empty($pid) && is_numeric($pid)) {
107 function set_activity($tf)
109 if (!empty($tf) && is_numeric($tf)) {
110 $this->activity
= $tf;
113 function get_activity()
115 return $this->activity
;
122 function set_date($dt)
132 function set_user($u)
138 function get_subjective()
140 return $this->subjective
;
142 function set_subjective($data)
145 $this->subjective
= $data;
148 function get_objective()
150 return $this->objective
;
152 function set_objective($data)
155 $this->objective
= $data;
158 function get_assessment()
160 return $this->assessment
;
162 function set_assessment($data)
165 $this->assessment
= $data;
172 function set_plan($data)