The official explanation the nurses put on paper is to protect her leg. But some people seems to think that putting her in constant pain is a treatment to try to solve her pain addiction.
Trying to cure an addiction just be making it possible to feel the desired experience all the time?
Well... I am pretty sure, next time we see Charlotte again, her addiction is worse than ever.