256 lines
12 KiB
PHP
256 lines
12 KiB
PHP
<div id="div_feuillemaladie">
|
|
<?php $this->titre = "Intersanté - Feuille Maladie";
|
|
$facture = $feuillemaladie['facture'];
|
|
$numeroDerogation = $feuillemaladie['numeroDerogation'];
|
|
$numeroDerogationFinger = $feuillemaladie['numeroDerogationFinger'];
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
|
|
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($feuillemaladie['fraisRetenu']) ?>" >
|
|
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($feuillemaladie['fraisReel']) ?>" >
|
|
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($feuillemaladie['montantTm']) ?>" >
|
|
|
|
<input class="sr-only" type="text" id="codeutilisateur" name="codeutilisateur" value="<?= $_SESSION['login'] ?>" >
|
|
|
|
<input class="sr-only" type="text" id="numOrd" name="numOrd" value="<?= $this->nettoyer($feuillemaladie['numeroBonOrdonnance']) ?>" >
|
|
<input class="sr-only" type="text" id="noPrescription" name="noPrescription" value="<?= $this->nettoyer($feuillemaladie['noPrescription']) ?>" >
|
|
|
|
<input style='text-align:center; font-size:11pt;' class="form-control" type="text" value= "Informations sur la feuille maladie N° : <?= $feuillemaladie['numeroFeuilleMaladie'] ?>" readonly >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="8%" > Date Consul. </td>
|
|
<td width="17%" > <INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateFr($this->nettoyer($feuillemaladie['dateConsultation'])) ?>" readonly> </td>
|
|
|
|
<td width="8%" align="center"> Date Surv. </td>
|
|
<td width="17%" ><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateFr($this->nettoyer($feuillemaladie['dateSurvenance'])) ?>" readonly></td>
|
|
|
|
|
|
<td width="8%" align="center">Date Système</td>
|
|
<td width="17%" ><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateheureFr($this->nettoyer($feuillemaladie['dateSysteme'])) ?>" readonly ></td>
|
|
|
|
<td width="8%" align="center">Cons / Ord </td>
|
|
<td width="8%" align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonConsultation'] ?> </td>
|
|
<td width="1%"> </td>
|
|
<td width="8%" align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonOrdonnance'] ?> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Méd. Consul.</td>
|
|
<td colspan="3"><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= $feuillemaladie['medecinConsultation'] ?>" readonly ></td>
|
|
|
|
<td align="center"> Raison Cons. </td>
|
|
<td><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= $feuillemaladie['raisonconsultation'] ?>" readonly ></td>
|
|
|
|
<td align="center">Exam / Kine </td>
|
|
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonExamen'] ?> </td>
|
|
<td width="1%"> </td>
|
|
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonKine'] ?> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> Frais Réel </td>
|
|
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?>" readonly ></td>
|
|
|
|
<td align="center" > Tick Modér. </td>
|
|
<td><INPUT style='font-size:10pt; color:red;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['montantTm'])) ?>" readonly ></td>
|
|
|
|
<td align="center"> A rembourser</td>
|
|
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['montantArembourser'])) ?>" readonly ></td>
|
|
|
|
<td align="center">Opt / Hosp </td>
|
|
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonOptique'] ?> </td>
|
|
<td width="1%"> </td>
|
|
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonHospitalisation'] ?> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> Frais Retenus </td>
|
|
<td><INPUT style='font-size:10pt; color:blue;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisRetenu'])) ?>" readonly ></td>
|
|
|
|
<td align="center"> Observat. </td>
|
|
<td colspan="3"><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($feuillemaladie['observations']) ?>" readonly ></td>
|
|
|
|
<!--
|
|
<td align="center"> Dépass. </td>
|
|
<td colspan="3"><INPUT style='font-size:10pt; color:red;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisExclu'])) ?>" readonly ></td>
|
|
-->
|
|
|
|
<td align="center">Dép. / Ass. </td>
|
|
<td><INPUT style='font-size:10pt; color:red;text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisExclu'])) ?>" readonly ></td>
|
|
|
|
<td width="1%"> </td>
|
|
<td><INPUT style='font-size:10pt; color:red;text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisAssure'])) ?>" readonly ></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="content">
|
|
<?php include 'flexcode/include/global.php'; ?>
|
|
</div>
|
|
|
|
<?php if ($facture=="1"): ?>
|
|
<div id ="msgErreur" class="alert alert-danger">
|
|
<H4><?= "Feuille maladie dejà facturée ! / Already charged !" ?></H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<div id ="msgErreur" class="alert alert-danger">
|
|
<H4><?= "Non facturée ! / Not charged !" ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
|
|
<div id ="div_wait">
|
|
</div>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="10%" style="text-align:center"> Date </th>
|
|
<th width="38%" colspan="2" style="text-align:center"> Acte </th>
|
|
<th width="20%" style="text-align:center" > Médecin </th>
|
|
<th width="7%" style="text-align:center"> Valeur </th>
|
|
<th width="3%" style="text-align:center"> Qtité </th>
|
|
<th width="7%" style="text-align:center"> Frais </th>
|
|
<th width="5%" style="text-align:center"> T Mod. </th>
|
|
<th width="7%" style="text-align:center"> A Remb. </th>
|
|
<th width="3%" style="text-align:center"> Suppr </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="6" style='text-align:center'> Total actes</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></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']);
|
|
?>
|
|
|
|
<?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'> <?= dateheureFr($this->nettoyer($prestation['dateSysteme'])) ?> </td>
|
|
|
|
<td align='center'> <?= $codeTypePrestation ?> </td>
|
|
|
|
<td align='center'> <?= $this->nettoyer($prestation['libelleActe']) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['medecinActe']) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
<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>
|
|
|
|
<?php if ($supprimable=="0"): ?>
|
|
<td> </td>
|
|
<?php else: ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="X" onClick="javascript:supprimer_acte_medical('<?= $idPrestationactes ?>', '<?= $codeTypePrestation ?>');"> </td>
|
|
|
|
<?php endif; ?>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="10" height="8"></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<?php if ($facture=="0"): ?>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th rowspan="2" style="text-align:center"> Limites de la famille : Garanties </th>
|
|
<th rowspan="2" style="text-align:center"> Limites </th>
|
|
<th rowspan="2" style="text-align:center"> Solde Ant </th>
|
|
<th colspan="2" style="text-align:center;background-color:blue;color:white;" > Nouvelles Consommations </th>
|
|
<th rowspan="2" style="text-align:center;background-color:red;color:white;"> Dépassement </th>
|
|
<th rowspan="2" style="text-align:center"> Retenu </th>
|
|
<th rowspan="2" style="text-align:center"> Nouv Solde </th>
|
|
<th rowspan="2" style="text-align:center"> Par tête? </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th style="text-align:center;background-color:blue;color:white;" > Garanties </th>
|
|
<th style="text-align:center;background-color:blue;color:white;" > Sous Gar. </th>
|
|
</tr>
|
|
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($garantieadherent_temp as $garantieadherent):
|
|
$champApplication = $this->nettoyer($garantieadherent['champApplication']);
|
|
?>
|
|
|
|
<tr valign="top">
|
|
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeOld'])) ?></td>
|
|
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationNew'])) ?></td>
|
|
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationSousGarantie'])) ?></td>
|
|
<td align='center' style='background-color:red;color:white;'><?= format_N($this->nettoyer($garantieadherent['fraisExclu'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['fraisRetenu'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeNew'])) ?></td>
|
|
|
|
<?php if($champApplication=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked value="<?php echo $champApplication ; ?>" disabled ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" value="<?php echo $champApplication ; ?>" disabled ></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div id="div_fraisExclu">
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="<?= $this->nettoyer($feuillemaladie['fraisExclu']) ?>" >
|
|
</div>
|
|
|
|
<!--
|
|
<div id="content">
|
|
<?php include 'flexcode/include/global.php'; ?>
|
|
</div>
|
|
-->
|
|
|
|
<div id="loadingDiv" style="display: none">
|
|
<div class="ajax-mask"><div class="loading"><img src="Bootstrap/images/loading-spinner-grey.gif"/> Veuillez patienter... / Please wait...</span></div></div>
|
|
</div>
|
|
|
|
<?php if ($numeroDerogation>"0"): ?>
|
|
<div id ="msgDerogation" class="alert alert-danger">
|
|
<H4> <?= "N° de dérogation soins hors réseau : ". $numeroDerogation ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($numeroDerogationFinger>"0"): ?>
|
|
<div id ="msgDerogation" class="alert alert-danger">
|
|
<H4> <?= "N° de dérogation défaut FingerPrint : ". $numeroDerogationFinger ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|