the first important step is the choice of the list of pharmaceuticals, i.e. the prioritisation. Then you have to develop a method. You normally needs two methods in LC-MS, one in positive and one in negative
Article Prioritization and analysis of pharmaceuticals for human use...
Article Screening of pharmaceuticals and illicit drugs in wastewater...
Article Comparison of pharmaceutical, illicit drug, alcohol, nicotin...