I need help setting up my database tables having them all connect. I work for a molecular lab, and we get blood samples; a blood comes in with a Location, type of tumor, and a name. I need a system that can track the bloods through our process, then store the data with the status of the sample. I cannot connect our results excel spreadsheet output (importing data) with the sample we just entered into the database.
This is my structure so far...
Code:
tblTest
-TestType [ex. NETest, Colon, Mylenoma, Multiple Melanoma, Bronchopulmonary, ect...]
-TestAbbreviation [ex. NT, CL, ML, MM, BP, ect...] - PK
tblFacility
-FacilityName [ex. Poland]
-FacilityAbbreviation [ex. PL] -PK
-PhoneNumber
-ContactName
-Address
-Email
tblSample
-WrenID (Calculated Field - [FacilityAbbreivation] & "-" & [CalcID] & "
-CalcID (Hidden formats the SampleID to look like "0000#")
-SampleID (autonumbering) }
-SampleName }
-FacilityAbbreviation FK} Composite Key (COMBOBOX LOOKUP FIELD - tblFacility)
-TestAbbreviation FK} (COMBOBOX LOOKUP FIELD - tblTest)
-SecondaryTest (COMBOBOX LOOKUP FIELD - tblTest) - if we do multiple tests on one Sample (a multiple value combobox - cannot call upon the values)
-DateReceived
-FreezerLocation
-BloodProcessed
-DateBloodProcessed
-PCR
-DatePCR
-DataAnalyzed
-DateDataAnalyzed
Now for a results I dont know how the table should look. I've been told I should normalize my data, however our results from excel will not import properly into access when normalized.
As of now I got it to show up in a query using the SampleID (autonumbering system) and an ID as a Primary key when uploading the PCR results (autonumbering system) using a one-to-many.
The Excel spreadsheet for TestType = NETest
Code:
-SampleName [Will be our WrenID made from access calculated field above]
-MATLAB [#]
-Progressive [#]
-NETScore [#]
-HouseKeepingGene [Short Text]
-SecondaryKeepingGene [Short Text]
-PositiveControl1 [#]
-PositiveControl2 [#]
-PositiveControl3 [#]
-PositiveControl4 [#]
-MainProliferome [#]
-GeneProliferome1 [#]
-GeneProliferome2 [#]
-GrowthFactor [#]
-ProgOme [#]
-GenOme [#]
-Epigenome [#]
-Apoptome [#]
-Plurome [#]
-SOme [#]
-SOme1 [#]
-SOme2 [#]
-SOme3 [#]
-SOme4 [#]
-ROC [#]
-2D [#]
-Gene1 [#]
-Gene2 [#]
-Gene3 [#]
-Gene...ect [#]
-Gene52 [#]
Excel SpreadSheet for Colon Test
Code:
-SampleName (WrenID)
-Gene1 [#]
-Gene2 [#]
-Gene3 [#]
-Gene4 [#]
-Gene5 [#]
-Gene6 [#]
-Gene7 [#]
-Gene8 [#]
So storing this data in my database what is the best approach?
I was told I need to normalize my data, however I dont see how that works really with our results.
Code:
tblNormalizedData
-DataID
-SampleName (WrenID)
-GeneName (lookup field from a gene table that has all the genes for each test)
-GeneValue [#]
But now, do I call this in a query? I dont really see how this applies to our database.
The basic information is put into tblSample - this gives us a WrenID and tells us where we are with the sample.
But the results to the sample dont come in till later. I cannot really get the results to be connected to that sample, unless I put the results right after that sample, however if the sample doesnt have certain tests run then those tests results will be blank.