The best way to prevent blood clots is to get out of bed shortly after surgery and walk at least two to three times a day.