generate_nhs: Generate NHS Numbers

Description Usage Arguments Value Examples

View source: R/verify_codes.R

Description

Generate random codes that fit the NHS number formatting specification. This is useful when generating synthetic patients or testing the varification functions.

Usage

1
generate_nhs(size = 1)

Arguments

size

the number of codes you wish to generate

Value

a character vector of length size with NHS Numbers

Examples

1
2
3
4
nhs_1 <- generate_nhs()
print(nhs_1)
nhs_5 <- generate_nhs(5)
print(nhs_5)

CC-HIC/inspectEHR documentation built on Jan. 16, 2020, 11:24 p.m.