Interim autoloaded library/classes via composer classmap, take 4. (#422)
[openemr.git] / interface / forms / soap / FormSOAP.class.php
blobb976f5d9fa9ebfeea22a64f4e8327975d08de28c
1 <?php
4 define("EVENT_VEHICLE",1);
5 define("EVENT_WORK_RELATED",2);
6 define("EVENT_SLIP_FALL",3);
7 define("EVENT_OTHER",4);
10 /**
11 * class FormHpTjePrimary
14 class FormSOAP extends ORDataObject {
16 /**
18 * @access public
22 /**
24 * static
26 var $id;
27 var $date;
28 var $pid;
29 var $user;
30 var $groupname;
31 var $authorized;
32 var $activity;
33 var $subjective;
34 var $objective;
35 var $assessment;
36 var $plan;
38 /**
39 * Constructor sets all Form attributes to their default value
42 function __construct($id= "", $_prefix = "") {
43 if (is_numeric($id)) {
44 $this->id = $id;
46 else {
47 $id = "";
48 $this->date = date("Y-m-d H:i:s");
51 $this->_table = "form_soap";
52 $this->activity = 1;
53 $this->pid = $GLOBALS['pid'];
54 if ($id != "") {
55 $this->populate();
56 //$this->date = $this->get_date();
59 function populate() {
60 parent::populate();
61 //$this->temp_methods = parent::_load_enum("temp_locations",false);
64 function toString($html = false) {
65 $string .= "\n"
66 ."ID: " . $this->id . "\n";
68 if ($html) {
69 return nl2br($string);
71 else {
72 return $string;
75 function set_id($id) {
76 if (!empty($id) && is_numeric($id)) {
77 $this->id = $id;
80 function get_id() {
81 return $this->id;
83 function set_pid($pid) {
84 if (!empty($pid) && is_numeric($pid)) {
85 $this->pid = $pid;
88 function get_pid() {
89 return $this->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() {
101 return $this->date;
103 function set_date($dt) {
104 if (!empty($dt)) {
105 $this->date = $dt;
108 function get_user() {
109 return $this->user;
111 function set_user($u) {
112 if(!empty($u)){
113 $this->user = $u;
116 function get_subjective() {
117 return $this->subjective;
119 function set_subjective($data) {
120 if(!empty($data)){
121 $this->subjective = $data;
124 function get_objective() {
125 return $this->objective;
127 function set_objective($data) {
128 if(!empty($data)){
129 $this->objective = $data;
132 function get_assessment() {
133 return $this->assessment;
135 function set_assessment($data) {
136 if(!empty($data)){
137 $this->assessment = $data;
140 function get_plan() {
141 return $this->plan;
143 function set_plan($data) {
144 if(!empty($data)){
145 $this->plan = $data;
149 function persist() {
150 parent::persist();
152 } // end of Form