Definition of the dilaudid are a narcotic analgesic (trade name Dilaudid) used to treat moderate to severe pain .