quick minor path updates (#1968)
[openemr.git] / interface / super / rules / library / RuleCriteriaAllergy.php
blob9650a4c9209402566bb18a2d7b9428520d1488a0
1 <?php
2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.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.
9 require_once(library_src('RuleCriteriaSimpleText.php'));
11 /**
12 * Description of RuleCriteriaMedication
14 * @author aron
16 class RuleCriteriaAllergy extends RuleCriteriaSimpleText
18 function __construct($title, $value = '')
20 parent::__construct($title, $value);
23 function getDbView()
25 $dbView = parent::getDbView();
27 $dbView->method = "lists";
28 $dbView->methodDetail = "allergy";
29 $dbView->value = $this->value;
30 return $dbView;