Description Usage Arguments Value
View source: R/extractDiagnoses.R
Extracts patient diagnoses from the Diamonds database and returns a data frame.
1 2 | extractDiagnoses(connection, diagnoses = NULL, patients = NULL,
format = "raw", n = -1)
|
connection |
ODBC connection object returned by dbConnect. |
diagnoses |
A character vector of ICD9 or ICD10 codes. If no limit is desired then set as NULL. May use % or _ for partial matches. |
patients |
A character vector of patient medical record numbers. If no limit is desired then set as NULL. |
format |
A character vector indicating the output format. Options include "raw" or "byDiagnosis". |
n |
Number of records to retrieve. Use n = -1 to retrieve all records. |
Returns a data frame with patient diagnoses and the date they were assigned in the Diamonds database.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.