As a phenotype or cohort definition. That’s the instrument researchers have to match the actual (real-world) data to the subjects of their research. While the data contain the facts, with the fact being that a patient is treated with a drug, not with a drug class.
Makes sense?