A function to check strings against the New Zealand Ministry of Health NHI Validation Routine
Project description
Python-NHI
A function to check strings against the New Zealand Ministry of Health NHI Validation Routine.
Install
pip install python-nhi
Usage
from nhi import check_nhi
print(check_nhi("WLD9413")) # True
print(check_nhi("ZZZ00AA")) # False
Checks are case-insensitive
Note
In previous revisions of HISO 10046 and the NHI validation routine there have been inconsistencies regarding whether a checksum of 0 is invalid in the new format. This issue has been resolved in later revisions and a checksum of 0 in the new format is NOT considered invalid.
See Also
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-nhi-1.0.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for python_nhi-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdb10d4bcbcb1df93e948b25f8f4769b778d0bfc6e7bf9186cf998cc43ab976a |
|
MD5 | 8a5bf927ae237fa87d0dd9520323756f |
|
BLAKE2b-256 | 538a36387c6448a7d3ba021d6b04847ce9e24b2ad60d4078b02ecdb619819107 |