We acknowledge and use scientific advances in the form of medicine for the prolonging of life while at the same time recognizing that the body is but a temporary vehicle in which we are currently housed. With a combination of prayer and medicine we live life to the fullest for as long as we can and then let go and move on.
When we are done with this body, in this manifestation, then what happens to it is of no major concern. We may donate it to science, donate organs, be cremated, buried, or whatever it is we dream up for the resolution of the remains.
We, (our consciousness,) are on an eternal journey, of which this physical manifestation is just a way station, to the ultimate goal of returning to the conscious oneness with the divine.