Interim autoloaded library/classes via composer classmap, take 4. (#422)
[openemr.git] / contrib / forms / soap2 / FormSOAP.class.php
blob2079f6ac56cdabb2b01a97f32ab33cc3df27668e
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 $general;
37 var $heent;
38 var $neck;
39 var $cardio;
40 var $respiratory;
41 var $breasts;
42 var $abdomen;
43 var $gastro;
44 var $extremities;
45 var $skin;
46 var $neurological;
47 var $mentalstatus;
48 var $plan;
50 /**
51 * Constructor sets all Form attributes to their default value
54 function __construct($id= "", $_prefix = "") {
55 if (is_numeric($id)) {
56 $this->id = $id;
58 else {
59 $id = "";
60 $this->date = date("Y-m-d H:i:s");
63 $this->_table = "form_soap2";
64 $this->activity = 1;
65 $this->pid = $GLOBALS['pid'];
66 if ($id != "") {
67 $this->populate();
68 //$this->date = $this->get_date();
71 function populate() {
72 parent::populate();
73 //$this->temp_methods = parent::_load_enum("temp_locations",false);
76 function toString($html = false) {
77 $string .= "\n"
78 ."ID: " . $this->id . "\n";
80 if ($html) {
81 return nl2br($string);
83 else {
84 return $string;
87 function set_id($id) {
88 if (!empty($id) && is_numeric($id)) {
89 $this->id = $id;
92 function get_id() {
93 return $this->id;
95 function set_pid($pid) {
96 if (!empty($pid) && is_numeric($pid)) {
97 $this->pid = $pid;
100 function get_pid() {
101 return $this->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() {
113 return $this->date;
115 function set_date($dt) {
116 if (!empty($dt)) {
117 $this->date = $dt;
120 function get_user() {
121 return $this->user;
123 function set_user($u) {
124 if(!empty($u)){
125 $this->user = $u;
128 function get_subjective() {
129 return $this->subjective;
131 function set_subjective($data) {
132 if(!empty($data)){
133 $this->subjective = $data;
136 function get_objective() {
137 return $this->objective;
139 function set_objective($data) {
140 if(!empty($data)){
141 $this->objective = $data;
145 function get_assessment() {
146 return $this->assessment;
148 function set_assessment($data) {
149 if(!empty($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) {
166 if(!empty($data)) {
167 $this->general = $data;
171 // **** HEENT ******
172 function get_heent() {
173 return $this->heent;
175 function set_heent($data) {
176 if(!empty($data)) {
177 $this->heent = $data;
181 // **** Neck *****
182 function get_neck() {
183 return $this->neck;
185 function set_neck($data) {
186 if(!empty($data)) {
187 $this->neck = $data;
191 // **** CV *****
192 function get_cardio() {
193 return $this->cardio;
195 function set_cardio($data) {
196 if(!empty($data)) {
197 $this->cardio = $data;
201 // **** Lungs *****
202 function get_respiratory() {
203 return $this->respiratory;
205 function set_respiratory($data) {
206 if(!empty($data)) {
207 $this->respiratory = $data;
211 // **** Breasts *****
212 // * my personal favorite :> ***
213 function get_breasts() {
214 return $this->breasts;
216 function set_breasts($data) {
217 if(!empty($data)) {
218 $this->breasts = $data;
222 // **** Abdomen *****
223 function get_abdomen() {
224 return $this->abdomen;
226 function set_abdomen($data) {
227 if(!empty($data)) {
228 $this->abdomen = $data;
232 // **** GU *****
233 function get_gastro() {
234 return $this->gastro;
236 function set_gastro($data) {
237 if(!empty($data)) {
238 $this->gastro = $data;
242 // **** Bones/Joints/Extremities *****
243 function get_extremities() {
244 return $this->extremities;
246 function set_extremities($data) {
247 if(!empty($data)) {
248 $this->extremities = $data;
252 // **** Skin *****
253 function get_skin() {
254 return $this->skin;
256 function set_skin($data) {
257 if(!empty($data)) {
258 $this->skin = $data;
262 // **** Neuro/Psych *****
263 function get_neurological() {
264 return $this->neurological;
266 function set_neurological($data) {
267 if(!empty($data)) {
268 $this->neurological = $data;
272 // **** Mental Status *****
273 function get_mentalstatus() {
274 return $this->mentalstatus;
276 function set_mentalstatus($data) {
277 if(!empty($data)) {
278 $this->mentalstatus = $data;
282 function get_plan() {
283 return $this->plan;
285 function set_plan($data) {
286 if(!empty($data)){
287 $this->plan = $data;
291 function persist() {
292 parent::persist();
294 } // end of Form