What can be learned about the impact of diabetes on hospital admissions from routinely recorded data?

What can be learned about the impact of diabetes on hospital admissions from routinely recorded data?