prestation/Vue/Dossiers/index.php
2025-12-01 18:54:33 +00:00

217 lines
9.9 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Historique Dossiers";
$_SESSION['p_nbTentative'] = "0";
$okId = $_SESSION['p_okId'];
$age = $_SESSION['p_ageBeneficiaire_C'];
$estidentifiable = ($age>6);
?>
<button class="sr-only" id="btn_popdate_reelle" name="btn_popdate_reelle" type="button" data-bs-toggle="modal" data-bs-target="#popdate_reelle" > </button>
<legend> <?= _("Historique des dossiers médicaux du patient") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("Période du") ?> </td>
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d1" NAME="d1" value="<?= dateLang($_SESSION['p_2s_C'], $_SESSION['p_lang']) ?>" required AUTOCOMPLETE="OFF" ></td>
<td width="10%" align="center" > <?= _("au") ?> </td>
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d2" NAME="d2" value="<?= dateLang($_SESSION['p_d2_C'], $_SESSION['p_lang']) ?>" required AUTOCOMPLETE="OFF" ></td>
<td> </td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listerdossier();"> <?= _("Actualiser...") ?> </button> </td>
</tr>
</tbody>
</table>
<div id="div_legende_couleur" style="width:100%; margin: 15px; background-color: #f8f8ff;" class="tab-container">
<table class="table-responsive" style="width:25%; margin:auto; background-color: #f8f8ff; font-size:10pt; white-space:nowrap;">
<tbody>
<tr>
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff; text-decoration-line: underline;"> <?= _("Légende").":"; ?></td>
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;"> <?= _("Déjà facturé"); ?></td>
<td width="1%" style="background-color: #f8f8ff"></td>
<td width="7%" style="background-color: blue"></td >
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;" ><?= _("Non facturé"); ?></td>
<td style="background-color: red"></td>
<td width="7%" style="background-color: red;"></td >
</tr>
</tbody>
</table>
</div>
<div id="div_dossiers">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("No Dossier") ?> </th>
<th style='text-align:center'> Date </th>
<th style='text-align:center'> <?= _("No Bon") ?> </th>
<th style='text-align:center'> <?= _("Médecin") ?> </th>
<th style='text-align:center'> <?= _("Acte médical") ?> </th>
<th style='text-align:center'> <?= _("Spécialité") ?> </th>
<th style='text-align:center'> <?= _("Frais Total") ?> </th>
<th style='text-align:center'> <?= _("Montant TM") ?> </th>
<th style='text-align:center'> <?= _("A Rembourser") ?> </th>
<th style='text-align:center'> <?= _("Remboursé") ?> </th>
<th style='text-align:center'> <?= _("Constesté") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($feuillemaladies as $feuillemaladie):
$numeroFeuilleMaladie = $this->nettoyer($feuillemaladie['numeroFeuilleMaladie']);
$numeroBonConsultation = $this->nettoyer($feuillemaladie['numeroBonConsultation']);
$facture = $feuillemaladie['facture'];
$libelleActe = $this->nettoyer($feuillemaladie['libelleActe']);
$codeSpecialite = $this->nettoyer($feuillemaladie['codeSpecialite']);
$specialite = $this->nettoyer($feuillemaladie['specialite']);
$contestation = $this->nettoyer($feuillemaladie['contestation']);
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
$libelleActe = $this->nettoyer($feuillemaladie['libelleActeEng']);
$specialite = $this->nettoyer($feuillemaladie['specialiteEng']);
}
?>
<tr valign="top">
<?php if ($facture=="1"): ?>
<td align="center">
<input class="form-control btn" type="button" value="<?= $numeroFeuilleMaladie ?>"
onClick="javascript:selectionner_feuille_maladie('<?= $numeroFeuilleMaladie ?>');afficher_feuille_maladie();" style="background-color:blue; color:white;">
</td>
<?php else: ?>
<td align="center">
<input class="form-control btn" type="button" value="<?= $numeroFeuilleMaladie ?>"
onClick="javascript:selectionner_feuille_maladie('<?= $numeroFeuilleMaladie ?>');afficher_feuille_maladie();" style="background-color:red; color:white;">
</td>
<?php endif; ?>
<td align='center'><?= dateheureLang($this->nettoyer($feuillemaladie['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($feuillemaladie['numeroBonConsultation']) ?></td>
<td><?= $this->nettoyer($feuillemaladie['medecinConsultation']) ?></td>
<!--<td align='center'><?= format_N($this->nettoyer($feuillemaladie['fraisReelBase'])) ?></td>-->
<td align='center'><?= $libelleActe ?>
<td><?= $specialite ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantArembourser'])) ?></td>
<!--<td align='center'><?= format_N($this->nettoyer($feuillemaladie['depassement'])) ?></td>-->
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantRembourse'])) ?></td>
<?php if($contestation=="1"):?>
<td align='center'> <input type="checkbox" checked disabled style='font-size:8pt;' ></td>
<?php else:?>
<td align='center'> <input type="checkbox" disabled style='font-size:8pt;' ></td>
<?php endif;?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php if ($okId!="1"): ?>
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<?php if ($estidentifiable) : ?>
<?php if ($_SESSION['p_finger_id_C']==0) : ?>
<td align="center" width="40%">
<a onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['p_user_id_C'] ?>&user_name=<?= trim($_SESSION['p_beneficiaire_C']) ?>&finger=<?= $_SESSION['p_finger_id_C'] ?>');" >
<img src="Bootstrap/images/image_empreinte.jpg">
</a>
</td>
<td>
<INPUT class="form-control btn btn-danger" style='font-size:10pt;' TYPE="button"
onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['p_user_id_C'] ?>&user_name=<?= trim($_SESSION['p_beneficiaire_C']) ?>&finger=<?= $_SESSION['p_finger_id_C'] ?>');"
value="<?= _("Enrôler...") ?>">
</td>
<?php else: ?>
<td align="center" width="40%">
<a onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['p_user_id_C'] ?>&user_name=<?= trim($_SESSION['p_beneficiaire_C']) ?>&finger=<?= $_SESSION['p_finger_id_C'] ?>');" >
<img src="Bootstrap/images/image_empreinte.jpg">
</a>
</td>
<td>
<INPUT class="form-control btn btn-primary" style='font-size:10pt;' TYPE="button"
onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['p_user_id_C'] ?>&user_name=<?= trim($_SESSION['p_beneficiaire_C']) ?>&finger=<?= $_SESSION['p_finger_id_C'] ?>');"
value="<?= _("Vérifier Identité...") ?>">
</td>
<?php endif; ?>
<?php else: ?>
<td align="center" width="40%">
<a onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['p_user_id_C'] ?>&user_name=<?= trim($_SESSION['p_beneficiaire_C']) ?>&finger=-1');" >
<img src="Bootstrap/images/image_empreinte.jpg">
</a>
</td>
<td>
<INPUT class="form-control btn btn-primary" style='font-size:10pt;' TYPE="button"
onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['p_user_id_C'] ?>&user_name=<?= trim($_SESSION['p_beneficiaire_C']) ?>&finger=-1');"
value="<?= _("Voir les substituts...") ?>">
</td>
<?php endif; ?>
</tr>
</tbody>
</table>
</div>
<div id="div_err">
<INPUT class="sr-only" TYPE="text" id="nbTentative" name="nbTentative" value="0">
</div>
<div id="loadingDiv" style="display: none">
<div class="ajax-mask"><div class="loading"><img src="Bootstrap/images/loading-spinner-grey.gif"/> <?= _("Veuillez patienter...") ?> </span></div></div>
</div>
<?php endif; ?>
<div class="modal fade" id="popdate_reelle" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Date Effective") ?> </h4>
</div>
<div class="modal-body">
<div id="div_date_reelle">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td> <?= _("Date Effective") ?> </td>
<td width="30%" colspan="3"> <INPUT style='text-align:center; font-size:11pt;' class="form-control datepicker" TYPE="text" id="dateFactureReelle" NAME="dateFactureReelle" value="" required AUTOCOMPLETE="OFF" > </td>
<td> </td>
<td> <input class = "form-control btn btn-primary" type="button" value="<?= _("Valider...") ?>" onClick="javascript:consultation_assureur();" style='font-size:11pt;' > </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>