Altair® Monarch®

 

Function: RedactNHS

The RedactNHS function is a redaction function that can be used in calculated field expressions.

Description

Numeric digits are replaced with random digits, but adjusted so that the resulting NHS number is not valid.

This function produces redaction results equivalent to Pseudo NHS Number in Input Field Properties Window.

Syntax

RedactNHS(text)

Arguments

Text may be any text field containing an NHS number. Any non-digit characters in the input text are preserved.

Return Value

This function returns an NHS-looking number, but adjusted so that the resulting NHS number is not valid. .

Calculated field example

You can create the following expression: RedactNHS(NHS)

If NHS = 401 023 2137, the result can be something like: 264 590 1175.