Bayern Munich manager Vincent Kompany is in stable condition after a health scare but will be absent from coaching duties for several weeks to focus on his recovery.