Development and validation of an index to assess hospital quality management systems