mapLOINC | R Documentation |
mapLOINC
is used for merging two tables together. One is lab data with local codes, and the other one is mapping table of local lab codes and LOINC.
mapLOINC(labData, labItemColName, mappingTable = NULL)
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. |
labItemColName |
the column name that records lab item in labData. If lab code is combined by multiple columns, then just simply add |
mappingTable |
a data table with at least two columns: local lab item code and LOINC code. The local column name should be identical as labItemColName in labData. |
Since the lab item may be coded in local scheme, users can map it with LOINC by providing LOINC mapping table. This step is optional but recommended. After mapped, user can select desired laboratory tests by using function searchCases
.
A data.table
merged two tables.
mapLOINC(labData = labSample,
labItemColName = ITEMID,
mappingTable = mapSample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.