unlock_records: Unlock Old Locked Records Occasionally a CEDARS end user will...

View source: R/data_io.R

unlock_recordsR Documentation

Unlock Old Locked Records Occasionally a CEDARS end user will lock a patient record but not complete the annotation task. The end user lock will be respected for 24 hours after entry, however after this time period running this function will unlock the record. Called when another user sends a GET request and the server looks for a new patient to annotate. Prevents permanent locking of records by end users.

Description

Unlock Old Locked Records Occasionally a CEDARS end user will lock a patient record but not complete the annotation task. The end user lock will be respected for 24 hours after entry, however after this time period running this function will unlock the record. Called when another user sends a GET request and the server looks for a new patient to annotate. Prevents permanent locking of records by end users.

Usage

unlock_records(uri_fun, user, password, host, replica_set, port, database)

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.


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