What is the primary goal of a Quality Assurance and Performance Improvement (QAPI) program in an assisted living facility?