nhs-number-cli
NHS Number command line interface (cli) using Rust cargo implementation
https://github.com/gig-cymru-nhs-wales/nhs-number-cli-using-rust
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.0%) to scientific vocabulary
Repository
NHS Number command line interface (cli) using Rust cargo implementation
Basic Info
- Host: GitHub
- Owner: GIG-Cymru-NHS-Wales
- Language: Rust
- Default Branch: main
- Size: 487 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
NHS Number command line interface
A National Health Service (NHS) Number is a unique number allocated in a shared numbering scheme to registered users of the three public health services in England, Wales, and the Isle of Man.
This tool is a command line interface that parses each standard input line into an NHS number, then validates the check digit is correct.
If the line is a valid NHS number, then print it.
If the line is an invalid NHS Number, or is unparseable, then print an error message.
If the line is blank, then skip it.
References:
Examples
Suppose you have a text file input.txt that contains one NNS Number per line,
and some may be valid or invalid:
txt
999 123 4560
999 123 4561
If you use Linux or macOS, then here's how to parse each line and validate it:
sh
cat input.txt | nhs-number-cli
If you use Windows, then here's how to parse each line and validate it:
sh
type input.txt | nhs-number-cli.exe
The commmand prints the valid NHS Number to stdout:
stdout
999 123 4560
The commmand prints the invalid NHS Number to stderr:
stderr
Error invalid line 1. Error: validate check digit failed. NHS Number: 999 123 4561
Releases
You can build a release for your own platform:
sh
cargo build --release
You can download a prebuilt release for Windows:
- Windows with GNU:
We aim to add more prebuilt releases soon.
Owner
- Name: GIG Cymru - NHS Wales
- Login: GIG-Cymru-NHS-Wales
- Kind: organization
- Repositories: 1
- Profile: https://github.com/GIG-Cymru-NHS-Wales
Citation (CITATION.cff)
cff-version: 1.2.0
title: Selenium examples using JavaScript
message: >-
If you use this work and you want to cite it,
then you can use the metadata from this file.
type: software
authors:
- given-names: Joel Parker
family-names: Henderson
email: joel.henderson@wales.nhs.uk
affiliation: wales.nhs.uk
orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
- type: url
value: 'https://github.com/gig-cymru-nhs-wales/selenium-examples-using-javascript/'
description: Selenium examples using JavaScript
repository-code: 'https://github.com/gig-cymru-nhs-wales/selenium-examples-using-javascript/'
abstract: >-
Selenium examples using JavaScript
license: See license file
GitHub Events
Total
- Watch event: 1
- Push event: 4
- Create event: 2
Last Year
- Watch event: 1
- Push event: 4
- Create event: 2
Packages
- Total packages: 1
-
Total downloads:
- cargo 753 total
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
crates.io: nhs-number-cli
National Health Service (NHS) number for NHS England, NHS Wales, NHS Isle of Man.
- Documentation: https://docs.rs/nhs-number-cli/
- License: MIT OR Apache-2.0 OR GPL-2.0 OR GPL-3.0 OR BSD-3-Clause
-
Latest release: 0.1.1
published about 1 year ago