@PGStats I'm not exactly sure how to describe the change in the output by replacing "OR" w/ "+"...The value of rx_anti_dep = 12 for the observation "Effexor , Amytriptyline, Metformin, Valuim, Flomax,". It should equal 2. I'm not sure where the 12 comes from since there are more than 12 "+"s (See below).
rx_anti_dep = findw(rxsublist, "Prozac", " ", "pio") + findw(rxsublist, "prozac", " ", "pio") + findw(rxsublist, "Paxcil", " ", "pio") + findw(rxsublist, "trazadone", " ", "pio") + findw(rxsublist, "effexor", " ", "pio") + findw(rxsublist, "depression meds", " ", "pio") + findw(rxsublist, "anti-depressant med", " ", "pio") + findw(rxsublist, "anti-depressants", " ", "pio") + findw(rxsublist, "Welbutrin", " ", "pio") + findw(rxsublist, "welbutrin", " ", "pio") + findw(rxsublist, "wellbutrin", " ", "pio") + findw(rxsublist, "Wellbutrin", " ", "pio") + findw(rxsublist, "Celexa", " ", "pio") + findw(rxsublist, "celexa", " ", "pio") + findw(rxsublist, "Anti-depressants", " ", "pio") + findw(rxsublist, "antidepressants", " ", "pio") + findw(rxsublist, "Depression Pills", " ", "pio") + findw(rxsublist, "many anti depression meds", " ", "pio") + findw(rxsublist, "Lexapro", " ", "pio") + findw(rxsublist, "zoloft", " ", "pio") + findw(rxsublist, "Zoloft", " ", "pio") + findw(rxsublist, "Esciotalopram", " ", "pio") + findw(rxsublist, "venlafaxine", " ", "pio") + findw(rxsublist, "anti-depressants", " ", "pio") + findw(rxsublist, "amitriptyline", " ", "pio") + findw(rxsublist, "Amytriptyline", " ", "pio") + findw(rxsublist, "SSRIs", " ", "pio") + findw(rxsublist, "Venlafaxine", " ", "pio") + findw(rxsublist, "amyitriptaline", " ", "pio") + findw(rxsublist, "mirtazipine", " ", "pio") + findw(rxsublist, "Citalopram", " ", "pio");
... View more