Defining External System Information in TMS
When a pharmaceutical application, or external system, is fully or partially integrated with TMS, you can bring information into TMS from the external system to provide context for each verbatim term occurrence (source term, question response). For example, if TMS is integrated with Oracle Clinical, when Oracle Clinical sends a question response to TMS for classification, it also sends information about the response: its associated Patient, Study, Project, DCM, Visit, Document Number, Investigator, and Discrepancy ID.
In the case of Oracle Clinical, these database columns are predefined. If you are using TMS with a different external system, you must specify any database column information you want to bring into TMS from the external system, associated with each verbatim term occurrence. You can specify up to eight columns from the external system's database for this purpose. TMS then stores all such data in its database, linked to the original verbatim term occurrence (source term).
In addition, you can specify up to twelve details per column for propagation into TMS associated with each verbatim term occurrence. Column details are not predefined for Oracle Clinical, but as with other external systems, you can specify them.
Detail information is retrieved via either a view or a function defined for this purpose within the external system (see Define Views in the External System and Define Functions in the External System).
You can set up external system information in TMS for any number of external systems, and specify full, partial, or no integration for any of them.
For external systems other than Oracle Clinical, use the Define External Systems window to specify what information you want to have available in TMS as well as its label and display size. See Setting Up External System Columns and Details.
For all external systems, do the following for each column for which you wish to import additional details:
-
Create a view or function. See Defining Views and Functions in the External System.
-
Grant access privileges within the external system to the view for all users who need to see the information within TMS.
This section includes:
- Where External System Information Appears
- Defining the External System in TMS
- Setting Up External System Columns and Details
- Defining Views and Functions in the External System
- Setting Up External System Drill-down Queries
Parent topic: Integrating TMS with Other Systems
Where External System Information Appears
If the external system is fully integrated with TMS, TMS displays external system column information in TMS Windows.
TMS Windows
TMS windows can display external system information from partially and fully integrated systems. This information is for query purposes only.
External system columns from fully integrated systems appear in the following windows: Classify VT Omissions, Approve VTAs, Reclassify Verbatim Terms, High-Level Reclassification, and Browse VT Classification Data. For partially integrated systems, external system information is available in the Classify VT Omissions window only.
If detail information is available for a particular column, the text in the column's field appears in blue. The user can select Drill Down from the field to see the detail information in the External Drill-Down pop-up window.
Parent topic: Defining External System Information in TMS
Defining the External System in TMS
To integrate TMS with any system other than Oracle Clinical, you must complete the steps in this section.
The general external system information is pre-defined for Oracle Clinical. If you are using Oracle Clinical, you can skip this section and proceed to Setting Up External System Columns and Details.
To define an external system:
Parent topic: Defining External System Information in TMS
Setting Up External System Columns and Details
After you specify the general external system information, you can define up to eight columns that map to data columns in that external system. Subsequently, for each external system column, you can define up to twelve additional details that provide more information about that external system data.
For example, if you define Patient ID as one of the columns, you could define details for the related first name; last name; sex; screening, enrollment, and termination dates; and dates of birth and death—if the external system stores that information.
These processes are divided into two sections:
Parent topic: Defining External System Information in TMS
Define External System Columns
Column names will appear as field labels in Classify VT Omissions, and if the system is fully integrated with TMS, in High-Level Reclassification, Approve VTAs, Reclassify Verbatim Terms, and Browse VT Classification Data. Oracle Clinical columns are pre-defined as Patient, Study, Project, DCM, Investigator, Visit, Document Number and Discrepancy ID.
You should define columns in the order you want them displayed. TMS assigns a read-only Map ID Number to each column row that you define in the Attributes block, numbering them consecutively and in ascending order. The Map ID Number is important: you use this number for other processes in TMS that use external system data, such as Defining Views and Functions in the External System.
Each column can store values of up to 500 characters (VARCHAR2).
The external system columns are defined for Oracle Clinical by default. To define column information for any other external system:
Parent topic: Setting Up External System Columns and Details
Define Column Details
If you define column detail information in this window, it is available from the TMS windows Classify VT Omissions, Approve VTAs, Reclassify Verbatim Terms, Browse VT Classification Data, and, if the external system is fully integrated with TMS, from High-Level Reclassification.
When you define detail information for a column, TMS displays the text in the field corresponding to the column in blue. The user can then use the drill-down function to see detail information.
Whether you chose a view or a function for retrieving external system data for this column, you must be sure to include the detail information you are defining here in the view or function. To create the view or function you want to use, see Define Views in the External System or Define Functions in the External System.
To define column detail display:
Parent topic: Setting Up External System Columns and Details
Defining Views and Functions in the External System
This section describes how to define and use views and functions to access data from the external system. You can also refer to the sample drill-down views and functions available on My Oracle Support.
This section includes:
Parent topic: Defining External System Information in TMS
Define Views in the External System
To see up to twelve (12) detail values associated with a column, you must define a view in the external system and specify it in the Define External Systems window in TMS, in the Details block. The existence of a view name associated with an external column triggers the display of the column name in blue in TMS, indicating that drill-down information is available.
When you create the view, you must use the detail names shown below.
Note that you can define a Where clause for each column in the TMS user interface (see Define External System Columns). The Where clause is appended to the view definition at execution time.
Grant select privileges and create a synonym as shown in the last three lines of the statement. See Security for more information.
Connect to the database as a user with access to the external system's tables from which the view is created and use the script in Example 5-1 as a model.
Example 5-1 Sample External System View Definition Logic
CREATE VIEW
view_name
(
Code snipet | Description |
---|---|
, . . . , |
These detail names are fixed; TMS uses them in its internal code. You must define at least The detail number will be imported as the sort order in TMS; |
. . . , |
- Select the actual column detail names from the external system that you want to use in TMS. You can specify up to twelve (12). If you need fewer details, enter |
. . . |
Specify the external system's table or tables from which you want to create the view. |
|
Describe the condition(s) you want. If the external system is Oracle Clinical, include a call to a predefined function to limit the data retrieved to studies to which the user has the proper security privileges (see Example 5-2). The call is:
|
GRANT SELECT ON
view_name
TO rxclin_read;
GRANT SELECT ON
view_name
TO tms WITH GRANT OPTION;
CREATE PUBLIC SYNONYM
view_name
FOR
user
.view_name
;
Example 5-2 Sample External System View Definition Code
CREATE OR REPLACE VIEW dmo_dcms ( ext_col_det1 , ext_col_det2 , ext_col_det3 , ext_col_det4 , ext_col_det5 , ext_col_det6 , ext_col_det7 , ext_col_det8 , ext_col_det9 , ext_col_det10 , ext_col_det11 , ext_col_det12 , clinical_study_id , response_id , order_ts ) as select distinct resp.response_id , decode( resp.end_ts , to_date( 3000000, 'J') , decode( rdcm.accessible_ts , to_date( 3000000, 'J'), 'C' , 'S' ) , 'O' ) , to_char( resp.response_entry_ts, 'DD-MON-YYYY HH24:MI:SS') , to_char( resp.end_ts, 'DD-MON-YYYY HH24:MI:SS') , resp.discrepancy_indicator , resp.validation_status , dcmq.question_name , decode( dcmq.enterable_flag , 'Y', 'E' , decode( dcmq.derived_flag , 'Y', 'D' , '-' ) ) E , resp.value_text , rdcm.patient , rdcm.document_number , rdcm.visit_number , known.CLINICAL_STUDY_ID , known.response_id , resp.response_entry_ts from responses resp , dcm_questions dcmq , received_dcms rdcm , responses known where resp.received_dcm_id = known.received_dcm_id and resp.dcm_question_group_id = known.dcm_question_group_id and resp.repeat_sn = known.repeat_sn and rdcm.received_dcm_id = known.received_dcm_id and rdcm.dcm_subset_sn = dcmq.dcm_que_dcm_subset_sn and rdcm.dcm_layout_sn = dcmq.dcm_que_dcm_layout_sn and dcmq.dcm_question_id = resp.dcm_question_id and rxc_tms_access.studyAccess(known.clinical_study_id) = 1 order by resp.response_id, resp.response_entry_ts; grant select on dmo_dcms to rxclin_read; grant select on dmo_dcms to tms with grant option; exec opa_ddl.createDropPublicSynonym ('dmo_dcms');
Parent topic: Defining Views and Functions in the External System
Define Functions in the External System
Functions can derive larger data points than TMS can handle in drill-down views. Using a function of type varchar2 enables you to return up to 32k of information back to TMS.
Each function can derive one column detail.
Following is the package body for a sample function. Note that the function must include all the parameters shown.
Example 5-3 Sample External System Drill-down Function
CREATE OR REPLACE PACKAGE BODY dmo_project IS FUNCTION showData( pSourceTermId IN NUMBER , pOccurrenceId IN NUMBER , pDefInstanceName IN VARCHAR2 , pIntegrationKey IN VARCHAR2 , pDictContentId IN NUMBER , pUpdateFlag IN VARCHAR2 , pDefDomainId IN NUMBER , pXArea IN NUMBER , pSTAltKey IN VARCHAR2 , pXV1 IN VARCHAR2 , pXV2 IN VARCHAR2 , pXV3 IN VARCHAR2 , pXV4 IN VARCHAR2 , pXV5 IN VARCHAR2 , pXV6 IN VARCHAR2 , pXV7 IN VARCHAR2 , pXV8 IN VARCHAR2 ) RETURN VARCHAR2 IS rVal VARCHAR2(2000) := NULL; BEGIN IF rxc_tms_access.studyAccess(pXArea) = 0 THEN rVal := 'You do not have access to this data'; ELSE SELECT opo.program_code ||': '||opo.description ||' - '||opr.project_code ||': '||opr.description INTO rVal FROM ocl_programs opo , ocl_projects opr WHERE opr.project_code = pXV1 AND opo.program_code = opr.program_code ; END IF; RETURN rVal; EXCEPTION WHEN OTHERS THEN RETURN 'The data could not be found in Oracle Clinical'; END showData; END dmo_project; /
Parent topic: Defining Views and Functions in the External System
Setting Up External System Drill-down Queries
The Queries tab enables you to define external system drill-down queries, which are groupings of external system columns.
This section includes:
Parent topic: Defining External System Information in TMS
Defining the Name and External System for a Query
To define a query:
You can change the display name and description at any time. Proceed to Defining Query Columns to add the columns that compose this query.
Parent topic: Setting Up External System Drill-down Queries
Defining Query Columns
To define the columns that the external system query will display:
Parent topic: Setting Up External System Drill-down Queries