Help with schema (Access 2010)

%3CLINGO-SUB%20id%3D%22lingo-sub-2133442%22%20slang%3D%22en-US%22%3EHelp%20with%20schema%20(Access%202010)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2133442%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%E2%80%99m%20going%20round%20in%20circles%20trying%20to%20design%20a%20schema%20to%20allow%20me%20to%20build%20a%20database%20for%20a%20series%20of%20medical%20studies.%20(In%20access%202010)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20each%20study%20I%20will%20receive%20an%20excel%20table%20like%20the%20two%20examples%20below%20(simplified%20version%20of%20a%20real%20one).%20For%20now%20I%E2%80%99m%20not%20thinking%20about%20how%20I%20will%20import%20it%20into%20Access%20but%20will%20do%20once%20I%E2%80%99ve%20got%20the%20Access%20principle%20sorted.%20I%20know%20that%20I%20will%20have%20to%20split%20the%20tables%20into%20normal%20form.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEvery%20patient%20who%20is%20recruited%20to%20each%20study%20WILL%20attend%20all%20the%20appointment%20(cycles)%20and%20all%20the%20specified%20Activities%20that%20pertain%20(ie%20the%20Y%E2%80%99s)%20to%20that%20appointment%20(the%20%E2%80%98Y%E2%80%99s%20will%20be%20represented%20in%20tbl_Patient_study_appointment_activity).%20Each%20study%20could%20have%20a%20different%20number%20of%20appointments%20and%20activities.%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20every%20patient%20who%20is%20recruited%20to%20the%20Diabetes%20study%20will%20have%20all%207%20appointments%20(cycles)%20and%20at%20appointment%203%20will%20undergo%20%E2%80%98Medical%20History%E2%80%99%20and%20%E2%80%98ECOG%20Status%E2%80%99.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Excel%20tables.jpg%22%20style%3D%22width%3A%20926px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254844i23C65FDA4E27DD44%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Excel%20tables.jpg%22%20alt%3D%22Excel%20tables.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEach%20patient%20could%20be%20on%20more%20than%20one%20study.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20used%20a%20variety%20of%20junction%20tables%20to%20achieve%20what%20I%20think%20does%20the%20job%20for%20me%2C%20although%20I%20do%20wonder%20if%20I%20am%20over%20complicating%20it.%20Could%20anyone%20help%20or%20give%20feedback%3F%20(I%20have%20been%20reading%20up%20about%20ternary%20relationships%20but%20don%E2%80%99t%20fully%20understand%20how%20they%20work.%20Maybe%20these%20could%20work%3F)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22schema.jpg%22%20style%3D%22width%3A%20822px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F254845i37C7FEAD121A222E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22schema.jpg%22%20alt%3D%22schema.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20I%20am%20satisfied%20that%20this%20schema%20does%20will%20work.%20I%20need%20to%20find%20a%20way%20of%20when%20I%20add%20a%20patient%20to%20a%20study%2C%20that%20they%20inherit%20the%20pre-determined%20appointments%20and%20activities.%20Am%20I%20right%20in%20saying%20that%20this%20would%20be%20a%20series%20of%20append%20queries%3F%20Or%20could%20I%20use%20a%20form%20which%20when%20I%20add%20a%20patient%20to%20a%20study%20they%20automatically%20get%20populated%20in%20the%20%26nbsp%3B%E2%80%98tbl_Patient_Study_Appointment%E2%80%99%20and%20%E2%80%98tbl_Patient_Study_Appointment_Activity%E2%80%99%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20I%E2%80%99ve%20done%20that%20I%20need%20to%20work%20out%20how%20I%20will%20upload%20a%20new%20study%20and%20schedule%20into%20the%20database.%3C%2FP%3E%3CP%3EIf%20anyone%20could%20help%20I%20would%20be%20most%20grateful.%20I%20know%20there%20are%20some%20gapping%20holes%20in%20my%20understanding%20of%20Access.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2133442%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ejunction%20tables%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eschema%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hello, 

 

I’m going round in circles trying to design a schema to allow me to build a database for a series of medical studies. (In access 2010)

 

For each study I will receive an excel table like the two examples below (simplified version of a real one). For now I’m not thinking about how I will import it into Access but will do once I’ve got the Access principle sorted. I know that I will have to split the tables into normal form.

 

Every patient who is recruited to each study WILL attend all the appointment (cycles) and all the specified Activities that pertain (ie the Y’s) to that appointment (the ‘Y’s will be represented in tbl_Patient_study_appointment_activity). Each study could have a different number of appointments and activities.   

 

For example, every patient who is recruited to the Diabetes study will have all 7 appointments (cycles) and at appointment 3 will undergo ‘Medical History’ and ‘ECOG Status’.

 

Excel tables.jpg

 

Each patient could be on more than one study.

 

I have used a variety of junction tables to achieve what I think does the job for me, although I do wonder if I am over complicating it. Could anyone help or give feedback? (I have been reading up about ternary relationships but don’t fully understand how they work. Maybe these could work?)

 

schema.jpg

 

Once I am satisfied that this schema does will work. I need to find a way of when I add a patient to a study, that they inherit the pre-determined appointments and activities. Am I right in saying that this would be a series of append queries? Or could I use a form which when I add a patient to a study they automatically get populated in the  ‘tbl_Patient_Study_Appointment’ and ‘tbl_Patient_Study_Appointment_Activity’

 

Once I’ve done that I need to work out how I will upload a new study and schedule into the database.

If anyone could help I would be most grateful. I know there are some gapping holes in my understanding of Access.

 

 

0 Replies