Skip Headers
Oracle® Clinical Remote Data Capture Onsite Administrator's Guide
Release 4.6.2

Part Number E18823-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

13 Generating Reports from the Command Line

In the RDC Onsite application, you can use the Reports page to define report parameters, and generate Patient Data Reports and Blank Casebook Reports. In addition, RDC Onsite includes a DOS command-line interface for generating either a Patient Data Report or a Blank Casebook Report from the command line.

Generating reports from the command line can be useful when producing electronic submissions for new drug applications (NDAs). Adding the commands to a batch file lets you generate many Patient Data Reports at once.

This chapter includes the following topics:

13.1 Configuring Desktop PDR for Report Generation

For every desktop where a user must be able to generate Patient Data Reports or Blank Casebook Reports from the command line, you must:

13.1.1 Contents of the desktoppdr Folder

During the installation of Oracle Clinical, the system creates a desktoppdr folder in the installation directory.

The desktoppdr folder has the following files:

  • charsets.jar, olsablankpdr.jar, and olsapdr.jar — Java ARchive (JAR) files containing the required class files for generating Patient Data Reports and Blank Casebook Reports.

  • RunBlankCasebook.cmd — Command file used to generate a Blank Casebook Report from the command line.

  • RunPDR.cmd — Command file used to generate a Patient Data Report from the command line.

  • xdo.cfg — Configuration file with information about the Arial font generation in the reports.

Figure 13-1 Sample PC Desktop Showing the desktoppdr Folder

Description of Figure 13-1 follows
Description of "Figure 13-1 Sample PC Desktop Showing the desktoppdr Folder"

13.1.2 Installing the Java Runtime Environment

You must install the Java Runtime Environment (JRE) onto the PC desktop if it is not already installed.

The desktop PDR supports Java SE 6 Update 17 (Standard Edition, Version 1.6.0.17) or later.

You can download the current JRE from the Oracle Web site at this URL:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

13.1.3 Copying the Files in the desktoppdr Folder

Copy the desktoppdr folder and its files to the RDC directory on your PC desktop. For example:

C:\opapps46\rdc

In addition, you need to copy the xdo.cfg file from the desktoppdr folder to the directory where you installed the JRE. For more information, see Section 13.1.4, "Copying and Modifying the xdo.cfg File."

13.1.4 Copying and Modifying the xdo.cfg File

The xdo.cfg file stores system information about the Arial font, which is the font used by the Patient Data Report and the Blank Casebook Report.

During the installation of the Reports Server component of Oracle Clinical, the system automatically creates and copies the xdo.cfg file to the following location:

RS_Install_Directory/jdk/jre/lib

In addition, any PC that will be used to generate reports from the command line must have a copy of the xdo.cfg file in the JRE installation directory on the desktop. You must also edit the file to define the location of the Windows directory.

To copy and modify the xdo.cfg file: 

  1. Copy the xdo.cfg file to the following directory where you installed the JRE on your PC desktop:

    JRE_Install_Directory/jdk/jre/lib

  2. Open the xdo.cfg file with a text editor.

  3. Locate the following two lines in the file:

    <truetype path="%OUI_WIN_DIR%\fonts\Arial.ttf" />

    <truetype path="%OUI_WIN_DIR%\fonts\arialbd.ttf" />

  4. Replace each occurrence of the %OUI_WIN_DIR% variable with the location of the Windows directory on your PC.

    For example:

    <truetype path="C:\WINDOWS\fonts\Arial.ttf" />

13.1.5 Modifying the RunPDR.cmd File

