when oral intake is inadequate or when excess potassium is being lost extrarenally