374 lines
16 KiB
PHP
Executable File
374 lines
16 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - proforma hospitalisation";
|
|
|
|
$dateDebutProforma = isset($_SESSION['p_dateDebutProforma_C']) ? dateLang($_SESSION['p_dateDebutProforma_C'], $_SESSION['p_lang']) :"";
|
|
$idProforma = isset($_SESSION['p_idProforma_C']) ? $_SESSION['p_idProforma_C'] : '0';
|
|
|
|
$codeReponseEntentePrealable = $_SESSION['p_codeReponseEntentePrealable_C'];
|
|
|
|
$numeroEntentePrealable = $_SESSION['p_numeroEntentePrealable_C'];
|
|
|
|
$demandeTraite = $_SESSION['p_demandeTraite_C'];
|
|
$numeroBonHospitalisation = $_SESSION['p_numeroBonHospitalisation_C'];
|
|
|
|
$observation = $_SESSION['p_observation_C'];
|
|
$motifRefus = $_SESSION['p_motifRefus_C'];
|
|
|
|
|
|
if($codeReponseEntentePrealable=="1"){
|
|
$etat = "Accordée";
|
|
}elseif($codeReponseEntentePrealable=="2"){
|
|
$etat = "En attente";
|
|
}elseif($codeReponseEntentePrealable=="9"){
|
|
$etat = "Réfusée";
|
|
}else{
|
|
$etat = "Non envoyé";
|
|
}
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$specialite = $this->nettoyer($v['specialiteEng']);
|
|
|
|
if($codeReponseEntentePrealable=="1"){
|
|
$etat = "Granted";
|
|
}elseif($codeReponseEntentePrealable=="2"){
|
|
$etat = "On hold";
|
|
}elseif($codeReponseEntentePrealable=="9"){
|
|
$etat = "Refused";
|
|
}else{
|
|
$etat = "Not sent";
|
|
}
|
|
}
|
|
|
|
$numero = ($idProforma > "0") ? ' N°: '.$idProforma : "";
|
|
|
|
$_SESSION['p_numeroFeuilleMaladie_C'] = isset($_SESSION['p_numeroFeuilleMaladie_C']) ? $_SESSION['p_numeroFeuilleMaladie_C']: "0";
|
|
|
|
?>
|
|
|
|
<legend> <?= _("Proforma d'hospitalisation chirurgicale").$numero ?> </legend>
|
|
|
|
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "hospitalisationproforma" >
|
|
|
|
<input class="sr-only" id="codeReponseEntentePrealable" name="codeReponseEntentePrealable" type="text" value= "<?=$_SESSION['p_codeReponseEntentePrealable_C']?>" >
|
|
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="masquerEnteteProforma" NAME="masquerEnteteProforma" value="1">
|
|
|
|
<input class="sr-only" id="idBeneficiaire" name="idBeneficiaire" type="text" value= "<?=$idBeneficiaire?>" >
|
|
<input class="sr-only" id="beneficiaire" name="beneficiaire" type="text" value= "<?=$_SESSION['p_beneficiaire_C']?>" >
|
|
<input class="sr-only" id="numeroBeneficiaire" name="numeroBeneficiaire" type="text" value= "<?=$_SESSION['p_numeroBeneficiaire_C']?>" >
|
|
|
|
<input class="sr-only" id="numeroFeuilleMaladie" name="numeroFeuilleMaladie" type="text" value= "<?=$_SESSION['p_numeroFeuilleMaladie_C']?>" >
|
|
|
|
<input class="sr-only" id="idProformaHospitalisation" name="idProformaHospitalisation" type="text" value= "<?=$idProforma;?>">
|
|
<input class="sr-only" id="numeroEntentePrealable" name="numeroEntentePrealable" type="text" value= "<?=$numeroEntentePrealable;?>">
|
|
<INPUT class="sr-only" TYPE="text" id="autoriserBonHospitAvantDate" name="autoriserBonHospitAvantDate" value="<?= $autoriserBonHospitAvantDate ?>">
|
|
|
|
<div id="div_proforma">
|
|
|
|
<?php if($numeroBonHospitalisation > "0"):?>
|
|
<table class="table table-responsive table-condensed" style='font-size:11pt; margin-top:-20px;'>
|
|
<tbody>
|
|
<tr>
|
|
<td align="center">
|
|
<div id ="msgErreur" class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;">
|
|
<H4 align="center" ><?= _("Bon Hospitalisation").' => '.'No => '?>
|
|
<a title='<?= _("Ouvrir le bon...") ?>' href="javascript:ouvrir_feuillemaladie('<?= $numeroBonHospitalisation ?>', '<?= $_SESSION['p_dateDebutProforma_C'] ?>');">
|
|
<span style="color:red; background-color:#eeeeee; border:1px solid #000; border-radius:3px; padding-left:5px; padding-right:5px;">
|
|
<?= $numeroBonHospitalisation ?>
|
|
</span>
|
|
</a>
|
|
</H4>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_messages"></div>
|
|
<?php endif;?>
|
|
|
|
|
|
<div style="display: flex; flex-direction: column; align-items: center;" class="col-12">
|
|
<input class="form-control" style="text-align: center; font-size: 14pt; font-weight: bold;" type="text" value="<?= _("Entête Proforma")?>" readonly>
|
|
<a href="javascript:afficherMasquerEnteteProforma();" style="font-size:12pt; margin-top: 0px;">
|
|
<i id="chevron-entete-proforma" class="bi bi-chevron-down" ></i>
|
|
</a>
|
|
</div>
|
|
|
|
<div id="div_entete_proforma">
|
|
<table class="table table-condensed" style="font-size:10pt; padding:0px;">
|
|
<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 width="12%"> <?= _("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 > <?= _("Type Hospitalisation") ?> </td>
|
|
<td colspan="3">
|
|
<SELECT class="form-control" id="optionHospitalisation" NAME="optionHospitalisation" required AUTOCOMPLETE="OFF" style='font-size:10pt;' disabled>
|
|
<?php liste_options($typeHospitalisation,"option-3"); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center" class="required"> <?= _("Début") ?> </td>
|
|
<td >
|
|
<?php if($_SESSION['p_codeReponseEntentePrealable_C'] == ""): ?>
|
|
<INPUT class="form-control datepicker" TYPE="text" id="dateDebut" name="dateDebut" style='font-size:10pt;' value="<?= $dateDebutProforma ?>" required AUTOCOMPLETE="OFF" >
|
|
<?php else: ?>
|
|
<INPUT class="form-control" TYPE="text" id="dateDebut" name="dateDebut" style='font-size:10pt;' value="<?= $dateDebutProforma ?>" disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td align="center" class="required"> <?= _("Durée (J)") ?> </td>
|
|
<td>
|
|
<?php if($_SESSION['p_codeReponseEntentePrealable_C'] == ""): ?>
|
|
<input class="form-control" type="number" id="duree" name="duree" style="font-size:10pt;" Value="<?= isset($_SESSION['p_dureeProforma_C']) ? $_SESSION['p_dureeProforma_C'] : "0" ?>" min="0" required AUTOCOMPLETE="OFF" >
|
|
<?php else: ?>
|
|
<input class="form-control" type="number" id="duree" name="duree" style="font-size:10pt;" Value="<?= isset($_SESSION['p_dureeProforma_C']) ? $_SESSION['p_dureeProforma_C'] : "0" ?>" min="0" disabled>
|
|
<?php endif; ?>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="required"> <?= _("Renseignement Clinique") ?> </td>
|
|
<td colspan="7">
|
|
<?php if($_SESSION['p_codeReponseEntentePrealable_C'] == ""): ?>
|
|
<input id="motif" name="motif" style="font-size:10pt;" class="form-control" value="<?= isset($_SESSION['p_motifProforma_C']) ? $_SESSION['p_motifProforma_C'] : "" ?>" type="text" required AUTOCOMPLETE="OFF" >
|
|
<?php else: ?>
|
|
<input id="motif" name="motif" style="font-size:10pt;" class="form-control" value="<?= isset($_SESSION['p_motifProforma_C']) ? $_SESSION['p_motifProforma_C'] : "" ?>" type="text" disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
$codeMedecinProforma = isset($_SESSION['p_codeMedecinProforma_C']) ? $_SESSION['p_codeMedecinProforma_C'] : "";
|
|
|
|
$codeAffection = isset($_SESSION['p_codeAffection_C']) ? $_SESSION['p_codeAffection_C'] : "";
|
|
?>
|
|
<tr >
|
|
<td class="required"> <?= _("Médecin") ?> </td>
|
|
<td colspan="5">
|
|
<?php if($_SESSION['p_codeReponseEntentePrealable_C'] == ""): ?>
|
|
<SELECT id="codeMedecin" class="form-control selectpicker" data-live-search="true" NAME="codeMedecin" style='font-size:10pt;height:30px !important;' required>
|
|
<?php liste_options($medecins, $codeMedecinProforma); ?>
|
|
</SELECT>
|
|
<?php else: ?>
|
|
<SELECT id="codeMedecin" class="form-control" NAME="codeMedecin" style='font-size:10pt;height:30px !important;' disabled>
|
|
<?php liste_options($medecins, $codeMedecinProforma); ?>
|
|
</SELECT>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td align="center"> <?= _("Etat") ?> </td>
|
|
<td >
|
|
<input class="form-control" type="text" style="font-size:10pt;" Value="<?= $etat ?>" disabled>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td > <?= _("Affection") ?> </td>
|
|
<td colspan="7">
|
|
<?php if($_SESSION['p_codeReponseEntentePrealable_C'] == ""): ?>
|
|
<SELECT id="codeAffection" NAME="codeAffection" class="form-control selectpicker" data-live-search="true" style='font-size:10pt;'>
|
|
<?php liste_options($affections, $codeAffection); ?>
|
|
</SELECT>
|
|
<?php else: ?>
|
|
<SELECT id="codeAffection" class="form-control" NAME="codeAffection" style='font-size:10pt;height:30px !important;' disabled>
|
|
<?php liste_options($affections, $codeAffection); ?>
|
|
</SELECT>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php if($_SESSION['p_codeReponseEntentePrealable_C'] == ""): ?>
|
|
<tr><td colspan="8" height='15'> </td></tr>
|
|
<tr>
|
|
<td colspan="8">
|
|
<?php if($idProforma>"0"):?>
|
|
<button type="button" class="form-control btn btn-primary" style='font-size:12pt;' onclick="javascript:enregistrer_entete_proforma_hospitalisation();"> <?= _("Modifier Entête Proforma") ?> </button>
|
|
<?php else:?>
|
|
<button type="button" class="form-control btn btn-primary" style='font-size:12pt;' onclick="javascript:enregistrer_entete_proforma_hospitalisation();"> <?= _("Enregistrer Entête Proforma") ?> </button>
|
|
<?php endif;?>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<?php if($idProforma > "0"): ?>
|
|
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 14pt;font-weight: bold;" type="text" value="<?= _("Détail Proforma")?>" readonly > </td>
|
|
</div>
|
|
|
|
<?php if($demandeTraite == "0"): ?>
|
|
|
|
<div id="div_attente"></div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;'>
|
|
<tbody>
|
|
<tr><td colspan="8" height='10'> </td></tr>
|
|
<tr>
|
|
<td colspan="5" align="center" width="75%">
|
|
<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>
|
|
</td>
|
|
<td width="2%"></td>
|
|
<td colspan="2" align="center">
|
|
<button type="button" class="form-control btn btn-info" data-bs-toggle="modal" data-bs-target="#popAjouteConsommable" style='position: relative; font-size:12pt; height: 45px;'> <?= _("Ajouter un consommable...") ?> </button>
|
|
</td>
|
|
<tr>
|
|
<tr><td colspan="8" height='10'> </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div id="div_prestations" class="col-12" >
|
|
<input class="sr-only" id="ligneZero" name="ligneZero" type="text" value= "<?=$ligneZero;?>">
|
|
<input class="sr-only" id="demandeTraite" name="demandeTraite" type="text" value= "<?=$demandeTraite;?>">
|
|
|
|
</div>
|
|
|
|
<?php if($demandeTraite > "0"):?>
|
|
<div id="div_motif" class="tab-container">
|
|
<table class="table table-responsive table-condensed" style='font-size:8pt; white-space:nowrap;'>
|
|
<tbody>
|
|
<?php if ($observation > " "): ?>
|
|
<tr>
|
|
<td width="8%"> <?= _("Observation");?></td>
|
|
<td >
|
|
<textarea class="form-control-sm" rows="5" disabled style="width:100%;"><?=$observation?></textarea>
|
|
</td>
|
|
</tr>
|
|
<?php endif;?>
|
|
|
|
<?php if ($motifRefus > " "): ?>
|
|
<tr>
|
|
<td width="8%">
|
|
<?= _("Motif Refus");?>
|
|
</td>
|
|
<td >
|
|
<textarea class="form-control-sm" disabled rows="5" required AUTOCOMPLETE="OFF" style="width:100%;"><?=$motifRefus?></textarea>
|
|
</td>
|
|
</tr>
|
|
<?php endif;?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
|
|
<div class="modal fade" id="popAjouteConsommable" 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_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);" >
|
|
</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);" >
|
|
</td>
|
|
|
|
<td> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Ajouter") ?>" onclick="javascript:save_nv_consommable_proformahospit();" /></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>
|