Testing and Activating Procedures
After you define a Procedure, you must generate it and set its status to Active before you can execute it. Oracle Clinical does not enforce Procedure testing, but provides for it (see Testing a Procedure).
For more information, see:
- Generating and Compiling a Procedure
- Editing Generated PL/SQL Code
- Testing a Procedure
- Assigning Procedure Status
- Assigning Standards Affiliation
Parent topic: Validation and Derivation Procedures
Generating and Compiling a Procedure
When you invoke generation, Oracle Clinical takes the definitions you have specified and converts them to the PL/SQL code that will perform the Procedure.
Parent topic: Testing and Activating Procedures
Editing Generated PL/SQL Code
If you have the required security privileges, you can edit the actual generated PL/SQL code. However, you should take extreme care and use custom code whenever possible (see Adding Custom Code).
Note:
Changes that you make directly to the generated code (not through the Custom Code window) will be lost the next time the Procedure is generated.
You can also use the editing window to view the generated code and better understand what effect your Procedure definitions and settings have on the generated code.
If you have a navigation path choice called Procedures w Edit after either Validation or Derivation Procedures, you have the required privileges to edit generated Procedure code.
- In the Procedure Definitions window, highlight the Procedure with the generated PL/SQL code you want to edit.
- From the Special menu, select Edit Gen Proc to display the generated PL/SQL text.
- Modify the text.
- Save. Oracle Clinical returns to the Procedure Definitions window, sets the value in the Edited? field to selected, and re-parses the code.
- Enter a comment about why you edited the text.
- Click Back to return to the original window.
- From the Special menu, select View Parse Errors.
Parent topic: Testing and Activating Procedures
Testing a Procedure
Before making a Provisional Procedure active and running it against production data, you should test it (see Test Mode for information on Oracle Clinical's Test mode). You can then modify the Procedure components as necessary while the Procedure is still Provisional.
You can test the Procedure from either Procedure definition or study testing. You can view the results of testing Validation Procedures in the Test Discrepancy Database; from the Definition menu, select Test a Study, then choose Discrepancy Database. Unlike Production mode, in Test mode each time you run a test, the previous discrepancy data for that test is erased.
For more information, see:
Parent topic: Testing and Activating Procedures
Testing a Procedure from Definition
To test a Procedure from Definition, do the following:
Parent topic: Testing a Procedure
Testing a Procedure from Test a Study
To test a Procedure from Test a Study, from the Definition menu, select Test a Study, then Execute Single Procedure, and follow standard procedure for submitting batch jobs. To view the results:
-
See the .log and .out files in the procedure output files on the server.
-
See the discrepancies created by the Procedure in the Discrepancy Database by selecting Show Test Discrep from the Special menu in the Procedure Definition window. Alternatively, from the Conduct menu, select Data Validation, then Discrepancy Database.
Parent topic: Testing a Procedure
Assigning Procedure Status
Oracle Clinical automatically assigns a status of Provisional (P) to new or copied procedures. You can delete, modify, and test only Provisional Procedures. You can copy and run only Active (A) Procedures. Procedures you no longer want to run during batch validation should be set to Retired (R).
If you have the appropriate security privileges, you can:
-
Change a Provisional Procedure to Active.
-
Change a Retired Procedure back to Active.
-
Change an Active Procedure to Provisional (although this action deletes all discrepancies associated with the Procedure).
Note:
When a Procedure's status is changed from Active to Provisional, all discrepancies associated with it are deleted during the next batch validation run. To avoid this, create a new version of the Procedure from the Special menu."
To change the status, enter the appropriate letter (P, A, or R) in the Status field in the Procedure Definitions window.
Oracle Clinical runs all Active Procedures during each batch validation.
Parent topic: Testing and Activating Procedures
Assigning Standards Affiliation
After you have defined a Procedure in a study, generated and tested it, work with the Global Librarian to copy it into the Global Library so that you can use it in other studies. In the Global Library you can also assign it one or more standards affiliation types to identify its purpose, to mark the Procedure as Required (or not) in a study with a particular standards affiliation, and to make the Procedure easier to find for future reference. You cannot define Procedures in the Global Library. (See the Oracle Clinical Getting Started manual for information on the Global Library.)
Parent topic: Testing and Activating Procedures