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
Last synced: 9 months ago · JSON representation ·

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
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Code of conduct Citation

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

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
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 753 Total
Rankings
Dependent repos count: 21.8%
Dependent packages count: 28.8%
Average: 48.5%
Downloads: 94.8%
Maintainers (1)
Last synced: 10 months ago