366 lines
16 KiB
PHP
366 lines
16 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Dentaire";
|
|
|
|
$chirurgie = $_SESSION['p_chirurgie_C'];
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
|
|
$bonCaduc = $_SESSION['p_bonCaduc'];
|
|
$facture = $_SESSION['p_facture'];
|
|
$agePrescription = $_SESSION['p_agePrescription_f'];
|
|
|
|
$idCollege = $_SESSION['p_idCollege_C'];
|
|
|
|
?>
|
|
|
|
<INPUT class="sr-only" id="chirurgie_C" name="chirurgie_C" type="text" value="<?= $_SESSION['p_chirurgie_C'] ?>">
|
|
<INPUT class="sr-only" id="nomForm" name="nomForm" type="text" value="dentaire">
|
|
<input class="sr-only" id="idCollege" name="idCollege" type="text" value= "<?= $idCollege ?>">
|
|
|
|
<input class="sr-only" id="nbreProthese" name="nbreProthese" type="text" value= "<?= $nbreProthese ?>">
|
|
|
|
<input class="sr-only" id="codeActe" name="codeActe" type="text" value= "">
|
|
<input class="sr-only" id="libelleActe" name="libelleActe" type="text" value= "">
|
|
<input class="sr-only" id="prixTarif" name="prixTarif" type="text" value= "0">
|
|
<input class="sr-only" id="codeGarantie" name="codeGarantie" type="text" value= "DEN">
|
|
<input class="sr-only" id="acteExclu" name="acteExclu" type="text" value= "">
|
|
<input class="sr-only" id="ententePrealable" name="ententePrealable" type="text" value= "">
|
|
<INPUT class="sr-only" id="dateSurvenance" name="dateSurvenance" TYPE="text" value="<?= dateLang($this->nettoyer($datePrestation), $_SESSION['p_lang']) ?>" readonly >
|
|
|
|
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
|
|
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
|
|
|
|
<div id="div_contestation"></div>
|
|
<div id="div_statutacte"></div>
|
|
|
|
<legend> <?= _("Dentisterie") ?> </legend>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
|
|
<tbody>
|
|
<!--
|
|
<tr>
|
|
<td width="8%" > <?= _("Souscripteur") ?> </td>
|
|
<td width="20%">
|
|
<INPUT style='text-align:center; font-size:11pt;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
|
|
value="<?= $_SESSION['p_nomClient_C'] ?>" onChange="" readonly >
|
|
</td>
|
|
|
|
<td width="5%" align="center" > <?= _("Adhérent") ?> </td>
|
|
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_adherent_C']; ?>" readonly style="text-align: center; font-size:9pt;" > </td>
|
|
|
|
<td width="5%" align="center"> <?= _("Patient") ?> </td>
|
|
<td width="22%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_beneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
|
|
|
|
<td width="7%" align="center"> <?= _("Tél Patient") ?> </td>
|
|
<td width="13%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_telephonePortableBeneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
|
|
</tr>
|
|
-->
|
|
<tr>
|
|
<td colspan="8">
|
|
<INPUT style='font-size:12pt; font-weight: bold; background-color:#f5deb3 !important; color:#a0522d; text-align:center;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
|
|
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" onChange="" readonly >
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="15%" > Date </td>
|
|
<td width="20%" > <INPUT id="datePrescription" name="datePrescription" class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($datePrestation), $_SESSION['p_lang']) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
|
|
|
|
<td width="8%" align="center"> <?= _("Médecin") ?> </td>
|
|
<td>
|
|
<?php if ($bonCaduc=="1" || $facture=="1") : ?>
|
|
<INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_codeMedecin'] ?>" readonly style='font-size:10pt;'>
|
|
<?php else: ?>
|
|
<SELECT id="codeMedecin" class="form-control selectpicker" data-live-search="true" NAME="codeMedecin" style='font-size:10pt;' onchange="maj_medecin_dentaire();">
|
|
<?php liste_options($medecins, $_SESSION['p_codeMedecin'], true); ?>
|
|
</SELECT>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 14px;pt;font-weight: bold;" type="text" value="<?= _("Détail des soins dentaires") ?>" readonly > </td>
|
|
</div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php if($bonCaduc=='1' || $facture=='1'): ?>
|
|
<?php if ($facture=="1"): ?>
|
|
<tr>
|
|
<td colspan="6">
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("Dejà facturée !") ?> </H4>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php elseif($bonCaduc=="1"): ?>
|
|
<tr>
|
|
<td colspan="6">
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;" >
|
|
<H4> <?= " Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<tr >
|
|
<td width="15%" class="required"> <?= _("Renseignement Clinique") ?> </td>
|
|
<td colspan="5" > <input class="form-control" style="font-size:10pt;" type="text" id="motifDentaire" name="motifDentaire" value="<?= $dentiste['motifDentaire']; ?>" required autofocus onChange="javascript:verification_contestation();" placeholder="<?= _("Obligatoire avant de soumettre une demande d'accord préalable...")?>"></td>
|
|
<tr>
|
|
|
|
<tr>
|
|
<td class="required"> <?= _("Actes") ?> </td>
|
|
<td colspan="5">
|
|
<div class="frmSearch" style="position: relative;">
|
|
<input id="searchInput" name="searchInput" style="font-size:11pt; padding-left: 35px;" class="form-control" type="text" placeholder="<?= _("Effectuer une recherche...") ?>" autofocus required AUTOCOMPLETE="OFF">
|
|
<i class="fas fa-search" style="position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #999;"></i>
|
|
<div id="div_selection"></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="required"> <?= _("N° Dent") ?> </td>
|
|
<td >
|
|
<SELECT class="form-control selectpicker" data-live-search="true" id="numeroDent" NAME="numeroDent" required style='font-size:10pt;' >
|
|
<?php liste_options($dents,'',true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td> </td>
|
|
<td>
|
|
<button type="button" class="form-control btn btn-primary" style='font-size:10pt;' onClick="javascript:ajoute_dentaire();" > <?= _("Ajouter") ?> </button>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_legende_couleur" style="width:100%; margin: 5px;">
|
|
<table class="table-responsive" style="width:50%; margin:auto;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="font-weight:bold; text-align:left; background-color:#f8f8ff; text-decoration-line: underline;"> <?= _("Légende").":"; ?></td>
|
|
|
|
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"> <?= _("Attente réponse:") ?></td>
|
|
<td width="4%" style="background-color:yellow"></td>
|
|
<td width="2%" style="background-color:#f8f8ff;"></td>
|
|
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"><?= _("Accord assureur:") ?></td>
|
|
<td width="4%" style="background-color: #00ff00"></td>
|
|
<td width="2%" style="background-color:#f8f8ff;"></td>
|
|
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"><?= _("Non garanti / refus:") ?></td>
|
|
<td width="4%" style="background-color: red;"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des prestations") ?>" readonly > </td>
|
|
</div>
|
|
|
|
<div id="div_prestations" >
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <?= _("Suppr") ?> </th>
|
|
<th style="text-align:center"> <?= _("Actes (".count($prestations).")") ?> </th>
|
|
<th style="text-align:center"> <?= _("N° Dent") ?> </th>
|
|
<th style="text-align:center"> <?= _("Accord") ?> </th>
|
|
<th style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<th style="text-align:center"> <?= _("Montant TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Rembourser") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="6" style='text-align:center'> Total </td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['fraisReel'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantArembourser'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['depassement'])) ?></td>
|
|
<td></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
$existeEntentePrealable = '0';
|
|
$envoyeSms = '0';
|
|
foreach ($prestations as $prestation):
|
|
$idPrestationactes=$this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation=$this->nettoyer($prestation['codeTypePrestation']);
|
|
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation=$this->nettoyer($prestation['autorisation']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
|
|
$prixTarif = $this->nettoyer($prestation['prixTarif']);
|
|
|
|
$ententePrealable = $this->nettoyer($prestation['ententePrealable']);
|
|
$envoyeSms = $this->nettoyer($prestation['envoyeSms']);
|
|
|
|
if($ententePrealable == "2"){
|
|
$existeEntentePrealable = $ententePrealable;
|
|
}
|
|
|
|
$envoyeSms++;
|
|
?>
|
|
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
|
|
<tr valign="top" style="background-color: #00ff00;">
|
|
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<?php if ($ententePrealable!='1' && $ententePrealable!='9'): ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="X" onClick="javascript:supprimer_acte_dentaire_selection('<?= $idPrestationactes ?>');"> </td>
|
|
<?php else: ?>
|
|
<td> </td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= $libelleActe ?> </td>
|
|
|
|
<td align='center'> <?= $this->nettoyer($prestation['numeroDent']) ?> </td>
|
|
|
|
<?php if($ententePrealable<>"0"): ?>
|
|
<?php if($ententePrealable=='2'): ?>
|
|
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" checked disabled> </td>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<td align='center' > <input type="checkbox" disabled></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($facture=='1' || $bonCaduc=='1'): ?>
|
|
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($prestation['valeurActe'])); ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td align='center'><?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
|
|
<?php else: ?>
|
|
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($prestation['valeurActe'])); ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td align='center'>
|
|
<?= $this->nettoyer($prestation['quantite']) ?>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['depassement'])) ?></td>
|
|
<?php if($codeMotifDepassement!=''): ?>
|
|
<td align='center'>
|
|
<button type="button" class="btn btn-info" title="Voir le motif du dépassement..." onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
|
|
<?= $codeMotifDepassement ?>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td > </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="11" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<input class="sr-only" type="text" id="existeEntentePrealable" name="existeEntentePrealable" value="<?= $existeEntentePrealable ?>" >
|
|
<input class="sr-only" type="text" id="envoyeSms" name="envoyeSms" value="<?= $envoyeSms ?>" >
|
|
</div>
|
|
|
|
|
|
<div class="modal fade" id="popRechercheMedecin" 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"><?= _("Rechercher un Médecin...") ?></h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_listemedecins" onkeypress="javascript:ctrlkeypress_medecin(event);">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" width="15%" > Code </th>
|
|
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
|
|
<th style="text-align:center" > <?= _("Spécialité") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><input type="text" class="form-control" id="noOrdreMedecin" name="noOrdreMedecin" autofocus style='font-size:10pt;' ></td>
|
|
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:10pt;' ></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medecin();" /></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>
|
|
|
|
|
|
|