post_wrapper: Wrap the post_data() Function

Description Usage Arguments Value Examples

View source: R/data_io.R

Description

Posts results of human reviewer annotation to MongoDB. Uses DB credentials pre-loaded in the main environment. For use with Shiny or REST POST (latter yet to be implemented).

Usage

1
2
3
4
5
6
7
8
9
post_wrapper(
  database,
  end_user,
  end_user_password,
  position,
  event_date,
  pt_comments,
  ldap = FALSE
)

Arguments

database

MongoDB database.

end_user

CEDARS end user name.

end_user_password

CEDARS end user password.

position

Sentence position within the sequence of selected sentences for a given patient.

event_date

Date of clinical event as determined by human reviewer.

pt_comments

Patient-specific comments from the reviewer.

ldap

Is LDAP authentication being used? If so, password will not be checked and access will be granted automatically.

Value

No return value, called to post data.

Examples

1
2
3
4
5
## Not run: 
post_wrapper(database = 'TEST_PROJECT', end_user = 'John', end_user_password = 'db_password_1234',
position = NA, event_date = NA, pt_comments = 'This is a comment')

## End(Not run)

CEDARS documentation built on Feb. 7, 2021, 5:06 p.m.