GithubHelp home page GithubHelp logo

edencehealth / ohdsi-glue Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 102 KB

tool to facilitate the setup and ongoing maintenance of OHDSI & EHDEN tool deployments

License: GNU Lesser General Public License v2.1

Dockerfile 2.43% Python 97.57%
ohdsi omop-cdm

ohdsi-glue's Introduction

OHDSI Glue

OHDSI Glue is a container designed specifically to facilitate the setup and ongoing maintenance of OHDSI & EHDEN tool deployments, including Atlas, WebAPI, Achilles, DataQualityDashboard, CDMInspection, CatalogueExport, among others. The primary function of OHDSI Glue is to simplify the configuration process for WebAPI. It serves as a practical tool for users of the OHDSI & EHDEN suite, aiming to streamline operations and reduce manual intervention in maintaining the deployments.

usage

The container produces the following help text when invoked with the -h or --help arguments:

usage: glue [-h] [--version] [--log-level {DEBUG,INFO,WARNING,ERROR}]
            [--log-dir LOG_DIR] [--input-dir INPUT_DIR]
            [--batch-size BATCH_SIZE] [--atlas-username ATLAS_USERNAME]
            [--atlas-password ATLAS_PASSWORD]
            [--db-dialect {postgresql,sql server}] [--db-server DB_SERVER]
            [--db-username DB_USERNAME] [--db-password DB_PASSWORD]
            [--db-database DB_DATABASE]
            [--cdm-db-dialect {postgresql,sql server}]
            [--cdm-db-server CDM_DB_SERVER]
            [--cdm-db-username CDM_DB_USERNAME]
            [--cdm-db-password CDM_DB_PASSWORD]
            [--cdm-db-database CDM_DB_DATABASE]
            [--security-db-dialect {postgresql,sql server}]
            [--security-db-server SECURITY_DB_SERVER]
            [--security-db-username SECURITY_DB_USERNAME]
            [--security-db-password SECURITY_DB_PASSWORD]
            [--security-db-database SECURITY_DB_DATABASE]
            [--webapi-addr WEBAPI_ADDR] [--webapi-tls | --no-webapi-tls]
            [--webapi-base-path WEBAPI_BASE_PATH]
            [--init-concept-hierarchy | --no-init-concept-hierarchy]
            [--ohdsi-schema OHDSI_SCHEMA] [--security-schema SECURITY_SCHEMA]
            [--cdm-schema CDM_SCHEMA] [--cem-schema CEM_SCHEMA]
            [--results-schema RESULTS_SCHEMA] [--temp-schema TEMP_SCHEMA]
            [--vocab-schema VOCAB_SCHEMA] [--source-name SOURCE_NAME]
            [--source-cache | --no-source-cache] [--source-key SOURCE_KEY]
            [--enable-cem-results-init | --no-enable-cem-results-init]
            [--enable-concept-count-init | --no-enable-concept-count-init]
            [--enable-result-init | --no-enable-result-init]
            [--enable-source-setup | --no-enable-source-setup]
            [--enable-basic-security | --no-enable-basic-security]
            [--update-passwords | --no-update-passwords]
            [--bulk-user-file BULK_USER_FILE]

