PDMPs collect data on prescriptions for controlled substances from pharmacies and healthcare providers. This data includes patient information, the prescribing physician, the pharmacy, and details about the medication prescribed. Healthcare providers can access this database to review a patient’s prescription history before prescribing new medications.