if (FALSE) {
uri <- "https://bbmc.ouhsc.edu/redcap/api/"
token <- "8FA9A6BDAE2C0B5DD3CB472DD8E8918C" # pid=817
record <- 1
instrument <- "participant_morale_questionnaire"
# event <- "" # only for longitudinal projects
result <- REDCapR::redcap_survey_link_export_oneshot(
record = record,
instrument = instrument,
redcap_uri = uri,
token = token
)
result$survey_link
}
Run the code above in your browser using DataLab