Here is the design of a clinical trial:

Official Title: Preemptive Analgesia for Hemorrhoidectomy

Included conditions:
- Hemorrhoidectomy

Study Armgroups:
- {'label': 'Ketoprophenum', 'type': 'ACTIVE_COMPARATOR', 'description': 'A tablet with 10 mg Ketoprophenum is taken per os 2 hours before surgery', 'interventionNames': ['Procedure: Hemorrhoidectomy', 'Drug: Ketoprophenum']}
- {'label': 'Placebo', 'type': 'PLACEBO_COMPARATOR', 'description': 'A tablet containing starch is taken per os 2 hours before surgery', 'interventionNames': ['Procedure: Hemorrhoidectomy', 'Drug: Placebo']}

Interventions:
- {'type': 'PROCEDURE', 'name': 'Hemorrhoidectomy', 'description': 'The patient receives spinal anaesthesia and is placed in lithotomy position. A complex of external and internal haemorrhoid or internal haemorrhoid only is excised with monopolar electrocautery or bipolar electrosurgery device. Haemorrhoid pedicle is tied with absorbable polyfilament suture. One, two or three nodes can be removed per a procedure.', 'armGroupLabels': ['Ketoprophenum', 'Placebo']}
- {'type': 'DRUG', 'name': 'Ketoprophenum', 'description': 'Ketoprophenum', 'armGroupLabels': ['Ketoprophenum']}
- {'type': 'DRUG', 'name': 'Placebo', 'description': 'Placebo', 'armGroupLabels': ['Placebo']}

Primary Outcomes:
- {'measure': 'The frequency of opioid analgesics usage', 'description': 'The frequency of opioid administration per day', 'timeFrame': '0-7 days postoperatively'}

Please estimate the sample size based on the assumption: 
This is a superiority study using a 1-sided Blackwelder test with a significance level (alpha) of 0.05, a statistical power of 80%, a noninferiority margin of 5%, and a 1:1 allocation ratio.
Sample size
        Considering that this is a superiority study, the sample size was calculated using a 1-sided Blackwelder test. According to published data, the incidence of opioid intake after hemorrhoidectomy varies from 20 to 30% [7]. The expected incidence of opioid intake after hemorrhoidectomy with preemptive analgesia is not more than 10%. The purpose of this study is to show that the opioids intake in patients with preemptive analgesia is lower than without it. Considering that a = 0.05. the statistical power of the study is 80%, the patients are randomized into 2 groups with 1:1 allocation ratio, the noninferiority margin D = 5%, and the required sample size is 144 patients (72 patients in each of the 2 groups).