deidentify_spa_rx_data: De-identify SPA treatment data (TIMCI-specific Function)

View source: R/deidentify.R

deidentify_spa_rx_dataR Documentation

De-identify SPA treatment data (TIMCI-specific Function)

Description

This function de-identifies treatment data within the TIMCI research dataset, focusing on anonymizing treatment identifiers to ensure privacy.

Usage

deidentify_spa_rx_data(df, mapping = NULL)

Arguments

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.

Value

Returns a dataframe with de-identified treatment data. The 'PARENT_KEY' column is anonymized to protect individual treatment records' privacy.


Thaliehln/timci documentation built on April 8, 2024, 3:38 p.m.