The IdentifierLabel control is initialized with the following code:
<sl:IdentifierLabel x:Name="IdentifierLabelControl" IdentifierType="NhsNumber" Text="4372623623"
FontFamily="Verdana" FontSize="12" FontWeight="Bold"
VerticalAlignment="Center" HorizontalAlignment="Center" />
- IdentifierType – gets or sets whether to process the identifier
with the “NhsNumber” validation checksum
- Text – gets or sets a unique patient identifier; this is
mandatory if the IdentifierType is set to “NhsNumber”
- IdentifierType has a default value of “Other”
- Text has a default value of “xxx-xxx-xxxx”
If IdentifierType is set to “Other”, no validation is performed. If
IdentiferType is set to “NhsNumber”, an algorithm checks whether the
number conforms to the NHS Number format. This involves ensuring:
- No alphabetic characters are included
- The string length is equal to 10 characters
- All characters are not the same
- The NhsNumber string is not empty or a null value
If the algorithm finds that the number is not correctly formatted as an NHS Number,
no data is displayed in the IdentifierLabel.