%%capture
%%R
<- redcap_survey_link_export_oneshot(
link = 6,
record = "test_information",
instrument = url,
redcap_uri = token,
token = "case_intake_arm_1"
event
) result$survey_link
18 Survey Link (REDCapR Only)
redcap_survey_link_export_oneshot()
To export the survey link, the instrument must be enabled as a survey in REDCap. If it is a longitudinal survey, you must specify the event name (and instance if repeating) along with the instrument name. This export can only return a survey link for already existing records.
%%R
link$survey_link
[1] "https://dev-redcap.doh.wa.gov/surveys/?s=k4z7SZWpuKBi4mQt"