Your GP may advise a short period of rest, perhaps with an ice pack. But long periods of inactivity can worsen the injury by weakening affected muscles or tendons. Painkillers prescribed by your GP may be necessary. But they can conceal the pain, and prevent your body's natural alarm bells from warning you about potentially irreparable damage.
For persistent pain, the GP is likely to refer you to a specialist.
You may also need a doctor's letter to your employer, asking for alternative work on lighter duties.
Just One More Click: Doggy drama about staying safe online at work.