Mary replaces Dr. Bashioum with her extensive knowledge of medical problems.  The fact that she’s afflicted with all of them is just a coincidence.