(available-mlds-distributions)
(available-mlds-distributions packages)
(distribution id)
(distribution id local)
Returns the distribution with the given identifier. Avoids network calls for locally known distributions, but checks online providers if not found.
Returns the distribution with the given identifier. Avoids network calls for locally known distributions, but checks online providers if not found.
(download nm params)
Download the named distribution. Parameters:
The parameters will depend on the exact nature of the provider. Returns the java.nio.file.Path of the directory containing unzipped files.
Download the named distribution. Parameters: - nm : name of the provider e.g. "uk.nhs/sct-clinical" - parameters : a map of parameters The parameters will depend on the exact nature of the provider. Returns the java.nio.file.Path of the directory containing unzipped files.
(download-from-mlds package-id {:keys [username password release-date]})
Download the MLDS package specified.
Download the MLDS package specified.
(download-from-trud item-identifier
{:keys [api-key cache-dir progress release-date]})
Download an item from TRUD Parameters:
Download an item from TRUD Parameters: - item-identifier : item wanted, (e.g. 101) - config: a map containing: :api-key : path to file containing TRUD api-key (e.g."/var/hermes/api-key.txt") :cache-dir : TRUD download cache directory (e.g. "/tmp/trud") :progress : print progress? :release-date : (optional) an ISO 8601 date e.g. "2022-02-03" Returns TRUD metadata about the item specified. See com.eldrix.trud.core/get-latest for information about return value.
(download-from-trud* item-identifier)
Returns a function that will download and unzip a release from TRUD.
Returns a function that will download and unzip a release from TRUD.
(download-mlds-release-file
username
password-file
parent-dir
{id :releaseFileId url :clientDownloadUrl label :label :as release-file})
Download an MLDS release file into the 'parent-dir' directory
Download an MLDS release file into the 'parent-dir' directory
(download-mlds-release-files username
password
{:keys [releaseVersionId releaseFiles]
:as release-version})
Download all release files for a release version, automatically unzipping any zip files. Returns a [[java.io.File]] for the parent directory to which all importable release files will be found.
Download all release files for a release version, automatically unzipping any zip files. Returns a [[java.io.File]] for the parent directory to which all importable release files will be found.
(mlds-packages)
Return all MLDS packages for all members.
Return all MLDS packages for all members.
(print-providers)
Placeholder for a more sophisticated future method of printing available providers.
Placeholder for a more sophisticated future method of printing available providers.
(zip-file? f)
Can 'f' be read as a zip file? Parameters:
Can 'f' be read as a zip file? Parameters: - f : anything coercible by [[clojure.java.io/file]].
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close