Trial design and analysis methods to incorporate the complexities of surgery