Developing statistical methodologies to support embedding clinical trials within learning health systems