In this paper, an evolutionary algorithm for solving the problem of predicting the safety of opioid therapy for patients with pancreatic cancer is proposed. Opioid analgesics such as fentanyl and morphine are used as a therapy for pain syndromes. Using the patient database, based on the results of the therapy applied to them, it is determined whether there is a correlation between the outcome and the combination of input data taken into account. To find a set of informative features, it is proposed to use the genetic algorithm for multi-criterion optimization, in which two criteria are reduced to one generalized criterion using the method of "additive convolution". The formed combination of the selected input features, which affects the outcome, is used to build a decision support model and to evaluate it afterwards. © Published under licence by IOP Publishing Ltd.