select_patient: Select Next Patient to Review

Description Usage Arguments Value

View source: R/data_io.R

Description

Selects next available patient to review by CEDARS end user. If a patient record is already locked it will be used, otherwise next in line is choosen. If a specific patinet ID was requested, record will be locked and selected.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
select_patient(
  uri_fun,
  user,
  password,
  host,
  port,
  database,
  end_user,
  patient_id = NA
)

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.

port

MongoDB port.

database

MongoDB database name.

end_user

CEDARS end user name.

patient_id

Used if a specific patient record is requested, instead of a search for next record to annotate.

Value

Selected patient_id.


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