Refactored patientNumber check on createPatient.