What is the version of the following sentence with correct punctuation?

Patients experiencing continuous vomiting will need medication both to control the vomiting and to allow them to be able to hold their food long enough for it to digest In cases of severe ulcers or tumors in the gastrointestinal tract surgery may be required
Patients experiencing continuous vomiting will need medication both to control the vomiting and to allow them to be able to hold their food long enough for it to digest. In cases of severe ulcers or tumor(s) in the gastrointestinal tract, surgery may be required.