Advanced battery management in healthcare energy storage systems