How AI could identify prescription mistakes before they happ