Change patient generation logic to use identifier if provided by user