779 lines
37 KiB
PHP
Executable File
779 lines
37 KiB
PHP
Executable File
<?php
|
|
$this->titre = "ISA WEB - Traitement proforma hospitalisation";
|
|
$motifReel="";
|
|
$motifRefusAssure="";
|
|
$motifRefusPrestataire="";
|
|
$smsenoye=0;
|
|
foreach ($motifexamens as $motifexamen):
|
|
$codeReponseEntentePrealable = $this->nettoyer($motifexamen['codeReponseEntentePrealable']);
|
|
if ($codeReponseEntentePrealable == "1" ) {
|
|
$motifReel = $this->nettoyer($motifexamen['motifReel']);
|
|
}
|
|
if ($codeReponseEntentePrealable == "9" ) {
|
|
$motifRefusPrestataire = $this->nettoyer($motifexamen['motifReel']);
|
|
$motifRefusAssure = $this->nettoyer($motifexamen['motifReel']);
|
|
}
|
|
?>
|
|
<?php endforeach;?>
|
|
<?php if (($motifReel != "") || $motifRefusPrestataire != "" || $motifRefusAssure != ""):
|
|
$smsenoye = 1;
|
|
?>
|
|
<?php endif;
|
|
|
|
$demandeTraite = $this->nettoyer($examen['demandeTraite']);
|
|
|
|
//var_dump($this->nettoyer($examen['numeroFeuilleMaladie']));
|
|
?>
|
|
|
|
|
|
<legend class="modal-title text-center"><?= _("TRAITEMENT PROFORMA HOSPITALISATION CHIRURGICALE");?></legend>
|
|
|
|
|
|
<!--<input class="sr-only" type="text" id="codeReponseEntentePrealable" name="codeReponseEntentePrealable" value="<?= $examen['codeReponseEntentePrealable'] ?>">-->
|
|
|
|
|
|
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="smsGestionPrestataire" name="smsGestionPrestataire" value="">
|
|
<INPUT class="sr-only" TYPE="text" id="idProforma" name="idProforma" value="<?= $this->nettoyer($examen['id']) ?>">
|
|
<INPUT class="sr-only" TYPE="text" id="prestataire" name="prestataire" value="<?= $this->nettoyer($examen['prestataire']) ?>">
|
|
<INPUT class="sr-only" TYPE="text" id="codePrestataireExamen" name="codePrestataireExamen" value="<?= $this->nettoyer($examen['codePrestataire']) ?>">
|
|
<INPUT class="sr-only" TYPE="text" id="beneficiaire" name="beneficiaire" value="<?= $this->nettoyer($examen['beneficiaire']) ?>">
|
|
<INPUT class="sr-only" TYPE="text" id="numeroBeneficiaire" name="numeroBeneficiaire" value="<?= $this->nettoyer($examen['numeroBeneficiaire']) ?>">
|
|
<INPUT class="sr-only" TYPE="text" id="telephonePortableAdherent" name="telephonePortableAdherent" value="<?= $this->nettoyer($examen['telAdherent']) ?>">
|
|
<INPUT class="sr-only" TYPE="text" id="telephonePortableAdherent" name="telephonePortableAdherent" value="<?= $this->nettoyer($examen['numeroBonHospitalisation']) ?>">
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="idExamen" name="idExamen" value="<?= $this->nettoyer($examen['idExamen']) ?>">
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="nomForm" name="nomForm" value="traitementProforma">
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="numeroBonHospitalisation" name="numeroBonHospitalisation" value="<?= $examen['numeroBonHospitalisation'] ?>">
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="demandeTraite" name="demandeTraite" value="<?= $examen['demandeTraite'] ?>">
|
|
|
|
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:11pt; margin-top:-20px;'>
|
|
<tbody>
|
|
<tr>
|
|
<td align="center">
|
|
<?= _("Prestataire") . " => " . $examen['prestataire'] ." => ". _("Dossier Médical")." No : ". $examen['numeroFeuilleMaladie']. " => " . _("Proforma"). " No : " . $examen['idExamen']. " => " ._("Bon Hospitalisation"). " No : " . $examen['numeroBonHospitalisation'] ?>
|
|
|
|
<?php if($demandeTraite == "1"):?>
|
|
<span style="color: red; font-size: 10pt; font-weight:bold;"><?= " => ". _("Déjà traité!") ?></span>
|
|
<?php endif;?>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_bon"> </div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%"> <?= _("Souscripteur") ?> </td>
|
|
<td width="20%">
|
|
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text"
|
|
id="nomClient" name="nomClient" value="<?= $examen['nomClient'] ?>" onChange=""
|
|
readonly>
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Adhérent") ?> </td>
|
|
<td width="20%"> <INPUT class="form-control" TYPE="text" value="<?= $examen['adherent']; ?>"
|
|
readonly style="text-align: center; font-size:9pt;"> </td>
|
|
|
|
<td width="5%" align="center"> <?= _("Bénéficiaire") ?> </td>
|
|
<td width="25%"> <INPUT class="form-control" TYPE="text"
|
|
value="<?= $examen['beneficiaire'].' ('.$examen['numeroBeneficiaire'].')'; ?>" readonly style='font-size:9pt;'> </td>
|
|
|
|
<td width="7%" align="center"> <?= _("Tél Bénéf.") ?> </td>
|
|
<td width="13%"> <INPUT class="form-control" TYPE="text"
|
|
value="<?= $examen['telAdherent']; ?>" readonly style='font-size:9pt;'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8">
|
|
<INPUT style="font-size:12pt; text-align: center; font-weight: bold; background-color:#f5deb3; color:#a0522d;" class="form-control"
|
|
TYPE="text" id="nomClient" name="nomClient"
|
|
value="<?= _('TAUX DE COUVERTURE').' : '.taux_couverture(intval($this->nettoyer($examen['ticketModerateur']))) ?>"
|
|
onChange="" readonly>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="5%" > <?= _("Médecin") ?> </td>
|
|
<td colspan="3">
|
|
<INPUT class="form-control" TYPE="text"
|
|
value="<?= $this->nettoyer($examen['medecinPrescription']) ?>" readonly
|
|
style='font-size:10pt;'
|
|
>
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Début") ?> </td>
|
|
<td width="20%"> <INPUT class="form-control" TYPE="text"
|
|
value="<?= dateLang($this->nettoyer($examen['dateDebut']), $_SESSION['lang']) ?>" readonly
|
|
style="text-align: center; font-size:10pt;">
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Durée (J)") ?> </td>
|
|
<td width="20%"> <INPUT class="form-control" TYPE="text" readonly
|
|
value="<?= $this->nettoyer($examen['duree']) ?>"
|
|
style="text-align: center; font-size:10pt;">
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="5%" > <?= _("Motif Clinique") ?> </td>
|
|
<td colspan="5" > <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($examen['motif']) ?>" readonly style='font-size:10pt;' > </td>
|
|
|
|
<td width="5%" align="center"> <?= _("Durée Corrigée (J)") ?> </td>
|
|
<td width="20%">
|
|
<?php if ($demandeTraite=="0"): ?>
|
|
<INPUT class="form-control" TYPE="number" value="<?= $this->nettoyer($examen['dureeCorrigee']) ?>"
|
|
style="text-align: center; font-size:10pt;" id="dureeCorrigee" name="dureeCorrigee" onchange="javascript:maj_dureeCorrigee_proforma_hospit('<?= $examen['id'] ?>',this.value);">
|
|
<?php else: ?>
|
|
<INPUT class="form-control" TYPE="number" value="<?= $this->nettoyer($examen['dureeCorrigee']) ?>"
|
|
style="text-align: center; font-size:10pt;" id="dureeCorrigee" name="dureeCorrigee" disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_messages"></div>
|
|
<!-- Plafond HOSPITALISATION -->
|
|
<div id="div_legende_couleur" style="width:100%; margin: 5px; background-color: #f8f8ff;" class="tab-container">
|
|
<table class="table-responsive" style="width:90%; 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;"> <?= _("Consommation >= 50%"); ?></td>
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color:#726a57"></td >
|
|
<td width="2%" style="background-color: #f8f8ff"></td>
|
|
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;"><?= _("Consommation >= 80%"); ?></td>
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color: orange"></td >
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;" ><?= _("Consommation = 100% / Transaction = 100%"); ?></td>
|
|
<td style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color: red;"></td >
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_plafond" class="tab-container" style="margin:5px;">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt; white-space:nowrap;">
|
|
<thead>
|
|
<tr>
|
|
<th style="background-color: #dee2e6;"> </th>
|
|
<th colspan="9" style="text-align:center; background-color: #696969;"> <?= _("Bénéficiaire") ?> </th>
|
|
<th colspan="9" style="text-align:center; background-color: #027be3;"> <?= _("Famille") ?> </th>
|
|
</tr>
|
|
<tr>
|
|
<th rowspan="2" width="20%" style="text-align:center"> <?= _("Rubrique") ?> </th>
|
|
<th rowspan="2" style="text-align:center" width="5%"> <?= _("Taux") ?> </th>
|
|
|
|
<th colspan="4" style="text-align:center"> <?= _("Consommations") ?> </th>
|
|
<th colspan="4" style="text-align:center"> <?= _("Prestations") ?> </th>
|
|
|
|
|
|
<th rowspan="2" style="text-align:center" width="5%"> <?= _("Taux") ?> </th>
|
|
|
|
<th colspan="4" style="text-align:center"> <?= _("Consommations") ?> </th>
|
|
<th colspan="4" style="text-align:center"> <?= _("Prestations") ?> </th>
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<th style="text-align:center"> <?= _("Plafond") ?> </th>
|
|
<th style="text-align:center"> <?= _("Périodicité") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépenses") ?> </th>
|
|
<th style="text-align:center"> <?= _("Solde") ?> </th>
|
|
|
|
<th style="text-align:center"> <?= _("Nb Transaction") ?> </th>
|
|
<th style="text-align:center"> <?= _("Périodicité") ?> </th>
|
|
<th style="text-align:center"> <?= _("Nbre Prestation") ?> </th>
|
|
<th style="text-align:center"> <?= _("Solde") ?> </th>
|
|
|
|
<th style="text-align:center"> <?= _("Plafond") ?> </th>
|
|
<th style="text-align:center"> <?= _("Périodicité") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépenses") ?> </th>
|
|
<th style="text-align:center"> <?= _("Solde") ?> </th>
|
|
|
|
|
|
<th style="text-align:center"> <?= _("Nb Transaction") ?> </th>
|
|
<th style="text-align:center"> <?= _("Périodicité") ?> </th>
|
|
<th style="text-align:center"> <?= _("Nbre Prestation") ?> </th>
|
|
<th style="text-align:center"> <?= _("Solde") ?> </th>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($situationBeneficiaire as $v):
|
|
$libelle = $this->nettoyer($v['rubrique']);
|
|
|
|
$codeRubrique = $this->nettoyer($v['codeRubrique']);
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$libelle = $this->nettoyer($v['rubriqueEng']);
|
|
}
|
|
|
|
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
|
|
$pourcentConso = $this->nettoyer($v['pourcentConso']);
|
|
$transactionFamille = $this->nettoyer($v['transactionFamille']);
|
|
$transactionBeneficiaire = $this->nettoyer($v['transactionBeneficiaire']);
|
|
$idBeneficiaire = $this->nettoyer($v['idBeneficiaire']);
|
|
|
|
$exercieReference = $this->nettoyer($v['exercieReference']);
|
|
|
|
?>
|
|
<tr>
|
|
<?php if($pourcentConso>='50' && $pourcentConso<'80'): ?>
|
|
|
|
<td style="background-color: yellow;"><?= $libelle ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($v['tauxPlafond']).'%'; ?></td>
|
|
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['plafond']))?></td>
|
|
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($v['codePeriodicitePlafond']); ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['consommation'])) ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['soldeRubrique'])) ?></td>
|
|
|
|
|
|
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($v['nbreTransaction'])?></td>
|
|
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($v['codePeriodicite']); ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['comptePrestation'])) ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['soldeTransactionBeneficiaire'])) ?></td>
|
|
<?php elseif($pourcentConso>='80' && $pourcentConso <'100'): ?>
|
|
<td style="background-color: orange;"><?= $libelle ?></td>
|
|
<td align='center' style="background-color: orange;"><?= $this->nettoyer($v['tauxPlafond']).'%'; ?></td>
|
|
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['plafond']))?></td>
|
|
<td align='center' style="background-color: orange;"><?= $this->nettoyer($v['codePeriodicitePlafond']); ?></td>
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['consommation'])) ?></td>
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['soldeRubrique'])) ?></td>
|
|
|
|
<td align='center' style="background-color: orange;"><?= $this->nettoyer($v['nbreTransaction'])?></td>
|
|
<td align='center' style="background-color: orange;"><?= $this->nettoyer($v['codePeriodicite']); ?></td>
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['comptePrestation'])) ?></td>
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['soldeTransactionBeneficiaire'])) ?></td>
|
|
<?php elseif($pourcentConso >='100' || $transactionBeneficiaire=="1"): ?>
|
|
<td style="background-color: red; color:white"><?= $libelle ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= $this->nettoyer($v['tauxPlafond']).'%';?></td>
|
|
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['plafond']))?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= $this->nettoyer($v['codePeriodicitePlafond']); ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['consommation'])) ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['soldeRubrique'])) ?></td>
|
|
|
|
|
|
<td align='center' style="background-color: red; color:white"><?= $this->nettoyer($v['nbreTransaction'])?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= $this->nettoyer($v['codePeriodicite']); ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['comptePrestation'])) ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['soldeTransactionBeneficiaire'])) ?></td>
|
|
|
|
<?php else: ?>
|
|
<td ><?= $libelle ?></td>
|
|
<td align='center'><?= $this->nettoyer($v['tauxPlafond']).'%';?></td>
|
|
|
|
<td align='center'><?= format_N($this->nettoyer($v['plafond']))?></td>
|
|
<td align='center'><?= $this->nettoyer($v['codePeriodicitePlafond']); ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['consommation'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['soldeRubrique'])) ?></td>
|
|
|
|
|
|
<td align='center'><?= $this->nettoyer($v['nbreTransaction'])?></td>
|
|
<td align='center'><?= $this->nettoyer($v['codePeriodicite']); ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['comptePrestation'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['soldeTransactionBeneficiaire'])) ?></td>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if($pourcentConsoFamille>='50' && $pourcentConsoFamille<'80'): ?>
|
|
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($v['tauxPlafond']).'%';?></td>
|
|
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['plafondFamille']))?></td>
|
|
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($v['codePeriodicitePlafondFamille']); ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['soldeFamilleRubrique'])) ?></td>
|
|
|
|
|
|
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($v['nbreTransactionFamille'])?></td>
|
|
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($v['codePeriodiciteFamille']); ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></td>
|
|
<td align='center' style="background-color: yellow;"><?= format_N($this->nettoyer($v['soldeTransactionFamille'])) ?></td>
|
|
<?php elseif($pourcentConsoFamille>='80' && $pourcentConsoFamille <'100'): ?>
|
|
|
|
<td align='center' style="background-color: orange;"><?= $this->nettoyer($v['tauxPlafond']).'%';?></td>
|
|
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['plafondFamille']))?></td>
|
|
<td align='center' style="background-color: orange;"><?= $this->nettoyer($v['codePeriodicitePlafondFamille']); ?></td>
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['soldeFamilleRubrique'])) ?></td>
|
|
|
|
<td align='center' style="background-color: orange;"><?= $this->nettoyer($v['nbreTransactionFamille'])?></td>
|
|
<td align='center' style="background-color: orange;"><?= $this->nettoyer($v['codePeriodiciteFamille']); ?></td>
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></td>
|
|
<td align='center' style="background-color: orange;"><?= format_N($this->nettoyer($v['soldeTransactionFamille'])) ?></td>
|
|
<?php elseif($pourcentConsoFamille >='100' || $transactionFamille=="1"): ?>
|
|
|
|
<td align='center' style="background-color: red; color:white"><?= $this->nettoyer($v['tauxPlafond']).'%';?></td>
|
|
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['plafondFamille']))?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= $this->nettoyer($v['codePeriodicitePlafondFamille']); ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['soldeFamilleRubrique'])) ?></td>
|
|
|
|
|
|
<td align='center' style="background-color: red; color:white"><?= $this->nettoyer($v['nbreTransactionFamille'])?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= $this->nettoyer($v['codePeriodiciteFamille']); ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></td>
|
|
<td align='center' style="background-color: red; color:white"><?= format_N($this->nettoyer($v['soldeTransactionFamille'])) ?></td>
|
|
|
|
<?php else: ?>
|
|
|
|
<td align='center'><?= $this->nettoyer($v['tauxPlafond']).'%';?></td>
|
|
|
|
<td align='center'><?= format_N($this->nettoyer($v['plafondFamille']))?></td>
|
|
<td align='center'><?= $this->nettoyer($v['codePeriodicitePlafondFamille']); ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['soldeFamilleRubrique'])) ?></td>
|
|
|
|
|
|
<td align='center'><?= $this->nettoyer($v['nbreTransactionFamille'])?></td>
|
|
<td align='center'><?= $this->nettoyer($v['codePeriodiciteFamille']); ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['soldeTransactionFamille'])) ?></td>
|
|
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
<?php if ($demandeTraite=="0"): ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;'>
|
|
<tbody>
|
|
<tr><td colspan="8" height='10'> </td></tr>
|
|
<tr>
|
|
<td colspan="5" align="center" width="55%">
|
|
<div class="frmSearch">
|
|
<input id="searchInputActe" name="searchInputActe" AUTOCOMPLETE="OFF" style="font-size:12pt;" class="form-control" type="text" placeholder="Veuillez rechercher et sélectionner un acte ici..." autofocus
|
|
onkeyup="javascript:affichelisteactes(this.value, 'proforma');">
|
|
<INPUT class="sr-only" TYPE="text" id="codeActe" NAME="codeActe" value="">
|
|
<div id="div_selection_acte">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td ></td>
|
|
<td colspan="2" align="center">
|
|
<button type="button" class="form-control btn btn-success" data-bs-toggle="modal" data-bs-target="#popAjouteConsommable" style='font-size:12pt; height: 45px; margin-top:-15px;'> <?= _("Ajouter un consommable...") ?> </button>
|
|
</td>
|
|
<tr>
|
|
<tr><td colspan="8" height='10'> </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<!--
|
|
<div id="div_plafond" class="tab-container" style="margin:5px;">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt; white-space:nowrap;">
|
|
-->
|
|
|
|
<div id="div_examens">
|
|
<div id="recap" class="tab-container">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td align="center"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT id="reclame" name="reclame" class="form-control" TYPE="text" value="<?= format_N($hospit_total['totalPrixManuel']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:#5f9ea0 !important; color:white;"> </td>
|
|
|
|
<td align="center"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT id="partAssure" name="partAssure" class="form-control" TYPE="text" value="<?= format_N($hospit_total['montantTm']+$hospit_total['depassement']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:#ba74d4 !important; color:white;"> </td>
|
|
|
|
<td align="center" > <?= _("A Rembourser") ?> </td>
|
|
<td > <INPUT id="partAssureur" name="partAssureur" class="form-control" TYPE="text" value="<?= format_N($hospit_total['montantArembourser']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:rgba(255, 0, 127) !important; color:white;"> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<INPUT class="sr-only" id="choix" name="choix" TYPE="text" value="<?= $choix ?>" >
|
|
<INPUT class="sr-only" id="accorderTout" name="accorderTout" TYPE="text" value="<?= $accorderTout ?>" >
|
|
<INPUT class="sr-only" id="refuserTout" name="refuserTout" TYPE="text" value="<?= $refuserTout ?>" >
|
|
<INPUT class="sr-only" id="siRefus" name="siRefus" TYPE="text" value="<?= $siRefus ?>" >
|
|
</div>
|
|
|
|
<div id="div_prestation" class="tab-container">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt; white-space:nowrap;">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center"> <?= _("Acte <b style='color:red'> - [Plafond]</b>") ?> </th>
|
|
|
|
<th width="5%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<!--<th style="text-align:center"> <?= _("PU Appliqué") ?> </th>-->
|
|
<th width="3%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<!--<th style="text-align:center"> <?= _("PT Appliqué") ?> </th>-->
|
|
<th style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("Montant TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Remboursé") ?> </th>
|
|
|
|
|
|
<th style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
|
|
|
|
<th width="5%" style="text-align:center"> <?= _("Accorder") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Refuser") ?> </th>
|
|
|
|
<th style='text-align:center'> <?= _("Répondu le") ?> </th>
|
|
<th style='text-align:center'> <?= _("Répondu par") ?> </th>
|
|
|
|
</tr>
|
|
<tr>
|
|
<?php if ($demandeTraite=="0"): ?>
|
|
<th colspan="9"></th>
|
|
|
|
<?php if ($accorderTout=="0"): ?>
|
|
<th style='text-align:center'>
|
|
<input style="color:blue;" type="button" value="<?= _("Tout Sélectionner") ?>"
|
|
onClick="javascript:validertoutproformahospit('<?= $idProforma ?>');">
|
|
</th>
|
|
<?php else: ?>
|
|
<th style='text-align:center'>
|
|
<input style="color:blue;" type="button" value="<?= _("Tout Desélectionner") ?>"
|
|
onClick="javascript:annulervalidertoutproformahospit('<?= $idProforma ?>');">
|
|
</th>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($refuserTout=="0"): ?>
|
|
<th style='text-align:center'>
|
|
<input style="color:red;" type="button" value="<?= _("Tout Sélectionner") ?>"
|
|
onClick="javascript:refusertoutproformahospit('<?=$idProforma?>');">
|
|
</th>
|
|
<?php else: ?>
|
|
<th style='text-align:center'>
|
|
<input style="color:red;" type="button" value="<?= _("Tout Desélectionner") ?>"
|
|
onClick="javascript:annulerrefusertoutproformahospit('<?=$idProforma?>');">
|
|
</th>
|
|
<?php endif; ?>
|
|
<th colspan="2"></th>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php
|
|
$entente=0;
|
|
$accepter=0;
|
|
$refuser=0;
|
|
foreach ($detailexamens as $detailexamen):
|
|
$idPrestationactes=$this->nettoyer($detailexamen['id']);
|
|
$codeTypePrestation=$this->nettoyer($detailexamen['codeTypePrestation']);
|
|
$ententePrealable=$this->nettoyer($detailexamen['ententePrealable']);
|
|
$autorisation=$this->nettoyer($detailexamen['autorisation']);
|
|
$codeTarifActe=$this->nettoyer($detailexamen['codeTarifActe']);
|
|
|
|
$valeurActeManuel = $this->nettoyer($detailexamen['valeurActeManuel']);
|
|
|
|
$libelleConsommable=$this->nettoyer($detailexamen['libelleConsommable']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = substr($this->nettoyer($detailexamen['libelleActeEng']),0,57);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = substr($this->nettoyer($detailexamen['libelleActe']),0,57);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($detailexamen['codeActe']);
|
|
|
|
if($codeActe == "CSM"){
|
|
$libelleActe = substr($libelleConsommable,0,57);
|
|
}
|
|
|
|
|
|
$valeurActe = $this->nettoyer($detailexamen['valeurActe']);
|
|
|
|
$plafondActe = $this->nettoyer($detailexamen['plafondActe']);
|
|
|
|
//var_dump($plafondActe);
|
|
|
|
|
|
$plafond = (($plafondActe == $valeurActe) && ($valeurActe > "0"))?"1":"0";
|
|
|
|
if ($plafondActe > "0" && $plafondActe !="9999999999"){
|
|
$forfaitPlafond = " - [".format_N($plafondActe)."]";
|
|
}else{
|
|
$forfaitPlafond = "";
|
|
}
|
|
|
|
$prixTarif = $this->nettoyer($detailexamen['prixTarif']);
|
|
|
|
|
|
$codeMotifDepassement = $this->nettoyer($detailexamen['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($detailexamen['motif']);
|
|
$motifEng = $this->nettoyer($detailexamen['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($detailexamen['tarif']);
|
|
|
|
$choixValider = $this->nettoyer($detailexamen['choixValider']);
|
|
|
|
$choixRefuser = $this->nettoyer($detailexamen['choixRefuser']);
|
|
|
|
if($choixValider=="1"){
|
|
$checkedValider = 'checked';
|
|
}else{
|
|
$checkedValider = '';
|
|
}
|
|
|
|
if($choixRefuser=="1"){
|
|
$checkedRefuser = 'checked';
|
|
}else{
|
|
$checkedRefuser = '';
|
|
}
|
|
|
|
$idProforma = $this->nettoyer($detailexamen['idProforma']);
|
|
|
|
$acteChambre = $this->nettoyer($detailexamen['acteChambre']);
|
|
|
|
|
|
?>
|
|
<?php if($choixValider=='1'): $accepter++;?>
|
|
<tr style="background-color: #00ff00;">
|
|
<INPUT class="sr-only" TYPE="text" value="<?= $this->nettoyer($detailexamen['libelleActe']) ?>">
|
|
<?php elseif($choixRefuser=='1'): $refuser++;?>
|
|
<tr style="background-color: red; color:white;">
|
|
<INPUT class="sr-only" TYPE="text" value="<?= $this->nettoyer($detailexamen['libelleActe']) ?>">
|
|
<?php else: $entente++;?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td > <?= $libelleActe."<b style='color:red'>".$forfaitPlafond."</b>" ?> </td>
|
|
|
|
<?php if ($demandeTraite=="0"): ?>
|
|
<?php if ($prixTarif>"0"): ?>
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué")?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($valeurActeManuel) ?>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td align='center' width="13%">
|
|
<INPUT style='text-align:center; font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($valeurActeManuel) ?>"
|
|
onChange="ajax_maj_prix_acte_proformahospitalisation('<?=$idPrestationactes?>', this.value, this);" onBlur="formatMonetaire(this);" onkeyup="controle_numerique(this);" onfocus="formatNumerique(this);">
|
|
</td>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué")?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($valeurActeManuel) ?>
|
|
</button>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<!--<td align='center'> <?= format_N($this->nettoyer($detailexamen['valeurActe'])) ?></td>-->
|
|
|
|
<?php if ($demandeTraite=="0"): ?>
|
|
<?php if ($acteChambre=="0"): ?>
|
|
<td align='center' width="8%">
|
|
<INPUT style='text-align:center; font-size:10pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailexamen['quantite']) ?>"
|
|
onChange="ajax_maj_qte_acte_proformahospitalisation('<?=$idPrestationactes?>', this.value, this);" onBlur="controle_numerique(this);">
|
|
</td>
|
|
<?php else: ?>
|
|
<td align='center' width="8%">
|
|
<INPUT style='text-align:center; font-size:10pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailexamen['quantite']) ?>"
|
|
disabled>
|
|
</td>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<td align='center'> <?= $this->nettoyer($detailexamen['quantite']) ?></td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($detailexamen['prixManuel'])) ?></td>
|
|
<!--<td align='center'> <?= format_N($this->nettoyer($detailexamen['fraisReel'])) ?></td>-->
|
|
<td align='center'> <?= $this->nettoyer($detailexamen['tm'])?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailexamen['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailexamen['montantArembourser'])) ?></td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($detailexamen['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; ?>
|
|
|
|
<?php if ($demandeTraite=="0"): ?>
|
|
<td align="center">
|
|
<input type="checkbox" <?= $checkedValider ?> onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};validerunacteproformahospit('<?=$idProforma?>', '<?=$idPrestationactes?>',this.value);" value="<?=$choixValider?>">
|
|
</td>
|
|
<td align="center">
|
|
<input type="checkbox" <?= $checkedRefuser ?> onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};refuserunacteproformahospit('<?=$idProforma?>', '<?=$idPrestationactes?>',this.value);" value="<?=$choixRefuser?>">
|
|
</td>
|
|
<?php else: ?>
|
|
<td align="center">
|
|
<input type="checkbox" <?=$checkedValider?> disabled>
|
|
</td>
|
|
<td align="center">
|
|
<input type="checkbox" <?=$checkedRefuser?> disabled>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'><?= dateHeureLang($this->nettoyer($detailexamen['dateHeureReponse']),$_SESSION['lang']);?></td>
|
|
<td align='center'><?= $this->nettoyer($detailexamen['responsableAccord']) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_motif" class="tab-container">
|
|
<table class="table table-responsive table-condensed" style='font-size:8pt; white-space:nowrap;'>
|
|
<tbody>
|
|
<?php
|
|
$motifReel="";
|
|
$motifRefusAssure="";
|
|
$motifRefusPrestataire="";
|
|
$smsenoye=0;
|
|
foreach ($motifexamens as $motifexamen):
|
|
$codeReponseEntentePrealable = $this->nettoyer($motifexamen['codeReponseEntentePrealable']);
|
|
|
|
$motifReel = $this->nettoyer($motifexamen['motifReel']);
|
|
|
|
$motifRefusAssure = $this->nettoyer($motifexamen['motifRefusAssure']);
|
|
?>
|
|
<?php endforeach;?>
|
|
<?php if ($demandeTraite=="1"): ?>
|
|
<tr>
|
|
<td width="8%"> <?= _("Observation");?></td>
|
|
<td colspan="3">
|
|
<textarea class="form-control-sm" rows="5" disabled style="width:100%;"><?=$motifReel?></textarea>
|
|
</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<tr>
|
|
<td width="8%" > <?= _("Observation");?></td>
|
|
<td colspan="3">
|
|
<textarea class="form-control-sm" name="motifReel" id="motifReel" rows="5" AUTOCOMPLETE="OFF" style="width:100%;" onchange="javascript:maj_motifReel_proformahospit('<?= $examen['id'] ?>',this.value)"><?=$motifReel?></textarea>
|
|
</td>
|
|
</tr>
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="smsenoye" name="smsenoye" value="<?= $smsenoye ?>">
|
|
<?php endif; ?>
|
|
|
|
<?php if ($demandeTraite=="1"): ?>
|
|
<tr>
|
|
<td>
|
|
<?= _("Motif Refus");?>
|
|
</td>
|
|
<td colspan="3">
|
|
<textarea class="form-control-sm" disabled rows="5" required AUTOCOMPLETE="OFF" style="width:100%;"><?=$motifRefusAssure ?></textarea>
|
|
</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<td class="required">
|
|
<?= _("Motif Refus");?>
|
|
</td>
|
|
<td colspan="3">
|
|
<textarea class="form-control-sm" name="motifRefusAssure" id="motifRefusAssure" placeholder="<?= _("Obligatoire si refus");?>" rows="5" required AUTOCOMPLETE="OFF" style="width:100%;" onchange="javascript:maj_motifRefusPrestataire_proformahospit('<?= $examen['id'] ?>',this.value)"><?=$motifRefusAssure ?></textarea>
|
|
</td>
|
|
|
|
<?php endif; ?>
|
|
<tr>
|
|
</tr>
|
|
<?php if ($demandeTraite=="0"): ?>
|
|
<tr>
|
|
<td colspan="2">
|
|
<?php if ($choix=="1"): ?>
|
|
<input id="btn_enreg" name="btn_enreg" class="form-control btn btn-primary"
|
|
type="button" value="<?= _("Valider la proforma") ?>"
|
|
onClick="javascript:validerproformahospitalisation('<?= $examen['id'] ?>');" style='font-size:10pt;'>
|
|
<?php else: ?>
|
|
<input id="btn_enreg" name="btn_enreg" class="form-control btn btn-primary" style='font-size:10pt;' disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td colspan="2">
|
|
<input id="btn_fermer" name="btn_fermer" class="form-control btn btn-warning"
|
|
type="button" value="<?= _("Fermer") ?>"
|
|
onClick="javascript:fermertraitementproformahospitalisation();" style='font-size:10pt;'>
|
|
</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<td colspan="4">
|
|
<input id="btn_fermer" name="btn_fermer" class="form-control btn btn-primary"
|
|
type="button" value="<?= _("Fermer") ?>"
|
|
onClick="javascript:fermertraitementproformahospitalisation();" style='font-size:10pt;'>
|
|
</td>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="popAjouteConsommable" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false" >
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop_consommation" name="btn_close_pop_consommation" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Ajouter un consommable...") ?> </h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th width="45%" style="text-align:center"> <?= _("Nom Consommable") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="20%" style="text-align:center"> <?= _("Valeur") ?> </th>
|
|
<th style="text-align:center"> Action </th>
|
|
</tr>
|
|
<tbody>
|
|
<tr>
|
|
<td> <input type="text" class="form-control" id="libelleconsommable" name="libelleconsommable" autofocus style='font-size:10pt;' ></td>
|
|
|
|
<td align='center'>
|
|
<input class="form-control"style="text-align: center; font-size:10pt;" type="number" id="quantiteconsommable" name="quantiteconsommable" value="0"
|
|
onBlur="controle_numerique(this);" >
|
|
</td>
|
|
|
|
<td align='center'>
|
|
<input class="form-control"style="text-align: center; font-size:10pt;" type="number" id="prixconsommable" name="prixconsommable" value="0"
|
|
onBlur="controle_numerique(this);" >
|
|
</td>
|
|
|
|
<td> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Ajouter") ?>" onclick="javascript:save_nv_consommable_proformahospit();" /></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_patienter_consommable" >
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop_acte" name="close_pop_acte" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|