I think St. Thomas Aquinas was right in believing that some matters of personal sin are left to the individual. But once you enlist the assistance of a doctor or anyone else, that is certainly no longer the case. It would be wrong to impose "immediate painless death" on me because it is against God's law. It is wrong to kill yourself because it is also against God's law.