UCSF is in talks to take over St. Mary's Medical Center, St. Francis Memorial Hospital and several outpatient and urgent care clinics throughout San Francisco currently operated by the Catholic hospital chain Dignity Health, according to a memo reviewed by The Chronicle.