add check for patient creation