Here is a link to scientific protocols and analytic protocols that have been used in the Canadian Network for Observational Drug Effect Studies (CNODES) project. They are a great way of looking at how specific terms have been defined in previous research.
The Effect of Proton-Pump Inhibitors on the Risk of Community-Acquired Pneumonia
The use of incretin-based drugs and the risk of pancreatic cancer in patients with type 2 diabetes
Serotonin-norepinephrine reuptake inhibitors and acute kidney injury
The Effect of High Potency Statins on the Risk of Incident Diabetes in Patients with Occlusive Vascular Disease