Hi everybody, I hope some of you can tell me if I can do something with my
I have a table in a DB with medical information from too many patients. This
information was captured in paper and after put into the table. The
questions have a sequence, and a few answers depend of other answers, for
P2. Gander: 1: Female, 2: Male
--> if P1 >= 12 and P2 = 1 then go to p3, else go to p5
P3. How many times have you been pregnant? 0, 1, 2, 3, 4, 5, ______
--> if number > 1 go to P3 else P5
P4. How many babes were born alive? 0, 1, 2, 3, 4, 5, _______
P5. Do you smoke? 1: no, 2: yes
In the table I have something like this:
mysql> SELECT * FROM table;
I try to set STATUS = "OK" when information was consistent, i.e.
ID = 2. A girl of 10 years hardly been pregnant 3 times
ID = 3. A man can't get pregnant or abort
ID = 4. A woman can't abort if the number of times she has become pregnant
I'll try to use Drools to do something like this.
rule "Age and gender women"
p : Person(p1 >= 12 && p2 = 1)
//execute rule "Pregnant"
p : Person(p3 > 1)
//execute rule "Aborts"
p : Person(p4 <= P3)
p.Status = 'OK'
Is this possible??? I read than you can't nested rules, but I want to know
if exist some way to do. Since now my thanks for any help.
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com