#health #command-line-tool #nhs-wales #gig-cymru #numbers #iechyd

app nhs-number-replacer-cli

National Health Service (NHS) number replacer command line interface (CLI) for NHS England, NHS Wales, NHS Isle of Man

2 unstable releases

Uses new Rust 2024

new 0.2.0 Jun 23, 2025
0.1.2 Jun 12, 2025

#22 in Science

Download history 132/week @ 2025-06-11 99/week @ 2025-06-18

231 downloads per month

MIT OR Apache-2…

7KB

NHS Number replacer CLI

National Health Service (NHS) Number replacer command line interface (CLI).

Steps

This program does these steps:

  1. Read each line from standard input.

  2. Match a regex pattern that is essentially "### ### ####".

  3. Replace the match with a NHS Number that is a testable random sample i.e. in the NHS Number reserved range of "999 000 0000" to "999 999 9999".

  4. Output each line to standard output.

Example

Run:

echo "111 111 1111" | nhs-number-replacer-cli

Output:

999 265 6328

Dependencies

~2.7–4.5MB
~79K SLoC