This was a randomized , partially blinded , noninferiority trial involving patients with cancer with insomnia recruited from a tertiary cancer center in Calgary , Alberta , Canada , from September 2008 to March 2011 .