doubts in QSAR

Hi all

My interest is to find the presence of a functional moiety [say OH group] in a small molecule at ortho / meta position in a set of ligands. the output to be shown is its presence by 1 and its absence by 0. How do we do it using DS. I tried by doing calculate molecular properties, but there is no option of doing one such task. I was looking for this option to define them as indicator variable and then find how the presence/absence of functional moiety affects the activity