<?php
/**************************************************************************
 *
 * LOVD DATABASE WEBSITE
 *
 * Created     : 2008-07-24
 * Modified    : 2008-07-24
 * For LOVD    : 2.0-09
 *
 * Access      : Public
 *
 * Programmer  : Ing. Ivo F.A.C. Fokkema <I.F.A.C.Fokkema@LUMC.nl>
 * Last edited : Ing. Ivo F.A.C. Fokkema <I.F.A.C.Fokkema@LUMC.nl>
 *
 *************/

define('ROOT_PATH', '../../');
define('DOCS_PATH', ROOT_PATH . 'docs/');
require DOCS_PATH . 'inc-website-init.php';
require ROOT_PATH . 'inc-top.php';
?>

            <H3>Variant and patient data</H3>
            <H4>Deleting variant or patient data</H4>

            Variants can be deleted from a patient one by one, until the patient has no variants left in which case the patient record will be deleted also. If a patient is deleted, all variant data connected to the patient will be deleted automatically.<BR>
            <BR>

            <H5>Deleting variant data</H5>

            Variant data can only be deleted by authorized users that have access to the gene containing the variant (appointed curator, manager or the database administrator).<BR>
            <BR>

            To delete the variant information, go through any of the available <A href="<?php echo DOCS_PATH; ?>variant_and_patient_data/viewing_and_searching_variant_and_patient_data.php">variant listings</A> and find the variant you're looking for. Click the variant (if you were on the unique variant listing, you'll need to click again to select the variant belonging to the correct patient) to go to the detailed view. Below the variant data table, click the "Delete variant from submission" link and confirm with your password.<BR>
            <BR>

<?php lovd_showInfoTable('Remember that deleting a patient\'s last variant will also remove the patient entry!', 'warning'); ?>

            <H5>Deleting patient data (deletes the whole submission)</H5>

            Patients can only be deleted by authorized users that have access to the gene(s) containing the patient's variant(s) (appointed curator, manager or the database administrator). However, if the patient has variants in more than one gene, curator-level users can only delete the patient if they are appointed to all of the patient's genes.<BR>
            <BR>

            To delete the complete submission, go through any of the available <A href="<?php echo DOCS_PATH; ?>variant_and_patient_data/viewing_and_searching_variant_and_patient_data.php">variant listings</A> and find the submission you're looking for. Click the entry to go to the detailed view. Below the patient data table, click the "Delete complete submission" link and confirm with your password.<BR>
            <BR>

<?php
include ROOT_PATH . 'inc-bot.php';
?>
