Diamondbacks pitcher Brandon McCarthy is taking medication and said he’s confident he'll be fine after he collapsed at a Phoenix restaurant with a seizure related to the head injury he sustained while pitching last September. The righthander underwent extensive examinations at the Mayo Clinic after the incident Monday. He was having dinner with his wife when he passed out. McCarthy, speaking before Arizona played San Francisco on Sunday, said he knew that after a traumatic brain injury a person can become more ‘‘seizure-prone.’’ McCarthy had an epidural hemorrhage, brain contusion, and a skull fracture after being struck by a line drive off the bat of Erick Aybar of the Angels. McCarthy, on the 15-day disabled list with what has become an annual problem with his shoulder, said he will be taking antiseizure medicine for the foreseeable future. He doesn’t believe the seizure will impact his return to pitching.