Liking cljdoc? Tell your friends :D

nhs-number

Clojars Project cljdoc badge clj tests cljs tests codecov

A Clojure/Script library providing validation, formatting and generation of UK NHS Numbers. As such, this library can be used for both front-end and back-end requirements.

The standards relating the NHS number are set out in ISB 0149. The NHS number is the unique patient identifier for a patient within the National Health Service in England and Wales.

Development notes

Automated GitHub actions

On every commit, an automated test suite is run using Clojure and ClojureScript. On every tag, a release will be made automatically to Clojars.

From the command-line

Run unit tests in Clojure:

clj -M:test:runner

Run unit tests in ClojureScript (this compiles the test source files into Javascript and runs using 'node.js'):

clj -M:test:node-cljs

Run unit tests in ClojureScript in a browser

clj -M:test:browser-cljs

A test server will be run which will return the results of the test suite.

Build a library jar file

clj -T:build jar

Deploy to Clojars repository: (requires valid CLOJARS_USERNAME and CLOJARS_PASSWORD environmental variables to be set)

clj -T:build deploy

Other libraries

You can find similar libraries for other programming languages:

Mark Wardle

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close