Vicodin is prescribed by a physician for pain management after serious injury or surgery as a pain reliever.