What is nursing home quality and how is it measured?

What is nursing home quality and how is it measured?