A 30-year-old primigravida at 35 weeks' gestation presents with persistent headache, visual disturbance and right upper quadrant discomfort. Blood pressure is 162/104 mmHg and there is 3+ proteinuria on dipstick. What is the most appropriate immediate management?