Utility for working with OHDSI WebAPI and related apps

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --log-level {DEBUG,INFO,WARNING,ERROR}
                        how verbosely to log (one of: DEBUG, INFO, WARNING,
                        ERROR) (default: 'DEBUG')
  --log-dir LOG_DIR     directory in which to create run logs (default:
                        'logs')
  --input-dir INPUT_DIR
                        directory from which to load CSV-format input data
                        files (default: 'input')
  --batch-size BATCH_SIZE
                        batch size to use during bulk insert, see
                        https://zillow.github.io/ctds/bulk_insert.html#batch-
                        size (default: None)
  --atlas-username ATLAS_USERNAME
                        an admin user which will be created in the basic
                        security database (default: 'admin')
  --atlas-password ATLAS_PASSWORD
                        the password associated the atlas_username account
                        (default: '')
  --db-dialect {postgresql,sql server}
                        the sql database dialect (default: 'postgresql')
  --db-server DB_SERVER
                        host address of the database to load data into
                        (default: 'db:1433')
  --db-username DB_USERNAME
                        username to use when connecting to the database
                        (default: 'postgres')
  --db-password DB_PASSWORD
                        password associated with the given db_username
                        (default: '')
  --db-database DB_DATABASE
                        name of database on the server to write to (default:
                        'cdm')
  --cdm-db-dialect {postgresql,sql server}
                        sql database dialect of the OMOP CDM database to
                        connect to WebAPI (default: 'postgresql')
  --cdm-db-server CDM_DB_SERVER
                        host address of the OMOP CDM database to connect to
                        WebAPI (default: 'sourcedb:1433')
  --cdm-db-username CDM_DB_USERNAME
                        username of the OMOP CDM database to connect to WebAPI
                        (default: 'postgres')
  --cdm-db-password CDM_DB_PASSWORD
                        password of the OMOP CDM database to connect to WebAPI
                        (default: '')
  --cdm-db-database CDM_DB_DATABASE
                        name of of the OMOP CDM database to connect to WebAPI
                        (default: 'cdm')
  --security-db-dialect {postgresql,sql server}
                        sql database dialect of the WebAPI basic security
                        database (default: 'postgresql')
  --security-db-server SECURITY_DB_SERVER
                        host address of the WebAPI basic security database
                        (default: 'sourcedb:1433')
  --security-db-username SECURITY_DB_USERNAME
                        username of the WebAPI basic security database
                        (default: 'postgres')
  --security-db-password SECURITY_DB_PASSWORD
                        password of the WebAPI basic security database
                        (default: '')
  --security-db-database SECURITY_DB_DATABASE
                        name of of the WebAPI basic security database
                        (default: 'basic_security')
  --webapi-addr WEBAPI_ADDR
                        the hostname (and optional port) of the webapi
                        instance (default: 'webapi')
  --webapi-tls, --no-webapi-tls
                        boolean that determines if http or https should be
                        used to communicate with webapi (default: True)
  --webapi-base-path WEBAPI_BASE_PATH
                        the path to WebAPI on its host, this is almost always
                        /WebAPI (default: '/WebAPI')
  --init-concept-hierarchy, --no-init-concept-hierarchy
                        whether to establish the concept_hierarchy (a cached
                        version of the OMOP vocabulary specific to the
                        concepts found in your CDM) (default: True)
  --ohdsi-schema OHDSI_SCHEMA
                        the schema used by webapi to manage its own
                        configuration and other state (default: 'ohdsi')
  --security-schema SECURITY_SCHEMA
                        (default: 'basic_security')
  --cdm-schema CDM_SCHEMA
                        (default: 'cdm')
  --cem-schema CEM_SCHEMA
                        Common Evidence Model ("CEM") results schema (default:
                        'cemresults')
  --results-schema RESULTS_SCHEMA
                        (default: 'results')
  --temp-schema TEMP_SCHEMA
                        (default: 'temp')
  --vocab-schema VOCAB_SCHEMA
                        (default: 'vocabulary')
  --source-name SOURCE_NAME
                        the name of the data source, used by webapi to refer
                        to the data source (default: 'My Cdm')
  --source-cache, --no-source-cache
                        determines is_cache_enabled when adding a CDM source
                        to WebAPI (default: True)
  --source-key SOURCE_KEY
                        a key identifying the data source, used by webapi, if
                        not given it will be derived from source_name
                        (default: None)
  --enable-cem-results-init, --no-enable-cem-results-init
                        enable creating the Common Evidence Model results
                        schema (default: False)
  --enable-concept-count-init, --no-enable-concept-count-init
                        enable creating the concept count table(s) (see:
                        https://github.com/OHDSI/WebAPI/wiki/CDM-
                        Configuration#concept-count-tables)NOTE: this assumes
                        you have already run achilles (default: False)
  --enable-result-init, --no-enable-result-init
                        enable setting up the results tables (see:
                        https://github.com/OHDSI/WebAPI/wiki/CDM-
                        Configuration#results-schema-setup) (default: True)
  --enable-source-setup, --no-enable-source-setup
                        enable setting up the WebAPI source & source_daimon
                        tables (see: https://github.com/OHDSI/WebAPI/wiki/CDM-
                        Configuration#source-and-source_daimon-table-setup)
                        (default: True)
  --enable-basic-security, --no-enable-basic-security
                        enable setting up the basic security schema & table
                        (see: https://github.com/OHDSI/WebAPI/wiki/Basic-
                        Security-Configuration) (default: True)
  --update-passwords, --no-update-passwords
                        enable glue to update the password for existing atlas
                        users when verifying the basic security configuration
                        (default: False)
  --bulk-user-file BULK_USER_FILE
                        create/update user accounts from a csv file; requires
                        these headings:
                        username,password,firstname,middlename,lastname
                        (default: None)

resources

ohdsi-glue's People

Contributors

actualben avatar dependabot[bot] avatar

Watchers

 avatar  avatar

Forkers

uzleuven

ohdsi-glue's Issues

init_concept_count - LookupError: unknown named parameter "" (under mssql)

User running mssql cdmdb reports the following issue:

2024-04-11T09:32:09+0000 - glue - CRITICAL - uncaught LookupError exception: unknown named parameter ""
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-000: Traceback (most recent call last):
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-001:   File "<frozen runpy>", line 198, in _run_module_as_main
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-002:   File "<frozen runpy>", line 88, in _run_code
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-003:   File "/app/glue/__main__.py", line 39, in <module>
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-004:     main()
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-005:   File "/app/glue/__main__.py", line 35, in main
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-006:     glue_it(config)
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-007:   File "/app/glue/process.py", line 37, in glue_it
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-008:     init_concept_count.run(config, api)
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-009:   File "/app/glue/operations/init_concept_count.py", line 28, in run
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-010:     cdm_db.execute(ddl)
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-011:   File "/app/glue/db/multidb.py", line 205, in execute
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-012:     cursor.execute(final_query, filtered_params)
2024-04-11T09:32:09+0000 - glue - CRITICAL - traceback-013: LookupError: unknown named parameter ""

Everything in the rest of their report seems to indicate good connection to the database and that the DDL returned by webapi works fine when manually submitted to the db server.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.