forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FormSOAP.class.php
155 lines (140 loc) · 2.48 KB
/
FormSOAP.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
require_once(dirname(__FILE__) . "/../../../library/classes/ORDataObject.class.php");
define("EVENT_VEHICLE",1);
define("EVENT_WORK_RELATED",2);
define("EVENT_SLIP_FALL",3);
define("EVENT_OTHER",4);
/**
* class FormHpTjePrimary
*
*/
class FormSOAP extends ORDataObject {
/**
*
* @access public
*/
/**
*
* static
*/
var $id;
var $date;
var $pid;
var $user;
var $groupname;
var $authorized;
var $activity;
var $subjective;
var $objective;
var $assessment;
var $plan;
/**
* Constructor sets all Form attributes to their default value
*/
function __construct($id= "", $_prefix = "") {
if (is_numeric($id)) {
$this->id = $id;
}
else {
$id = "";
$this->date = date("Y-m-d H:i:s");
}
$this->_table = "form_soap";
$this->activity = 1;
$this->pid = $GLOBALS['pid'];
if ($id != "") {
$this->populate();
//$this->date = $this->get_date();
}
}
function populate() {
parent::populate();
//$this->temp_methods = parent::_load_enum("temp_locations",false);
}
function toString($html = false) {
$string .= "\n"
."ID: " . $this->id . "\n";
if ($html) {
return nl2br($string);
}
else {
return $string;
}
}
function set_id($id) {
if (!empty($id) && is_numeric($id)) {
$this->id = $id;
}
}
function get_id() {
return $this->id;
}
function set_pid($pid) {
if (!empty($pid) && is_numeric($pid)) {
$this->pid = $pid;
}
}
function get_pid() {
return $this->pid;
}
function set_activity($tf) {
if (!empty($tf) && is_numeric($tf)) {
$this->activity = $tf;
}
}
function get_activity() {
return $this->activity;
}
function get_date() {
return $this->date;
}
function set_date($dt) {
if (!empty($dt)) {
$this->date = $dt;
}
}
function get_user() {
return $this->user;
}
function set_user($u) {
if(!empty($u)){
$this->user = $u;
}
}
function get_subjective() {
return $this->subjective;
}
function set_subjective($data) {
if(!empty($data)){
$this->subjective = $data;
}
}
function get_objective() {
return $this->objective;
}
function set_objective($data) {
if(!empty($data)){
$this->objective = $data;
}
}
function get_assessment() {
return $this->assessment;
}
function set_assessment($data) {
if(!empty($data)){
$this->assessment = $data;
}
}
function get_plan() {
return $this->plan;
}
function set_plan($data) {
if(!empty($data)){
$this->plan = $data;
}
}
function persist() {
parent::persist();
}
} // end of Form
?>