Liking cljdoc? Tell your friends :D

com.eldrix.concierge.wales.cav-pms

Integration with Cardiff and Vale patient administrative system ('PMS').

Integration with Cardiff and Vale patient administrative system ('PMS').
raw docstring

authentication-tokenclj

source

do-loginclj

(do-login {:keys [username password database user-string] :as opts})

Performs a login operation, returning an authentication token if successful. Parameters: opts : a map containing username, password, database and user-string.

Performs a login operation, returning an authentication token if successful.
Parameters: 
  opts : a map containing username, password, database and user-string.
sourceraw docstring

fetch-admissionsclj

(fetch-admissions opts & {:keys [crn patient-id]})

Fetch a sequence of admissions for a given patient. Parameters:

  • opts : CAV configuration
  • crn : hospital CRN
  • patient-id : internal CAV patient-identifier

The SQL for this needs the internal patient identifier, so we first fetch by CRN in order to obtain that identifier, if not already provided.

Each admission contains at least the following keys: :CRN - patient CRN :NAME - name of patient, for convenience :PATI_ID - internal CAV PMS patient identifier :DATE_ADM - date of admission (java.time.LocalDateTime) :DATE_DISCH - date of discharge (java.time.LocalDateTime) :DATE_TCI - date of 'to come in'

Fetch a sequence of admissions for a given patient.
Parameters:
- opts       : CAV configuration
- crn        : hospital CRN
- patient-id : internal CAV patient-identifier

The SQL for this needs the internal patient identifier, so we first fetch
by CRN in order to obtain that identifier, if not already provided.

Each admission contains at least the following keys:
:CRN        - patient CRN
:NAME       - name of patient, for convenience
:PATI_ID    - internal CAV PMS patient identifier
:DATE_ADM   - date of admission (java.time.LocalDateTime)
:DATE_DISCH - date of discharge (java.time.LocalDateTime)
:DATE_TCI   - date of 'to come in'
sourceraw docstring

fetch-admissions-for-patient-sqlvecclj

(fetch-admissions-for-patient-sqlvec)
(fetch-admissions-for-patient-sqlvec params)
(fetch-admissions-for-patient-sqlvec params options)

Fetch admissions for the given patient (sqlvec)

Fetch admissions for the given patient (sqlvec)
sourceraw docstring

fetch-patient-by-crnclj

(fetch-patient-by-crn opts crn)

Fetch a patient by CRN. We obtain the address history and so have multiple rows returned; we use the first row for the core patient information and manipulate the returned data to add an 'ADDRESSES' property containing the address history.

Fetch a patient by CRN.
We obtain the address history and so have multiple rows returned; we use the
first row for the core patient information and manipulate the returned data to
add an 'ADDRESSES' property containing the address history.
sourceraw docstring

fetch-patient-by-crn-sqlvecclj

(fetch-patient-by-crn-sqlvec)
(fetch-patient-by-crn-sqlvec params)
(fetch-patient-by-crn-sqlvec params options)

Fetch a patient by hospital identifier, :crn and :type (sqlvec)

Fetch a patient by hospital identifier, :crn and :type (sqlvec)
sourceraw docstring

fetch-patient-by-nnnclj

(fetch-patient-by-nnn opts nnn)

Fetch a patient by NHS number. We obtain the address history and so have multiple rows returned; we use the first row for the core patient information and manipulate the returned data to add an 'ADDRESSES' property containing the address history.

Fetch a patient by NHS number.
We obtain the address history and so have multiple rows returned; we use the
first row for the core patient information and manipulate the returned data to
add an 'ADDRESSES' property containing the address history.
sourceraw docstring

fetch-patient-by-nnn-sqlvecclj

(fetch-patient-by-nnn-sqlvec)
(fetch-patient-by-nnn-sqlvec params)
(fetch-patient-by-nnn-sqlvec params options)

Fetch a patient by nhs number; parameters: :nnn (sqlvec)

Fetch a patient by nhs number; parameters: :nnn (sqlvec)
sourceraw docstring

fetch-patients-for-clinicclj

(fetch-patients-for-clinic opts clinic-code)
(fetch-patients-for-clinic opts clinic-code date)

Fetch a list of patients for a specific clinic, on the specified date.

Fetch a list of patients for a specific clinic, on the specified date.
sourceraw docstring

fetch-patients-for-clinic-sqlvecclj

(fetch-patients-for-clinic-sqlvec)
(fetch-patients-for-clinic-sqlvec params)
(fetch-patients-for-clinic-sqlvec params options)

Fetch patients for the given clinic(s) by :clinic-code on the given :date-string (YYYY/MM/DD) (sqlvec)

Fetch patients for the given clinic(s) by :clinic-code on the given :date-string (YYYY/MM/DD) (sqlvec)
sourceraw docstring

fetch-patients-for-clinicsclj

(fetch-patients-for-clinics opts clinic-codes)
(fetch-patients-for-clinics opts clinic-codes date)

Fetch a list of patients for a list of clinics.

Fetch a list of patients for a list of clinics.
sourceraw docstring

get-authentication-token!clj

(get-authentication-token! opts)
(get-authentication-token! opts force?)

Get a valid authentication token, either by re-using an existing valid token, or by requesting a new token from the web service. Parameters

  • opts : connection configuration as per specification ::opts with the additional
  • force? : force a request for a new token even if we already have active one.
Get a valid authentication token, either by re-using an existing
valid token, or by requesting a new token from the web service.
Parameters
- opts     : connection configuration as per specification ::opts with the additional
- force?   : force a request for a new token even if we already have active one.
sourceraw docstring

perform-get-dataclj

(perform-get-data request-xml)

Executes a CAV 'GetData' request - as described in the XML specified.

Executes a CAV 'GetData' request - as described in the XML specified.
sourceraw docstring

post-documentclj

(post-document opts)

Post a document to the CAV PMS webservice. Parameters:

  • :crn - case record number
  • :description - description of the document
  • :uid - unique identifier, max 15 characters
  • :f - file/URL/filename/InputStream/socket/bytes/string of file content
  • :file-type - extension of file, optional, defaults to ".pdf".
Post a document to the CAV PMS webservice.
Parameters:
- :crn         - case record number
- :description - description of the document
- :uid         - unique identifier, max 15 characters
- :f           - file/URL/filename/InputStream/socket/bytes/string of file content
- :file-type   - extension of file, optional, defaults to ".pdf".
sourceraw docstring

sqlvec->queryclj

(sqlvec->query sqlvec)

Convert a sqlvec to a SQL string.

Convert a `sqlvec` to a SQL string.
sourceraw docstring

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

× close