cuok,
Your approach is incorrect, and that is why you are running out of relationships. From what you've told me, you can basically manage with five tables in your database:
Doctor
Patient
Test
PatientDoctorVisit
PatientDoctorVisitTest
Have a bit of a look at the above tables, and see if you can understand the various relationships between them.
I think that the problem with your current approach is that you may be confusing tables with records. In your example where a patient will be taking 32 tests on a visit, each of these tests should result in a separate record in the single PatientDoctorVisitTest table; not in separate test tables.
Hope this helps to clear things up.
Cheers,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au