- Notifications
You must be signed in to change notification settings - Fork1
Checks strings against the New Zealand Ministry of Health NHI Validation Routine
License
NotificationsYou must be signed in to change notification settings
James-Ansley/rust-nhi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Checks strings against the New Zealand Ministry of Health NHI Validation Routine.Supports the old and new NHI number formats specified inHISO 10046:2023.
cargo add nhi
NHI values can be validated with theis_nhi
function, or parsed toNHI
structs:
use nhi::{is_nhi,NHI};fnmain(){let nhi_str ="zac5361";assert_eq!(is_nhi(nhi_str),true);let nhi:NHI = nhi_str.parse().unwrap();assert_eq!(nhi.as_str(), nhi_str.to_uppercase());}
More examples are available inthe docs.
About
Checks strings against the New Zealand Ministry of Health NHI Validation Routine
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.