Capacity and competency in mental health

Explain the difference between capacity and competency in mental health contexts.