365 lines
18 KiB
PHP
Executable File
365 lines
18 KiB
PHP
Executable File
<?php
|
|
// $this->titre = "INTER-SANTE - Fiche Bénéficiaire";
|
|
|
|
$AffectionVisible = $_SESSION['p_AffectionVisible'];
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$produit = $beneficiaire['produitEng'];
|
|
$naturepiece = $beneficiaire['naturepieceEng'];
|
|
$lienparente = $beneficiaire['lienparenteEng'];
|
|
$motifsortie = $beneficiaire['motifsortieEng'];
|
|
$etatbeneficiaire = $beneficiaire['etatbeneficiaireEng'];
|
|
}
|
|
else
|
|
{
|
|
$produit = $beneficiaire['produit'];
|
|
$naturepiece = $beneficiaire['naturepiece'];
|
|
$lienparente = $beneficiaire['lienparente'];
|
|
$motifsortie = $beneficiaire['motifsortie'];
|
|
$etatbeneficiaire = $beneficiaire['etatbeneficiaire'];
|
|
}
|
|
|
|
$garant = $this->nettoyer($beneficiaire['garant']);
|
|
|
|
if(strlen($garant)>"25"){
|
|
$garant = $this->nettoyer($beneficiaire['codeGcAssureur']);
|
|
}
|
|
|
|
$nomClient = $this->nettoyer($beneficiaire['nomClient']);
|
|
$libellePolice = $this->nettoyer($beneficiaire['libellePolice']);
|
|
$lienPhoto = $this->nettoyer($beneficiaire['lienPhoto']);
|
|
$codeAffection = $this->nettoyer($feuillemaladie['codeAffection']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffectionEng'])." => ".$codeAffection;
|
|
}
|
|
else
|
|
{
|
|
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffection'])." => ".$codeAffection;
|
|
}
|
|
|
|
if($AffectionVisible!="1")
|
|
{
|
|
$libelleAffection = $codeAffection;
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
<div id="div_recap_feuille_maladie">
|
|
<div class="modal-dialog modal-lg" style="width:80%" data-backdrop="static" data-keyboard="false">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" >×</button>
|
|
<legend style= "font-size:12px;" class="modal-title text-center">Récapitulatif du dossier patient</legend>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div id="div_benef">
|
|
<fieldset>
|
|
<legend style= "font-size:12px;"> <?= _('Bénéficiaire (').$beneficiaire['numeroBeneficiaire'].') / '.$beneficiaire['nomBeneficiaire']." ".$beneficiaire['prenomsBeneficiaire']; ?>
|
|
<a href="javascript:afficherMasquerBeneficiaire();" style="font-size:16pt;"><span id="span_beneficiaire" title="Cliquez sur le lien pour afficher ou masquer les détails du bénéficiaire"></span></a>
|
|
</legend>
|
|
<INPUT class="sr-only" TYPE="text" id="masquerbeneficiaire" NAME="masquerbeneficiaire" value="1">
|
|
<div id="div_beneficiaire">
|
|
<table class="table table-responsive table-condensed">
|
|
<tbody style= "font-size:10px; " >
|
|
<tr>
|
|
<td style= "font-weight:bold;" rowspan="7">
|
|
<?php if ($lienPhoto>" " ):
|
|
if(is_file($_SESSION['p_dossierSociete'].'/Photos/'.$lienPhoto)) :?>
|
|
<img src="<?= $_SESSION['p_dossierSociete'].'/Photos/'.$lienPhoto ?>" style="width: 100px;">
|
|
<?php else :?>
|
|
<img src="<?= $_SESSION['p_dossierSociete'].'/Photos/person.png' ?>" style="width: 100px;">
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</td>
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Garant") ?> </td>
|
|
<td ><?=": ".$garant ?></td>
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Souscripteur") ?> </td>
|
|
<td ><?= ": ".$nomClient ?></td>
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Police") ?> </td>
|
|
<td > <?=": ".$libellePolice ?></td>
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Couverture") ?> </td>
|
|
<td >
|
|
:<input style= "width:60px;" type="button" class="btn btn-warning" value="<?= ' '.taux_couverture(intval($this->nettoyer($beneficiaire['ticketModerateur']))) ?>">
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Matricule") ?> </td>
|
|
<td style= "color:red; font-weight:bold;"><?= ": ".$beneficiaire['numeroBeneficiaire'] ?></td>
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Nom") ?> </td>
|
|
<td ><?= ": ".$beneficiaire['nomBeneficiaire'] ?></td>
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Prénoms") ?> </td>
|
|
<td><?= ": ".$beneficiaire['prenomsBeneficiaire'] ?></td>
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Lien Parenté") ?> </td>
|
|
<td><?= ": ".$lienparente ?></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Naissance") ?> </td>
|
|
<td><?= ": ".dateLang($this->nettoyer($beneficiaire['dateNaissance'])).' => '.$beneficiaire['age'].' ans' ?></td>
|
|
|
|
<td style= "font-weight:bold;" align="left">Sexe</td>
|
|
<td><?= ": ".$beneficiaire['sexe'] ?></td>
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("Tél Portable") ?> </td>
|
|
<td><?= ": ".$beneficiaire['telephonePortable'] ?></td>
|
|
|
|
|
|
<td style= "font-weight:bold;" align="left"> <?= _("No Famille") ?> </td>
|
|
<td><?= ": ".$beneficiaire['numeroAdherent'] ?></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
|
|
<div id="div_dossier">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td align="center"width="10%"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($feuillemaladie['fraisReel']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:#5f9ea0; color:white;" > </td>
|
|
|
|
<td align="center" width="13%"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($feuillemaladie['montantTm']+$feuillemaladie['depassement']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:#ba74d4; color:white;" > </td>
|
|
|
|
|
|
<td align="center" > <?= _("A Rembourser") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($feuillemaladie['montantArembourser']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:rgba(255, 0, 127); color:white" > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="8%" > <?= _("Date Consultation") ?> </td>
|
|
<td width="15%" > <INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($feuillemaladie['dateConsultation'])) ?>" readonly> </td>
|
|
<td align="left"> <?= _("N° Bon Consultation") ?> </td>
|
|
<td width="8%" align="center" style='font-size:10pt; background-color:blue;color:white;'><?= $feuillemaladie['numeroBonConsultation'] ?></td>
|
|
<td width="8%" align="center"> <?= _("N° Bon Examen") ?> </td>
|
|
<td width="8%" align="center" style='font-size:10pt; background-color:blue;color:white;'><?= $feuillemaladie['numeroBonExamen'] ?> </td>
|
|
<td width="8%" align="center"> <?= _("N° Bon Séance") ?> </td>
|
|
<td width="8%" align="center" style='font-size:10pt; background-color:blue;color:white;'><?= $feuillemaladie['numeroBonKine'] ?></td>
|
|
<td width="8%" align="center"> <?= _("N° Bon Hospitalisation") ?> </td>
|
|
<td width="8%" align="center" style='font-size:10pt; background-color:blue;color:white;'><?= $feuillemaladie['numeroBonHospitalisation'] ?></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Médecin Consultant") ?> </td>
|
|
<td width="15%" ><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= $feuillemaladie['medecinConsultation'] ?>"readonly ></td>
|
|
<td width="8%" align="left" > <?= _("Prestations") ?> </td>
|
|
<td colspan=7< ><INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?=
|
|
$feuillemaladie['medecinConsultation'] ?>" readonly ></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
<td> <?= _("Affection") ?> </td>
|
|
<td >
|
|
<?php if($codeAffection=="990"): ?>
|
|
<button id="btn_pop_affection" name="btn_pop_affection" type="button" class="form-control btn btn-warning" data-toggle="modal" data-target="#popRechercheAffection" style='font-size:10pt;' ><span id="libelleAffection" name="libelleAffection"><?= $libelleAffection ?> </span></button>
|
|
<?php else: ?>
|
|
<button id="btn_pop_affection" name="btn_pop_affection" type="button" class="form-control btn btn-primary" data-toggle="modal" data-target="#popRechercheAffection" style='font-size:10pt;' ><span id="libelleAffection" name="libelleAffection"><?= $libelleAffection ?> </span></button>
|
|
<?php endif; ?>
|
|
</td>
|
|
<td align="left"> <?= _("Affection") ?> </td>
|
|
<td colspan="7">
|
|
<div id="listeaffections">
|
|
<SELECT class="form-control selectpicker" data-live-search="true" id="codeAffectionPop" NAME="codeAffectionPop" onChange="javascript:enregistreraffectionpop('<?=$feuillemaladie['numeroFeuilleMaladie']?>','<?= $feuillemaladie['idBeneficiaire']?>');" required style='font-size:10pt;' >
|
|
<?php liste_options($affections, $codeAffection); ?>
|
|
</SELECT>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
|
|
|
|
|
|
<div id="div_prestations">
|
|
<fieldset>
|
|
<legend style= "font-size:12px;" class="modal-title text-center">Prestations effectuées</legend>
|
|
<table class="table table-striped table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> <?= _("Garantie") ?> </th>
|
|
<th style='text-align:center;'> <?= _("Date") ?> </th>
|
|
<th style='text-align:center'> <?= _("Actes") ?> </th>
|
|
<th style='text-align:center'> <?= _("Etat") ?> </th>
|
|
<th style='text-align:center'> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
$garanties_prestations = [];
|
|
$group = null;
|
|
$garanties = null;
|
|
|
|
foreach ($prestations as $prestation) {
|
|
if ($prestation['Garantie'] != $garanties) {
|
|
if ($group) {
|
|
$garanties_prestations[] = $group;
|
|
}
|
|
$group = ['Garantie' => $prestation['Garantie'], 'actes' => []];
|
|
}
|
|
$group['actes'][] = ['libelleActe' => $prestation['libelleActe'], 'datePrestation' => $prestation['datePrestation'], 'motifReel' => $prestation['motifReel'], 'reponsentEnteprealable' => $prestation['reponsentEnteprealable'] ];
|
|
$garanties = $prestation['Garantie'];
|
|
|
|
}
|
|
// Add last group to $grouped_reports
|
|
if ($group) {
|
|
$garanties_prestations[] = $group;
|
|
}
|
|
?>
|
|
<tbody>
|
|
<?php
|
|
foreach ($garanties_prestations as $garanties_prestation) :
|
|
$rowspan = count($garanties_prestation['actes']);
|
|
?>
|
|
<tr>
|
|
<td style= "font-weight:bold; border: 2px solid #000;" class="text-center" rowspan="<?= $rowspan ?>"><?= $garanties_prestation['Garantie'] ?></td>
|
|
<td class="text-center" ><?= dateLang($garanties_prestation['actes'][0]['datePrestation']) ?></td>
|
|
<td class="text-left"><?= $garanties_prestation['actes'][0]['libelleActe'] ?></td>
|
|
<td class="text-center">
|
|
<?php if( $garanties_prestation['actes'][0]['reponsentEnteprealable'] == "Accordée" || $garanties_prestation['actes'][0]['reponsentEnteprealable'] == "Validé" ):
|
|
?>
|
|
<input type="button" class="btn btn-success" value="<?= $garanties_prestation['actes'][0]['reponsentEnteprealable'] ?>">
|
|
<?php else: ?>
|
|
<input type="button" class="btn btn-warning" value="<?= $garanties_prestation['actes'][0]['reponsentEnteprealable'] ?>">
|
|
<?php endif; ?>
|
|
</td>
|
|
<td class="text-center"><?= $garanties_prestation['actes'][0]['motifReel'] ?></td>
|
|
</tr>
|
|
<?php for ($i = 1; $i < $rowspan; $i++) : ?>
|
|
<tr>
|
|
<td class="text-center"><?= dateLang($garanties_prestation['actes'][$i]['datePrestation'])?></td>
|
|
<td class="text-left"><?= $garanties_prestation['actes'][$i]['libelleActe'] ?></td>
|
|
<td class="text-center">
|
|
<?php if( $garanties_prestation['actes'][$i]['reponsentEnteprealable'] == "Accordée" || $garanties_prestation['actes'][$i]['reponsentEnteprealable'] == "Validé" ):
|
|
?>
|
|
<input type="button" class="btn btn-success" value="<?= $garanties_prestation['actes'][$i]['reponsentEnteprealable'] ?>">
|
|
<?php else: ?>
|
|
<input type="button" class="btn btn-warning" value="<?= $garanties_prestation['actes'][$i]['reponsentEnteprealable'] ?>">
|
|
<?php endif; ?>
|
|
</td>
|
|
<td class="text-center"><?= $garanties_prestation['actes'][$i]['motifReel'] ?></td>
|
|
</tr>
|
|
<?php endfor;
|
|
endforeach;
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
|
|
|
|
<div id="div_prestations_noneffectue">
|
|
<fieldset>
|
|
<legend style= "font-size:12px;" class="modal-title text-center">Prestations non effectuées</legend>
|
|
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> <?= _("Garantie") ?> </th>
|
|
<th style='text-align:center'> <?= _("Actes") ?> </th>
|
|
<th style='text-align:center'> <?= _("Etat") ?> </th>
|
|
<th style='text-align:center'> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
$garanties_prestations = [];
|
|
$group = null;
|
|
$garanties = null;
|
|
|
|
foreach ($prestationnoneffectues as $prestationnoneffectue) {
|
|
if ($prestationnoneffectue['Garantie'] != $garanties) {
|
|
if ($group) {
|
|
$garanties_prestations[] = $group;
|
|
}
|
|
$group = ['Garantie' => $prestationnoneffectue['Garantie'], 'actes' => []];
|
|
}
|
|
$group['actes'][] = ['libelleActe' => $prestationnoneffectue['libelleActe'], 'motifReel' => $prestationnoneffectue['motifReel'], 'reponsentEnteprealable' => $prestationnoneffectue['reponsentEnteprealable'] ];
|
|
$garanties = $prestationnoneffectue['Garantie'];
|
|
}
|
|
// Add last group to $grouped_reports
|
|
if ($group) {
|
|
$garanties_prestations[] = $group;
|
|
}
|
|
?>
|
|
<tbody>
|
|
<?php
|
|
foreach ($garanties_prestations as $garanties_prestation) :
|
|
$rowspan = count($garanties_prestation['actes']);
|
|
?>
|
|
<tr>
|
|
<td style= "font-weight:bold;border: 2px solid #000;" class="text-center" rowspan="<?= $rowspan ?>"><?= $garanties_prestation['Garantie'] ?></td>
|
|
<td class="text-left"><?= $garanties_prestation['actes'][0]['libelleActe'] ?></td>
|
|
<td class="text-center">
|
|
<?php if( $garanties_prestation['actes'][0]['reponsentEnteprealable'] == "Accordée" || $garanties_prestation['actes'][0]['reponsentEnteprealable'] == "Validé" ):
|
|
?>
|
|
<input type="button" class="btn btn-success" value="<?= $garanties_prestation['actes'][0]['reponsentEnteprealable'] ?>">
|
|
<?php else: ?>
|
|
<input type="button" class="btn btn-warning" value="<?= $garanties_prestation['actes'][0]['reponsentEnteprealable'] ?>">
|
|
<?php endif; ?>
|
|
</td>
|
|
<td class="text-center"><?= $garanties_prestation['actes'][0]['motifReel'] ?></td>
|
|
</tr>
|
|
<?php for ($i = 1; $i < $rowspan; $i++) : ?>
|
|
<tr>
|
|
<td class="text-left"><?= $garanties_prestation['actes'][$i]['libelleActe'] ?></td>
|
|
<td class="text-center">
|
|
<?php if( $garanties_prestation['actes'][$i]['reponsentEnteprealable'] == "Accordée" || $garanties_prestation['actes'][$i]['reponsentEnteprealable'] == "Validé" ):
|
|
?>
|
|
<input type="button" class="btn btn-success" value="<?= $garanties_prestation['actes'][$i]['reponsentEnteprealable'] ?>">
|
|
<?php else: ?>
|
|
<input type="button" class="btn btn-warning" value="<?= $garanties_prestation['actes'][$i]['reponsentEnteprealable'] ?>">
|
|
<?php endif; ?>
|
|
</td>
|
|
<td class="text-center"><?= $garanties_prestation['actes'][$i]['motifReel'] ?></td>
|
|
</tr>
|
|
<?php endfor;
|
|
endforeach;
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div id="div_cloture">
|
|
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
|
|
|
|
<fieldset style="text-align:center;">
|
|
<h4 >Voulez vous clôturer ce dossier ?</h4>
|
|
<button type="button" class="btn btn-warning" onClick="javascript:facturerfeuillepop('<?=$feuillemaladie['numeroFeuilleMaladie']?>','<?= $feuillemaladie['idBeneficiaire']?>')"><i class="fa fa-expeditedssl" ></i> clôturer</button>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" id="btn-fermer-modal"
|
|
class="btn btn-default" data-dismiss="modal">Fermer</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|