I agree, modern medicine is outstanding when it comes to acute problems: heart attacks, strokes, accidents, food poisoning, broken bones, acute wounds, just to name a few. However, modern allopathic medicine lacks in the understanding of chronic, metabolic, endocrine problems, these problems are treated with symtom releavers, not curing the patient.
I too doubt any prayers to a deity would have helped in your case.