The treatment of pain and treatment of anxiety are two of the most complex issues in nursing homes worldwide, mainly because of the large numbers of people with cognitive impairment who reside in this environment.