Here is the design of a clinical trial:

Official Title: Does Rehabilitation After Total Hip and Knee Arthroplasty Work: A Pragmatic, Randomised, Controlled, Superiority Trial (The DRAW1 Trial)

Included conditions:
- Arthroplasty, Replacement, Knee
- Arthroplasty, Replacement, Hip
- Telerehabilitation
- Rehabilitation

Study Armgroups:
- {'label': 'Telerehabilitation', 'type': 'ACTIVE_COMPARATOR', 'description': 'Patients randomized to this group will receive interactive virtual rehabilitation using a mobile app. The telerehabilitation is based on sensor technology, developed by ICURA. This technology consists of motion sensors that can measure and analyse the quantity and quality of the exercises, and a mobile application that can guide the patient with visual response. A unique feature of ICURA trainer allows the physiotherapist to remotely supervise the individual patients exercise adherence and progress. This technology has already been successfully implemented in several different rehabilitation facilities across Denmark, and, hence, reflects current clinical practice.', 'interventionNames': ['Other: Telerehabilitation']}
- {'label': 'No intervention', 'type': 'ACTIVE_COMPARATOR', 'description': 'This group of randomised patients will not be given any physical rehabilitation intervention. This means no physical activity or exercise designed and prescribed for restoring normal function or reducing pain cause by disease, injury or surgery. The no intervention group will be encouraged to stay active and continue life as usual, gradually returning to their activities of daily living when they feel ready for it.', 'interventionNames': ['Other: No intervention']}
- {'label': 'Unsupervised rehabilitation', 'type': 'ACTIVE_COMPARATOR', 'description': 'This group will be instructed in similar exercises as patients allocated to telerehabilitation. However, this group will receive a written exercise-program with instructions to perform these exercises at home. The home-based exercise program will be created using exercise templates from Exorlive. Using a link provided in the exercise-program, the patients will be able to see short instruction-videos of the individual exercises.', 'interventionNames': ['Other: Unsupervised rehabilitation']}

Interventions:
- {'type': 'OTHER', 'name': 'Telerehabilitation', 'description': 'The telerehabilitation intervention is based on sensor technology, developed by ICURA. The technology consists of motion sensors that can measure and analyse the quantity and quality of the exercises, and a mobile application that can guide the patients with visual response. A unique feature of ICURA trainer allows the physiotherapist to remotely supervise the individual patients exercise adherence and progress. The patients will receive a suitcase with five sensors (to be placed bilaterally on lower legs, thighs and one around the waist), a smartphone to record the exercises and a charging station free of charge during the 6-week intervention. At the end of the intervention the material will be returned at the first follow-up (t1). For more information please visit https://icura.dk.', 'armGroupLabels': ['Telerehabilitation']}
- {'type': 'OTHER', 'name': 'No intervention', 'description': 'Patients allocated to the no intervention group will receive encouragement to stay active and be encouraged to gradually return to activities of daily living. This will be the only exercise-encouragement given to the no-intervention group.', 'armGroupLabels': ['No intervention']}
- {'type': 'OTHER', 'name': 'Unsupervised rehabilitation', 'description': 'The unsupervised rehabilitation group will receive a written exercise program in order to perform daily exercises at home. The exercise program will be made using Exorlive (for more information about Exorlive please visit https://www.exorlive.com). In addition to the written program, patients will able to use a link provided to see small video-instructions on the internet of each exercise on the program. No feedback or supplementary instructions will be given after the initial face-to-face appointment.', 'armGroupLabels': ['Unsupervised rehabilitation']}

Primary Outcomes:
- {'measure': "For THA's: Hip disability and Osteoarthritis Outcome Score (HOOS) subscale: function in daily living (ADL).", 'description': 'This subscale consists of 17 questions related to the patient\'s function in activities of daily living such as "descending stairs", "standing" and "getting in/out of car". The subscale is scored by the degree of difficulty the patient experiences in the last week on a 5-point Likert scale (none, mild, moderate, severe, and extreme), and calculated to a score ranging from 0 (worst/extreme difficulties) to 100 (best/ no problems). The total questionnaire takes about 10 minutes to complete. At least 50% of the questionnaire items are required to be answered to permit calculation of a mean score.', 'timeFrame': 'Difference between groups at first follow up (6 weeks)'}
- {'measure': "For TKA's: Knee injury and Osteoarthritis Outcome Score (KOOS) subscale: function in daily living (ADL).", 'description': 'This subscale consists of 17 questions related to the patient\'s function in activities of daily living such as "descending stairs", "standing" and "getting in/out of car". The subscale is scored by the degree of difficulty the patient experiences in the last week on a 5-point Likert scale (none, mild, moderate, severe, and extreme), and calculated to a score ranging from 0 (worst/extreme difficulties) to 100 (best/ no problems). The total questionnaire takes about 10 minutes to complete. At least 50% of the questionnaire items are required to be answered to permit calculation of a mean score.', 'timeFrame': 'Difference between groups at first follow up (6 weeks)'}

Please estimate the sample size based on the assumption: 
A power of 0.80, a significance level of 0.05, and a 10% loss to follow-up rate. For the comparison of any physical rehabilitation to no physical rehabilitation, the expected power is 0.89.
Sample size
        A clinically important difference of 10 points on the HOOS/KOOS subscale function in daily living (ADL)
36,
45 is used as our superiority margin, with an expected standard deviation of 20 points, a power of 0.80 and a significance level of 0.05 resulting in a sample size of 50 patients in each group. With 10% loss to follow up
46 this results in 56 patients in each group. This calculation will be used for each comparison of individual physical rehabilitations to no physical rehabilitation; therefore, 56 patients are needed for each of the three groups resulting in 168 patients included in total (3 groups of 56 patients). Comparison of any physical rehabilitation to no physical rehabilitation is done under the same clinically important difference and expected standard deviation as the individual comparisons. With a sample size of 100 (patients receiving one of the two physical rehabilitation strategies) and 50 (patients receiving no physical rehabilitation) the expected power is 0.89.
        We expect a relatively low inclusion rate of 50%, since one of the interventions includes âno physical rehabilitationâ, compared to standard rehabilitation. Furthermore, based on the expected patient flow at our trial sites and the need to conduct the trial within a realistic timeframe, we do not initially intend to stratify THA and TKA for subgroup analysis. There will not be any specific strategies for increasing participant enrolment related to this trial.