production/Vue/Feuillemaladiecons/index.php
2025-12-01 16:12:12 +00:00

368 lines
16 KiB
PHP
Executable File

<?php
$this->titre = "INTER SANTE - Feuillemaladie";
$facture = $feuillemaladie['facture'];
$facPartiel = $feuillemaladie['facPartiel'];
$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-bs-toggle="modal" data-bs-target="#pop_imprimer_feuille_maladie" style='font-size:10pt;' > </button>
<?php if($vip=="1"): ?>
<INPUT class="form-control vip" TYPE="text" id="vip" name="vip" value="<?= $_SESSION['p_strVip_C'] ?>">
<?php endif; ?>
<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:9pt;' >
<tbody>
<tr>
<td width="5%" > <?= _("Souscripteur") ?> </td>
<td width="20%">
<INPUT style='text-align:center; font-size:11pt;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
value="<?= $_SESSION['nomClient_C'] ?>" onChange="" readonly >
</td>
<td width="5%" align="center" > <?= _("Adh.") ?> </td>
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['adherent_C']; ?>" readonly style="text-align: center; font-size:9pt;" > </td>
<td width="5%" align="center"> <?= _("Bénéf.") ?> </td>
<td width="25%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['beneficiaire_C']; ?>" 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="<?= $_SESSION['telephonePortableBeneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
</tr>
<tr>
<td colspan="8">
<INPUT style='font-size:12pt; font-weight: bold; background-color:#f5deb3 !important; color:#a0522d; text-align:center;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" onChange="" readonly >
</td>
</tr>
</tbody>
</table>
<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:#027BE3;color:white;'> <?= $feuillemaladie['numeroBonConsultation'] ?> </td>
<td width="1%"> </td>
<td width="8%" align="center" style='font-size:10pt; background-color:#027BE3;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:#027BE3;color:white;'> <?= $feuillemaladie['numeroBonExamen'] ?> </td>
<td width="1%"> </td>
<td align="center" style='font-size:10pt; background-color:#027BE3;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:#027BE3;color:white;'> <?= $feuillemaladie['numeroBonOptique'] ?> </td>
<td width="1%"> </td>
<td align="center" style='font-size:10pt; background-color:#027BE3;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:40px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4><?= _("Facturée") ?></H4>
</div>
<?php else : ?>
<?php if($bonCaduc=="0") : ?>
<?php if($facPartiel=="0") : ?>
<div id ="msgErreur" class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4><?= _("Non facturé !") ?></H4>
</div>
<?php else: ?>
<div id ="msgErreur" class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4><?= _("Facturation partielle !") ?></H4>
</div>
<?php endif; ?>
<?php else: ?>
<?php if($facPartiel=="0") : ?>
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4> <?= _("Non facturé !")." Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
</div>
<?php else: ?>
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4> <?= _("Facturation partielle !")." Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
</div>
<?php endif; ?>
<?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 colspan="2" style="text-align:center"> <?= _("Acte") ?> </th>
<th width="15%" style="text-align:center" > <?= _("Médecin") ?> </th>
<!--<th width="7%" style="text-align:center"> <?= _("Base Remb.") ?> </th>-->
<th width="7%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
<th width="3%" style="text-align:center"> <?= _("Qté") ?> </th>
<th width="7%" style="text-align:center"> <?= _("Prix Total") ?> </th>
<th width="3%" style="text-align:center"> <?= _("TM") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Mont TM") ?> </th>
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
<th width="7%" style="text-align:center"> <?= _("Dépass") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Motif") ?> </th>
<!--<th width="3%" style="text-align:center"> <?= _("Suppr") ?> </th>-->
</tr>
</thead>
<tfoot>
<tr>
<?php
?>
<td colspan="6" style='text-align:center'> <?= _("Total") ?> </td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?></td>
<td></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantArembourser'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['depassement'])) ?></td>
<td ></td>
</tr>
</tfoot>
<tbody>
<?php
$quantiteModifieHospit =0;
$_SESSION['ententePrealableenattente'] = "0";
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']);
$idProlongation = $this->nettoyer($prestation['idProlongation']);
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
{
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
{
$libelleActe = "PHARMACIE INTERNE";
}else{
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
}
}
else
{
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
{
$libelleActe = "INTERNAL PHARMACY";
}else{
$libelleActe = $this->nettoyer($prestation['libelleActe']);
}
}
$codeActe = $this->nettoyer($prestation['codeActe']);
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
$libelleConsommable = $this->nettoyer($prestation['libelleConsommable']);
if($codeTypePrestation == "CSM")
{
$libelleActe = $libelleConsommable;
}
if($actVisible!="1")
{
$libelleActe = $codeActe;
}
if($idProlongation > "0"){
$libelleActe = $libelleActe." - "."PROROGATION";
}
$prixBase = $prestation['prixBase'];
if ($prixBase == "0"){
$prixBase = $prestation['valeurActe'];
}
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
$motif = $this->nettoyer($prestation['motif']);
$motifEng = $this->nettoyer($prestation['motifEng']);
$tarif = $this->nettoyer($prestation['tarif']);
$exclusionrecapacte = $this->nettoyer($prestation['exclusionrecapacte']);
?>
<?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'> <?= $codeGarantie ?> </td>
<td align='center'> <?= $libelleActe ?> </td>
<td align='center'> <?= $this->nettoyer($prestation['medecinActe']) ?> </td>
<?php if($exclusionrecapacte=='1'): ?>
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?> </td>
<?php else: ?>
<td align='center'>
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué")?>" onClick='javascript:alert_ebene("<?= $tarif ?>, <?= $tarif ?>");'>
<?= format_N($this->nettoyer($prestation['valeurActe'])) ?>
</button>
</td>
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($prestation['quantite']) ?></td>
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
<?php if($exclusionrecapacte=='1'): ?>
<td align='center'> - </td>
<?php else: ?>
<td align='center'> <?= $this->nettoyer($prestation['tm'])?></td>
<?php endif; ?>
<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!='' && $exclusionrecapacte=='0'): ?>
<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="13" 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; ?>
<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-bs-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-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>