Children who presented to the emergency department with an uncomplicated extremity fracture were randomly assigned to receive either morphine ( 0.5 mg/kg orally ) or ibuprofen ( 10 mg/kg ) for 24 hours after discharge .