8a75996b07d1d2514f1f93999e360cb26252e705
3 * class definitions for objects used in processing fee sheet related data
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>;.
19 * @author Kevin Yeh <kevin.y@integralemr.com>
20 * @link http://www.open-emr.org
24 * This is an encapsulation of code, code_type and description representing
29 function __construct($c,$ct,$desc,$selected=true)
33 $this->description
=$desc;
34 $this->selected
=$selected;
41 public $create_problem;
43 public function getKey()
45 return $this->code_type
."|".$this->code
;
48 public function getCode()
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
);
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);
72 $this->justify
=$justify;
73 $this->modifiers
=$modifiers;
75 $this->mod_size
=$mod_size;
82 //modifier, units, fee, justify
84 public function addProcParameters(&$params)
86 array_push($params,$this->modifiers
,$this->units
,$this->fee
,$this->justify
);
92 * This is a class which pairs an encounter's ID with the date of the encounter
96 function __construct($id,$date)