require $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'include/care_api_classes/class_tz_arv_patient.php';
require_once $root_path . 'include/care_api_classes/class_eye_clinic.php';
//-------------------------------------------------------------------------------------------------------
/**
* CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
* GNU General Public License
*
* See the file "copy_notice.txt" for the licence notice
*/
//-------------------------------------------------------------------------------------------------------------------------------------
$o_arv_patient =& new ART_patient($_REQUEST['pid'], $_REQUEST['registration_id']);
$registration_data = $o_arv_patient->getRegistrationData();
global $vart1, $vart2, $vart3, $valt1, $valt2, $valt3, $signature;
$eyeclinic = new eyeclinic();
$eyeclinic->setiprt1($_POST['iprt1']);
$iprt1 = $eyeclinic->getiprt1();
$eyeclinic->setiplt1($_POST['iplt1']);
$iplt1 = $eyeclinic->getiplt1();
$eyeclinic->setipt2($_POST['ipt2']);
$ipt2 = $eyeclinic->getipt2();
$eyeclinic->setsignature($_POST['signature']);
$signature = $eyeclinic->getsignature();
$eyeclinic->setpid($_POST['pid']);
$pid = $eyeclinic->getpid();
$connection = $eyeclinic->dbconnect();
$eyeclinic->dbselect();
if (isset($_POST['addtest2'])) {
    //echo 'add eyeclinic information to the database';
    $add = $eyeclinic->addTest2($pid, $iprt1, $iplt1, $ipt2, $signature);
    if ($add == true) {