2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com>
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.
9 require_once(library_src('RuleCriteriaSimpleText.php'));
12 * Description of RuleCriteriaMedication
16 class RuleCriteriaAllergy
extends RuleCriteriaSimpleText
18 function __construct($title, $value = '')
20 parent
::__construct($title, $value);
25 $dbView = parent
::getDbView();
27 $dbView->method
= "lists";
28 $dbView->methodDetail
= "allergy";
29 $dbView->value
= $this->value
;