4 * interface/super/rules/controllers/edit/helper/common.php
7 * @link https://www.open-emr.org
8 * @author Aron Racho <aron@mi-squared.com>
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2010-2011 Aron Racho <aron@mi-squared.com>
11 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
16 * Description of RuleCriteriaSex
20 class RuleCriteriaSex
extends RuleCriteria
24 function __construct($value)
26 $this->value
= $value;
29 function getRequirements()
31 return xl_list_label($this->value
);
46 return getListOptionsArray('sex');
51 $dbView = parent
::getDbView();
53 $dbView->method
= "sex";
54 $dbView->methodDetail
= "";
55 $dbView->value
= $this->value
;
59 function updateFromRequest()
61 parent
::updateFromRequest();
63 $sex = _post("fld_sex");