deidentify_spa_data: De-identify SPA data (TIMCI-specific Function)

View source: R/deidentify.R

deidentify_spa_dataR Documentation

De-identify SPA data (TIMCI-specific Function)

Description

This function performs de-identification of the TIMCI SPA observation data.

Usage

deidentify_spa_data(df, mapping = NULL)

Arguments

df

A dataframe containing the processed facility data. This should include a column for child identification numbers that will be anonymized.

mapping

Optional. A dataframe containing the mapping between original and hashed IDs. If provided, it will be used for anonymization; otherwise, IDs are anonymized without a predefined mapping.

Value

Returns a dataframe with de-identified data. The 'child_identification_pid' column is anonymized to protect patient privacy.


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