To modify the RunPDR.cmd file: 

  1. Navigate to the desktoppdr folder on your PC.

  2. Open the RunPDR.cmd file with a text editor.

  3. Modify the following lines in the file:

    1. set JAVA_CMD to the directory path where you installed the JRE. For example:

      set JAVA_CMD=C:\Progra~1\Java\jre\bin\java

    2. set JAR_PATH to the directory path where you installed the JAR files (charsets.jar, olsapdr.jar, and olsablankpdr.jar). For example:

      set JAR_PATH=C:\OLSAPDR

    3. set DB_CONNECT_STRING in the following format to specify the database connection:

      host-name:port-number:database-sid

      For example, if you have a database with sid, proddb, that is installed on the prodserver host machine at port number 1532, then you define your database connection string as follow:

      set DB_CONNECTION=prodserver:1532:proddb

    4. In the command line, add the -Xms and the -Xmx options to set the initial and maximum amount of memory for the report generation. For example:

      %JAVA_CMD% -classpath %CLASSPATH% -Xms64M -Xmx512M %JAV…

      For more information on these options, see Section 13.1.7, "Adjusting the Heap Size for the Java Virtual Machine (JVM)."

  4. Save your changes.

  5. Copy and rename the RunPDR.cmd file for every database that your users need to connect to and access. For example, if your users need to connect to a production database and a test database, create the following two new files: RunPDRprod.cmd and RunPDRtest.cmd.

  6. Open each copy of the RunPDR.cmd file.

    1. Modify the set DB_CONNECT_STRING parameter for each database connection.

    2. Save your changes.

13.1.6 Modifying the RunBlankCasebook.cmd File

To modify the RunBlankCasebook.cmd file: 

  1. Navigate to the desktoppdr folder on your PC.

  2. Open the RunBlankCasebook.cmd file with a text editor.

  3. Modify the following lines in the file:

    1. set JAVA_CMD to the directory path where you installed the JRE. For example:

      set JAVA_CMD=C:\Progra~1\Java\jre\bin\java

    2. set JAR_PATH to the directory path where you installed the JAR files (charsets.jar, olsapdr.jar, and olsablankpdr.jar). For example:

      set JAR_PATH=C:\OLSAPDR

    3. Use the following lines to specify the database connection:

      set HOST=host-nameset PORT=port-numberset SID=database-sid

    4. In the command line, add the -Xms and the -Xmx options to set the initial and maximum amount of memory for the report generation. For example:

      %JAVA_CMD% -classpath %CLASSPATH% -Xms64M -Xmx512M %JAV…

      For more information on these options, see Section 13.1.7, "Adjusting the Heap Size for the Java Virtual Machine (JVM)."

  4. Save your changes.

  5. Copy and rename the RunBlankCasebook.cmd file for every database that your users need to connect to and access. For example, if your users need to connect to a production database and a test database, create the following two new files:

    • RunBlankCasebookprod.cmd

    • RunBlankCasebooktest.cmd

  6. Open each copy of the RunBlankCasebook.cmd file.

    1. Modify the set HOST, set PORT, and set SID parameters for each database connection.

    2. Save your changes.

13.1.7 Adjusting the Heap Size for the Java Virtual Machine (JVM)

Report generation may fail with an OutOfMemoryError message. This failure occurs when the Java program needs more memory than the amount currently allocated. As the number of pages in the Patient Data Reports and the Blank Casebook Reports increases, you may need to increase the JVM heap size accordingly.

To support large reports, use the following JVM options to specify the heap size:

  • Use the -Xms option to set the initial amount of memory allocated for the program.

  • Use the -Xmx option to set the maximum amount of memory that can be allocated for the program.

As a benchmark, Oracle has successfully generated a 4000-page report with an allocation of 512M.

13.1.7.1 Adjusting JVM Heap Size Options for the Desktop

To adjust the heap size available for reports generated from the command line, you need to modify the RunPDR.cmd file (for Patient Data Reports) and the RunBlankCasebook.cmd file (for Blank Casebook Reports).

To adjust the heap size in the files: 

  1. Open the RunPDR.cmd file or the RunBlankCasebook.cmd file.

  2. Locate the following line in the file:

    %JAVA_CMD% -classpath %CLASSPATH% …

  3. Add the -Xms and -Xmx options to the line. For example:

    %JAVA_CMD% -classpath %CLASSPATH% -Xms64M -Xmx512M %JAVA…

    Substitute the 64M value for the initial amount of memory to allocate, and the 512M value for the maximum amount of memory to allocate.

  4. Save your changes.

