deidentify_spa_rx_data | R Documentation |
This function de-identifies treatment data within the TIMCI research dataset, focusing on anonymizing treatment identifiers to ensure privacy.
deidentify_spa_rx_data(df, mapping = NULL)
df |
A dataframe containing the processed treatment data, which includes a 'PARENT_KEY' column for treatment identifiers that need to be anonymized. |
mapping |
Optional. A dataframe containing the mapping between original and hashed IDs. If provided, it uses this mapping for anonymization; otherwise, the function anonymizes IDs without a predefined mapping. |
Returns a dataframe with de-identified treatment data. The 'PARENT_KEY' column is anonymized to protect individual treatment records' privacy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.