get_checksum: Calculates NHS number checksums

Description Usage Arguments Details Value Examples

View source: R/get_checksum.R

Description

NHS numbers are 10 digit numbers where the 10th digit is a checksum. This function takes the 9 core digits of the NHS number and calculates the checksums of.

Usage

1
get_checksum(nhs_number, full_output = FALSE)

Arguments

nhs_number

A 9 digit NHS numbers to validate

full_output

Boolean that controls display of warning messages

Details

This function has been created using information from: https://en.wikipedia.org/wiki/NHS_number and various NHS sources

Value

Either the calculated checksum or the complete 10 digit NHS number including the checksum.

Examples

1
2
get_checksum(123456788)
get_checksum(123456788, full_output = TRUE)

sellorm/nhsnumber documentation built on Nov. 5, 2019, 8:49 a.m.