A mobile compression device is as effective as medication at preventing the formation of blood clots after hip replacement surgery but provides greater patient safety.