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
{
39 * Constructor sets all Form attributes to their default value
42 function __construct($id= "", $_prefix = "") {
43 if (is_numeric($id)) {
48 $this->date
= date("Y-m-d H:i:s");
51 $this->_table
= "form_soap";
53 $this->pid
= $GLOBALS['pid'];
56 //$this->date = $this->get_date();
61 //$this->temp_methods = parent::_load_enum("temp_locations",false);
64 function toString($html = false) {
66 ."ID: " . $this->id
. "\n";
69 return nl2br($string);
75 function set_id($id) {
76 if (!empty($id) && is_numeric($id)) {
83 function set_pid($pid) {
84 if (!empty($pid) && is_numeric($pid)) {
91 function set_activity($tf) {
92 if (!empty($tf) && is_numeric($tf)) {
93 $this->activity
= $tf;
96 function get_activity() {
97 return $this->activity
;
100 function get_date() {
103 function set_date($dt) {
108 function get_user() {
111 function set_user($u) {
116 function get_subjective() {
117 return $this->subjective
;
119 function set_subjective($data) {
121 $this->subjective
= $data;
124 function get_objective() {
125 return $this->objective
;
127 function set_objective($data) {
129 $this->objective
= $data;
132 function get_assessment() {
133 return $this->assessment
;
135 function set_assessment($data) {
137 $this->assessment
= $data;
140 function get_plan() {
143 function set_plan($data) {