psr12 fixes for new PHP_CodeSniffer (#4795)
[openemr.git] / interface / forms / prior_auth / FormPriorAuth.class.php
bloba69ede11dde14054debcaa771ba05a2a65ae5b9c
1 <?php
3 /**
4 * prior auth form
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 use OpenEMR\Common\ORDataObject\ORDataObject;
15 /**
16 * class PriorAuth
19 class FormPriorAuth extends ORDataObject
21 /**
23 * @access public
28 /**
30 * @access private
33 var $id;
34 var $pid;
35 var $activity;
36 var $date;
37 var $prior_auth_number;
38 var $comments;
39 var $date_from;
40 var $date_to;
42 /**
43 * Constructor sets all Form attributes to their default value
46 function __construct($id = "", $_prefix = "")
48 parent::__construct();
50 $this->_table = "form_prior_auth";
52 if (is_numeric($id)) {
53 $this->id = $id;
54 } else {
55 $id = "";
58 $this->pid = $GLOBALS['pid'];
59 $this->activity = 1;
60 $this->date = date("Y-m-d H:i:s");
61 $this->prior_auth_number = "";
62 $this->date_from = date("Y-m-d");
63 $this->date_to = null;
65 if ($id != "") {
66 $this->populate();
70 function __toString()
72 return "ID: " . $this->id . "\n";
75 function set_id($id)
77 if (!empty($id) && is_numeric($id)) {
78 $this->id = $id;
81 function get_id()
83 return $this->id;
85 function set_pid($pid)
87 if (!empty($pid) && is_numeric($pid)) {
88 $this->pid = $pid;
91 function get_pid()
93 return $this->pid;
95 function set_activity($tf)
97 if (!empty($tf) && is_numeric($tf)) {
98 $this->activity = $tf;
101 function get_activity()
103 return $this->activity;
107 function set_comments($string)
109 $this->comments = $string;
112 function get_comments()
114 return $this->comments;
117 function set_prior_auth_number($string)
119 $this->prior_auth_number = $string;
122 function get_prior_auth_number()
124 return $this->prior_auth_number;
128 function get_date()
130 return $this->date;
133 function get_date_from()
135 return $this->date_from;
138 function set_date_from($dt)
140 $this->date_from = $dt;
143 function get_date_to()
145 return $this->date_to;
148 function set_date_to($dt)
150 $this->date_to = $dt;
153 // end of Form