<?php
session_start();

include('accesscheck2.php');
require_once('Connections/courier.php');
require_once 'functions/functions.php';

list($patient_no, $id) = explode("@@@", mysql_real_escape_string($_POST['id']));
$process_claim_no = mysql_real_escape_string($_POST['no']);
$medical_note_id = '';
$PROVIDERID = $_SESSION['provider_id'];

$check = mysql_query("SELECT * FROM process_claim_no WHERE patient_id = '$id' AND old_folder='yes'");
if(mysql_num_rows($check) > 0){
    $details = mysql_fetch_assoc($check);
    $process_claim_no = $details['process_claim_no'];
    $patient_no = $details['patient_no'];
}
else{
require 'process_visit_no.php';
}
include 'patient_header_details.php'; 
?>

<!--<form name="form" id="form" method="POST">-->
<div class="row">
    <div class="col-md-12 col-sm-12" id="patient_sub_page">
                            <div class="portlet light tasks-widget bordered" style="min-height: 400px;">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="icon-share font-dark hide"></i>
                                        <span class="caption-subject font-dark bold uppercase"> <span class="badge badge-info"> 
                                            <?php if($action == 'view_medical_history_details'){ echo '<i class="fa fa-user"></i>';} else{ echo '<i class="fa fa-plus-square"></i>';} ?>  </span> PATIENT CONSULTATION</span>
                                    </div>
                                </div>
                                <div class="portlet-body">
                                    <input type="hidden" value="<?php echo $medical_note_id; ?>" name="medical_note_id" id="medical_note_id">
                                    <div id="medical_history_all" style="display:block;">
                                        <?php
                                        include ('medical_history_query_diagnosis.php');
                                        ?>
                                    </div>
                                </div>
</div>
</div>
</div>
    
   
    
<!--</form>-->