(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:
Results:
clojure.core.async channel of all organisations
merging data from all XML files.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"]
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.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |