redcapAPI icon indicating copy to clipboard operation
redcapAPI copied to clipboard

Potential bugs in REDCap

Open nutterb opened this issue 10 years ago • 0 comments

I'm compiling notes here because I have no better place to do it where I can keep track of it. It wouldn't hurt to have someone confirm the behavior. However we decide to handle these issues needs to be documented as well.

  • In exportFieldNames, if you give a vector of field names, it returns "ERROR: Invalid field." But the REDCap documentation states that it will accept multiple fields. Until this gets fixed, I suspect the appropriate behavior would be to honor the fields argument only when it has length 1, and print a message that the entire field list is being returned until the REDCap API is corrected.
  • exportFieldNames also doesn't return field names for calculated values, sliders, or signature draws. I think it probably should--note that REDCap disagrees. They document that the calculated fields, signatures, files, and descriptive fields are not included because they cannot be used in data imports. It would be nice to have an option to get these anyway, as it could help streamline the process of formatting variable names upon export. Then again, the time spent sending the request to the API is probably longer than the time spent parsing things through regex, so I probably won't ask them to change this.
  • In exportArms, if you use the arms argument, the API returns an empty data frame
  • In exportEvents, if you use the arms argument, the API returns an empty data frame

nutterb avatar Feb 06 '16 03:02 nutterb