searchCases | R Documentation |
searchCasesByLOINC
searchCasesByLOINC(
labData,
idColName = NULL,
loincColName = NULL,
dateColName = NULL,
condition,
isSummary = FALSE
)
labData |
a file or dataframe of laboratory test data with at least 4 columns about patient ID, lab item, test value and test date, respectively. |
idColName |
the column name that records patient ID in labData. |
loincColName |
tthe column name that records LOINC in labData. |
dateColName |
the column name that records test date in labData. It should be in |
condition |
desired keyword string. |
isSummary |
summary T or F |
LOINC provides a column to record related names for lab tests. This function can be used to search this kind of description. Only searching LOINC codes are also avaliable, but not recoommended.
A data.table
merged two tables.
loincSample <- mapLOINC(labData = labSample,
labItemColName = ITEMID,
mappingTable = mapSample)
searchCasesByLOINC(labData = loincSample,
idColName = SUBJECT_ID,
loincColName = LOINC,
dateColName = CHARTTIME,
condition = "Creatinine",
isSummary = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.