A 34-year-old woman at 37 weeks' gestation presents with severe headache, visual disturbance and right upper quadrant pain. Blood pressure is 170/110 mmHg and urine dipstick shows 3+ protein. Reflexes are brisk. What is the most appropriate immediate management?