add a check for patient available