verify_post_code: Verify Post Code

Description Usage Arguments Value Examples

View source: R/verify_codes.R

Description

Verify that a particular string conforms to a UK Post Code. Note, this does not actually check a database (i.e. validation) to see if the post code exists. It only checks that the Post Code meets the correct technical specification for a postcode. There are two reasons why validation isn't a good fit for cc-hic. First, the use of an API invariably means internet access and sending our postcodes out of the secure system (bad). Second, the use of the royal mail database for this purpose isn't free and would make inspectEHR larger than is necessary.

Usage

1
verify_post_code(post_code = NULL)

Arguments

post_code

character vector of post codes

Value

a logical vector

Examples

1
verify_post_code("AL5 3HE")

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