Medical safety: using end objectives to drive learning