Interim autoloaded library/classes via composer classmap, take 4. (#422)
[openemr.git] / contrib / forms / prior_auth / FormPriorAuth.class.php
blob46ad36b4dbac749dbadbae4556117c19aa86e3f6
1 <?php
6 /**
7 * class PriorAuth
9 */
10 class FormPriorAuth extends ORDataObject {
12 /**
14 * @access public
19 /**
21 * @access private
24 var $id;
25 var $date;
26 var $pid;
27 var $activity;
28 var $prior_auth_number;
29 var $comments;
32 /**
33 * Constructor sets all Form attributes to their default value
36 function FormPriorAuth($id= "", $_prefix = "") {
37 if (is_numeric($id)) {
38 $this->id = $id;
40 else {
41 $id = "";
43 $this->_table = "form_prior_auth";
44 $this->date = date("Y-m-d H:i:s");
45 $this->activity = 1;
46 $this->pid = $GLOBALS['pid'];
47 $this->prior_auth_number = "";
48 if ($id != "") {
49 $this->populate();
53 function toString($html = false) {
54 $string .= "\n"
55 ."ID: " . $this->id . "\n";
57 if ($html) {
58 return nl2br($string);
60 else {
61 return $string;
64 function set_id($id) {
65 if (!empty($id) && is_numeric($id)) {
66 $this->id = $id;
69 function get_id() {
70 return $this->id;
72 function set_pid($pid) {
73 if (!empty($pid) && is_numeric($pid)) {
74 $this->pid = $pid;
77 function get_pid() {
78 return $this->pid;
80 function set_activity($tf) {
81 if (!empty($tf) && is_numeric($tf)) {
82 $this->activity = $tf;
85 function get_activity() {
86 return $this->activity;
90 function set_comments($string) {
91 $this->comments = $string;
94 function get_comments() {
95 return $this->comments;
98 function set_prior_auth_number($string) {
99 $this->prior_auth_number = $string;
102 function get_prior_auth_number() {
103 return $this->prior_auth_number;
107 function get_date() {
108 return $this->date;
112 } // end of Form