Dilaudid (hydromorphone) is a prescription opioid used to treat severe pain, often for patients who require continuous pain relief when other medications are ineffective.