It's not really contrived, as sudden medical breakthroughs can happen. In Trek it could be even more common, as some flora on that newly explored world of Omicron IV just happens to have medical properties unfound elsewhere.
Even if it was, contrivance is common in movies. What, in Star Wars
, over the entire surface of Tatooine, the lifepod happened to land within spitting distance of Luke's farm?