The court may make declarations as to—
whether a person has or lacks capacity to make a decision specified in the declaration;
whether a person has or lacks capacity to make decisions on such matters as are described in the declaration;
the lawfulness or otherwise of any act done, or yet to be done, in relation to that person.
"Act" includes an omission and a course of conduct.