pkey_nbs: Create Primary Key from an NBS ID

Description Usage Arguments Value

View source: R/prep_positive.R

Description

pkey_nbs() creates a primary key of the format "NBS-ID_NUMBER" from an 8-digit unique identifier in NBS. For labs, this is the lab_local_id; for investigations, this is inv_local_id; for people, this should be patient_local_id, though many people have multiple patient_local_ids.

Usage

1
pkey_nbs(string)

Arguments

string

A character vector of NBS IDs

Value

A character vector of primary keys


jesse-smith/covidsms documentation built on Dec. 25, 2021, 4:24 a.m.