When we define 'Types' in SQL, we can add constraints to the definition such as the Not Null constraint code example
Example: how to permit only a few values in dbms
ALTER TABLE [TableName] ADD CONSTRAINT
my_constraint CHECK (PatientType = 'Admitted' OR PatientType = 'OPD')