Accrual to Clinical Trials
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A file that contains key/values such as the PM service credentials, PM URL, SHRINE web client URL, etc.The registration processor (e.g. register.php) is used to capture three required parameters that the i2b2 PM cell needs in order to register a user via web services. Specifically, a user registration form at your institution should capture at least three required fields: usernameemail, and fullname. See the Registration Form UI page for details on capturing and submitting these parameters to the registration processor.

Code Block
languagephp
themeMidnight
titleconfigExample register.php
<?php
/**/ Input *parameters Configuration File for ACTusername, SHRiNEemail, and *fullname @namefrom the registration form
$user_name =  config.php
 * @category   ACT SHRINE at Partners 
 * @author     
 * @copyright  2018 Partners Healthcare
 * @version    1.0
 * @updated    September 14, 2017
 */
 
$i2b2_pm_uri = "http://yourPM:9090/i2b2/services/PMService/getServices";
$i2b2_domain = "yourDomain";
$i2b2_service_account_id = "APP_SERVICE_ACCOUNT";
$i2b2_service_account_pw = "***";
$config_start_project_id = 'SHRINE_ACT'; 
$config_status_URI = '';

?>$_POST['username'];
$email = $_POST['email'];
$full_name = $_POST['fullname'];
 
// Check that a user is not already registered to the SHRINE project
$project_id = 'My_SHRINE_Project';
$user_is_registered = i2b2_get_role($user_name, $project_id);


?>

 

You can follow the example Logic Workflow to construct your user registration process at your institution. Included below are example PHP functions that will help you get started.

 

Children Display
alltrue