For violation of the rules of the prison an inmate may be confined to a solitary cell, under the care and advice of the physician.