On Sep 15, 12:01 pm, tc2004 <tc2....TakeThisOut@discussions.microsoft.com> wrote:
> I am building a DB for a medical study that collects data approximately every
> 6 months (lab values and imaging results). In addition to recording the
> values, I would also like to build a functionality that will remind the study
> coordinator to schedule labs and tests shortly before the 6 month mark comes
> up.
>
> Is it better to have one table with multiple records per study patient (one
> for each 6 month lab/imaging result) or multiple tables (one for each 6 month
> interval) with one record per patient?
>
> I can picture how to do the reminder with multiple tables, but maybe there
> is a better way with putting all lab/imaging results in one table? It would
> definitely make the design easier.
>
> Thanks.
This one:
Is it better to have one table with multiple records per study patient
(one
> for each 6 month lab/imaging result)
Then just add a date field for when the result is due.
This is how I did it:
CREATE TABLE Labs(
PatientID,
Test,
Result,
TestDate)
PK is PatientID, Test, TestDate - will work *assuming* a patient
cannot have the same test repeated twice on the same date.