245 lines
11 KiB
PHP
245 lines
11 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Feuillemaladie";
|
|
|
|
$facture = $feuillemaladie['facture'];
|
|
$numeroDerogation = $feuillemaladie['numeroDerogation'];
|
|
$numeroDerogationFinger = $feuillemaladie['numeroDerogationFinger'];
|
|
$nb_notefeuillemaladie = $feuillemaladie['nb_notefeuillemaladie'];
|
|
|
|
$agePrescription = $this->nettoyer($feuillemaladie['agePrescription']);
|
|
$bonCaduc = $this->nettoyer($feuillemaladie['bonCaduc']);
|
|
|
|
$actVisible = $_SESSION['actVisible'];
|
|
|
|
$codeAffection = $this->nettoyer($feuillemaladie['codeAffection']);
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffectionEng'])." => ".$codeAffection;
|
|
}
|
|
else
|
|
{
|
|
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffection'])." => ".$codeAffection;
|
|
}
|
|
|
|
$AffectionVisible = $_SESSION['AffectionVisible'];
|
|
|
|
if($AffectionVisible!="1")
|
|
{
|
|
$libelleAffection = $codeAffection;
|
|
}
|
|
?>
|
|
|
|
<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']) ?>" >
|
|
<button class="sr-only" id="btn_imprimer_feuille_maladie" name="btn_imprimer_feuille_maladie" type="button" data-toggle="modal" data-target="#pop_imprimer_feuille_maladie" style='font-size:10pt;' > </button>
|
|
|
|
<input style='text-align:center; font-size:11pt;' class="form-control" type="text"
|
|
value= "<?= _("Prestataire") . " => " . $_SESSION['prestataire_C'] . " => " . _("Feuille Maladie"). " No : " . $feuillemaladie['numeroFeuilleMaladie'] . " => Notes => " . $nb_notefeuillemaladie . " => User => " . $feuillemaladie['codeUtilisateur'] ?>" readonly >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="8%" > <?= _("Consultation") ?> </td>
|
|
<td width="17%" > <INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($feuillemaladie['dateConsultation'])) ?>" readonly> </td>
|
|
|
|
<td width="8%" align="center"> <?= _("Survenance") ?> </td>
|
|
<td width="17%" ><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($feuillemaladie['dateSurvenance'])) ?>" readonly></td>
|
|
|
|
|
|
<td width="8%" align="center"> <?= _("Système") ?> </td>
|
|
<td width="17%" ><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateheureLang($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édecin") ?> </td>
|
|
<td colspan="3"><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= $feuillemaladie['medecinConsultation'] ?>" readonly ></td>
|
|
|
|
<td align="center"> <?= _("Raison Consult") ?> </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") ?> </td>
|
|
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?>" readonly ></td>
|
|
|
|
<td align="center" > <?= _("Ticket Mod") ?> </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 Remb") ?> </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") ?> </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épas") ?> </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-danger" style="height:30px; padding:5px; text-align:center; margin-bottom:5px;" >
|
|
<H4><?= _("Facturée") ?></H4>
|
|
</div>
|
|
<?php else : ?>
|
|
<?php if($bonCaduc=="0") : ?>
|
|
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px; text-align:center;; margin-bottom:5px;" >
|
|
<H4><?= _("Non facturée !") ?></H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center; margin-bottom:5px;" >
|
|
<H4> <?= _("Non facturée !")." Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?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 Remb") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="6" style='text-align:center'> Total </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']);
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
?>
|
|
<?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'> <?= dateheureLang($this->nettoyer($prestation['dateSysteme'])) ?> </td>
|
|
<td align='center'> <?= $codeTypePrestation ?> </td>
|
|
<td align='center'> <?= $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> <?= _("No de dérogation soins hors réseau") . " : ". $numeroDerogation ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($numeroDerogationFinger>"0"): ?>
|
|
<div id ="msgDerogation" class="alert alert-danger" style="height:30px; padding:5px;">
|
|
<H4> <?= _("No de dérogation défaut FingerPrint") . " : ". $numeroDerogationFinger ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="modal fade" id="pop_imprimer_feuille_maladie" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Imprimer Feuille Maladie...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id ="div_export_a">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|