The science and method of studying optimal decisions in clinical medicine, while taking into account the epidemiological characteristics of the patient and his environment