The medicine worked right away.

Literal

Medicine [topic-は] immediately took-effect.

Short, plain-past, concrete. すぐ ('immediately') is the adverb, 効いた is the plain past of 効く. One of the cleanest possible examples of the medical 効く.