Liking cljdoc? Tell your friends :D

com.eldrix.odsweekly.core


close-indexclj

(close-index conn)
source

create-indexclj

(create-index
  &
  {:keys [dir api-key cache-dir nested?] :or {dir "" nested? true} :as opts})

Create an index with the latest distribution downloaded from TRUD. Parameters:

  • dir : directory in which to create index
  • api-key : TRUD api-key
  • cache-dir : TRUD cache directory
  • nested? : (default, true) - index to be created nested in 'dir'.

Returns a map containing the release information, including key:

  • :indexDir - string representing location of index

By default, a new index will be created based on the release-date within the directory dir. If nested? is false, the index will be created directly in the dir specified.

Create an index with the latest distribution downloaded from TRUD.
Parameters:
- dir       : directory in which to create index
- api-key   : TRUD api-key
- cache-dir : TRUD cache directory
- nested?   : (default, true) - index to be created nested in 'dir'.

Returns a map containing the release information, including key:
- :indexDir - string representing location of index

By default, a new index will be created based on the release-date within the
directory `dir`. If `nested?` is false, the index will be created directly in
the `dir` specified.
sourceraw docstring

downloadclj

(download {:keys [dir api-key cache-dir]})

Downloads the latest release to create a file-based database. A function designed to used as exec-fn from deps.edn.

Downloads the latest release to create a file-based database.
A function designed to used as exec-fn from deps.edn.
sourceraw docstring

get-by-nameclj

(get-by-name conn s)
source

get-by-organisation-codeclj

(get-by-organisation-code conn organisation-code)

Return data on the 'organisation' specified.

Return data on the 'organisation' specified. 
sourceraw docstring

gp-by-gmc-numberclj

(gp-by-gmc-number conn gmc-number)

Return a sequence of GNC records for the GP with the given GMC number. The NHS Prescription Service use a number called the Doctor’s Index Number or DIN (allocated by the Health and Social Care Information Centre when a doctor first applies to practice in the UK), to derive a GP's first GNC code; this is prefixed with a ‘G’ and suffixed with a check digit. Thereafter however, if a GP begins to work at further practices (i.e. is working within more than one simultaneously), the NHS Prescription Service allocate further codes not based on the DIN. A GP can therefore have multiple GNC codes, one for each practice he works at simultaneously. If a GP completely leaves a practice before joining a new one, and there is no overlap, then the current code will be retained and just the links within the data updated.

Return a sequence of GNC records for the GP with the given GMC number.
The NHS Prescription Service use a number called the Doctor’s Index Number or
DIN (allocated by the Health and Social Care Information Centre when a doctor
first applies to practice in the UK), to derive a GP's first GNC code; this
is prefixed with a ‘G’ and suffixed with a check digit. Thereafter however, if
a GP begins to work at further practices (i.e. is working within more than one
simultaneously), the NHS Prescription Service allocate further codes not based
on the DIN. A GP can therefore have multiple GNC codes, one for each practice
he works at simultaneously. If a GP completely leaves a practice before
joining a new one, and there is no overlap, then the current code will be
retained and just the links within the data updated.
sourceraw docstring

latest-releaseclj

(latest-release api-key)

Returns data about the latest release of the ODS weekly TRUD item.

Returns data about the latest release of the ODS weekly TRUD item.
sourceraw docstring

metadataclj

(metadata dir)

Returns the metadata from the index specified.

Returns the metadata from the index specified.
sourceraw docstring

n27-field-formatclj

The standard ODS 27-field format headings

The standard ODS 27-field format headings
sourceraw docstring

nhs-ods-weekly-item-identifierclj

source

open-indexclj

(open-index dir)

Open an index from the directory specified. The index must have been initialised and of the correct index version.

Open an index from the directory specified.
The index must have been initialised and of the correct index version.
sourceraw docstring

schemaclj

source

store-versionclj

source

surgery-gpsclj

(surgery-gps conn surgery-identifier)

Returns a sequence of general practitioners in the surgery specified.

Returns a sequence of general practitioners in the surgery specified.
sourceraw docstring

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

× close