Skip to contents

Reports patients that appear at more than one site, as aggregate counts only. Identifiers are pseudonymised with HMAC-SHA256 under the consortium-shared secret key before any comparison; counts of 1 to min_cell_count - 1 are suppressed.

Usage

consortium_cross_site_duplicates(site_identifiers, key, min_cell_count = 11)

Arguments

site_identifiers

Named list of patient identifier vectors: list(SiteA = c(...), SiteB = c(...)).

key

Shared secret (non-empty string) for the keyed hash.

min_cell_count

Small-cell threshold (default 11).

Value

A data frame of site pairs as in consortium_patient_overlap(), plus a final row site_1 == "ALL" whose n_site_1 is the pooled number of distinct patients and shared_patients the number seen at two or more sites. That row is withheld (shared_patients == "withheld", n_site_1, n_site_2 and overlap_pct NA) when any pair is suppressed, since its difference from the visible pairs, or the pooled count's difference from the sum of the site sizes, would reveal the suppressed count.