(cdm)
(cdm v)
Returns information from the registry about a specific CDM version, or the default if omitted. For example,
(cdm "5.4")
=> {:id "5.4" :fields "OMOP_CDMv5.4_Field_Level.csv" :tables "OMOP_CDMv5.4_Table_Level.csv"}
Returns information from the registry about a specific CDM version, or the default if omitted. For example, ``` (cdm "5.4") ``` => {:id "5.4" :fields "OMOP_CDMv5.4_Field_Level.csv" :tables "OMOP_CDMv5.4_Table_Level.csv"}
(column-title->kw s)
Convert column title to a keyword. Almost all columns are camelCase, but they've added a column 'unique DQ identifiers' which we convert.
Convert column title to a keyword. Almost all columns are camelCase, but they've added a column 'unique DQ identifiers' which we convert.
(model-structures* {:keys [cdmVersion schemas] :as config})
Return CDM structures as a map of table name to table definition, with each table definition containing :cdmFields with a sequence of fields. Parameters: config - a map containing keys:
Return CDM structures as a map of table name to table definition, with each table definition containing :cdmFields with a sequence of fields. Parameters: config - a map containing keys: - :cdmVersion - version needed, may be omitted - :schemas - a set of strings of schema names to limit result.
Registry of supported versions.
Registry of supported versions.
(with-model-structures {:keys [cdmModel] :as config})
Updates the configuration with OMOP model structures using key :cdmModel. For convenience, returns its argument if cdmModel already defined. The model specification is a map of CDM table name to the table definition. Each definition is a close representation of the source Table_Level.csv but with an additional key ':cdmFields' with data from Field_Level.csv for that table. Some source data are parsed such as 'NA' to 'null', and 'Yes' and 'No' to boolean.
Updates the configuration with OMOP model structures using key :cdmModel. For convenience, returns its argument if cdmModel already defined. The model specification is a map of CDM table name to the table definition. Each definition is a close representation of the source Table_Level.csv but with an additional key ':cdmFields' with data from Field_Level.csv for that table. Some source data are parsed such as 'NA' to 'null', and 'Yes' and 'No' to boolean.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close