Skip Headers
Oracle® Argus Mart Extensibility Guide
Release 1.0

E39156-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

2 Argus Mart ETL

This chapter comprises the following topics:

Note:

The user interface in the application may vary from the figures displayed in the subsequent sections.

Introduction to Argus Mart ETL

Argus Mart is a data source for analysis and reporting in medical product safety and pharmacovigilance. The primary data is the adverse event cases managed by the Argus Safety application. Argus Mart consists of one or more data marts and the software to Extract the source data from Argus Safety; Transform the data, and Load it into the Argus Mart data marts. The two sets of tables used in Argus Mart are:

The data can be customized before or after fetching data from Argus Safety database with the help of ETL Hooks. The next section comprises the details about ETL Hooks.

ETL Hooks

ETL Hooks are the custom procedures that are used to extend the existing functionality or behavior of the Argus Mart ETL.

ETL Hooks can be executed to perform actions while fetching data from the source database to the destination database, as required by the users.

The data fetched from Argus Safety database can be modified before or after uploading the data into the Argus Mart database. You can populate customized (non-standard/user-defined) columns to the standard RM and SM tables. Besides, you can also populate customized table(s).

For more information on populating customized columns or tables, refer to Customizing Tables.

ETL Hooks perform these actions at different stages of both initial and incremental ETL.

The ODI Load Plan lists all the ETL scenarios, as shown below:

Figure 2-1 ODI Load Plan

Surrounding text describes Figure 2-1 .

This section comprises of the following topics:

List of Argus Mart ETL Hooks

Argus Mart comprises the following ETL Hooks:

  • CUSTOM ROUTINE BEFORE STAGE TABLES POPULATION: This hook can be executed before populating the Staging tables.

  • CUSTOM ROUTINE BEFORE REPORTING TABLES POPULATION: This hook can be executed before populating the Reporting tables (or RM tables).

  • CUSTOM ROUTINE AFTER REPORTING TABLES POPULATION: This hook can be executed after populating the Reporting tables (or RM tables).

  • CUSTOM ROUTINE BEFORE SIGNAL HELPER TABLES POPULATION: This hook can be executed before populating the Signal Helper tables.

  • CUSTOM ROUTINE AFTER SIGNAL HELPER TABLES POPULATION: This hook can be executed after populating the Signal Helper tables.

  • CUSTOM ROUTINE AFTER ETL: This hook can be executed after running the initial or incremental ETL (post-ETL commit).

Viewing Argus Safety User Interface

ETL Hooks help in customizing the existing ETL to suit your requirements through Argus Safety user interface.

Follow the steps given below to view the Argus Safety user interface:

  1. Log in to the Argus Safety application.

  2. From the menu bar, click Argus Console.

    The menu bar updates for Argus Console.

  3. From the new menu bar, click System Configuration.

  4. Click System Management (Common Profile Switches).

    On the left hand side of the screen, a list of all system-managed common profile switches appears.

  5. Expand the Common Profile folder and click Argus Mart.

    The Modify Argus Mart page appears.

    Note:

    ETL hooks are the global-level switches, visible on Argus Safety Console when you are logged-in through the default enterprise. These switches are visible only after installing and creating Argus Mart schema.

Figure 2-2 Argus Safety User Interface

Surrounding text describes Figure 2-2 .

Executing ETL Hooks

The ETL Hooks can be executed at different staging levels.

  1. Before populating the reporting tables, execute CUSTOM ROUTINE BEFORE STAGE TABLES POPULATION, and/or CUSTOM ROUTINE BEFORE REPORTING TABLES POPULATION.

  2. Before populating the signal tables, execute ETL Hooks CUSTOM ROUTINE AFTER REPORTING TABLES POPULATION, CUSTOM ROUTINE BEFORE SIGNAL HELPER TABLES POPULATION, and/or CUSTOM ROUTINE AFTER SIGNAL HELPER TABLES POPULATION.

  3. After populating reporting and signal tables and before populating the results, execute CUSTOM ROUTINE AFTER ETL.

Figure 2-3 Sequence of ETL Hook Execution

Surrounding text describes Figure 2-3 .

