Unfortunately I'm not that well versed in Stata. The hazard ratio should be simple by doing a Cox model - there are a lot of guides for doing that in Stata. Someone more familiar with Stata will need to pitch in for the median survival confidence interval. Median survival should output with Kaplan Meier estimates.