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
;
19 class FormPriorAuth
extends ORDataObject
37 var $prior_auth_number;
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)) {
58 $this->pid
= $GLOBALS['pid'];
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;
72 return "ID: " . $this->id
. "\n";
77 if (!empty($id) && is_numeric($id)) {
85 function set_pid($pid)
87 if (!empty($pid) && is_numeric($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
;
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;