Issue 49069: ability to require that visits exist before entering data for them
Harvest: LabKey R&D - Client Requested Improvements - Issue 49069: Ability to require that visits exist before entering data for them
Overview
LabKey users are currently navigating challenges with visit data entry, as the system defaults to the creation of new visits when a sequence number is entered that doesn't already exist in the study. This has led to unintentional creation of new visits and inconsistencies in study data.
User Stories
Data Administrator's Story: "As an administrator, I need a system that automatically checks data against predefined visits to prevent incorrect visit creation. This will ensure data accuracy and consistency in our studies."
Proposed Solution
The enhancement involves implementing a feature in LabKey that mandates the use of predefined visits (or timepoints) before allowing data entry. This change aims to prevent the automatic creation of new visits unless they match an existing visit in the study.
Expected Outcomes
By introducing this feature, we anticipate:
- Greater data integrity and consistency across studies.
- A more intuitive and error-free data entry process for users.
- A reduction in support requests related to visit data issues.
Tasks
Manual test plan
There is a study level setting to control whether automatic creation of visit is allowed. The new setting is on the manage visits page and on the manage timepoints page for date based studies.

- Ensure all pathways are covered and that if the import is disallowed, an appropriate error message is presented.
Issue 49069: ability to require that visits exist before entering data for them
Harvest: LabKey R&D - Client Requested Improvements - Issue 49069: Ability to require that visits exist before entering data for them
Overview
LabKey users are currently navigating challenges with visit data entry, as the system defaults to the creation of new visits when a sequence number is entered that doesn't already exist in the study. This has led to unintentional creation of new visits and inconsistencies in study data.
User Stories
Data Administrator's Story: "As an administrator, I need a system that automatically checks data against predefined visits to prevent incorrect visit creation. This will ensure data accuracy and consistency in our studies."
Proposed Solution
The enhancement involves implementing a feature in LabKey that mandates the use of predefined visits (or timepoints) before allowing data entry. This change aims to prevent the automatic creation of new visits unless they match an existing visit in the study.
Expected Outcomes
By introducing this feature, we anticipate:
Tasks
Manual test plan
There is a study level setting to control whether automatic creation of visit is allowed. The new setting is on the
manage visitspage and on themanage timepointspage for date based studies.-1.0if no sequence number is specified. Single row insert for demographics datasets doesn't show sequence or visit fields and will fail if visit-1.0isn't defined.Visit creation errors don't cause auto-link pipeline job to fail.Setting isn't respected when importing data into subfolder.Specimen refresh doesn't give any indication that some specimens were skipped because the visit doesn't exist in the target study.