(atc->products-for-ecl conn atc)Return a map of products that can be used to build a more complete SNOMED CT ECL expression that will include all matching UK products. We have to do it this way because TF products are not included in the UK dm+d distribution.
Return a map of products that can be used to build a more complete SNOMED CT ECL expression that will include all matching UK products. We have to do it this way because TF products are not included in the UK dm+d distribution.
(atc->snomed-ecl conn atc)Create a SNOMED CT ECL expression from the ATC pattern specified, returning
an expression that will return VTMs, VMPs and AMPs.
Prefer to use atc->products-for-ecl and the SNOMED CT drug extension
to optimise the creation of the appropriate ECL expression.
Create a SNOMED CT ECL expression from the ATC pattern specified, returning an expression that will return VTMs, VMPs and AMPs. Prefer to use [[atc->products-for-ecl]] and the SNOMED CT drug extension to optimise the creation of the appropriate ECL expression.
(install-from-dirs filename dirs & {:keys [_batch-size] :as opts})Creates a new dm+d filestore at filename from the directories specified.
Creates a new dm+d filestore at `filename` from the directories specified.
(install-latest api-key-file cache-dir)Convenience function to install latest release using a filename based on its release date.
For more control, use install-release.
Convenience function to install latest release using a filename based on its release date. For more control, use `install-release`.
(install-release api-key-file cache-dir)(install-release api-key-file cache-dir filename)(install-release api-key-file cache-dir filename release-date)Create a versioned dm+d file-based database by downloading the dm+d distributions automatically from NHS Digital's TRUD service. Parameters:
Create a versioned dm+d file-based database by downloading the dm+d
distributions automatically from NHS Digital's TRUD service.
Parameters:
- api-key-file : file containing TRUD API key, anything coercible using
[[clojure.java.io/as-file]]
- cache-dir : TRUD cache directory
- filename : filename of database to install, can be omitted
- release-date : date of release to be installed, will use latest if omitted.
can be a string in ISO format, or a java.time.LocalDate(open-store f)Open a dm+d store. Returns what should be regarded as an opaque handle,
that should be closed using close. Currently this is a DataSource but
this is subject to change. f can be anything coercible to a file using
[[clojure.java.io/as-file]]. Throws an exception if the file does not exist.
Open a dm+d store. Returns what should be regarded as an opaque handle, that should be closed using `close`. Currently this is a DataSource but this is subject to change. `f` can be anything coercible to a file using [[clojure.java.io/as-file]]. Throws an exception if the file does not exist.
(products-from-atc conn atc)(products-from-atc conn atc product-types)Returns a sequence of products matching the ATC code. Parameters:
By default only VTM VMP and AMP products will be returned.
Returns a sequence of products matching the ATC code.
Parameters:
- conn :
- atc : atc code - supports '*' and '?' for pattern matching as per Lucene
- product-types : a set of product types (e.g. #{:VTM :VMP :AMP :VMPP :AMPP}).
By default only VTM VMP and AMP products will be returned.(vmps-from-atc conn atc)DEPRECATED: use vpids-from-atc instead.
DEPRECATED: use [[vpids-from-atc]] instead.
(vpids-from-atc conn atc)Returns a sequence of VPIDs for the ATC code specified.
Returns a sequence of VPIDs for the ATC code specified. - conn - atc - atc code - supports '*' for multiple character wildcard, and '?' for single character wildcard.
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 |