Skip to content

Dynamically generate field notes for unit-based variables in Bridge #67

@saraduque

Description

@saraduque

Description
Currently, field notes are not being generated in Bridge for numeric variables.

For these variables (e.g., height, weight, labs), validation ranges are intentionally defined at the field level using the lowest minimum and highest maximum across all units, in order to accommodate all possible inputs in a global database.

However, without field notes, users do not have visibility of the valid range per unit, which may lead to confusion and data entry errors.

Additionally, field notes should be dynamically generated based on the variables included in each specific CRF.

Proposed solution
Implement dynamic generation of field notes in Bridge for variables with unit selection.

The logic should be:

If only one unit-specific field is present (e.g., only demog_height_cm):
→ Generate a field note only for that unit
→ Example: “0–250 cm”
If the CRF uses a generic field + unit selector (demog_height + demog_height_units):
→ Generate a combined field note including all units
→ Example: “0–250 cm or 0–98 in”

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions