Fix edi.inc encoding and correct uninitialized variables in modified files
[openemr.git] / library / classes / rulesets / ReportTypes.php
blob2d353a4cb0b7ce5fa9c481bd71d7a487f0927e63
1 <?php
2 // Copyright (C) 2011 Ken Chapple <ken@mi-squared.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 class ReportTypes
11 const TYPE_INDEX = 0;
12 const CLASS_INDEX = 1;
14 const AMC = 'amc';
15 const CQM = 'cqm';
17 public static function getType( $ruleId ) {
18 $type = self::$_types[$ruleId][self::TYPE_INDEX];
19 return $type;
22 public static function getClassName( $ruleId ) {
23 $class = self::$_types[$ruleId][self::CLASS_INDEX];
24 return $class;
27 protected static $_types = array(
28 "rule_htn_bp_measure_cqm" => array( ReportTypes::CQM, "NFQ_0013" ),
29 "rule_tob_use_assess_cqm" => array( ReportTypes::CQM, "NFQ_0028a" ),
30 "rule_tob_cess_inter_cqm" => array( ReportTypes::CQM, "NFQ_0028b" ),
31 "rule_adult_wt_screen_fu_cqm" => array( ReportTypes::CQM, "NFQ_0421" ),
32 "rule_wt_assess_couns_child_cqm" => array( ReportTypes::CQM, "NFQ_0024" ),
33 "rule_influenza_ge_50_cqm" => array( ReportTypes::CQM, "NFQ_0041" ),
34 "rule_child_immun_stat_cqm" => array( ReportTypes::CQM, "NFQ_0038" ),
35 "rule_pneumovacc_ge_65_cqm" => array( ReportTypes::CQM, "NFQ_0043" ),
36 "rule_dm_eye_cqm" => array( ReportTypes::CQM, "NFQ_Unimplemented" ),
37 "rule_dm_foot_cqm" => array( ReportTypes::CQM, "NFQ_Unimplemented" ),
38 "rule_dm_bp_control_cqm" => array( ReportTypes::CQM, "NFQ_Unimplemented" ),
39 "rule_dm_a1c_cqm" => array( ReportTypes::CQM, "NFQ_0059" ),
40 "rule_dm_ldl_cqm" => array( ReportTypes::CQM, "NFQ_0064" ),
41 "problem_list_amc" => array( ReportTypes::AMC, "AMC_302c" ),
42 "med_list_amc" => array( ReportTypes::AMC, "AMC_302d" ),
43 "med_allergy_list_amc" => array( ReportTypes::AMC, "AMC_302e" ),
44 "record_vitals_amc" => array( ReportTypes::AMC, "AMC_302f" ),
45 "record_smoke_amc" => array( ReportTypes::AMC, "AMC_302g" ),
46 "lab_result_amc" => array( ReportTypes::AMC, "AMC_302h" ),
47 "med_reconc_amc" => array( ReportTypes::AMC, "AMC_302j" ),
48 "patient_edu_amc" => array( ReportTypes::AMC, "AMC_302m" ),
49 "cpoe_med_amc" => array( ReportTypes::AMC, "AMC_304a" ),
50 "e_prescribe_amc" => array( ReportTypes::AMC, "AMC_304b" ),
51 "record_dem_amc" => array( ReportTypes::AMC, "AMC_304c" ),
52 "send_reminder_amc" => array( ReportTypes::AMC, "AMC_304d" ),
53 "provide_rec_pat_amc" => array( ReportTypes::AMC, "AMC_304f" ),
54 "timely_access_amc" => array( ReportTypes::AMC, "AMC_304g" ),
55 "provide_sum_pat_amc" => array( ReportTypes::AMC, "AMC_304h" ),
56 "send_sum_amc" => array( ReportTypes::AMC, "AMC_304i" )