3 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
11 * Enumerates rule types
12 * todo turn this into a real enum
20 const ActiveAlert
= "activealert";
21 const PassiveAlert
= "passivealert";
24 const PatientReminder
= "patientreminder";
26 function __construct($code, $lbl)
34 * @param string $value
37 public static function from($code)
43 public static function values()
46 return array_keys($map);
49 private static function map()
52 self
::ActiveAlert
=> new RuleType(self
::ActiveAlert
, xl('Active Alert')),
53 self
::PassiveAlert
=> new RuleType(self
::PassiveAlert
, xl('Passive Alert')),
55 // self::CQM => new RuleType( self::CQM, xl( 'CQM' ) ),
56 // self::AMC => new RuleType( self::AMC, xl( 'AMC' ) ),
57 self
::PatientReminder
=> new RuleType(self
::PatientReminder
, xl('Patient Reminder'))