Do you want a crystal solution or a SQL solution?
in SQL you can do a seperate sub queries to handle your processes.
In crystal create 2 different formuals to create flags for each condition at the group level
//Flag_1
if {lime_survey_27974.27974X51X1763}="1" then 1
sum it at the patient group level
//Flag_2
if {lime_survey_27974.27974X51X1763}="2" then 1
sum it at the patient group level
now you can do another formula (or group select criteria if you want to limit your data)
if sum(@flag_1,table.patient)>0 and sum(@flag_2,table.patient)>0 then 'True'