add locked, and disabled for patients table