db_download: Obtain Patient Notes

View source: R/database.R

db_downloadR Documentation

Obtain Patient Notes

Description

Downloads the notes for one patient. If there are missing fields, those are created with NA values inserted.

Usage

db_download(
  uri_fun,
  user,
  password,
  host,
  replica_set,
  port,
  database,
  patient_id
)

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_id

Patient ID for which notes are being requested.

Value

Dataframe of full notes and/or note parts with associated metadata.


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