Skip to content

Issue 49069: Ability to require that visits exist before entering data for them #5050

@labkey-klum

Description

@labkey-klum

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

  • UI to toggle configuration - 2
  • Round-trip setting in Db - 3
  • Wire up check plus error messages - 5
  • Ensure all pathways are covered
    • Dataset import (bulk, single row, API) - 3
    • Link to study - 2
    • Folder import - 2
    • Specimen import - 2
    • Publish study - 1
    • Ancillary study - 1
    • REDCap - 1 (REDCap & CDISC should work because we always export a visit map)
    • CDISC-ODM - 1
  • Consolidate existing folder import check - 3
  • Update UI for existing folder import check - 3
  • Import/Export support - 3
  • Support date based studies - 2
  • Manual test plan (please write test plan in-line in this story card) - 1
  • Manual Testing - 8 @labkey-tchad 📍
  • Code review - 2
  • Docs handoff - .5
  • Teamcity review and merge - .5
  • Create separate story for integration tests/selenium test plan recommendations - .5

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.

Image

  • Ensure all pathways are covered and that if the import is disallowed, an appropriate error message is presented.
    • Dataset import (bulk, single row, API)
    • Link to study
      • Visit creation errors don't cause auto-link pipeline job to fail.
    • Shared visits
      • Setting isn't respected when importing data into subfolder.
    • Folder import. If the folder archive contains a visit map the timepoint creation flag will have not effect since timepoints are created from the visit map not automatically based on data import.
    • Specimen import
    • Verify publish and ancillary studies can be created from a source that disallows new timepoint creation. The new studies should not allow any new data.
      • Specimen refresh doesn't give any indication that some specimens were skipped because the visit doesn't exist in the target study.
    • Verify REDCap imports continue to function. This should always work because a visit map is always included.
    • Verify round-tripping of the new setting.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions