A 28-year-old woman at 30 weeks' gestation presents with severe headache, visual disturbance and epigastric pain. Blood pressure in the obstetric assessment unit is 170/110 mmHg, with 3+ protein on dipstick. Reflexes are brisk. Which is the most appropriate immediate management?