IF DSCODE IN('01','03','04','05','06','07','08','15','20','21','43','50','51','63','64','65','70')THEN DISCH=1; ELSE DISCH=0; I want to add criteria to this if statement. I would like the criteria to include something like: OR if the only dscode by pt id = 30 THEN... (meaning if a patient only has a dscode of 30 in the data, then flag) is this possible? can someone help me on the syntax? If there is another way to approach this, I would appreciate any suggestions. Another option I was thinking about was If last dscode=30 then flag (by admit date and patient). Thank you very much, Jesse
... View more