upload_comments: Upload Comments

View source: R/database.R

upload_commentsR Documentation

Upload Comments

Description

Uploads patient comments for patients already in the patient list. Useful when some comments have already been documented before running CEDARS. Only comments for existing records are altered, missing patient records are not added!

Usage

upload_comments(
  uri_fun,
  user,
  password,
  host,
  replica_set,
  port,
  database,
  patient_ids,
  comments
)

Arguments

uri_fun

Uniform resource identifier (URI) string generating function for MongoDB credentials.

user

MongoDB user name.

password

MongoDB user password.

host

MongoDB host server.

replica_set

MongoDB replica set, if indicated.

port

MongoDB port.

database

MongoDB database name.

patient_ids

Vector of patient ID's.

comments

Vector of patient comments.

Value

Objects of class character, reporting on completed event uploads.

Examples

## Not run: 
upload_comments(uri_fun = mongo_uri_standard, user = 'John', password = 'db_password_1234',
host = 'server1234', port = NA, database = 'TEST_PROJECT', patient_ids = ids,
comments = comment_text)

## End(Not run)

simon-hans/CEDARS documentation built on Feb. 14, 2024, 3:16 a.m.