Robust estimation of heterogeneous treatment effects using electronic health record data. (19th March 2021)