UK NHS Number Validator (Modulus 11 Check)
Paste one or more NHS numbers to test the length and the modulus 11 check digit and to see the standard layout.
在您的瀏覽器中執行。您的檔案不會離開裝置。 瞭解如何驗證
…
使用方法
- 1貼上數字
按一行輸入或貼上一個NHS號碼.
- 2檢查一下
該工具測試了長度和檢查數字.
- 3審查判決
每個NHS號碼都標記為透過或失敗.
- 4檢視圖表
有效的數字顯示為3-3-4.
- 5修復錯誤
與預期的檢查數字進行比較.
關於此工具
The NHS number is the ten-digit identifier that follows a patient through health services in England, Wales and the Isle of Man. The tenth digit is a check digit calculated from the first nine with weights 10 down to 2 and a modulus of 11. It is written in groups of three, three and four digits. This validator tests the length, the digits and the check digit and shows the standard layout. It cannot tell whether a number belongs to a patient.
Who this is for
Health data teams who clean lists, software developers who validate entry fields, receptionists and administrators who copy numbers from letters, and researchers who test data quality with made-up numbers.
The format
The standard layout is three digits, a space, three digits, a space and four digits, for example 943 476 5919. The number has no meaning in its digits: the number does not show age, region or sex. The final digit is the check digit. Services in other parts of the UK use different identifiers, such as the CHI number in Scotland and the Health and Care number in Northern Ireland.
The calculation
Multiply the first nine digits by 10, 9, 8, 7, 6, 5, 4, 3 and 2. Add the products. Divide the sum by 11 and take the remainder. Subtract the remainder from 11 to get the check digit. If the result is 11, the check digit is 0. If the result is 10, the number cannot be valid, because there is no single digit for 10, and such numbers are never issued. For 943476591 the sum is 90 + 36 + 24 + 28 + 42 + 30 + 20 + 27 + 2 = 299, the remainder when divided by 11 is 2, and 11 − 2 = 9, so the check digit is 9 and the number 9434765919 passes.
Reading the result
The tool tells you if the length is wrong, if there is a character that is not a digit, if the number would need a check digit of 10, or if the check digit does not match. For a failed check, it shows the digit that was expected. That makes it easy to see whether the problem is the last digit or an earlier one.
Why it matters
A wrong NHS number can attach a result or a letter to the wrong person's record, which is a patient safety problem. Systems validate the check digit when a number is typed to catch mistakes early. A check does not replace confirming a patient's identity by name, date of birth and address through the national service.
How to use it
Paste one number per line. Spaces are removed. Each line is marked valid or not. A valid number is shown in the 3-3-4 layout. The sample has valid and invalid numbers, so you can try the tool at once.
Worked example
The number 943 476 5919 passes. The number 943 476 5918 fails and the tool shows that the expected check digit is 9. A number with nine digits fails because of its length.
Privacy
An NHS number is personal health information when it is linked to a person. Use made-up numbers for tests. The tool works in your browser and keeps nothing.
Limits
This is a technical check and not medical or legal advice.
計算示例
由於預期的檢查數字是9,NHS號碼9434765919透過了模組11測試,而9434765918失敗.
要點
- 分類: 英國和美國
- 在瀏覽器中執行,無需註冊,無需上傳。
- 您輸入的資訊保留在裝置上。
- 提供英文版。
- 內容最後稽核日期:
- 官方來源: NHS England Data Dictionary (NHS number)
常見問題
How long is an NHS number?
這裡有十個數字,寫成3-3-4.
檢查數字是如何計算的?
首先的9個數字乘以10減到2,加上,並減少11模組.
如果支票是10美元?
它們是不有效的.
透過證是否意味著這個人存在?
沒有,它只是檢查結構.
Do other UK nations use it?
蘇格蘭和北愛爾蘭都有自己的標識號.
我的資料是否儲存?
不,檢查在你的瀏覽器中執行.
