verify_nhs: Verify NHS Numbers

Description Usage Arguments Details Value Examples

View source: R/verify_codes.R

Description

This function will varify nhs numbers according to the checksum process outlined by UK Government Data Standards Catalogue (GDSC), Version 2.0, Agreed 01.01.02 availible as reference here: https://www.datadictionary.nhs.uk/version2/data_dictionary/data_field_notes/n/nhs_number_de.asp?shownav=0

Usage

1
verify_nhs(nhs_numbers = NULL)

Arguments

nhs_numbers

as character vector

Details

Please enter the NHS number as characters (i.e. "6744424270" and not 6744424270). Remove all formatting, including spaces and dashes.

Value

a logical vector

Examples

1
verify_nhs("6744424270") # expect TRUE

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