Do you think doctors really keep track of all medicine interaction?

My gran has over two dozen different prescriptions in her weekly pill cases.
They are ordered by four different types of doctors, cardio, dermatology, podiatry, etc. and may be added to by more than one doctor at each clinic or hospital. She tries to give them all updated lists every time something changes, but take the last time, she had a broken bone and a sports doctor gave her new stuff to take. She won’t see the heart doctor again for a couple of months. Would you trust that a sports doctor know about what’s good for her heart?
Do you think any pill maker even tries to test such combinations?
Do you worry about your own pills, to the extent you will try to limit the number prescribed?