Skip to main content

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)

Uploaded Source

Built Distribution

python_nhi-1.0.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page