4 * class definitions for objects used in processing fee sheet related data
7 * @link http://www.open-emr.org
8 * @author Kevin Yeh <kevin.y@integralemr.com>
9 * @copyright Copyright (c) 2013 Kevin Yeh <kevin.y@integralemr.com> and OEMR <www.oemr.org>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 * This is an encapsulation of code, code_type and description representing
19 require_once("$srcdir/../custom/code_types.inc.php");
23 function __construct($c, $ct, $desc, $selected = true)
26 $this->code_type
= $ct;
27 $this->description
= $desc;
28 $this->selected
= $selected;
29 // check if the code type is active and allowed to create medical problems from diagnosis elements
30 $this->allowed_to_create_problem_from_diagnosis
= "FALSE";
31 if (check_code_set_filters($ct, array("active","problem"))) {
32 $this->allowed_to_create_problem_from_diagnosis
= "TRUE";
35 // check if the code type is active and allowed to create diagnosis elements from medical problems
36 $this->allowed_to_create_diagnosis_from_problem
= "FALSE";
37 if (check_code_set_filters($ct, array("active","diag"))) {
38 $this->allowed_to_create_diagnosis_from_problem
= "TRUE";
46 public $allowed_to_create_problem_from_diagnosis;
47 public $allowed_to_create_diagnosis_from_problem;
48 public $create_problem;
50 public function getKey()
52 return $this->code_type
. "|" . $this->code
;
55 public function getCode()
59 public function getCode_type()
61 return $this->code_type
;
63 public function addArrayParams(&$arr)
65 array_push($arr, $this->code_type
, $this->code
, $this->description
);
70 * This is an extension of code_info which supports the additional information
71 * held in a procedure billing entry
73 class procedure
extends code_info
75 function __construct($c, $ct, $desc, $fee, $justify, $modifiers, $units, $mod_size, $selected = true)
77 parent
::__construct($c, $ct, $desc, $selected);
79 $this->justify
= $justify;
80 $this->modifiers
= $modifiers;
81 $this->units
= $units;
82 $this->mod_size
= $mod_size;
90 //modifier, units, fee, justify
92 public function addProcParameters(&$params)
94 array_push($params, $this->modifiers
, $this->units
, $this->fee
, $this->justify
);
99 * This is a class which pairs an encounter's ID with the date of the encounter
103 function __construct($id, $date)