1281 lines
57 KiB
PHP
Executable File
1281 lines
57 KiB
PHP
Executable File
<script src="Bootstrap/js/jquery.min.js"></script>
|
|
<script src="Bootstrap/js/jquery-1.9.1.min.js"></script>
|
|
<script src="Bootstrap/js/jquery-ui.js"></script>
|
|
<script src="Js/fonctions.js?ver=2023.03.19.325"></script>
|
|
|
|
<?php $this->titre = "INTER-SANTE - Hospitalisation";
|
|
$numeroBonHospitalisation = $feuillemaladie['numeroBonHospitalisation'];
|
|
$facture = $feuillemaladie['facture'];
|
|
$prolongationHospit = $feuillemaladie['prolongationHospit'];
|
|
$motifProlongation = $feuillemaladie['motifProlongation'];
|
|
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
|
|
|
|
|
|
$dateFinHospit = $feuillemaladie['dateFinHospit'];
|
|
|
|
if($modeSaisieFacture=="0"){
|
|
$dateDebutHospit = ($feuillemaladie['dateDebutHospit']=="") ? date('d/m/Y') : dateLang($feuillemaladie['dateDebutHospit'], $_SESSION['p_lang']);
|
|
}else{
|
|
$dateDebutHospit = ($feuillemaladie['dateDebutHospit']=="") ? datefr($feuillemaladie['dateConsultation']) : datefr($feuillemaladie['dateDebutHospit']);
|
|
}
|
|
|
|
|
|
if($feuillemaladie['idProlongation'] == "0"){
|
|
|
|
$dateDebutPro = $feuillemaladie['dateFinHospit'];
|
|
|
|
}
|
|
|
|
|
|
if($derniereDateProlongation=="0"){
|
|
$dateFinHospitProlongation = date('d/m/Y', strtotime($dateFinHospit. ' + 1 days'));
|
|
}else{
|
|
$dateFinHospitProlongation = date('d/m/Y', strtotime($derniereDateProlongation. ' + 1 days'));
|
|
}
|
|
|
|
$instructionHospit = $feuillemaladie['instructionHospit'];
|
|
|
|
$dateJour = date('Y-m-d');
|
|
|
|
|
|
$badcodeGestionBon = "1";
|
|
$tab_gestion_bon = array("0", "1", "2");
|
|
if (in_array($codeGestionBon, $tab_gestion_bon))
|
|
{
|
|
$badcodeGestionBon = "0";
|
|
}
|
|
|
|
$agePrescription = $this->nettoyer($feuillemaladie['agePrescription']);
|
|
$bonCaduc = $this->nettoyer($feuillemaladie['bonCaduc']);
|
|
|
|
|
|
if($modeSaisieFacture=="1")
|
|
{
|
|
$bonCaduc = "0";
|
|
}
|
|
|
|
$motifHospit = $feuillemaladie['motifHospitalisation'];
|
|
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
|
|
$optionHospitalisation = $feuillemaladie['optionHospitalisation'];
|
|
|
|
$avisHospitalisation = $feuillemaladie['avisHospitalisation'];
|
|
|
|
//var_dump($optionHospitalisation);
|
|
/*
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$typeHospitInit = $this->nettoyer($feuillemaladie['typeHospitInitEng']);
|
|
$typeHospit = $this->nettoyer($feuillemaladie['typeHospitEng']);
|
|
|
|
}
|
|
else
|
|
{
|
|
$typeHospitInit = $this->nettoyer($feuillemaladie['typeHospitInit']);
|
|
$typeHospit = $this->nettoyer($feuillemaladie['typeHospit']);
|
|
|
|
}
|
|
*/
|
|
$codeLienParente = $_SESSION['p_codeLienParente_C'];
|
|
$sexe = $_SESSION['p_sexe_C'];
|
|
|
|
$legende = ($optionHospitalisation=="option-1") ? "Medical Hospitalization" : "Surgical Hospitalization";
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleCarence = "Wait Period";
|
|
$libelleAvis = $this->nettoyer($feuillemaladie['libelleAvisEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleCarence = "Carence";
|
|
$libelleAvis = $this->nettoyer($feuillemaladie['libelleAvis']);
|
|
|
|
$legende = ($optionHospitalisation=="option-1") ? "Hospitalisation Médicale" : "Hospitalisation Chirurgicale";
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
<input class="sr-only" id="avisHospitalisation" name="avisHospitalisation" type="text" value= "<?= $avisHospitalisation; ?>" >
|
|
<input class="sr-only" id="libelleAvis" name="libelleAvis" type="text" value= "<?= $libelleAvis; ?>" >
|
|
|
|
|
|
<?php if($numeroBonHospitalisation > "0"): ?>
|
|
<legend> <?= $legende ?> </legend>
|
|
<?php else: ?>
|
|
<legend> <?= _("Avis d'Hospitalisation") ?> </legend>
|
|
<?php endif; ?>
|
|
|
|
<input class="sr-only" id="badcodeGestionBon" name="badcodeGestionBon" type="text" value= "<?= $badcodeGestionBon ?>" >
|
|
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
|
|
|
|
<input class="sr-only" id="codeLienParente" name="codeLienParente" type="text" value= "<?= $_SESSION['p_codeLienParente_C'] ?>" >
|
|
<input class="sr-only" id="sexe" name="sexe" type="text" value= "<?= $_SESSION['p_sexe_C'] ?>" >
|
|
|
|
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "chambre" >
|
|
|
|
<input class="sr-only" id="codeMedecin" name="codeMedecin" type="text" value= "<?= $feuillemaladie['codeMedecin'] ?>" >
|
|
|
|
<input class="sr-only" id="typeHospitalisation" name="typeHospitalisation" type="text" value= "<?= $optionHospitalisation; ?>" >
|
|
|
|
<input class="sr-only" id="nbreActeEntentePrealable" name="nbreActeEntentePrealable" type="text" value= "<?= $nbreActeEntentePrealable; ?>" >
|
|
|
|
<input class="sr-only" id="dateSurvenance" name="dateSurvenance" type="text" value= "<?= $dateDebutHospit; ?>" >
|
|
|
|
<input class="sr-only" id="numeroFeuilleMaladie" name="numeroFeuilleMaladie" type="text" value= "<?= $_SESSION['p_numeroFeuilleMaladie_C']; ?>" >
|
|
<input class="sr-only" id="idBeneficiaire" name="idBeneficiaire" type="text" value= "<?= $_SESSION['p_idBeneficiaire_C']; ?>" >
|
|
<input class="sr-only" id="codePrestataire" name="codePrestataire" type="text" value= "<?= $_SESSION['p_codePrestataire_C']; ?>" >
|
|
|
|
|
|
<input class="sr-only" id="nbreChambre" name="nbreChambre" type="text" value= "<?= $nbreChambre; ?>" >
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="dateJour" NAME="dateJour" value="<?= date('Y-m-d') ?>">
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="modeSaisieFacture" NAME="modeSaisieFacture" value="<?= $modeSaisieFacture ?>">
|
|
|
|
<button type="button" class="sr-only" id="btn_imprimer_chambre" name="btn_imprimer_chambre" data-bs-toggle="modal" data-bs-target="#pop_imprimer_chambre" style='font-size:10pt;' > </button>
|
|
|
|
|
|
<?php if ($numeroBonHospitalisation<="0" && $badcodeGestionBon=="1") : ?>
|
|
<div class="alert alert-danger" style="height:35px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("REVOIR LE TYPE DE GESTION DES BONS") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
|
|
<input class="sr-only" id="dateFinHospit" name="dateFinHospit" type="text" value= "<?= $dateFinHospit ?>" >
|
|
<input class="sr-only" id="numeroBonHospitalisation" name="numeroBonHospitalisation" type="text" value= "<?= $numeroBonHospitalisation ?>" >
|
|
<input class="sr-only" id="numeroBon" name="numeroBon" type="text" value= "<?= $numeroBonHospitalisation ?>" >
|
|
|
|
<input class="sr-only" type="text" id="nbBonsOrd" name="nbBonsOrd" Value="<?= $nbBonsOrd ?>" >
|
|
<input class="sr-only" type="text" id="codeGestionBon" name="codeGestionBon" Value="<?= $codeGestionBon ?>" >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
|
|
<tbody>
|
|
<!--
|
|
<tr>
|
|
<td width="14%" > <?= _("Souscripteur") ?> </td>
|
|
<td colspan="3">
|
|
<INPUT style='font-size:11pt;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
|
|
value="<?= $_SESSION['p_nomClient_C'] ?>" onChange="" readonly >
|
|
</td>
|
|
|
|
<td width="7%" align="center" > <?= _("Adhérent") ?> </td>
|
|
<td colspan="3"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_adherent_C']; ?>" readonly style="font-size:9pt;" > </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Bénéficiaire") ?> </td>
|
|
<td colspan="5"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_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['p_telephonePortableBeneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
|
|
</tr>
|
|
-->
|
|
<tr>
|
|
<td > Date </td>
|
|
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= dateheureLang(date('y-m-d H:i:s')) ?>" readonly style="font-size:10pt;" > </td>
|
|
|
|
<td width="5%" align="center"> <?= _("Médecin") ?> </td>
|
|
<td colspan="3">
|
|
|
|
<INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($feuillemaladie['medecinConsultation']) ?>" readonly style='font-size:10pt;'>
|
|
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("No Bon") ?> </td>
|
|
<td width="10%"> <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue !important; color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonHospitalisation ?>" readonly > </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>
|
|
|
|
<?php
|
|
|
|
//var_dump($numeroBonHospitalisation, count($situationHospit));
|
|
|
|
if($numeroBonHospitalisation > "0" && count($situationHospit) > "0"):
|
|
|
|
?>
|
|
<tr >
|
|
<td colspan="8">
|
|
<a href="javascript:afficheDivPlafond();" style="font-size:14pt;"><span id="span_libelle"><?= _("Afficher")?></span> <?= " ". _("le plafond")?></a>
|
|
<INPUT class="sr-only" TYPE="text" id="masquer" NAME="masquer" value="0">
|
|
|
|
<div id="div_plafond_beneficiaire">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:12pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" rowspan="2"> <?= _("Libelle") ?> </th>
|
|
<th style="text-align:center" rowspan="2"> <?= _("Plafond") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($situationHospit as $situation):
|
|
if ($situation['codePlafond'] == "GAR"){
|
|
if($situation['codeGarantie']==(is_array($groupeMED)? $groupeMED['codeGarantie'] : "")){
|
|
$conso = $groupeMED['montantArembourser_total'];
|
|
}elseif($situation['codeGarantie']==(is_array($groupeCHI)? $groupeCHI['codeGarantie'] : "")){
|
|
$conso = $groupeCHI['montantArembourser_total'];
|
|
}elseif($situation['codeGarantie']==(is_array($groupeHOS)? $groupeHOS['codeGarantie'] : "")){
|
|
$conso = $groupeHOS['montantArembourser_total'];
|
|
}else{
|
|
$conso = "0";
|
|
}
|
|
}else{
|
|
$conso = $groupeHOS['montantArembourser_total'];
|
|
}
|
|
|
|
$periodicite = $situation['periodicite'];
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$periodicite = $situation['periodiciteEng'];
|
|
}
|
|
//var_dump($soldeConsommation);
|
|
?>
|
|
<?php if(($soldeConsommation-$conso) <='0'): ?>
|
|
<tr style="background-color: red; color:white" valign="top">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<th > <?= $situation['rubrique'] ?> </th>
|
|
<td align='center'> <?= format_N($situation['plafond'])." ".$_SESSION['p_devise_C']." ".$periodicite ?> </td>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr >
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php if((empty($motifHospit) || $numeroBonHospitalisation=="0") && ($avisHospitalisation=="0" || $avisHospitalisation=="2")) : ?>
|
|
<tr>
|
|
<td width="14%" class="required"> <?= _("Renseignement Clinique") ?> </td>
|
|
<td colspan="7"><input id="motifHospitalisation" name="motifHospitalisation" style="font-size:10pt;" class="form-control" value="<?= $motifHospit ?>" type="text" onChange="" autofocus required AUTOCOMPLETE="OFF" placeholder="<?= _("Obligatoire avant d'enregistrer l'hospitalisation...")?>"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="required"> <?= _("Type Hospitalisation") ?> </td>
|
|
<td colspan="7" >
|
|
<?php if($avisHospitalisation=="2") : ?>
|
|
<SELECT class="form-select" id="optionHospitalisation" NAME="optionHospitalisation" required AUTOCOMPLETE="OFF" style='font-size:10pt; height:30px;' onChange="javascript:messageSituationHospitalisation();" required AUTOCOMPLETE="OFF" >
|
|
<?php liste_options($typeHospitalisation,$feuillemaladie['optionHospitalisation'],true); ?>
|
|
</SELECT>
|
|
<?php else : ?>
|
|
<SELECT class="form-select" id="optionHospitalisation" NAME="optionHospitalisation" required AUTOCOMPLETE="OFF" style='font-size:10pt; height:30px;' onChange="javascript:messageSituationHospitalisation();" required AUTOCOMPLETE="OFF" >
|
|
<?php //liste_options($typeHospitalisation,$feuillemaladie['optionHospitalisation'],true); ?>
|
|
<?php liste_options($typeHospitalisation,""); ?>
|
|
</SELECT>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="required"> <?= _("Type Chambre") ?> </td>
|
|
<td colspan="3">
|
|
<SELECT class="form-select" id="codeActeChambreHospit" NAME="codeActeChambreHospit" required AUTOCOMPLETE="OFF" style='font-size:10pt; height:30px;' onChange="javascript:messageSituationHospitalisation();" required AUTOCOMPLETE="OFF" >
|
|
<?php liste_options($actesChambre,$feuillemaladie['codeActeChambreHospit'],false); ?>
|
|
</SELECT>
|
|
</td >
|
|
|
|
<td align="center" class="required"> <?= _("Début") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control datepicker" TYPE="text" id="dateDebutHospit" name="dateDebutHospit" style='font-size:10pt;' value="<?= $dateDebutHospit ;?>" required AUTOCOMPLETE="OFF" onChange="javascript:verifierDateChambre();">
|
|
</td>
|
|
|
|
<td align="center" class="required"> <?= _("Durée (J)") ?> </td>
|
|
<td>
|
|
<input class="form-control" type="number" id="dureeHospit" name="dureeHospit" style="font-size:10pt;" Value="<?= $feuillemaladie['dureeHospit']?>" min="0" required AUTOCOMPLETE="OFF" >
|
|
</td>
|
|
</tr>
|
|
<tr style='background-color:white'>
|
|
<td colspan="8" height="20"></td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan="8" >
|
|
<?php if($avisHospitalisation=="2") : ?>
|
|
<input id="btn_modif" style="font-size:12pt" name="btn_modif" class = "form-control btn btn-warning" type="button" value="<?= _("Modifier l'avis d'hospitalisation envoyé") ?>" onClick="javascript:modidieravishospitalisation();" style='font-size:10pt;' >
|
|
<?php else : ?>
|
|
<div id="div_reponse" >
|
|
|
|
|
|
</div>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php else: ?>
|
|
<tr>
|
|
<input class="sr-only" id="motifHospitalisation" name="motifHospitalisation" style="font-size:10pt;" value="<?= $_SESSION['p_motifHospitalisation_C'] ?>" type="text" onChange="javascript:enregistrerhospitalisation();" autofocus required AUTOCOMPLETE="OFF" >
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_statutacte">
|
|
|
|
</div>
|
|
|
|
<?php
|
|
$hospit_total_reclame = $hospit_total['totalPrixManuel'];
|
|
?>
|
|
|
|
<div id="infosbon">
|
|
<!-- debut new -->
|
|
<?php if($codeGestionBon!="0"): ?>
|
|
<?php if (($numeroBonHospitalisation>"0" && $avisHospitalisation!="0" && $modeSaisieFacture=="0") || ($numeroBonHospitalisation>"0" && (($avisHospitalisation=="0" || $avisHospitalisation=="1" || $avisHospitalisation=="9") && $modeSaisieFacture=="1"))) : ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<?php if ($facture=="1"): ?>
|
|
<td align='center' class="alert alert-danger" style="height:38px; padding:5px;"> <?= _("Dejà facturée!") ?> </td>
|
|
<?php elseif($bonCaduc=="1"): ?>
|
|
<td align='center' class="alert alert-danger" style="height:38px; padding:5px;"> <?= _("Bon caduc!") ?> </td>
|
|
<?php else: ?>
|
|
<?php if ($optionHospitalisation=="option-1"): ?>
|
|
<td >
|
|
<div id="div_btn_avis" >
|
|
<?php if($prestations_total['totalPrixManuel'] == "0"): ?>
|
|
<button type="button" class="form-control btn btn-primary" style='font-size:12pt;' onclick="javascript:alertsiprixprestationzero();"> <?= _("Envoyer un avis de prorogation") ?> </button>
|
|
<?php else: ?>
|
|
<button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutChambre" style='font-size:12pt;' > <?= _("Envoyer un avis de prorogation") ?> </button>
|
|
<?php endif; ?>
|
|
</div >
|
|
</td>
|
|
<td width="5%"></td>
|
|
<td width="45%"> <button type="button" class="form-control btn btn-info" data-bs-toggle="modal" data-bs-target="#popAjouteConsommable" style='font-size:12pt;'> <?= _("Ajouter un consommable...") ?> </button> </td>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<?php else: ?>
|
|
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="1">
|
|
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="1">
|
|
<input class="sr-only" type="text" id="numeroBon" name="numeroBon" value="1">
|
|
|
|
<?php if($codeGestionBon=="1" && $nbBonsOrd<1): ?>
|
|
<div class="alert alert-danger" style="height:35px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<div id ="div_patientez">
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
|
|
<!-- Fin new -->
|
|
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="">
|
|
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="0">
|
|
<?php if ($numeroBonHospitalisation>"0" && ($avisHospitalisation=="1")) : ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("Bon Hospit") ?> </td>
|
|
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonHospitalisation ?>" readonly > </td>
|
|
|
|
<td width="15%" > </td>
|
|
<?php if ($facture=="1"): ?>
|
|
<td align='center' class="alert alert-danger" style="height:38px; padding:5px;" > <?= _("Dejà facturée !") ?> </td>
|
|
<?php elseif($bonCaduc!="1"): ?>
|
|
<td align='center' class="alert alert-danger" style="height:38px; padding:5px;" > <?= _("Bon caduc !") ?> </td>
|
|
<?php else: ?>
|
|
<td> </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php else: ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php if($nbBonsOrd<1): ?>
|
|
<tr>
|
|
<input class="sr-only" type="number" id="numeroBon" name="numeroBon" required AUTOCOMPLETE="OFF" >
|
|
<td>
|
|
<div class="alert alert-danger" style="height:35px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<tr>
|
|
<td width="10%" > <?= _("Numéro Bon") ?> </td>
|
|
|
|
<?php if ($facture=="1"): ?>
|
|
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonHospitalisation ?>" readonly > </td>
|
|
<?php elseif($bonCaduc!="1"): ?>
|
|
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" required AUTOCOMPLETE="OFF"
|
|
onChange="ajaxinfosbonhospitalisation();" onkeypress="javascript:ctrlkeypress_numeroBon(event);" autofocus ></td>
|
|
<?php else: ?>
|
|
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" readonly ></td>
|
|
<?php endif; ?>
|
|
|
|
|
|
<td width="15%" > </td>
|
|
<td><input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" disabled style='font-size:10pt;' ></td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($msgErreur)): ?>
|
|
<div id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
|
|
<H4><?= $msgErreur ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div id ="div_wait">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="div_messages">
|
|
|
|
</div>
|
|
|
|
|
|
<div id="div_famille_acte">
|
|
|
|
</div>
|
|
|
|
<div id="div_proforma"></div>
|
|
|
|
|
|
|
|
<?php if($bonCaduc=="0"): ?>
|
|
|
|
<?php if($numeroBonHospitalisation > "0"): ?>
|
|
<?php if($facture == "0" && $bonCaduc =="0"): ?>
|
|
<?php if ($optionHospitalisation=="option-1"): ?>
|
|
|
|
<div class="frmSearch" style="position: relative;">
|
|
<input id="searchInput" name="searchInput" style="font-size:11pt; padding-left: 35px;" class="form-control" type="text" placeholder="<?= _("Effectuer une recherche d'un acte médical ou d'un examen...") ?>" autofocus required AUTOCOMPLETE="OFF">
|
|
<i class="fas fa-search" style="position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #999;"></i>
|
|
<div id="div_selection"></div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<div class="row" id="totam_donnees">
|
|
|
|
<?php
|
|
|
|
//$dateDebutHospit = $this->nettoyer($feuillemaladie['dateDebutHospit']);
|
|
|
|
$facture = $this->nettoyer($feuillemaladie['facture']);
|
|
$bonCaduc = $this->nettoyer($feuillemaladie['bonCaduc']);
|
|
|
|
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
|
|
|
|
if($modeSaisieFacture=="1")
|
|
{
|
|
$bonCaduc = "0";
|
|
}
|
|
|
|
$dureeHospit = $this->nettoyer($feuillemaladie['dureeHospit']);
|
|
$dureeCorrigeeHospit = $this->nettoyer($feuillemaladie['dureeCorrigeeHospit']);
|
|
$dateFinHospit = $this->nettoyer($feuillemaladie['dateFinHospit']);
|
|
$prolongationHospit = $this->nettoyer($feuillemaladie['prolongationHospit']);
|
|
$dateDebutPrologation = $this->nettoyer($feuillemaladie['dateDebutPrologation']);
|
|
$dureeProlongation = $this->nettoyer($feuillemaladie['dureeProlongation']);
|
|
$dureeCorrigeeProlongation = $this->nettoyer($feuillemaladie['dureeCorrigeeProlongation']);
|
|
$dateFinProlongation = $this->nettoyer($feuillemaladie['dateFinProlongation']);
|
|
$numeroChambreProlongation = $this->nettoyer($feuillemaladie['numeroChambreProlongation']);
|
|
|
|
$noChambre = $this->nettoyer($feuillemaladie['numeroChambre']);
|
|
|
|
$motifHospitalisation = $this->nettoyer($feuillemaladie['motifHospitalisation']);
|
|
$instructionHospit = $this->nettoyer($feuillemaladie['instructionHospit']);
|
|
|
|
$idProlongationFeuille = $this->nettoyer($feuillemaladie['idProlongation']);
|
|
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$typeHospitInit = $this->nettoyer($feuillemaladie['typeHospitInitEng']);
|
|
$typeHospit = $this->nettoyer($feuillemaladie['typeHospitEng']);
|
|
$libelleAvis = $this->nettoyer($feuillemaladie['libelleAvisEng']);
|
|
}
|
|
else
|
|
{
|
|
$typeHospitInit = $this->nettoyer($feuillemaladie['typeHospitInit']);
|
|
$typeHospit = $this->nettoyer($feuillemaladie['typeHospit']);
|
|
$libelleAvis = $this->nettoyer($feuillemaladie['libelleAvis']);
|
|
}
|
|
|
|
$tmHospitalisation = $this->nettoyer($feuillemaladie['tmHospitalisation']);
|
|
$typeHospitInit = $typeHospitInit =='' ? $typeHospit: $typeHospitInit;
|
|
|
|
|
|
$totalHospitalisation = $hospit_total['fraisReel'];
|
|
|
|
//var_dump($typeHospitInit);
|
|
?>
|
|
<div id="div_prestations" class="col-12" >
|
|
<input class="sr-only" id="nbreProlongation" name="nbreProlongation" type="text" value= "<?= count($listeProlongations); ?>" >
|
|
<input class="sr-only" id="prixChambre" name="prixChambre" type="text" value= "<?= $prixChambre; ?>" >
|
|
<input class="sr-only" id="idProlongationFeuille" name="idProlongationFeuille" type="text" value= "<?= $idProlongationFeuille; ?>" >
|
|
|
|
<div id="recap">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<?php
|
|
$hospit_total_reclame = $hospit_total['totalPrixManuel'];
|
|
?>
|
|
<td align="center" style="font-weight:bold;"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT id="reclame" name="reclame" class="form-control" TYPE="text" value="<?= format_N($hospit_total_reclame) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold;"> </td>
|
|
|
|
<td align="center" style="font-weight:bold;"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT id="partAssure" name="partAssure" class="form-control" TYPE="text" value="<?= format_N($hospit_total['montantTm']+$hospit_total['depassement']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; color:red;"> </td>
|
|
|
|
|
|
<td align="center" style="font-weight:bold;"> <?= _("A Rembourser") ?> </td>
|
|
<td > <INPUT id="partAssureur" name="partAssureur" class="form-control" TYPE="text" value="<?= format_N($hospit_total['montantArembourser']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold;"> </td>
|
|
</tr>
|
|
|
|
<?php if ($facture=="1" || $bonCaduc=="1"): ?>
|
|
<tr>
|
|
<td colspan="6">
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des prestations d'hospitalisation")?>" readonly > </td>
|
|
</div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
|
|
<?php if($modeSaisieFacture == "0"): ?>
|
|
<td width="5%" align="center"> <?= _("Début") ?> </td>
|
|
<td align="center">
|
|
<INPUT class="form-control" TYPE="text" id="dateDebutHospit" style="font-size:10pt;text-align: center;" value="<?=($dateDebutHospit != '') ? $dateDebutHospit : date('Y-m-d')?>" disabled>
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Durée") ?> </td>
|
|
|
|
<td width="10%">
|
|
<input class="form-control" type="text" id="dureeHospit" name="dureeHospit" style="font-size:10pt;text-align: center;" Value="<?=$dureeHospit?>" disabled>
|
|
</td>
|
|
<?php else: ?>
|
|
<td width="5%" align="center"> <?= _("Début") ?> </td>
|
|
<td align="center">
|
|
<INPUT class="form-control datepicker" TYPE="text" id="dateDebutHospit" style="font-size:10pt;text-align: center;" value="<?= $dateDebutHospit?>" onchange="javascrpit:majDebutHospitalisation();">
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Durée") ?> </td>
|
|
<td width="10%">
|
|
<input class="form-control" type="text" id="dureeHospit" name="dureeHospit" style="font-size:10pt;text-align: center;" Value="<?=$dureeHospit?>" onChange="javascrpit:majDureeHospitalisation();">
|
|
</td>
|
|
|
|
<?php endif; ?>
|
|
|
|
<td width="5%" align="center"> <?= _("Corrigée") ?> </td>
|
|
<td width="10%">
|
|
<input class="form-control" type="text" id="dureeCorrigeeHospit" name="dureeCorrigeeHospit" style="background-color: rgb(255,0,0) !important; text-align: center; font-size:10pt; color:white;" Value="<?=$dureeCorrigeeHospit?>" disabled>
|
|
</td>
|
|
|
|
<td width="11%" align="center" class="required"> <?= _("No Chambre") ?> </td>
|
|
<td width="9%">
|
|
<?php if($facture == "0" && $bonCaduc =="0"): ?>
|
|
<input id="noChambre" name="noChambre" style="font-size:10pt; text-align:center;" class="form-control" value="<?=$noChambre?>" type="text" onchange="javascrpit:majChambreHospitalisation();" required AUTOCOMPLETE="OFF" >
|
|
<?php else: ?>
|
|
<input id="noChambre" name="noChambre" style="font-size:10pt; text-align:center;" class="form-control" value="<?=$noChambre?>" type="text" disabled>
|
|
<?php endif; ?>
|
|
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Fin") ?> </td>
|
|
<td>
|
|
<?php if($modeSaisieFacture == "0"): ?>
|
|
<INPUT class="form-control" TYPE="text" id="dateFinHospitalisation" name="dateFinHospitalisation" style="font-size:10pt;text-align: center;" value="<?=datefr($dateFinHospit)?>" disabled>
|
|
<?php else: ?>
|
|
<div id="div_datefin">
|
|
<INPUT class="form-control" TYPE="text" id="dateFinHospitalisation" name="dateFinHospitalisation" style="font-size:10pt;text-align: center;" value="<?=datefr($dateFinHospit)?>" disabled>
|
|
</div>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php if($plafondActeHospit > "0" && $plafondActeHospit != "9999999999" && $prestations_total['montantArembourser'] > "0" && $prestations_total['montantArembourser'] >= $plafondActeHospit): ?>
|
|
<tr>
|
|
<td colspan="10">
|
|
<marquee behavior="alternate" direction="left" scrollamount="10" style="background-color:red; color:white; font-size:14pt">
|
|
<?= _("Le ".$typeHospit." est atteint!") ?>
|
|
</marquee>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<tr>
|
|
<td colspan="10" align="center">
|
|
<a style="font-size:12pt;" href="javascript:aff();"><span id="aff"><?= _("Afficher + de détails...")?></span></a><a style="font-size:12pt;" href="javascript:cach();"><span id="cach"><?= _("Masquer les détails...")?></span></a>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php if($dateDebutHospit != ''): ?>
|
|
<tr id="tr_type">
|
|
<td width="5%" align="center"> <?= _("Type") ?> </td>
|
|
<?php if($plafondActeHospit == "9999999999"): ?>
|
|
|
|
<td colspan="7">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospitInit?>" disabled>
|
|
</td>
|
|
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
|
|
<?php else: ?>
|
|
|
|
<td colspan="5">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospitInit?>" disabled>
|
|
</td>
|
|
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Plafond") ?> </td>
|
|
<?php
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$act_periodicite = $act_periodiciteEng;
|
|
}
|
|
?>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; font-weight:bold; text-align:center; background-color:#f5fffa; color:red;" value="<?=format_N($plafondActeHospit)." ".$_SESSION['p_devise_C']." ".$act_periodicite ?>" disabled>
|
|
</td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php else: ?>
|
|
|
|
<tr id="tr_type">
|
|
<td width="5%" align="center"> <?= _("Type") ?> </td>
|
|
<?php if($plafondActeHospit == "9999999999"): ?>
|
|
|
|
<td colspan="7">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospit?>" disabled>
|
|
</td>
|
|
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
<?php else: ?>
|
|
|
|
<td colspan="5">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospit?>" disabled>
|
|
</td>
|
|
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Plafond") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; font-weight:bold; text-align:center; background-color:#f5fffa; color:red;" value="<?=format_N($plafondActeProlongation)?>" disabled>
|
|
</td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<tr id="tr_motif">
|
|
<td width="5%" align="center"> <?= _("Motif") ?> </td>
|
|
<td colspan="9">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$motifHospitalisation?>" disabled>
|
|
</td>
|
|
</tr>
|
|
<tr id="tr_instruction">
|
|
<td width="5%" align="center"> <?= _("Instruction") ?> </td>
|
|
<td colspan="9">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$instructionHospit?>" disabled>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <?= _("Suppr") ?> </th>
|
|
<th style="text-align:center"> <?= _("Acte <b> - [Plafond]</b>") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Accord") ?> </th>
|
|
<th style="text-align:center"> <?= _("PU Réclamé") ?> </th>
|
|
<th style="text-align:center"> <?= _("PU Appliqué") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th style="text-align:center"> <?= _("PT Réclamé") ?> </th>
|
|
<th style="text-align:center"> <?= _("PT Appliqué") ?> </th>
|
|
<th style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("Mont. TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<?php
|
|
$prestation_total_reclame = $this->nettoyer($prestations_total['totalPrixManuel']);
|
|
?>
|
|
<td colspan="6" style='text-align:center'> <?= _("Total (".count($prestations).")") ?> </td>
|
|
<td align='center'><?= format_N($prestation_total_reclame) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['fraisReel'])) ?></td>
|
|
<td></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantArembourser'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['depassement'])) ?></td>
|
|
<td></td>
|
|
</tr>
|
|
<?php if($prestation_total_reclame == "0"): ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="13" height="8"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="13" style="background-color:yellow">
|
|
<marquee behavior="scroll" direction="left" scrollamount="10" style="background-color:yellow; color:red; font-size:12pt">
|
|
<?= _("Veuillez saisir vos prix de prestation dans la zone PU Réclamé ou cliquer sur le bouton rouge pour retirer les lignes qui n'ont pas de prix. Merci pour votre compréhension.") ?>
|
|
</marquee>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</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']);
|
|
$codeTarifActe=$this->nettoyer($prestation['codeTarifActe']);
|
|
|
|
|
|
$valeurActeManuel = $this->nettoyer($prestation['valeurActeManuel']);
|
|
|
|
$libelleConsommable=$this->nettoyer($prestation['libelleConsommable']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = substr($this->nettoyer($prestation['libelleActeEng']),0,57);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = substr($this->nettoyer($prestation['libelleActe']),0,57);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if($codeActe == "CSM"){
|
|
$libelleActe = substr($libelleConsommable,0,57);
|
|
}
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
$valeurActe = $this->nettoyer($prestation['valeurActe']);
|
|
|
|
$plafondActe = $this->nettoyer($prestation['plafondActe']);
|
|
|
|
//var_dump($plafondActe);
|
|
|
|
|
|
$plafond = (($plafondActe == $valeurActe) && ($valeurActe > "0"))?"1":"0";
|
|
|
|
if ($plafondActe > "0" && $plafondActe !="9999999999"){
|
|
$forfaitPlafond = " - [".format_N($plafondActe)."]";
|
|
}else{
|
|
$forfaitPlafond = "";
|
|
}
|
|
|
|
$prixTarif = $this->nettoyer($prestation['prixTarif']);
|
|
|
|
//var_dump($tarif);
|
|
|
|
if($modeSaisieFacture=="1")
|
|
{
|
|
$supprimable = "1";
|
|
//$facture = '0';
|
|
}
|
|
|
|
//sp_p_miseaniveau_hospitalisation
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
|
|
$acteChambre = $this->nettoyer($prestation['acteChambre']);
|
|
?>
|
|
<tr valign="top">
|
|
<?php if ($supprimable=="0" || $facture=='1' || $bonCaduc=='1' || $ententePrealable=='1'): ?>
|
|
<td> </td>
|
|
<?php elseif(($acteChambre=="1") || ($prolongationHospit=="1" && $valeurActeManuel > "0" && $ententePrealable!='2')): ?>
|
|
<td></td>
|
|
<?php else: ?>
|
|
<td>
|
|
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_acte_medical_hospitalisation('<?= $idPrestationactes ?>', '<?= $codeTypePrestation ?>');">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td > <?= $libelleActe."<b>".$forfaitPlafond."</b>" ?> </td>
|
|
|
|
<?php if($ententePrealable<>"0"): ?>
|
|
<?php if($ententePrealable=='2'): ?>
|
|
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" checked disabled> </td>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<td align='center' > <input type="checkbox" disabled></td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($valeurActeManuel) ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></td>
|
|
|
|
<?php if ($facture=='1' || $bonCaduc=='1' || $acteChambre=="1" || $prolongationHospit=="1" || $plafond=="1" || $ententePrealable =='1'): ?>
|
|
<td align='center'><?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
<?php else: ?>
|
|
<td align='center' width="8%">
|
|
<INPUT style='text-align:center; font-size:10pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
|
|
onChange="ajax_maj_qte_acte_hospitalisation('<?=$idPrestationactes?>', this.value, this);" onBlur="controle_numerique(this);">
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['prixManuel'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['tm'])?></td>
|
|
<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!=''): ?>
|
|
<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 ($prolongationHospit=="1" && ($avisHospitalisation == "1" || $avisHospitalisation=="9")): ?>
|
|
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des prestations de prorogation d'hospitalisation")?>" readonly > </td>
|
|
</div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($listeProlongations as $v):
|
|
$idProlongation =$this->nettoyer($v['id']);
|
|
|
|
$plafondActeProlongation = $this->nettoyer($v['plafondActeProlongation']);
|
|
$totalArembourserProlongation = $this->nettoyer($v['totalArembourserProlongation']);
|
|
|
|
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$typeHospit = $this->nettoyer($v['typeHospitEng']);
|
|
$act_periodicite = $this->nettoyer($v['act_periodiciteEng']);
|
|
}
|
|
else
|
|
{
|
|
$typeHospit = $this->nettoyer($v['typeHospit']);
|
|
$act_periodicite = $this->nettoyer($v['act_periodicite']);
|
|
}
|
|
|
|
$tmHospitalisation = $this->nettoyer($v['tmHospitalisation']);
|
|
$libelleplafondActeProlongation = ($plafondActeProlongation == "9999999999") ? "" : format_N($plafondActeProlongation)." ".$_SESSION['p_devise_C']." ".$act_periodicite;
|
|
|
|
$i++;
|
|
?>
|
|
|
|
<tr>
|
|
<td width="5%" align="center"> <?= _("Numéro") ?> </td>
|
|
<td align="center">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;text-align: center;" value="<?= $i?>" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Début") ?> </td>
|
|
<td align="center">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;text-align: center;" value="<?=datefr($this->nettoyer($v['debut']))?>" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Durée") ?> </td>
|
|
<td width="8%">
|
|
<input class="form-control" type="text" style="font-size:10pt;text-align: center;" Value="<?=$this->nettoyer($v['duree'])?>" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Corrigée") ?> </td>
|
|
<td width="8%">
|
|
<input class="form-control" type="text" style="background-color: rgb(255,0,0) !important;text-align: center; font-size:10pt; color:white;" Value="<?=$this->nettoyer($v['dureeCorrigee'])?>" disabled>
|
|
</td>
|
|
<td width="11%" align="center" class="required"> <?= _("No Chambre") ?> </td>
|
|
<td width="8%">
|
|
<?php if($facture == "0" && $bonCaduc =="0"): ?>
|
|
<input style="font-size:10pt; text-align:center;" class="form-control" id="noChambrePro<?= $i?>" name="noChambrePro<?= $i?>" type="text" Value="<?=$this->nettoyer($v['numeroChambre'])?>" onchange="javascrpit:majChambreProrogation('<?= $idProlongation?>',this.value);" required AUTOCOMPLETE="OFF" >
|
|
<?php else: ?>
|
|
<input style="font-size:10pt; text-align:center;" class="form-control" id="noChambrePro<?= $i?>" name="noChambrePro<?= $i?>" type="text" Value="<?=$this->nettoyer($v['numeroChambre'])?>" disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
|
|
<td width="5%" align="center"> <?= _("Fin") ?> </td>
|
|
<td>
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;text-align: center;" value="<?=datefr($this->nettoyer($v['fin']))?>" disabled>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="12" align="center">
|
|
<a style="font-size:12pt;" href="javascript:affLigneTab(<?= $i?>);"><span id="aff<?= $i?>"><?= _("Afficher + de détails...")?></span></a><a style="font-size:12pt;" href="javascript:cachLigneTab(<?= $i?>);"><span id="cach<?= $i?>"><?= _("Masquer les détails...")?></span></a>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr id="tr_type<?= $i?>">
|
|
<td width="5%" align="center"> <?= _("Type") ?> </td>
|
|
<?php if($plafondActeProlongation == "9999999999" || $plafondActeProlongation == "0"): ?>
|
|
<td colspan="9">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospit?>" disabled>
|
|
</td>
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
<?php else: ?>
|
|
<td colspan="7">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospit?>" disabled>
|
|
</td>
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Plafond") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; font-weight:bold; text-align:center; background-color:#f5fffa; color:red;" value="<?= $libelleplafondActeProlongation; ?>" disabled>
|
|
</td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
|
|
<tr id="tr_motif<?= $i?>">
|
|
<td width="5%" > <?= _("Motif") ?> </td>
|
|
<td colspan="11">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$this->nettoyer($v['motifProlongation'])?>" disabled>
|
|
</td>
|
|
</tr>
|
|
<tr id="tr_instruction<?= $i?>">
|
|
<td width="5%" align="center"> <?= _("Instruction") ?> </td>
|
|
<td colspan="11">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$this->nettoyer($v['motifAssure'])?>" disabled>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="12">
|
|
<script type="text/javascript">
|
|
affiche_prestations_prolongation(<?= $idProlongation?>,<?= $i?>);
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="12">
|
|
<div id="div_prestations_prolongation<?= $i?>">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="10" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<div id="div_fraisExclu">
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
|
|
</div>
|
|
|
|
<?php if($bonCaduc=="1") : ?>
|
|
<div class="alert alert-danger" style="height:35px; padding:5px; text-align:center; margin-bottom:5px;" >
|
|
<H4> <?= " Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
|
|
<div class="modal fade" id="popAjoutChambre" role="dialog">
|
|
<div class="modal-dialog modal-lg" style="max-width: 70%;" role="document">
|
|
<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>
|
|
<h3 class="modal-title"> <?= _("Avis de prorogation d'hospitalisation") ?> </h3>
|
|
</div>
|
|
<INPUT class="sr-only" TYPE="text" id="optionHospitalisationPro" NAME="optionHospitalisationPro" value="<?= $feuillemaladie['optionHospitalisation'] ;?>">
|
|
<INPUT class="sr-only" TYPE="text" id="dateDebutPro" NAME="dateDebutPro" value="<?= $feuillemaladie['dateFinHospit'] ;?>">
|
|
|
|
<div class="modal-body">
|
|
<div id="div_ajout_chambre">
|
|
<form id="frmchambre" name="frmchambre" method="post" >
|
|
|
|
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="HOSP">
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php
|
|
$codeTypeHospitalisationPro = $optionHospitalisation;
|
|
|
|
if ($numeroBonHospitalisation > "0" && $avisHospitalisation == "4") :
|
|
?>
|
|
<tr>
|
|
<td width="20%" class="required"> <?= _("Renseignement Clinique") ?> </td>
|
|
<td colspan="5">
|
|
<input id="motifProlongation" name="motifProlongation" style="font-size:10pt;" class="form-control" value="<?= $prolongationEnCours['motifProlongation'] ?>" type="text" autofocus required AUTOCOMPLETE="OFF" >
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="20%" class="required"> <?= _("Type Hospitalisation") ?> </td>
|
|
<td colspan="5">
|
|
<SELECT class="form-control" id="codeTypeHospitalisationPro" NAME="codeTypeHospitalisationPro" style='font-size:10pt;' disabled >
|
|
<?php liste_options($typeHospitalisation,$codeTypeHospitalisationPro, true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="required"> <?= _("Type Chambre") ?> </td>
|
|
<td >
|
|
<SELECT class="form-select" id="codeActeChambre" NAME="codeActeChambre" required style='font-size:10pt; height:30px;' onChange="javascript:messageSituationHospitalisation();" required AUTOCOMPLETE="OFF" >
|
|
<?php liste_options($actesChambre,$prolongationEnCours['codeActeChambre'],false); ?>
|
|
</SELECT>
|
|
</td >
|
|
|
|
<td align="center" > <?= _("Début") ?> </td>
|
|
<td width="15%">
|
|
<INPUT class="form-control datepicker" TYPE="text" id="debut" name="debut" style='font-size:10pt;' value="<?= dateLang($prolongationEnCours['debut'], $_SESSION['p_lang']) ;?>" disabled>
|
|
</td>
|
|
|
|
<td align="center" class="required"> <?= _("Durée (J)") ?> </td>
|
|
<td width="8%">
|
|
<input class="form-control" type="number" id="quantite" name="quantite" style="font-size:10pt;" Value="<?= $prolongationEnCours['duree'] ?>" min="0" required AUTOCOMPLETE="OFF" >
|
|
</td>
|
|
</tr>
|
|
|
|
<?php else: ?>
|
|
|
|
|
|
<tr>
|
|
<td width="20%" class="required"> <?= _("Renseignement Clinique") ?> </td>
|
|
<td colspan="5">
|
|
<input id="motifProlongation" name="motifProlongation" style="font-size:10pt;" class="form-control" value="" type="text" autofocus required AUTOCOMPLETE="OFF" >
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="20%" class="required"> <?= _("Type Hospitalisation") ?> </td>
|
|
<td colspan="5">
|
|
|
|
<SELECT class="form-control" id="codeTypeHospitalisationPro" NAME="codeTypeHospitalisationPro" style='font-size:10pt;' disabled >
|
|
<?php liste_options($typeHospitalisation,$codeTypeHospitalisationPro); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="required"> <?= _("Type Chambre") ?> </td>
|
|
<td >
|
|
<SELECT class="form-select" id="codeActeChambre" NAME="codeActeChambre" required style='font-size:10pt; height:30px;' onChange="javascript:messageSituationHospitalisation();" required AUTOCOMPLETE="OFF" >
|
|
<?php liste_options($actesChambre,$prolongationEnCours['codeActeChambre'],false); ?>
|
|
</SELECT>
|
|
</td >
|
|
|
|
<td align="center" > <?= _("Début") ?> </td>
|
|
<td width="15%">
|
|
<INPUT class="form-control datepicker" TYPE="text" id="debut" name="debut" style='font-size:10pt;' value="<?= dateLang($dateDebutPro, $_SESSION['p_lang']) ;?>" disabled>
|
|
</td>
|
|
|
|
<td align="center" class="required"> <?= _("Durée (J)") ?> </td>
|
|
<td width="8%">
|
|
<input class="form-control" type="number" id="quantite" name="quantite" style="font-size:10pt;" Value="0" min="0" required AUTOCOMPLETE="OFF" >
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<tr style='background-color:white'>
|
|
<td colspan="6" height="20"></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td colspan="6">
|
|
<div id="div_btn_pro">
|
|
<?php if ($numeroBonHospitalisation > "0" && $avisHospitalisation == "4") : ?>
|
|
<input id="btn_modif_pro" style="font-size:12pt" name="btn_modif_pro" class = "form-control btn btn-warning" type="button" value="<?= _("Modifier") ?>" onClick="javascript:verifiestatutprorogationhospitalisation('1','<?= $codeTypeHospitalisationPro?>');" style='font-size:12pt;' >
|
|
<?php else: ?>
|
|
<input id="btn_enreg" style="font-size:12pt" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Envoyer") ?>" onClick="javascript:verifiestatutprorogationhospitalisation('0','<?= $codeTypeHospitalisationPro?>');" style='font-size:12pt;' >
|
|
<?php endif; ?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="popAjouteConsommable" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false" >
|
|
<div class="modal-dialog modal-lg" style="max-width: 70%;" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop_consommation" name="btn_close_pop_consommation" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Ajouter un consommable...") ?> </h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th width="45%" style="text-align:center"> <?= _("Nom Consommable") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="20%" style="text-align:center"> <?= _("Valeur") ?> </th>
|
|
<th style="text-align:center"> Action </th>
|
|
</tr>
|
|
<tbody>
|
|
<tr>
|
|
<td> <input type="text" class="form-control" id="libelleconsommable" name="libelleconsommable" autofocus style='font-size:10pt;' ></td>
|
|
|
|
<td align='center'>
|
|
<input class="form-control"style="text-align: center; font-size:10pt;" type="number" id="quantiteconsommable" name="quantiteconsommable" value="0"
|
|
onBlur="controle_numerique(this);" min="0" >
|
|
</td>
|
|
|
|
<td align='center'>
|
|
<input class="form-control"style="text-align: center; font-size:10pt;" type="number" id="prixconsommable" name="prixconsommable" value="0"
|
|
onBlur="controle_numerique(this);" min="0">
|
|
</td>
|
|
|
|
<td> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Ajouter") ?>" onclick="javascript:enregistrer_nv_consommables_hospit();" /></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_patienter_consommable" >
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop_acte" name="close_pop_acte" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="pop_imprimer_chambre" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false" >
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop_imprimer" name="btn_close_pop_imprimer" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Imprimer...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<table class="table table-responsive table-condensed" style='font-size:11pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td style='font-size:13pt;'> <?= _("Le bon de prise en charge") ?> </td>
|
|
<td> </td>
|
|
<td > <input class = "form-control btn btn-danger" type="button" value="<?= _("Télécharger...") ?>" onClick="javascript:imprimer_bon_pec_hospitalisation();" style='font-size:11pt;' > </td>
|
|
</tr>
|
|
<tr style='background-color:white'>
|
|
<td colspan="3" height="20"></td>
|
|
</tr>
|
|
<tr>
|
|
<td style='font-size:13pt;'> <?= _("La facture d'hospitalisation") ?> </td>
|
|
<td> </td>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="<?= _("Télécharger...") ?>" onClick="javascript:imprimer_facture_hospitalisation();" style='font-size:11pt;' > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
<div id="div_export_a">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif; ?>
|