Generate a unique patient ID for each new patient added in the GUI.