SQL Dictionary
This document lists SQL tables and fields in the LORIS database and provides a description for each. In some instances these descriptions can include definitions, usage location in the code, examples and limitations.
-
Table:
pscThis table stores the list of sites configured for the study.
Field Description Notes CenterIDIdentifier of the site Avoid setting this field explicitly when inserting data, it auto increments. NameFull name of the site PSCAreaDeprecated AddressCivic address of the site CityCity where the site is located StateIDIdentifier of the state where the site is located ZIPZIP code of the site Phone1Phone number 1 Phone2Phone number 2 Contact1Contact person 1 Contact2Contact person 2 AliasShortname of the site. Limited to 3 characters This field affects the alias section of the PSCID of candidates MRI_aliasMRI specific shortname. Limited to 4 characters AccountDeprecated Study_siteDoes this site recruit candidates? This field will affect the appearance of the center in dropdowns in several modules of LORIS -
Table:
visitThis table stores the list of timepoints configured for the study.
Field Description Notes VisitIDIdentifier of the Timepoint Avoid setting this field explicitly when inserting data, it auto increments. VisitNameBack end name of the Timepoint This name is used in file and imaging uploads (previously known as visit_label) -
Table:
Visit_WindowsThis table associates timepoints with optimal age ranges for quality control monitoring.
Field Description Notes IDIdentifier of the entry Avoid setting this field explicitly when inserting data, it auto increments. Visit_labelName of the visit WindowMinDaysCandidate's minimum age in days for visit to be flagged as within permitted parameters of the study The only effect of this field is a YES/NO flag showing up on the instrument_list page WindowMaxDaysCandidate's maximum age in days for visit to be flagged as within permitted parameters of the study The only effect of this field is a YES/NO flag showing up on the instrument_list page OptimumMinDaysCandidate's minimum age in days for visit to be flagged as within optimal parameters of the study The only effect of this field is a YES/NO flag showing up on the instrument_list page OptimumMaxDaysCandidate's maximum age in days for visit to be flagged as within optimal parameters of the study The only effect of this field is a YES/NO flag showing up on the instrument_list page WindowMidpointDaysCandidate's ideal age in days for a visit -
Table:
ProjectThis table stores the list of projects configured for the study.
Field Description Notes ProjectIDIdentifier of the project Avoid setting this field explicitly when inserting data, it auto increments. NameFull name of the project recruitmentTargetExpected number of candidates to be recruited -
Table:
cohortThis table stores the list of cohorts configured for the study.
Field Description Notes CohortIDIdentifier of the cohort Avoid setting this field explicitly when inserting data, it auto increments. titleName of the cohort useEDCUse the Expected date Of Confinement WindowDifferenceDeprecated RecruitmentTargetExpected number of candidates to be recruited -
Table:
project_cohort_relThis table stores the association of projects with cohorts
Field Description Notes ProjectCohortRelIDIdentifier of the project-cohort relation Avoid setting this field explicitly when inserting data, it auto increments. Other tables in the database require this field as a foreign key reference to point to a specific project-cohort tuple. ProjectIDProject identifier CohortIDCohort identifier