For violating the rules of the jail, an inmate may be kept in solitary confinement, under the care and advice of a physician, but not over 10 days.