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: username, email, and fullname. See the Registration Form UI page for details on capturing and submitting these parameters to the registration processor.
<?php // Input parameters for username, email, and fullname from the registration form $user_name = $_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.