save_tags: Save Document Tags

Description Usage Arguments Value Examples

View source: R/database.R

Description

Save name of EHR document metadata tags. Individual notes or parts of notes can be labelled with up to 10 tags, typically the patient's name at the time, the type of note, the note section, the author, etc. Tags are not mandatory.

Usage

1
save_tags(uri_fun, user, password, host, port, database, tag_vect)

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.

tag_vect

Character vector of 10 tag names.

Value

MongoDB operation results.

Examples

1
2
3
4
5
6
## Not run: 
save_tags(uri_fun = mongo_uri_standard, user = 'John', password = 'db_password_1234',
host = 'server1234', port = NA, database = 'TEST_PROJECT',
tag_vect = c('note_type', 'note_section', 'author', 'patient_name', NA, NA, NA, NA, NA, NA))

## End(Not run)

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