The incidence of post-surgical chronic pain ranges between 20% and 40% in Europe. Osteoarthritis pain after prosthesis implantation is one of the most severe secondary syndromes, depending not only on surgery but also on organic changes before and after joints replacement. No data are available about risk factors. An excessive inflammatory response plays a central role but a best therapy is not defined yet. It is not clear whether opioid administration could influence post-surgical pain and lead to tolerance or addiction. Interestingly, the immune system, together with the nervous and peptidergic ones, is involved in hypersensibility. The connection across the three biological systems lies in the presence of opioid receptors on immune cells surface. Here, we show a method to analyze whether opioids could modulate lymphocytes, by proposing opioid receptors as biological markers to prevent chronic pain and opioid tolerance or addiction after hip surgery. After institutional independent ethics committee approval, 60 patients, in pain and undergoing hip surgery, will be enrolled in a single-blind, randomized, phase IV, pilot study. Pain treatment will be selected inside a class of non-steroidal anti-inflammatory drugs (NAISDs) or paracetamol or a class of opioids, into three medication arms: 25 mg tapentadol twice daily; 75 mg tapentadol twice daily; NSAIDs or paracetamol in accordance with surgeon's custom. For each group, we will collect blood samples before, during and after surgery, to apply molecular analysis. We will perform lymphocyte opioid receptors genes and proteins expression and functional analysis. Data will be statistically analyzed. This project has the potential to obtain a personalized diagnostic kit, by considering lymphocyte opioid receptors as biological markers. Starting from a simple blood sample, it will be possible to decide the best therapy for a single patient. Using a noninvasive approach, we expect to fix a daily standard dose and timing, before and after surgery, to bypass hip chronic pain and the insurgence of tolerance or addiction. The analysis of opioid receptors sensitivity will help to identify the best drug administration in each specific case (tailored therapy). ISRCTN, ISRCTN12559751 . Retrospectively registered on 23 May 2017.