Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

root/openmrs-modules/chica/ruleLibrary/BFPSF.mlm

Revision 5205, 5.4 kB (checked in by tmdugan, 5 months ago)

-- chica

* mlms translated from chica 1.0

Line 
1 Maintenance:
2         Title:          Breastfeeding PSF;;
3         Filename:               BFPSF;;
4         Version:        1.0;;
5         Institution:    Indiana University School of Medicine;;
6         Author:         Paul Biondich;;
7         Specialist:     Pediatrics;;
8         Date:           2004-12-10T12:12:12-0500;;
9         Validation:     ;;
10 Library:
11         Purpose:                PSF question to assess breastfeeding status.                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ;;
12         Explanation:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ;;
13         Keywords:       breastfeed, PSF;;
14         Citations:              ;;
15         Links:          ;;
16 Knowledge:
17         Type:           data_driven;;
18 Data:
19
20 mode:=read {mode from Parameters};
21 Box1:=read {box1 from Parameters};
22 Box2:=read {box2 from Parameters};
23 Box3:=read {box3 from Parameters};
24 Box4:=read {box4 from Parameters};
25 Box5:=read {box5 from Parameters};
26 Box6:=read {box6 from Parameters};
27
28 If (mode = PRODUCE) then
29 breastfed := read Exist {BREASTFED from CHICA} Where it Occurred Within Past 30 Days;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
30 endif
31 ;;
32 Priority:               225;;
33         Evoke:          ;;
34 Logic:
35 If (mode = PRODUCE) then
36
37 If (breastfed = False) then conclude True;
38 conclude False;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
39
40 endif
41
42 If (mode = CONSUME) then
43
44 If  (Box1=true) then
45  CALL storeObs With "BREASTFED","1";
46 endif;
47 If  (Box2=true) then
48  CALL storeObs With "BREASTFED","0";
49 endif;
50
51
52 endif
53 ;;
54 Action:
55 write ("Is || firstname || breastfed?");
56 write ("¿Toma || firstname || pecho?") At Spanish;                                                                                                                                                                                                                                                                                                                                                                                                                       
57 ;;
58 Age_Min: 0 days;;
59 Age_Max: 6 months;;
60 end:
Note: See TracBrowser for help on using the browser.