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

184 lines
9.1 KiB
PHP

<?php
// $this->titre = "INTER-SANTE - Facture classique : Consultation";
$idDossierClassique = $_SESSION['idDossierClassique'] ;
$numeroFacture = $this->nettoyer($facture['numeroFacture']);
$numeroBeneficiaire = $dossier['numeroBeneficiaire'];
$nomPatient = $dossier['beneficiaire'];
?>
<div id="div_facture">
<div id="div_entete_facture">
<input class="sr-only" type="text" id="regle" name="regle" value="<?= $this->nettoyer($facture['regle']) ?>" >
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($facture['fraisRetenu']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($facture['fraisReel']) ?>" >
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($facture['montantTm']) ?>" >
<input class="sr-only" type="text" id="montantArembourser" name="montantArembourser" value="<?= $this->nettoyer($facture['montantArembourser']) ?>" >
<input style='text-align:center; font-size:10pt;' class="form-control" type="text" value= "<?= _("Hors tiers payant") . " => " . _("ID Dossier") . " : " . $idDossierClassique
. " => " . _("Patient") . " : " . $nomPatient . " ( " . $numeroBeneficiaire . " )" . " => " . _("No Fact") . " : " . $numeroFacture ?>" readonly >
<table class="table table-responsive table-condensed" style='font-size:9pt;'>
<tbody>
<tr>
<td width="6%" > <?= _("Réclamé") ?> </td>
<td><INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['fraisReel'])) ?>" readonly ></td>
<td width="6%" align="center" > <?= _("Rejet") ?> </td>
<td><INPUT style='font-size:9pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['montantRejete'])) ?>" readonly ></td>
<td width="6%" align="center" > <?= _("Exclu") ?> </td>
<td><INPUT style='font-size:9pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['exclusion'])) ?>" readonly ></td>
<td width="6%" align="center" > <?= _("T M") ?> </td>
<td><INPUT style='font-size:9pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['montantTm'])) ?>" readonly ></td>
<td width="6%" align="center" > <?= _("A Remb") ?> </td>
<td> <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['montantArembourser'])) ?>" readonly ></td>
<td width="6%" align="center" > <?= _("Dépas") ?> </td>
<td><INPUT style='font-size:9pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['depassementLimite'])) ?>" readonly ></td>
<td width="6%" align="center"> <?= _("Retenu") ?> </td>
<td><INPUT style='font-size:9pt; color:blue; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['fraisRetenu'])) ?>" readonly ></td>
</tr>
<tr>
<td> <?= _("No Fact") ?> </td>
<td><INPUT class="form-control" style='font-size:9pt; text-align:center;' TYPE="text" id="numeroFacture" NAME="numeroFacture" value="<?= $this->nettoyer($facture['numeroFacture']) ?>" readonly ></td>
<td align="center" > <?= _("Prestataire") ?> </td>
<td colspan="5"><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="prestataire" NAME="prestataire" value="<?= $this->nettoyer($facture['prestataire']) ?>" readonly ></td>
<td align="center" > <?= _("Date Fact") ?> </td>
<td colspan="3">
<INPUT style='font-size:10pt; text-align:center;' class="form-control datepicker" TYPE="text" id="dateFacture" NAME="dateFacture" value="<?= dateLang($this->nettoyer($facture['dateFacture'])) ?>" readonly >
</td>
<td align="center"> Hospit </td>
<td><INPUT class="form-control" style='font-size:10pt; text-align:center;' TYPE="text" id="hospit" NAME="hospit" value="<?= $this->nettoyer($facture['hospit']) ?>" readonly ></td>
<tr>
<tr>
<td> <?= _("T M") . " ( % ) " ?> </td>
<td>
<INPUT id="tmFacture" name="tmFacture" style='font-size:10pt; text-align:center; color:red;' class="form-control" type="number" value="<?= $this->nettoyer($facture['tm']) ?>" readonly>
</td>
<td align="center" > Observat </td>
<td colspan="11"><INPUT style='font-size:10pt;' id="observations" name="observations" class="form-control" TYPE="text" value="<?= $this->nettoyer($facture['observations']) ?>" readonly></td>
<tr>
</tbody>
</table>
</div>
<div id ="div_wait">
</div>
<div id="div_prestations">
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th rowspan="2" style="text-align:center"> <?= _("Actes") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Réclamé") ?> </th>
<th colspan="3" style="text-align:center"> <?= _("Rejet") ?> </th>
<th colspan="3" style="text-align:center"> <?= _("Exlusion") ?> </th>
<th colspan="2" style="text-align:center"> <?= _("Ticket Mod") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("A Remb") ?> </th>
</tr>
<tr>
<th style="text-align:center"> <?= _("Valeur") ?> </th>
<th style="text-align:center"> <?= _("Motif") ?> </th>
<th style="text-align:center"> <?= _("Obs") ?> </th>
<th style="text-align:center"> <?= _("Valeur") ?> </th>
<th style="text-align:center"> <?= _("Motif") ?> </th>
<th style="text-align:center"> <?= _("Obs") ?> </th>
<th style="text-align:center"> <?= _("Tx") ?> </th>
<th style="text-align:center"> <?= _("Valeur") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestations as $prestation):
$idPrestation = $this->nettoyer($prestation['id']);
$libelleActe = $this->echapper($prestation['libelleActe']);
$valeurActe = $this->nettoyer($prestation['valeurActe']);
$montantRejete = $this->nettoyer($prestation['montantRejete']);
$fraisExclu = $this->nettoyer($prestation['fraisExclu']);
$codeMotifRejet = $this->nettoyer($prestation['codeMotifRejet']);
$codeMotifExclusion = $this->nettoyer($prestation['codeMotifExclusion']);
$libellemotifRejet = $this->nettoyer($prestation['libellemotifRejet']);
$libellemotifRejet = $this->echapper($libellemotifRejet);
$libelleMotifExclusion = $this->nettoyer($prestation['libelleMotifExclusion']);
$libelleMotifExclusion = $this->echapper($libelleMotifExclusion);
$ententePrealable =$this->nettoyer($prestation['ententePrealable']);
$autorisation =$this->nettoyer($prestation['autorisation']);
?>
<?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; ?>
<td align='center' width="17%" > <?= $this->dechapper($libelleActe) ?> </td>
<td align='center' width="9%" > <?= format_N($this->nettoyer($prestation['fraisReel'])) ?> </td>
<td align='center' width="7%" > <?= format_N($this->nettoyer($prestation['montantRejete'])) ?> </td>
<td align='center' width="17%" > <?= $libellemotifRejet ?> </td>
<td width="3%" align="center">
<?php if($montantRejete!='0'): ?>
<input style='text-align:center; font-size:8pt; background-color: yellow;' type="button" value="Obs" class="form-control"
onClick='javascript:consulter_detail_rejet_rbcl(<?= $idPrestation ?>);'>
<?php endif; ?>
</td>
<td align='center' width="7%" > <?= format_N($this->nettoyer($prestation['fraisExclu'])) ?> </td>
<td align='center' width="17%" > <?= $libelleMotifExclusion ?> </td>
<td width="3%" align="center">
<?php if($fraisExclu!='0'): ?>
<input style='text-align:center; font-size:8pt; background-color: red; color : white' type="button" value="Obs" class="form-control"
onClick='javascript:consulter_detail_exclusion_rbcl(<?= $idPrestation ?>);'>
<?php endif; ?>
</td>
<td align='center' style='color:red;' width="4%" > <?= $this->nettoyer($prestation['tm']) ?> </td>
<td align='center' style='color:red;' width="7%" > <?= format_N($this->nettoyer($prestation['montantTm'])) ?> </td>
<td align='center' width="9%" > <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<div id="div_detail_rejet">
</div>