documentation:software:webapi:source_configuration
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:software:webapi:source_configuration [2016/08/19 14:39] – created frank_defalco | documentation:software:webapi:source_configuration [2019/04/19 16:22] (current) – anthonysena | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== IMPORTANT NOTE ===== | ||
| + | |||
| + | All WebAPI documentation has moved to [[https:// | ||
| + | |||
| + | ==== WebAPI Source Configuration (LEGACY)==== | ||
| + | |||
| As we work to improve the deployment strategy for the OHDSI stack we will maintain this FAQ to assist with source configuration information. | As we work to improve the deployment strategy for the OHDSI stack we will maintain this FAQ to assist with source configuration information. | ||
| - | Q. Can you explain the reason for the SOURCE and SOURCE_DAIMON tables? | + | ---- |
| + | |||
| + | **Q**. Can you explain the reason for the SOURCE and SOURCE_DAIMON tables? | ||
| - | A. These tables allow a single WebAPI to access multiple databases within a given network environment. Each SOURCE roughly translates to a unique server. Each SOURCE_DAIMON roughly translates to a set of tables, typically located within a schema or table qualification that are all used for a simliar purpose. This layer of abstraction also allows for a CDM database to be read only while still identifying the proper location to write result information from various analyses. | + | **A**. These tables allow a single WebAPI to access multiple databases within a given network environment. Each SOURCE roughly translates to a unique server. Each SOURCE_DAIMON roughly translates to a set of tables, typically located within a schema or table qualification that are all used for a simliar purpose. This layer of abstraction also allows for a CDM database to be read only while still identifying the proper location to write result information from various analyses. |
| - | Q. How do you configure the SOURCE table in the OHDSI application schema? | + | ---- |
| - | A. Currently no tool manages the configuration of the SOURCE table and so it must be manually configured. Here is an example of valid settings: | + | **Q**. How do you configure |
| - | SOURCE_ID: 1 (typically auto generated by the database layer) | + | **A**. Currently no tool manages |
| - | SOURCE_NAME: | + | |
| - | SOURCE_KEY: CDM1 (a meaningful unique identifier that will be used in calls to the REST API) SOURCE_CONNECTION: | + | |
| - | SOURCE_DIALECT: | + | |
| - | Valid SOURCE_DIALECT values: | + | |
| - | sql server : Microsoft SQL Server | + | ^ Column Name ^ Sample Value ^ Description ^ |
| + | | SOURCE_ID | ||
| + | | SOURCE_NAME | My CDM | the display name of this CDM as you want it to appear across OHDSI web applications | | ||
| + | | SOURCE_KEY | CDM1 | a unique key that will be used in calls to the REST API - no spaces allowed | | ||
| + | | SOURCE_CONNECTION | jdbc: | a valid jdbc connection string | | ||
| + | | SOURCE_DIALECT | sql server | ||
| - | oracle : Oracle | + | ---- |
| - | pdw : Microsoft Parallel Data Warehouse | + | **Q**. How do you configure the SOURCE_DAIMON table in the OHDSI application schema? |
| - | postgresql : Amazon Redshift or PostgreSQL | + | **A**. Currently no tool manages the configuration of the SOURCE_DAIMON table and so it must be manually configured. |
| - | Q. How do you configure | + | Here is an example of valid settings: |
| + | ^ Column Name ^ Sample Value ^ Description ^ | ||
| + | | SOURCE_DAIMON_ID | 1 | typically auto generated by the database layer | | ||
| + | | SOURCE_ID | 1 | a foreign key reference to an existing record | ||
| + | | DAIMON_TYPE | 0 | a type identifying the type of daimon, valid values listed [[https:// | ||
| + | | TABLE_QUALIFIER | db1.dbo | the schema | ||
| + | | PRIORITY | 0 | a number specifying priority of this daimon, the largest value is highest priority | | ||
| - | A. Currently no tool manages | + | At the time of writing |
| - | SOURCE_DAIMON_ID: | + | ^ DAIMON_TYPE ^ ENUM VALUE ^ Description ^ |
| - | SOURCE_ID : 1 (a reference to an existing record in the SOURCE | + | | 0 | CDM | a database / table qualifier combination that contains |
| - | DAIMON_TYPE: | + | | 1 | VOCABULARY | a database / table qualifier |
| - | TABLE_QUALIFIER: | + | | 2 | RESULTS | a database / table qualifier combination that contains result table schemas | |
| - | PRIORITY: 0 (a number specifying priority of this daimon, the largest value is highest priority, explained below) | + | | 3 | EVIDENCE | a database / table qualifier combination that contains the LAERTES evidence table schema | |
| - | DAIMON_TYPE | + | |
| - | Valid values are translated to the 0 based enum class found here | + | ---- |
| - | At the time of writing the values are as follows: | + | **Q**. Why use the word DAIMON in SOURCE_DAIMON to represent services, aren't those traditionally DAEMONS? |
| - | 0 : CDM : a database | + | **A**. DAIMON is actually the Greek version of DAEMON. [[https://en.wikipedia.org/ |
| - | 1 : VOCABULARY : a database | + | |
| - | 2 : RESULTS : a database | + | |
| - | 3 : EVIDENCE : a database / table qualifier combination that contains | + | |
| - | Q. Why use the word DAIMON in SOURCE_DAIMON to represent services, aren't those traditionally DAEMONS? | + | |
| - | A. DAIMON is actually the Greek version of DAEMON. From wikipedia: For the Minoan (3000-1100 BC) and Mycenaean (1500-1100 BC), " | + | As our projects all take on the names of Greek dieties, DAIMON seemed more appropriate. |
documentation/software/webapi/source_configuration.1471617596.txt.gz · Last modified: by frank_defalco
