8a75996b07d1d2514f1f93999e360cb26252e705
[openemr.git] / interface / forms / fee_sheet / review / fee_sheet_classes.php
blob8a75996b07d1d2514f1f93999e360cb26252e705
1 <?php
2 /**
3 * class definitions for objects used in processing fee sheet related data
4 *
5 * Copyright (C) 2013 Kevin Yeh <kevin.y@integralemr.com> and OEMR <www.oemr.org>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 3
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
18 * @package OpenEMR
19 * @author Kevin Yeh <kevin.y@integralemr.com>
20 * @link http://www.open-emr.org
23 /**
24 * This is an encapsulation of code, code_type and description representing
25 * a code
27 class code_info
29 function __construct($c,$ct,$desc,$selected=true)
31 $this->code=$c;
32 $this->code_type=$ct;
33 $this->description=$desc;
34 $this->selected=$selected;
36 public $code;
37 public $code_type;
38 public $description;
39 public $selected;
40 public $db_id;
41 public $create_problem;
43 public function getKey()
45 return $this->code_type."|".$this->code;
48 public function getCode()
50 return $this->code;
52 public function getCode_type()
54 return $this->code_type;
56 public function addArrayParams(&$arr)
58 array_push($arr,$this->code_type,$this->code,$this->description);
62 /**
63 * This is an extension of code_info which supports the additional information
64 * held in a procedure billing entry
66 class procedure extends code_info
68 function __construct($c,$ct,$desc,$fee,$justify,$modifiers,$units,$mod_size,$selected=true)
70 parent::__construct($c,$ct,$desc,$selected);
71 $this->fee=$fee;
72 $this->justify=$justify;
73 $this->modifiers=$modifiers;
74 $this->units=$units;
75 $this->mod_size=$mod_size;
77 public $fee;
78 public $justify;
79 public $modifiers;
80 public $units;
82 //modifier, units, fee, justify
84 public function addProcParameters(&$params)
86 array_push($params,$this->modifiers,$this->units,$this->fee,$this->justify);
91 /**
92 * This is a class which pairs an encounter's ID with the date of the encounter
94 class encounter_info
96 function __construct($id,$date)
98 $this->id=$id;
99 $this->date=$date;
102 public $id;
103 public $date;
105 function getID()
107 return $this->id;