Liking cljdoc? Tell your friends :D
Clojure only.

com.eldrix.clods.download


downloadclj

(download {:keys [api-key cache-dir last-update nthreads batch-size]
           :or {nthreads (.availableProcessors (Runtime/getRuntime))
                batch-size 100}
           :as opts})

Download the latest NHS ODS distribution. Parameters:

  • :api-key : NHS Digital 'TRUD' api-key
  • :cache-dir : TRUD cache directory
  • :last-update : (optional) date of last update. If provided, download skipped when no new release exists.
  • :nthreads : (optional) number of threads to use; default num processors
  • :batch-size : (optional) batch size for stream of organisations; default 100

Results:

  • A map containing the following keys:
    • :release : the TRUD API release data
    • :manifests : a sequence of manifest descriptions for each XML file
    • :code-systems : code systems and codes (merged from all XML files)
    • :organisations : a clojure.core.async channel of all organisations merging data from all XML files.
    • :paths : a sequence of temporary file paths; delete when done.

Code systems are keyed by a tuple of namespace and code. For example:

["2.16.840.1.113883.2.1.3.2.4.17.507" "RO144"]
  • '2.16.840.1.113883.2.1.3.2.4.17.507' : HL7 Organization Role Type
  • 'RO144' : Welsh Local Health Board.
Download the latest NHS ODS distribution.
Parameters:
- :api-key     : NHS Digital 'TRUD' api-key
- :cache-dir   : TRUD cache directory
- :last-update : (optional) date of last update.
                 If provided, download skipped when no new release exists.
- :nthreads    : (optional) number of threads to use; default num processors
- :batch-size  : (optional) batch size for stream of organisations; default 100

Results:
- A map containing the following keys:
  - :release       : the TRUD API release data
  - :manifests     : a sequence of manifest descriptions for each XML file
  - :code-systems  : code systems and codes (merged from all XML files)
  - :organisations : a `clojure.core.async` channel of all organisations
                     merging data from all XML files.
  - :paths         : a sequence of temporary file paths; delete when done.

Code systems are keyed by a tuple of namespace and code. For example:
```
["2.16.840.1.113883.2.1.3.2.4.17.507" "RO144"]
```
 - '2.16.840.1.113883.2.1.3.2.4.17.507' : HL7 Organization Role Type
 - 'RO144'                              : Welsh Local Health Board.
sourceraw docstring

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

× close