diff --git a/src/uncategorized/rulesAssistant.tw b/src/uncategorized/rulesAssistant.tw index a90317672fb819b3ddd35940be129abb8e6d29ec..dd1b4a1602139654b1b4c048e8ac0d26da8bb3e5 100644 --- a/src/uncategorized/rulesAssistant.tw +++ b/src/uncategorized/rulesAssistant.tw @@ -218,6 +218,40 @@ __Rule $r Automatic Activation__ <<RAChangeApply>> <</link>> | +<<link "Lactation">> + <<unset _customCondition>> + <<set $currentRule.condition = changeVariable($currentRule.condition, "lactation")>> + <<RAChangeActivation>> + <<RAChangeSave>> + <<RAChangeApply>> +<</link>> +| +<<link "Pregnancy">> + <<unset _customCondition>> + <<set $currentRule.condition = changeVariable($currentRule.condition, "preg")>> + <<RAChangeActivation>> + <<RAChangeSave>> + <<RAChangeApply>> +<</link>> +| +<<link "Pregnancy Multiples">> + <<unset _customCondition>> + <<set $currentRule.condition = changeVariable($currentRule.condition, "pregType")>> + <<RAChangeActivation>> + <<RAChangeSave>> + <<RAChangeApply>> +<</link>> +<<if $bellyImplants == 1>> +| +<<link "Belly implant">> + <<unset _customCondition>> + <<set $currentRule.condition = changeVariable($currentRule.condition, "bellyImplant")>> + <<RAChangeActivation>> + <<RAChangeSave>> + <<RAChangeApply>> +<</link>> +<</if>> +| <<link "Custom">> <<if (def _customConditionOld)>> <<set _customCondition = _customConditionOld>> diff --git a/src/utility/raWidgets.tw b/src/utility/raWidgets.tw index 93cf738c880d7849f0aff865591933456fd53906..b82f94035551242b8b6d62c5a43efef14371d573 100644 --- a/src/utility/raWidgets.tw +++ b/src/utility/raWidgets.tw @@ -128,11 +128,11 @@ <br>@@.red;Fat@@: over 30 to 95, @@.red;Overweight@@: over 95 <<case "lactation">> <br>// 0 - none, 1 - natural, 2 - lactation implant. // - <<case "pregnancy week">> + <<case "preg">> <br>// >1 - pregnancy week(s), 0 - not pregnant, -1 - on contraceptives, -2 - barren. // - <<case "pregnancy foetuses">> + <<case "pregType">> <br>// Fetus count, rule can be applied only after week 10 of pregnancy. // - <<case "belly implant volume">> + <<case "bellyImplant">> <br>// Volume of belly implant in ccs. 0 - none. // <<case "custom">> <br>// Enter custom condition. //