P
Piet Linden
I have a database with a structure something like this:
Drug Protocol--(1,M)----Enrollment---(M,1)----Patient
(and then there's a ton of stuff related to Enrollment...)
Each Protocol can have many "qualification" questions, some of which
can disqualify a patient from participating in/enrolling in a
protocol. (For example, I can't give a drug that decreases kidney
function to someone with low kidney function, so I put a question in
my survey to eliminate those people.)
Okay... on to my question... How would I set up a generic structure
for this? Basically tweak Duane's At Your Survey database to include
a "knockout" answer in the Questions table, so that I could do
something like this to determine disqualified patients?
SELECT Question.ProtocolID, Question.KnockoutResponse,
Response.PatientAnswer, (Question.KnockoutResponse =
Response.PatientAnswer) As IsKnockout
FROM Question INNER JOIN Response ON ...
....
And then I could, I guess AND the responses together (because any DQ
question answered "wrong" causes a fail.)...
Am I on the right track or just on a train track?
Thanks!
Pieter
Drug Protocol--(1,M)----Enrollment---(M,1)----Patient
(and then there's a ton of stuff related to Enrollment...)
Each Protocol can have many "qualification" questions, some of which
can disqualify a patient from participating in/enrolling in a
protocol. (For example, I can't give a drug that decreases kidney
function to someone with low kidney function, so I put a question in
my survey to eliminate those people.)
Okay... on to my question... How would I set up a generic structure
for this? Basically tweak Duane's At Your Survey database to include
a "knockout" answer in the Questions table, so that I could do
something like this to determine disqualified patients?
SELECT Question.ProtocolID, Question.KnockoutResponse,
Response.PatientAnswer, (Question.KnockoutResponse =
Response.PatientAnswer) As IsKnockout
FROM Question INNER JOIN Response ON ...
....
And then I could, I guess AND the responses together (because any DQ
question answered "wrong" causes a fail.)...
Am I on the right track or just on a train track?
Thanks!
Pieter