I'd suggest you read this piece from BA: Ask BA: How Bad Is A Second Tommy John Surgery For A Pitcher?
That said, I have my doubts about either Medlen or Beachy making it back from a 2nd TJS to be solid starters again. But I do think one or both could make it back as solid relievers.