(b) When a patient who has a health care agent lacks capacity, the agent shall have the rights and authority that a patient with capacity would have under this article, subject to the terms of the health care proxy and article twenty-nine-C of this chapter.