K
Kurt
I've posted something similar before, but haven't
received a good solution. So I'll start small: I need to
develop a database to track patients who are enrolled in
one or more studies.
1. A patient can be in many studies, and a study can have
many patients (many-to-many).
2. A patient will have multiple unique visits for each
study he is enrolled in (i.e., he can't do something for
2 studies in one visit; he'll need a separate visit for
each study).
3. The visit information (date and notes) needs to be
tracked.
I set up 3 tables. tblPatients and tblStudies are joined
by a junction table, tblVisits:
tblPatients
-------------
*PatientID
FName
LName
Address
Phone
tblStudies
------------
*StudyID
Title
Description
tblVisits (junction table)
------------
*PatientID
*StudyID
VisitDate
VisitNotes
For example, Joe is enrolled in the Green study and the
Blue study. Joe has 3 visits for the Green study, and 2
visits for the Blue study. Data in tblVisits would like
this:
tblVisits
---------------------------------------
*PatientID *StudyID VisitDate
Joe Blue 3/2/04
Joe Green 5/2/04
Joe Green 6/3/04
Joe Blue 7/1/04
Joe Green 9/8/04
I'm pretty confident that this is the appropriate design.
(Is it?) However, I'm at a loss as to how to implement
the forms to manage the data.
Here's a typical scenario for the end-user (assume that a
bunch of studies have already been entered in tblStudies):
A. Joe shows up to the clinic for the first time to be
enrolled in the Blue and Green study.
1. Add Joe (demographics, etc.) to the database.
2. Enroll him in the Blue study.
3. Enroll him in the Green study.
B. A week later, Joe comes in for his first visit for the
Blue study.
1. Pull up Joe's record, select the Blue study (perhaps
from a list showing the studies he's in?), then enter the
visit information.
C. A week later, Joe comes in for his first visit for the
Green study.
1. Pull up Joe's record, select the Green study, then
enter the visit information.
And so on for future visits.
Any idea how to proceed, set up the forms & subforms? I'm
at a loss. Thanks.
Kurt
received a good solution. So I'll start small: I need to
develop a database to track patients who are enrolled in
one or more studies.
1. A patient can be in many studies, and a study can have
many patients (many-to-many).
2. A patient will have multiple unique visits for each
study he is enrolled in (i.e., he can't do something for
2 studies in one visit; he'll need a separate visit for
each study).
3. The visit information (date and notes) needs to be
tracked.
I set up 3 tables. tblPatients and tblStudies are joined
by a junction table, tblVisits:
tblPatients
-------------
*PatientID
FName
LName
Address
Phone
tblStudies
------------
*StudyID
Title
Description
tblVisits (junction table)
------------
*PatientID
*StudyID
VisitDate
VisitNotes
For example, Joe is enrolled in the Green study and the
Blue study. Joe has 3 visits for the Green study, and 2
visits for the Blue study. Data in tblVisits would like
this:
tblVisits
---------------------------------------
*PatientID *StudyID VisitDate
Joe Blue 3/2/04
Joe Green 5/2/04
Joe Green 6/3/04
Joe Blue 7/1/04
Joe Green 9/8/04
I'm pretty confident that this is the appropriate design.
(Is it?) However, I'm at a loss as to how to implement
the forms to manage the data.
Here's a typical scenario for the end-user (assume that a
bunch of studies have already been entered in tblStudies):
A. Joe shows up to the clinic for the first time to be
enrolled in the Blue and Green study.
1. Add Joe (demographics, etc.) to the database.
2. Enroll him in the Blue study.
3. Enroll him in the Green study.
B. A week later, Joe comes in for his first visit for the
Blue study.
1. Pull up Joe's record, select the Blue study (perhaps
from a list showing the studies he's in?), then enter the
visit information.
C. A week later, Joe comes in for his first visit for the
Green study.
1. Pull up Joe's record, select the Green study, then
enter the visit information.
And so on for future visits.
Any idea how to proceed, set up the forms & subforms? I'm
at a loss. Thanks.
Kurt