Hi,
I am a db newbie and am trying to design a db for a large study that we are trying to implement. I have read up on the materials and although I do understand most of the single concepts, I am utterly at a loss with some of the interactions while putting everything together in order to create a functioning database.
Here is the overarching design:
Patients (consisting of many families) each with a unique identifier return to the clinic for a variety of measures completed not necessarily on the same of their repeating appointments. Thus most, if not all patients, eventually will have many records in the db due to their repeating appointments.
I don't remember how many different which ways I have tried to make this work, but somehow I have never been able to. I had the variables split into up to three tables and I have tired one-to-one, one-to-many, and many-to-many relationships, the latter with a junction table. Nothing seems to work and I am obviously something not understanding. I am hopeful that someone in this forum more experienced than I am would be able to give me a hand and pointers:
Here are the variables:
The next 7 are currently contained in tbl_Demographic:
PatientID (this is a only truly unique identifier)
FirstName
LastName
Locator Code
ZipCode
Birthdate
StudyReleaseDate
The next 17 variables all represent medical and psychological measures. Initially, the first 5 variables were contained in tbl_Psychiatric
LstMD
MedExp
RN
RTC
AIMS
whereas the remaining 12 were contained in tbl_Psychological
LstMH
MH
TxPlan
SMI/A
SMI/C
SA
Consent
Dx1
Dx1t
Dx2
Dx2t
Last DI85
Because I could not get that to work, I since have stored all 17 variables into one tbl_ClinicalData.
All clinical data is unique but I would prefer to handle the design by breaking the clinical data into the aforementioned two tables.
Because I only had one truly unique variable for the PrimaryKey (i.e., PatientID), I relied on the Autonumber function in Access to create Foreign and additional Primary Keys when I dealt with two or more tables in the one-to-many or many-to-many design attempts. The Relationships alone gave me nightmares since I do not understand for example if I should be indexing or not, which obviously has significant meaning on the overall design of the db.
The more I was trying the more I was confusing myself I suppose. I am however at my wits end and really would appreciate if someone could help me in my confusion.
Thanks
D