Medical care has been an important factor in keeping people healthy over the centuries. But throughout the years, it has also become costly.