File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -716,8 +716,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
716716 )
717717)
718718
719- (define (redcap-delete-records host token records )
720- (let* ((request (string-append " token=" token " &content=record&action=delete&returnFormat=json" ))
719+ (define (redcap-delete-records host token records . xargs )
720+ (let* ((instrument (redcap:arg 'instrument xargs #f ))
721+ (event (redcap:arg 'event xargs #f ))
722+ (request (string-append " token=" token " &content=record&action=delete&returnFormat=json"
723+ (if instrument (string-append " &instrument=" instrument) " " )
724+ (if event (string-append " &event=" event) " " )))
721725 (recordstr (if (pair? records)
722726 (let loop ((i 0 ) (str " " ))
723727 (if (= i (length records)) str
You can’t perform that action at this time.
0 commit comments