Table of Contents
You can copy forms within the study structure, the repeating data structure and the survey structure. You can also copy a form from one structure to another, for example from a visit to a survey.
How to copy a form
- Go to Study design → Structure.
- Open the tab that contains the form you want to copy: Visits, Repeating data or Surveys.
- Find the form and click the three dots (⋮) at the right of its row.
- Click Copy form.
- In the Copy form window, fill in the details (see Copy form options below).
- Click Copy.
Copy form options
- Copy to: Choose the structure you want to copy the form to: Visit, Repeating Data or Surveys.
- Location (required): Choose the visit, repeating data or survey you want to copy the form to.
- Position (required): Choose where to place the copied form. Select Place at the top, or pick an existing form from the dropdown menu.
- New form name (required): Enter a name for the copied form. Form names must be unique.
- New form description (optional): Add a description for the copied form.
- Prefix and/or suffix: Choose whether to add or replace a prefix or suffix for all variable names in the copied form. See Prefix and suffix options below.
-
Copy Calculation, Summary, Link and QR code fields? (required): Choose how to copy these field types:
- Yes, and refer them to original fields: the copied fields keep referring to the fields in the original form.
- Yes, and refer them to copied fields: the copied fields refer to the matching fields in the new form.
-
Copy dependencies? (required): Choose how to copy dependencies:
- No: (as in, the form is copied without dependencies)
- Yes, and refer them to original fields: the copied dependencies keep referring to the fields in the original form.
- Yes, and refer them to copied fields: the copied dependencies refer to the matching fields in the new form.
-
Copy domain variable names: Choose Yes to copy the domain variable names (used for data standardization) along with the fields, or No to leave them out.
Note: A domain variable name is not copied if a variable with the same name already exists.
Prefix and suffix options
Variable names must be unique across the study. Use the prefix and suffix options to control the variable names in the copied form.
1. Add prefix and/or suffix
Adds text to the start or end of every variable name in the copied form.
Example: The original form has the variables blood_pressure_systolic and blood_pressure_diastolic. If you add the prefix visit_2_, the copied form gets visit_2_blood_pressure_systolic and visit_2_blood_pressure_diastolic.
2. Replace prefix and/or suffix
Replaces an existing part of every variable name with new text.
Example: The original form has the variables visit_1_blood_pressure_systolic and visit_1_blood_pressure_diastolic. If you replace visit_1_ with visit_2_, the copied form gets visit_2_blood_pressure_systolic and visit_2_blood_pressure_diastolic.
3. Do not add or replace prefix and/or suffix (default)
Variable names are not changed on purpose. To keep them unique, Castor adds an incremental number to each variable name for every copy.
Example: A variable named v1_date becomes v1_date_1 in the copied form.
Tip: After copying, check that copied calculations still refer to the correct variable names.
Copy a visit
You can only copy one form at a time. To duplicate a whole visit, please check Copy Visit in CDMS