vantage6.algorithm.tools.decorators.get_ohdsi_metadata#
- get_ohdsi_metadata(label)#
Retrieve the OHDSI metadata from the environment variables.
The following environment variables are expected to be set in the node configuration in the env key of the database section:
- Return type:
label: my_database type: OMOP uri: jdbc:postgresql://host.docker.internal:5454/postgres env:
CDM_DATABASE: “my_user” CDM_SCHEMA: “my_password” RESULTS_SCHEMA: “my_password” DBMS: “postgresql”
…#
In case these are not set, the algorithm execution is terminated.
- type label:
str
- param label:
Label of the database to connect to
- type label:
str
Example
>>> get_ohdsi_metadata("my_database")