Developing and validating a diabetes database in a large health system