Activating Loaded Terms
The TMS Activation process runs against terms and relations in the predict tables that are associated with the Activation Group you choose. Activation includes two stages:
-
TMS validates terms and relations against dictionary definitions. During this process, TMS validates pre-dictionary Informative Notes as well.
-
TMS moves records that do not violate dictionary definitions to the production tables. The system leaves any records that do violate these rules in the pre-dictionary tables and populates the error message field for each record with the reason that the record failed activation.
You can run Activation in Check or Transfer mode. Check mode stops short of transferring data to the production tables while enabling you to see the results of the data validation. See About Activation.
You can run Activation from the GUI or from SQL*Plus. You can monitor the process and, if you run in Check mode, you can view data that would fail activation in the Maintain Repository Data window and make the necessary changes before transferring the data to the production tables.
For more information, see:
- Creating or Assigning an Activation Group
- Running the Activate Preliminary Data Batch Job from the GUI
- Running Activation from SQL*Plus
- Add Validation Code (Optional)
- Refreshing the Context Server Index
- Gathering Statistics to Improve Performance
- About Activation
Parent topic: Defining and Loading Dictionaries
Creating or Assigning an Activation Group
Note:
In TMS 5.3 release, you can control enabling and disabling Activation. An Activation Allowed? checkbox is included for administrator to enable or disable activation for all users who have access to activating a dictionary.
You must assign all data to an Activation Group for TMS to load it into predict tables and, later, to activate it. TMS activates all data in the group in the same batch job. You can use an existing group or define a new one. To define a new Activation Group:
Note:
TMS populates the audit information fields.
Parent topic: Activating Loaded Terms
Running the Activate Preliminary Data Batch Job from the GUI
To invoke Activation from the TMS Graphical User Interface:
Parent topic: Activating Loaded Terms
Running Activation from SQL*Plus
To run Activation in Transfer mode, type:
exec tms_user_activation.activateterms (
Predict_Group_Id
, 'T')
To run Activation in Check mode, type:
exec tms_user_activation.activateterms (
Predict_Group_Id
, 'C')
You can monitor the Activation process and analyze the tables to optimize execution speed. To do so, from SQL*Plus, type:
select count (*) from tms_dict_contents
In previous versions, it was necessary at this stage to compute statistics to speed the job, then reanalyze tables after job completion. The Activation batch job performs these steps for TMS 4.0 and later, so these steps are no longer necessary.
Parent topic: Activating Loaded Terms
Add Validation Code (Optional)
TMS provides an empty package, tms_ud_activation_rules, that runs immediately after TMS has completed its own activation process. You can modify the package to include additional validation code.
For example, you can specify using a SQL statement that in MedDRA, a preferred term must always also exist as a lowest level term. If TMS finds a preferred term without a corresponding lower level term, the preferred term stays in the predictionary table with an error message saying it failed activation due to user-defined validation code.
When you write code in TMS, refer to the package tms_def_dict_cons for constants including the dictionary ID, dictionary levels, and any other constants relevant to all active dictionaries.
Parent topic: Activating Loaded Terms
Refreshing the Context Server Index
After activation refresh the context server index; see Refreshing the Context Server Index.
Parent topic: Activating Loaded Terms
Gathering Statistics to Improve Performance
Refresh schema statistics to improve performance. This is especially important after activating WHO-Drug C. See Running Scripts to Gather Schema Statistics for the 12c Optimizer.
Parent topic: Activating Loaded Terms
About Activation
During Activation, TMS processes terms and relations in one Activation Group at a time, enforcing the integrity of their relations against the level relations defined for the dictionary. TMS gathers threads of data—terms related directly and indirectly to each other—and checks all the links in the thread.
Note:
During Activation, TMS checks for cardinality violations. If you have defined relations to more than one term in a level with only a single cardinality relation defined, TMS rejects all relations.
For more information, see:
- Rules Enforced
- Database Tables
- Activation Failure Messages
- DML Transactions
- More Information on Activation
Parent topic: Activating Loaded Terms
Rules Enforced
In addition to user-defined dictionary level relations and optional validation rules, TMS enforces the following internal rules about external, company, and TMS domain terms:
-
A domain or company term cannot be linked to more than one external term, but an external term can be linked to more than one domain or company term.
-
A domain term cannot be linked to more than one company term, but a company term can be linked to more than one domain term.
Parent topic: About Activation
Database Tables
TMS stores terms awaiting activation in the predict tables (tms_predict_contents and tms_predict_relations) and moves them to the production tables (tms_dict_contents and tms_dict_relations) when they are successfully activated. Terms that fail the Activation process remain in the predict tables associated with an error message.
Parent topic: About Activation
Activation Failure Messages
You can view the error messages associated with failed data in the Error field of the Maintain Repository Data and Repository Authoring windows, or by running the Preliminary Repository Report.
Parent topic: About Activation
DML Transactions
TMS uses a series of Insert, Update and Delete transactions to move the data from the predict tables to the production tables. During the load process—when you are loading a dictionary for the first time—all transactions will be of type Insert.
Parent topic: About Activation
More Information on Activation
The Activation process uses objects and relations defined in many parts of the system and documented as follows:
-
Activation Groups: See Creating or Assigning an Activation Group.
From the Repository Maintenance menu, select Maintain Repository Data, then choose Activation Groups.
-
Dictionary Level Relations: See Defining Relationships Between Dictionary Levels andDefining Relations Between Levels (Strong Dictionaries Only).
From the Definition menu, select Define Dictionaries, then choose Level Relations.
-
Level Details (Optional): See Defining Level Details.
From the Definition menu, select Define Dictionaries, then choose Level Details.
-
Validation Code (Optional): See Add Validation Code (Optional).
-
Terms and Relations: See Repository Maintenance.
From the Repository Maintenance menu, select Maintain Repository Data.
Parent topic: About Activation