13.1.7.2 Adjusting JVM Heap Size Options on the Reports Server

You can adjust the heap size available to reports generated from either the RDC Onsite or the Oracle Clinical application.

To adjust the heap size on the Reports Server: 

  1. Log in to Oracle Enterprise Manager 10g Application Server Control.

  2. Click the name of the Reports Server (for example, oclw2k36) in the System Components table.

  3. Click the Configuration link in the Administration section. The system opens the Configuration page and displays the Reports Engine Parameters section. Description of pdr_heapsize01.gif follows
    Description of the illustration pdr_heapsize01.gif

  4. Click the JVM Option field. Set the appropriate values for the JVM heap size options as follows:

    -Xms64M -Xmx512M

    Substitute the 64M value for the initial amount of memory to allocate, and the 512M value for the maximum amount of memory to allocate.

  5. Click OK to save your changes. The system prompts for confirmation to restart the Reports Server now.

  6. Click Yes. You must restart the Reports Server before your changes to the JVM heap size will take effect.

    When the system confirms that the Reports Server has been restarted, click OK.

13.2 Generating a Patient Data Report from the Command Line

You can generate a Patient Data Report by issuing the RunPDR command from the Microsoft Windows command line.

You enter the RunPDR command in the following format:

RunPDR.cmd -st study [-si study_site] [-p patient] [-bk DCI_Book] -l folder_location -u user [-pw password] [-aud] [-disc] [-debug] [-trace] [-nobm] [-o orientation] [-test]

13.2.1 Displaying the Command Syntax

To display the syntax for the command: 

  1. Type RunPDR on the command line.

  2. Press Enter.

13.2.2 Parameters for the RunPDR Command

Table 13-1 describes the required and optional parameters for the RunPDR command.

Table 13-1 Parameters for the RunPDR Command

Parameter Required? Description

-st study

Yes

Runs the Patient Data Report for the specified study. The system produces a separate PDF report file for each patient.

-si study_site

No

Runs a report for all patients currently assigned to the specified study site. If you do not specify a site, the system runs the report for all patients assigned to those study sites that your user role has privileges to access. The system produces a separate PDF report file for each patient.

-p patient

No

Runs a report for the specified patient only. If you do not specify a patient, the system runs a report for all patients in the specified study and sites.

-bk DCI_Book

No

Denotes the DCI Book (casebook) to use for any CRF that was not entered against a casebook. Note that:

  • If you do not specify this parameter and a CRF was not entered against a DCI Book, the system uses the casebook assigned to the patient.

  • If no casebook is assigned to the patient, the system uses the default casebook for the study.

  • If no default casebook exists for the study, the system uses the first active DCI Book, in alphabetical order, for the study.

-l folder_location

Yes

Specifies the directory where the system saves the PDF file created for each report, and the log files created during the generation of the report.

In addition, the system uses this directory to write the debug information if you include the -debug parameter on the command line. The directory that you specify must already exist. If the directory does not exist, the command fails and displays an error message that the folder is invalid.

-u user

Yes

Specifies your user name for logging in to the Oracle Clinical database.

-pw password

No

Specifies your password for logging in to the Oracle Clinical database. When you use this parameter, your password is visible on the screen.

If you do not use this parameter, the system prompts you for your password. Asterisks mask your password as you type it. For security reasons, Oracle recommends that you do not specify your password directly on the command line.

-aud

No

Includes audit information in the report.

-disc

No

Includes discrepancy information in the report.

-debug

No

Leaves data in temporary tables and outputs files to the directory that you specified with the -l folder_location parameter. This data is useful when working with customer support to debug an issue. After you resolve the issue and the debug information is no longer necessary, be sure you truncate the temporary pdr_temp and pdr_superscripts tables.

-trace

No

