radiantrh/Vue/Feuillemaladiecons/index.php

182 lines
8.6 KiB
PHP
Executable File

<?php $this->titre = "Intersanté - Feuillemaladie";
$facture = $feuillemaladie['facture'];
$numeroDerogation = $feuillemaladie['numeroDerogation'];
$numeroDerogationFinger = $feuillemaladie['numeroDerogationFinger'];
$codeAffection = $this->nettoyer($feuillemaladie['codeAffection']);
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
{
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffectionEng']);
}
else
{
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffection']);
}
?>
<script type="text/javascript">
</script>
<input class="sr-only" type="text" id="facture" name="facture" value="<?= $this->nettoyer($feuillemaladie['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 style='text-align:center; font-size:11pt;' class="form-control" type="text" value= "Informations sur la feuille maladie N° : <?= $feuillemaladie['numeroFeuilleMaladie'] ?> => Prestataire : <?= $_SESSION['prestataire_C'] ?>" 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="<?= $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>
</tr>
<tr>
<td> <?= _("Affection") ?> </td>
<td colspan="5">
<INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= $libelleAffection ?>" readonly >
</td>
<td align="center"> <?= _("IdFacture") ?> </td>
<td colspan="3">
<INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= $feuillemaladie['idFactureFeuille'] ?>" readonly >
</td>
</tr>
</tbody>
</table>
<?php if ($facture=="1"): ?>
<div id ="msgErreur" class="alert alert-success">
<H4><?= "Facturée" ?></H4>
</div>
<?php else : ?>
<div id ="msgErreur" class="alert alert-danger">
<H4><?= "Non Facturée !" ?></H4>
</div>
<?php endif; ?>
<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 M </th>
<th width="7%" style="text-align:center"> A Rmb </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>
</tr>
</tfoot>
<tbody>
<?php foreach ($prestations as $prestation):
$idPrestationactes=$this->nettoyer($prestation['id']);
$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>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="9" height="8"></td>
</tr>
</tbody>
</table>
<?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; ?>