The Q-Metrics system for long-term care outcomes management