Follow the steps given below to execute an ETL Hook:

  1. On the Modify Argus Mart page, enter a procedure name in the text box relevant to the ETL Hook execution stage. The ETL type can be initial or incremental where the customized data will be fetched. The ETL Hook will look for the database object that matches the procedure name.

    A procedure name denotes the ETL Hook that comprises the custom procedure, or steps. Based on the stage (initial or incremental) where this procedure is being called, the data is modified before sending it to the destination tables.

  2. If the database object (or procedure) is found, the ETL is executed as follows:

    • If the ETL executes without any errors, then move to the next procedure.

    • If the ETL executes with errors, then log the error(s) and exit.

      When executing ETL, if there is any error while populating the staging schema tables, error(s) are logged in the table ETL_STAGE_LOG, whereas while populating the mart schema tables, error(s) are logged in the table ETL_MART_LOG.

  3. If the database object (or procedure) is not found, then log the error(s) and fail the ETL. In this case, the ETL may be executed if you have explicitly created an exception-handling for such cases to absorb any exceptions and move on to the next procedure.

    Optionally, to resolve this issue, create a procedure of that name, provide an existing procedure name, or remove the configuration.

WARNING:

  • You should not modify the existing data or names of the objects. Although additional objects can be created, all changes should first be tested on a test environment, before implementing them in a production environment.

  • No data commit should be done within ETL Hooks.

Configuring Flexible Data Re-categorization Code List

Flexible Data Re-categorization is an Argus Safety functionality through which users can define code list display values (LM tables) in different languages.

Argus Safety maintains this data in the tables CODE_LIST_MASTER, CODE_LIST_CODE_ATTRIBUTES, and CODE_LIST_DETAIL_DISCRETE for supported languages.

The Argus Mart ETL populates the code list data in the tables RM_CODE_LIST_MASTER, RM_CODE_LIST_CODE_ATTRIBUTES, and RM_CODE_LIST_DETAIL_DISCRETE, which are used for processing the SM table columns.

Based on the applicable language, the SM table fields are divided into the following categories:

The following is an example to configure a code list display value in a new language for an already existing code in Argus Safety:

Example 2-1 Configuring Flexible Data Re-categorization

For a code list GENDER, data in the table CODE_LIST_DETAIL_DISCRETE for code 1 is available in the following four decode contexts (languages):

Figure 2-4 Original Decode Contexts (Languages)

Surrounding text describes Figure 2-4 .

To configure the same code 1 in the code list GENDER for a new language such as GERMAN (decode context ge), populate the table CODE_LIST_DETAIL_DISCRETE with required values in the GERMAN language.

INSERT INTO CODE_LIST_DETAIL_DISCRETE (CODE_LIST_ID, DECODE_CONTEXT, CODE, DISPLAY_VALUE, PREFERRED, SORT, LAST_UPDATE_TIME, ENTERPRISE_ID) VALUES ( 'GENDER', 'ge', 1, 'männlich', 0, null, sysdate, 1);

Figure 2-5 New Decode Contexts (Languages)

Surrounding text describes Figure 2-5 .

Customizing Tables

You can customize RM and SM tables, as explained in the following sections:

Customizing RM Tables

This section comprises information on the following actions:

Populating a Column Added in the Argus Safety table

You can populate new column(s) to existing RM tables that are added to the Argus Safety tables.

To populate the new column:

  1. Check mapping between the source and the target tables, through the table ETL_SIGNAL_TABLE_MAPPING.

  2. Based on the mapping between the Argus Safety and RM tables, fetch the desired column in the RM table through ETL Hooks.

There can be different source types to fetch data into tables at initial or incremental stages, such as:

  • ATOS - Argus Safety to Staging tables

  • DTOS - DLP to Staging tables

  • STORM - Staging to RM tables

  • STOSM - PRE_SM to SM Tables

Example 2-2 Populating a new column in the RM table

Follow the steps given below to populate a new column in the table RM_CASE_MASTER:

  1. Check the mapping between RM_CASE_MASTER, and the source table (SDLP_CASE_MASTER) to fetch columns from the staging table into the RM table. In this case, the source type is STORM.

  2. Check the source table for target table (SDLP_CASE_MASTER), where columns are fetched from Argus Safety into the staging table. In this case, the source type can be ATOS/DTOS.

    Figure 2-6 Populating New Columns in the RM Table

    Surrounding text describes Figure 2-6 .
  3. Once the mapping of the tables has been identified, fetch these column(s) from Argus Safety/DLP into Argus Mart, as required.

