After discharge from hospital , subjects in the magnesium group required less oral opioids , median ( IQR ) of 10 ( 0 to 20 ) ( oral milligrams of morphine equivalents ) than the saline group , 30 ( 20 to 40 ) ( P < 0.001 ) .