672 lines
30 KiB
PHP
Executable File
672 lines
30 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=2026.03.14.00"></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'];
|
|
|
|
$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";
|
|
}
|
|
|
|
$prixActeModifiable = $_SESSION['p_prixActeModifiable'];
|
|
?>
|
|
|
|
<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 > 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 require "Vue/Ajaxselectactesmedicauxhospitalisation/index.php";?>
|
|
</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; ?>
|