Improve flexibility of which code types are used in claims and other misc.
[openemr.git] / contrib / forms / soap2 / FormSOAP.class.php
bloba86b75e831851243cd35b30bde476e29164cf8cb
1 <?php
3 require_once(dirname(__FILE__) . "/../../../library/classes/ORDataObject.class.php");
5 define("EVENT_VEHICLE",1);
6 define("EVENT_WORK_RELATED",2);
7 define("EVENT_SLIP_FALL",3);
8 define("EVENT_OTHER",4);
11 /**
12 * class FormHpTjePrimary
15 class FormSOAP extends ORDataObject {
17 /**
19 * @access public
23 /**
25 * static
27 var $id;
28 var $date;
29 var $pid;
30 var $user;
31 var $groupname;
32 var $authorized;
33 var $activity;
34 var $subjective;
35 //var $objective;
36 var $assessment;
37 var $general;
38 var $heent;
39 var $neck;
40 var $cardio;
41 var $respiratory;
42 var $breasts;
43 var $abdomen;
44 var $gastro;
45 var $extremities;
46 var $skin;
47 var $neurological;
48 var $mentalstatus;
49 var $plan;
51 /**
52 * Constructor sets all Form attributes to their default value
55 function FormSOAP($id= "", $_prefix = "") {
56 if (is_numeric($id)) {
57 $this->id = $id;
59 else {
60 $id = "";
61 $this->date = date("Y-m-d H:i:s");
64 $this->_table = "form_soap2";
65 $this->activity = 1;
66 $this->pid = $GLOBALS['pid'];
67 if ($id != "") {
68 $this->populate();
69 //$this->date = $this->get_date();
72 function populate() {
73 parent::populate();
74 //$this->temp_methods = parent::_load_enum("temp_locations",false);
77 function toString($html = false) {
78 $string .= "\n"
79 ."ID: " . $this->id . "\n";
81 if ($html) {
82 return nl2br($string);
84 else {
85 return $string;
88 function set_id($id) {
89 if (!empty($id) && is_numeric($id)) {
90 $this->id = $id;
93 function get_id() {
94 return $this->id;
96 function set_pid($pid) {
97 if (!empty($pid) && is_numeric($pid)) {
98 $this->pid = $pid;
101 function get_pid() {
102 return $this->pid;
104 function set_activity($tf) {
105 if (!empty($tf) && is_numeric($tf)) {
106 $this->activity = $tf;
109 function get_activity() {
110 return $this->activity;
113 function get_date() {
114 return $this->date;
116 function set_date($dt) {
117 if (!empty($dt)) {
118 $this->date = $dt;
121 function get_user() {
122 return $this->user;
124 function set_user($u) {
125 if(!empty($u)){
126 $this->user = $u;
129 function get_subjective() {
130 return $this->subjective;
132 function set_subjective($data) {
133 if(!empty($data)){
134 $this->subjective = $data;
137 function get_objective() {
138 return $this->objective;
140 function set_objective($data) {
141 if(!empty($data)){
142 $this->objective = $data;
146 function get_assessment() {
147 return $this->assessment;
149 function set_assessment($data) {
150 if(!empty($data)){
151 $this->assessment = $data;
157 /* The following code replaces assessment. It is
158 part of the SOAP form Dr J has requested.
162 // **** General *****
163 function get_general() {
164 return $this->general;
166 function set_general($data) {
167 if(!empty($data)) {
168 $this->general = $data;
172 // **** HEENT ******
173 function get_heent() {
174 return $this->heent;
176 function set_heent($data) {
177 if(!empty($data)) {
178 $this->heent = $data;
182 // **** Neck *****
183 function get_neck() {
184 return $this->neck;
186 function set_neck($data) {
187 if(!empty($data)) {
188 $this->neck = $data;
192 // **** CV *****
193 function get_cardio() {
194 return $this->cardio;
196 function set_cardio($data) {
197 if(!empty($data)) {
198 $this->cardio = $data;
202 // **** Lungs *****
203 function get_respiratory() {
204 return $this->respiratory;
206 function set_respiratory($data) {
207 if(!empty($data)) {
208 $this->respiratory = $data;
212 // **** Breasts *****
213 // * my personal favorite :> ***
214 function get_breasts() {
215 return $this->breasts;
217 function set_breasts($data) {
218 if(!empty($data)) {
219 $this->breasts = $data;
223 // **** Abdomen *****
224 function get_abdomen() {
225 return $this->abdomen;
227 function set_abdomen($data) {
228 if(!empty($data)) {
229 $this->abdomen = $data;
233 // **** GU *****
234 function get_gastro() {
235 return $this->gastro;
237 function set_gastro($data) {
238 if(!empty($data)) {
239 $this->gastro = $data;
243 // **** Bones/Joints/Extremities *****
244 function get_extremities() {
245 return $this->extremities;
247 function set_extremities($data) {
248 if(!empty($data)) {
249 $this->extremities = $data;
253 // **** Skin *****
254 function get_skin() {
255 return $this->skin;
257 function set_skin($data) {
258 if(!empty($data)) {
259 $this->skin = $data;
263 // **** Neuro/Psych *****
264 function get_neurological() {
265 return $this->neurological;
267 function set_neurological($data) {
268 if(!empty($data)) {
269 $this->neurological = $data;
273 // **** Mental Status *****
274 function get_mentalstatus() {
275 return $this->mentalstatus;
277 function set_mentalstatus($data) {
278 if(!empty($data)) {
279 $this->mentalstatus = $data;
283 function get_plan() {
284 return $this->plan;
286 function set_plan($data) {
287 if(!empty($data)){
288 $this->plan = $data;
292 function persist() {
293 parent::persist();
295 } // end of Form