Subforms, many-to-many relationships, complicated database

Bruce75

Psychologist
Local time
Today, 03:03
Joined
Sep 29, 2004
Messages
46
Hi

I am stuck. I am trying to make a database for work. It is to keep track of what happens to patients in the service for which I work. I want to be able to see what the current status is of a patient, as well as their history in the service. A patient may have had individual treatment(s), group treatment(s) and have been on more than one waiting list.

So far I have:

tbl_patientdetails
patientID (PK)
name
address
etc

a junction table

tbl_events
patientIDFK
treatmentIDFK
waitinglistIDFK

another junction table

tbl_treatmenttype
individualIDFK
groupIDFK

and:

tbl_individual
individualID
Type of treatment (1-2-1 CBT, 1-2-1 GAT, etc)
Start Date
End Date

tbl_group
groupID
group type (triple group, CBT group, etc)
Start Date
End Date
Number of sessions

tbl_waitinglist
waiting for (1-2-1 CBT, triple group, etc)
Date on waiting list
Date off waiting list

So:

Each patient may have had many group treatments, and each group will have many patients that attended.

Each patient may be on, or have been on, many waiting lists, and on any one waiting list, there will be many patients

Each patient my have had many individual treatments.

What I am trying to do is:
Have a form that has patient details (from tbl_patientdetails), and on that form to have a subform that lists the 'events' that patient are currently engaged in, or have engaged in (e.g. what waiting lists they are, or have been on, what treatments they are have been on). This is the bit I am stuck on.

I think (hope) I have set the relationships up right.

I think I have explained badly... let me know if it is not clear enough.

Many thanks

Bruce
 
.
Are you sure it's not an exam question? I'm quite confident I've read exactly the same sort of scenario before!

I would suggest you have to search through the forum, because I'm convinced this question has cropped up before.
 
Thought it might be helpful if I attached what I have done so far.
 

Attachments

An exam for what?

Databases are really not my area. I occasionally dip into them every year or so, so I really am a novice. I have tried searching on forums, but I am such a novice that I don't know exactly what to search for.
 

Users who are viewing this thread

Back
Top Bottom