CohortExplorer::Application::OpenClinica::Datasource - CohortExplorer class to initialize datasource stored under OpenClinica framework
The class is inherited from CohortExplorer::Datasource and overrides the following methods:
This method authenticates the user by performing POST request against the OpenClinica database. The successful POST is followed by SQL query to retrieve user's role and crfs within the study/datasource.
The method runs a SQL query to determine the datasource type (i.e. standard/cross-sectional or longitudinal). For longitudinal datasources the method attempts to set static_tables (i.e. non repeating CRFs).
static_tables
This method returns a hash ref defining the entity structure. The method uses a combination of study_event_definition.oc_oid and study_event.sample_ordinal columns to define visit column for the longitudinal datasources.
study_event_definition.oc_oid
study_event.sample_ordinal
visit
This method returns a hash ref defining the table structure. -columns key within the table structure includes table attributes such as table, variable_count, version, description and events.
-columns
table
variable_count
version
description
events
This method returns a hash ref defining the variable structure. The variable attributes include columns such as variable, table, unit, type, category, default_value, description, unit and label.
variable
unit
type
category
default_value
label
This method returns variable type to SQL type mapping.
At present the application only supports querying of OpenClinica instances that are implemented in PostgreSQL. In future, the application will be available with support for Oracle databases.
CohortExplorer
CohortExplorer::Datasource
CohortExplorer::Command::Describe
CohortExplorer::Command::Find
CohortExplorer::Command::History
CohortExplorer::Command::Query::Search
CohortExplorer::Command::Query::Compare
Copyright (c) 2013 Abhishek Dixit (adixit@cpan.org). All rights reserved.
This program is free software: you can redistribute it and/or modify it under the terms of either:
the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, or
the "Artistic Licence".
Abhishek Dixit
To install CohortExplorer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CohortExplorer
CPAN shell
perl -MCPAN -e shell install CohortExplorer
For more information on module installation, please visit the detailed CPAN module installation guide.