287 lines
12 KiB
PHP
287 lines
12 KiB
PHP
<?php
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
|
|
$bonCaduc = $_SESSION['p_bonCaduc'];
|
|
$facture = $_SESSION['p_facture'];
|
|
|
|
$datePrestation = $_SESSION['p_datePrestation'];
|
|
|
|
|
|
?>
|
|
|
|
<INPUT class="sr-only" id="codeFamilleActeMed" name="codeFamilleActeMed" type="text" value="<?= $_SESSION['codeFamilleActeMed']; ?>">
|
|
<INPUT class="sr-only" id="datePrestation" name="datePrestation" type="text" value="<?= datefr($datePrestation); ?>">
|
|
|
|
<INPUT class="sr-only" id="nbreActesPrescrits" name="nbreActesPrescrits" type="text" value="<?= count($prestations); ?>">
|
|
|
|
<div id="div_statutacte">
|
|
</div>
|
|
|
|
<!--$_SESSION['codeFamilleActeMed']=='FA009'-->
|
|
<div id="div_motif" class="col-12" style="padding-right:1%;">
|
|
<table class="table table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="2">
|
|
<INPUT style='font-size:12pt; font-weight: bold; background-color:#f5deb3 !important; color:#a0522d; text-align:center;' class="form-control" TYPE="text"
|
|
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" onChange="" readonly >
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="15%" class="required"> <?= _("Renseignement Clinique") ?> </td>
|
|
<td width="85%" >
|
|
<input id="motifActe" name="motifActe" style="font-size:10pt;" required AUTOCOMPLETE="OFF" class="form-control" value="<?=$motifActe?>" type="text" onchange="ajaxmajmotifacte();" placeholder="<?= _("Obligatoire avant de soumettre une demande d'accord préalable...")?>">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_messages">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<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 id="div_actes" class="col-4" style="padding-right:1px; background-color:#f7f7f7; border:1px solid #ddd">
|
|
<div id="listeacte">
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Actes médicaux disponibles") ?>" readonly > </td>
|
|
</div>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> <?= _("Actes")." (".count($actes).")" ?> </th>
|
|
<th width="5%" style='text-align:center'> <?= _("Accord") ?> </th>
|
|
<th width="5%" style='text-align:center'> => </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($actes as $acte):
|
|
$codeActe=$this->nettoyer($acte['codeActe']);
|
|
$act_ententePrealable=$this->nettoyer($acte['ententePrealable']);
|
|
$act_exclu=$this->nettoyer($acte['exclu']);
|
|
$act_chirurgie=$this->nettoyer($acte['chirurgie']);
|
|
//$act_valeurActe=$this->nettoyer($acte['valeurActe']);
|
|
$act_valeurActe="1";
|
|
$act_prixBase=$this->nettoyer($acte['prixBase']);
|
|
|
|
|
|
$libelleActe = $this->nettoyer($acte['libelleActe']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$libelleActe = $this->nettoyer($acte['libelleActeEng']);
|
|
}
|
|
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
$tarif = $this->nettoyer($acte['tarif']);
|
|
//var_dump($act_aPlafond);
|
|
?>
|
|
|
|
<tr valign="top">
|
|
<td > <?= $libelleActe ?></td>
|
|
|
|
<?php if($act_ententePrealable<>"0"): ?>
|
|
<?php if($act_ententePrealable=='2'): ?>
|
|
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($act_ententePrealable=='1'): ?>
|
|
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($act_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 ($act_exclu=="1"): ?>
|
|
<td align='center' style="background-color: red;color:white;"> <?= _("Exclus") ?> </td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="button" value="=>"
|
|
onClick="javascript:verifie_statut_acte_selection('<?=$codeActe?>', '<?=$act_prixBase?>', '<?=$act_valeurActe?>', '<?=$act_ententePrealable?>');" ></td>
|
|
<?php endif; ?>
|
|
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="div_prestations" class="col-8" style="border:1px solid #ddd; background-color:#f7f7f7;">
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Prestations effectuées") ?>" readonly > </td>
|
|
</div>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <= </th>
|
|
<th colspan="2" style="text-align:center"> <?= _("Acte")." (".count($prestations).")" ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Accord") ?> </th>
|
|
<th style="text-align:center"> <?= _("PU") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
|
|
<th style="text-align:center"> <?= _("PT") ?> </th>
|
|
<th style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("Mt TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Remb") ?> </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></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 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']);
|
|
|
|
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
|
|
|
|
$valeurActe = $this->nettoyer($prestation['valeurActe']);
|
|
$codeFamilleActe = $this->nettoyer($prestation['codeFamilleActe']);
|
|
|
|
|
|
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;
|
|
}
|
|
|
|
$prixBase = ($ententePrealable=='2') ? "0" : $this->nettoyer($prestation['prixBase']);
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tm = $this->nettoyer($prestation['tm']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
?>
|
|
<INPUT class="sr-only" id="nbEntentePrealable" name="nbEntentePrealable" type="text" value="<?= $prestation['nbEntentePrealable']; ?>">
|
|
|
|
|
|
<tr valign="top">
|
|
|
|
<?php if ($facture || $bonCaduc || $ententePrealable=='1'): ?>
|
|
<td> </td>
|
|
<?php else: ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="<=" onClick="javascript:supprimer_acte_medical_selection('<?= $idPrestationactes ?>', '<?= $codeTypePrestation ?>');"> </td>
|
|
<?php endif; ?>
|
|
<td align='center'> <?= $codeGarantie ?> </td>
|
|
<td > <?= $libelleActe ?> </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; ?>
|
|
|
|
<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>
|
|
|
|
<?php if ($facture || $bonCaduc || $ententePrealable=='1' || $autorisation=='1' || $ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<td align='center'><?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
<?php else: ?>
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
|
|
onChange="ajax_maj_qte_acte('<?=$idPrestationactes?>', this.value, this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['tm'])?></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="12" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<!--
|
|
|
|
-->
|