The Glorified Allah decrees in 184th verse of Surah Al-Baqarah that the sick are allowed not to fast. They make up their fast on some other day. If they die before getting well to the extent that they are able to endure fasting, they will not be responsible. The verse also informs that fasting would be better for the sick if they knew.
For further information please read the following fatwas: