Here is the design of a clinical trial:

Official Title: Integrating Health Promotion With and for Older People - eHealth: a Randomised Controlled Trial, in the Context of Good Quality Local Health Care

Included conditions:
- Frailty
- Old Age

Study Armgroups:
- {'label': 'Usual care', 'type': 'NO_INTERVENTION', 'description': 'The participants allocated to the control group received no intervention. However, they could, on their own initiative, approach the usual range of community or health services (e.g., home help services, rehabilitation, or medical care).'}
- {'label': 'eHealth', 'type': 'EXPERIMENTAL', 'description': 'The intervention will be delivered for 6 months on top of usual care.', 'interventionNames': ['Other: Integrating Health promotion with and for Older People - eHealth']}

Interventions:
- {'type': 'OTHER', 'name': 'Integrating Health promotion with and for Older People - eHealth', 'description': "The intervention will be delivered for 6 months on top of usual care. It will be provided by HCPs. If needed one home visit to install the digital platform will be conducted. A HCP will introduce how to use the digital platform and create a personal account. The intervention starts with a person-centred phone-call where a health plan is co-created and potential team members to support this are identified and invited. The health plan includes the older persons' goals, internal and external resources, and need of support from health and/or social-services. This plan will be the point of departure for the forthcoming dialogue. A digital platform will open up for extended and safe communication and visualize the health planning between the older person and team-members in different settings. The older person and the HCP and involved team members on the digital platform will regularly evaluate the health plan and commonly agreed goals.", 'armGroupLabels': ['eHealth']}

Primary Outcomes:
- {'measure': 'A composite of changes in general self-efficacy and need for hospital care', 'description': "The primary outcome is a composite of changes in general self-efficacy and need for hospital care for unscheduled reasons. Each participant will be classified as improved, deteriorated or unchanged if at 3 months:\n\n* Deteriorated: the participant's self-efficacy has decreased by ≥ 5 units (the minimal change of clinical significance), or the participant has been admitted to hospital for unscheduled reasons two times or more.\n* Improved: general self-efficacy has increased by ≥ 5 units and the participant has been admitted to hospital no more than once.\n* Unchanged: Neither deteriorated nor improved. (Questionnaire and medical record)", 'timeFrame': 'Baseline, 3'}

Please estimate the sample size based on the assumption: 
80% power, p-value of 0.05, margin for dropouts and withdrawals
Sample size and power calculation
        In the full-scale RCT and health economic evaluation a minimum of 220 patients must be randomised to the two arms based on the primary outcome measure. To achieve 80% power based on a p-value of 0.05 and allow an increase in the proportion of improved or unchanged patients from 20 to 40%, 91 participants in each group (control and intervention) are required. We plan to include 110 patients in each group to have a comfortable margin for dropouts and withdrawals.