How does the sentence end?

Melissa went through the medical procedure and afterwards was given vitamins instead of painkillers because the
vitamins worked fine.