Populating a Calculated Column in RM

You can populate customized calculated column(s) to the existing RM tables that do not exist in the Argus Safety database. You can also populate column(s) which are calculated on the basis of the existing columns in a table.

To populate such custom columns, create a procedure, and use ETL Hooks to execute them.

Example 2-3 Creating a custom procedure

Creating a procedure called P_UPD_RM_CASE_PAT_INFO, to populate a new column called PAT_FULL_NAME in the table RM_CASE_PAT_INFO. The value of this column is calculated, and populated from the existing columns of RM_CASE_PAT_INFO. Here, we concatenate three columns PAT_INITIALS, PAT_FIRSTNAME, and PAT_LASTNAME to populate this value as PAT_FULL_NAME.

  1. Create a procedure called P_UPD_RM_CASE_PAT_INFO.

  2. In the table RM_CASE_PAT_INFO, populate a new column called PAT_FULL_NAME.

    The value of this column is calculated, and populated from the existing columns of RM_CASE_PAT_INFO.

  3. Concatenate three columns PAT_INITIALS, PAT_FIRSTNAME, and PAT_LASTNAME to populate this value as PAT_FULL_NAME.

    Figure 2-7 Creating Custom Procedure

    Surrounding text describes Figure 2-7 .
  4. Once this procedure is created, call this procedure using ETL Hook PRE_REPORTING_TABLES_POPULATION.

    The ETL Hook will populate this new column PAT_FULL_NAME in SDLP_CASE_PAT_INFO.

Customizing SM Tables

When using ETL Hooks to populate data into SM tables, it is recommended to use RM tables as the source, with join(s) to the chunk table ETL_SM_CASES_TO_PROCESS_CHUNK.

Do not use RM Views such as V_ETL_CASE_MASTER, because each view is joined individually to the chunk table. This can lead to sluggish performance of the application if ETL Hook extracts data from the multiple views.

Example 2-4 Populating data into SM tables using the chunk table

In the example given below, two RM tables RM_CASE_MASTER and RM_CASE_PAT_INFO have been joined with the chunk table ETL_SM_CASES_TO_PROCESS_CHUNK to fetch data into the SM table with the help of the ETL Hooks.

Figure 2-8 Populating Data into SM tables using Chunk Table

Surrounding text describes Figure 2-8 .

This section comprises information on the following actions:

Defining a New Column in SM table

New column(s) can be added before or after fetching data into SM tables. The columns to be added into SM can have simple or complex calculations.

  • Simple calculation-based columns: SM Views are created based on Argus Safety tables. When a customized column having simple calculations is to be added in an SM table, these calculations are done on SM Views, such as:

    • select <column-name> from <table-name> table where <column-name> DateOfBirth = '1990';

    • The definition of these SM Views is based on RM tables and is not updated automatically. When calculations are done, make sure to update the views, to reflect the changes. Once SM Views are updated, use ETL Hooks to fetch this column(s) into SM table, as required.

  • Complex calculation-based columns: PRE_SM table is a set of tables that comprises the staging data for SM tables. You can perform complex calculations on these tables and then fetch them into SM tables using ETL Hooks.

The basic procedure to define a new column is the same for both simple and complex calculation-based column(s) - SM View and PRE_SM tables.

Simple and complex calculations are segregated to improve performance of execution of the data.

Populating a Custom UVT table

The Argus Mart ETL maintains Unique Value Tables (UVT) for first-human language and second-human language, as defined in the system. The UVTs contain the list of distinct values available for categorical data items in the case data.

To populate a custom UVT table, you must first check the source and target table mapping from the table ETL_UVT_SM_MAPPING.

Fetch the data from the source table into the target table as per the mapping done above.

Example 2-5 Populating a custom UVT table

Follow the steps given below to populate a column in the table UVT_GENDER:

  1. Check the mapping between the source table PRE_SM_CASE and the target table UVT_GENDER from the table ETL_UVT_SM_MAPPING.

    Figure 2-9 Populating Custom UVT Table

    Surrounding text describes Figure 2-9 .
  2. After mapping the tables and their related columns, you can populate the column(s), as required.