
Generate a REDCap Instrument ZIP File for the PID-5 Informant Form
Source:R/generate_redcap.R
generate_redcap_pid5irf.RdThe 218 items of the PID-5 Informant Form (PID-5-IRF), in the form's order
with the informant wording (pid_items$TextIRF). The instructions field
ends with the form's rating prompt and the stem "He or she…" that each
item completes, and the response options are the form's 0 to 3 labels.
With breaks, the section header that starts each later page restates the
prompt and stem. The
item fields are pid5irf_001 to pid5irf_218, the names
rename_pid5_items() and label_pid5() use with version = "IRF". Score
them with score_pid5(version = "IRF").
Usage
generate_redcap_pid5irf(
file = "pid5irf_redcap.zip",
form_name = "pid5irf_questionnaire",
required = TRUE,
breaks = 15
)See also
Step-by-step import instructions for Qualtrics and REDCap: https://jmgirard.github.io/hitop/articles/import-instructions.html
Examples
# Write a PID-5 Informant Form REDCap instrument ZIP to a temporary location
generate_redcap_pid5irf(file = tempfile(fileext = ".zip"))
#> ✔ Instrument successfully zipped to /tmp/Rtmpmkz7jC/file1a6d673c6915.zip