A 29-year-old primigravida at 38 weeks’ gestation presents with persistent headache, visual disturbances and right upper quadrant pain. Her blood pressure is 168/112 mmHg and urinalysis shows +++ protein. What is the most appropriate immediate management?