trouble making table layout
Posted: Wed Aug 10, 2005 8:30 am
I have a table of patients
patient id, name etc
105 Smith, John
107 Doe, Jane
I have many lab values for each patient linked by patient id
patient id, date, labtest, value
eg; 105, 8/10, sodium, 140
105 8/10 potassium, 4
107 8/8 sodium 130
I want to make a layout based on patients that for each patient will display lab data in rows and columns
Rows down will be dates working back from today
today, today-1, today-2, etc
Columns across will be different test names (total of 20-30) to display
test1,test2, test 3, test4
In the cell will go the value
eg: sodium potassium chloride bicarb
8/10 140 4 100 20
8/8 3.5
8/1 140 105
There may be days skipped and may be empty cells on a given date.
It seems like it should be easy but I am having a lot of trouble. Would appreciate any advice
patient id, name etc
105 Smith, John
107 Doe, Jane
I have many lab values for each patient linked by patient id
patient id, date, labtest, value
eg; 105, 8/10, sodium, 140
105 8/10 potassium, 4
107 8/8 sodium 130
I want to make a layout based on patients that for each patient will display lab data in rows and columns
Rows down will be dates working back from today
today, today-1, today-2, etc
Columns across will be different test names (total of 20-30) to display
test1,test2, test 3, test4
In the cell will go the value
eg: sodium potassium chloride bicarb
8/10 140 4 100 20
8/8 3.5
8/1 140 105
There may be days skipped and may be empty cells on a given date.
It seems like it should be easy but I am having a lot of trouble. Would appreciate any advice