Text this: Modern approach to automation of internal control of quality and safety of medical care