Turns on database trace and creates a trace file during the execution of the report. Trace data is useful when debugging performance problems. The system saves the trace file in the directory specified in the init.ora file of the database. Check with your database administrator for the location.

-nobm

No

Does not create the bookmarks or a table of contents for the report.

-o orientation

No

Denotes the orientation of the pages in the cover, table of contents, ancillary data sections, and appendixes. Valid entries are:

  • P = portrait (default)

  • L = landscape

-test

No

Runs the report in test mode for test data. The report uses provisional DCI form versions in place of active ones when the provisional versions exist.


13.3 Generating a Blank Casebook Report from the Command Line

You can generate a Blank Casebook Report by issuing the RunBlankCasebook command from the Microsoft Windows command line.

You enter the RunBlankCasebook command in the following format:

RunBlankCasebook.cmd -st study [-p patient] -bk DCI_Book -l folder_location -u user [-pw password] [-debug] [-trace] [-o orientation]

13.3.1 Displaying the Syntax for the RunBlankCasebook Command

To display the syntax for the command: 

  1. Type RunBlankCasebook on the command line.

  2. Press Enter.

13.3.2 Parameters for the RunBlankCasebook Command

Table 13-2 describes the required and optional parameters for the RunBlankCasebook command.

Table 13-2 Parameters for the RunBlankCasebook Commands

Parameter Required? Description

-st study

Yes

Specifies the name of the study to use for the generated report.

  • If you do not include the -p patient parameter, the system generates a Blank Casebook Report for the casebook defined in the -bk DCI_Book parameter.

  • If you include the -p patient parameter, the system generates a Blank Casebook Report that is specific to a particular patient.

-p patient

No

Specifies a unique patient number (ID). The system generates a Blank Casebook Report that is specific to the specified patient.

-bk DCI_Book

Yes

Specifies the name of the DCI Book (casebook) to use for the generated report.

Note that for a patient-specific report, this value may not match the casebook assigned to the specified patient.

-l folder_location

Yes

Specifies the directory where the system saves the PDF file created for each report, and the log files created during the generation of the report.

In addition, the system uses this directory to write the debug information if you include the -debug parameter on the command line. The directory that you specify must already exist. If the directory you specify does not exist, the command fails and displays an error message that the folder is invalid.

-u user

Yes

Specifies your user name for logging in to the Oracle Clinical database.

-pw password

No

Specifies your password for logging in to the Oracle Clinical database. When you use this parameter, your password is visible on the screen.

If you do not use the -pw parameter, the system prompts you for your password. Asterisks mask your password as you type it. For security reasons, Oracle recommends that you do not specify your password directly on the command line.

-debug

No

Leaves data in temporary tables and outputs files to the directory that you specified with the -l folder_location parameter. This data is useful when working with customer support to debug an issue. After you resolve the issue and the debug information is no longer necessary, be sure you truncate the temporary pdr_temp and pdr_superscripts tables.

-trace

No

Turns on database trace and creates a trace file during the execution of the report. Trace data is useful when debugging performance problems. The system saves the trace file in the directory specified in the init.ora file of the database. Check with your database administrator for the location.

-o orientation

No

Denotes the orientation of the pages in the cover, table of contents, ancillary data sections, and appendixes. Valid entries are:

  • P = portrait (default)

  • L = landscape


13.4 File Names for Reports Generated from the Command Line

The output file name for the Patient Data Report and the Blank Casebook Report uses the following format:

crf--STUDY--SITE--PATIENT.pdf

where STUDY, SITE, and PATIENT are the study name, the site ID, and the patient number.

Example: crf--demo2--a9898--b205.pdf

Note:

If you generate a Blank Casebook Report that is not specific to a patient, the PDF file name does not include the site and patient information. In this case, the output file name has this format:

crf--STUDY.pdf

About the File Naming Conventions

The file naming conventions follow the PDF specifications defined by the United States Food and drug Administration (FDA).

In addition, these naming conventions comply not only with the FDA guidelines, but also with Image Solutions eCTD Express tool for publishing eSubmissions.