prestation/Vue/Proformahospitalisation/index.php
2025-12-05 10:42:46 +00:00

163 lines
6.6 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - proforma hospitalisation";
$idProforma = (isset($_SESSION['p_idProforma_C']) && $idBeneficiaire > "0") ? $_SESSION['p_idProforma_C'] : '0';
$dateDebutProforma = (isset($_SESSION['p_dateDebutProforma_C']) && $idBeneficiaire > "0") ? dateLang($_SESSION['p_dateDebutProforma_C'], $_SESSION['p_lang']) : dateLang(date('Y-m-d'), $_SESSION['p_lang']);
$numeroEntentePrealable = (isset($_SESSION['p_dateDebutProforma_C']) && $idBeneficiaire > "0") ? $_SESSION['p_numeroEntentePrealable_C'] : "0";
$numero = ($idProforma > "0") ? ' N°: '.$idProforma : "";
$datejour = $this->datejour;
$estcouvert = ($_SESSION['p_dateEcheancePolice_C']>=$datejour);
$estsorti = "0";
$dateSortieBeneficiaire = $_SESSION['p_dateSortieBeneficiaire_P'];
if( $dateSortieBeneficiaire > "2000-01-01")
{
$estsorti = ($dateSortieBeneficiaire<=$datejour);
$estcouvert = ($estcouvert && ($dateSortieBeneficiaire>$datejour));
}
$dateEffetCouvert = $_SESSION['p_dateEffetCouvert_P'];
$codeEtatBeneficiaire = $_SESSION['p_codeEtatBeneficiaire_P'];
$etatbeneficiaireEng = $_SESSION['p_etatbeneficiaireEng_P'];
$etatbeneficiaire = $_SESSION['p_etatbeneficiaire_P'];
?>
<legend> <?= _("Proforma d'hospitalisation chirurgicale").$numero ?> </legend>
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "proformahospitalisation" >
<div id="div_proforma"></div>
<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" id="idBeneficiaire" name="idBeneficiaire" type="text" value= "<?=$idBeneficiaire?>" >
<table class="table table-condensed" style="font-size:10pt; padding:0px;">
<tbody>
<tr>
<td width="15%" > <?= _("No Patient") ?> </td>
<td width="25%">
<input id="numeroBeneficiaire" name="numeroBeneficiaire" style="font-size:12pt; height:30px;" class="form-control" type="text" value="<?= $numeroBeneficiaire ;?>" readonly>
</td>
<td width="11%" align="center"> <?= _("Nom et Prénoms") ?> </td>
<td colspan="3">
<input id="nomAssure" name="nomAssure" style="font-size:12pt; height:30px;" class="form-control" type="text" value="<?= $beneficiaire ;?>" readonly>
</td>
<td width="8%" align="center"> <?= _("Lien") ?> </td>
<td width="12%">
<input id="codeLienParente" name="codeLienParente" style="font-size:12pt; height:30px;" class="form-control" type="text" value="<?= $codeLienParente ;?>" readonly>
</td>
</tr>
<tr>
<td > <?= _("No Adhérent") ?> </td>
<td >
<input id="noAdherent" name="noAdherent" style="font-size:12pt; height:30px;" class="form-control" type="text" value="<?= $noAdherent ;?>" readonly>
</td>
<td align="center"> <?= _("Adhérent") ?> </td>
<td colspan="5">
<input id="nomAdherent" name="nomAdherent" style="font-size:12pt; height:30px;" class="form-control" type="text" value="<?= $nomAdherent ;?>" readonly>
</td>
</tr>
<tr>
<td > <?= _("Police") ?> </td>
<td >
<input id="nomPolice" name="nomPolice" style="font-size:12pt; height:30px;" class="form-control" type="text" value="<?= $nomPolice ;?>" readonly>
</td>
<td align="center"> <?= _("Collège") ?> </td>
<td colspan="5">
<input id="nomCollege" name="nomCollege" style="font-size:12pt; height:30px;" class="form-control" type="text" value="<?= $nomCollege ;?>" readonly>
</td>
</tr>
<div id="div_couverture">
</div>
<tr>
<td > <?= _("Type Hospitalisation") ?> </td>
<td colspan="7">
<SELECT class="form-control" id="optionHospitalisation" NAME="optionHospitalisation" style='font-size:10pt;' disabled>
<?php liste_options($typeHospitalisation,"option-3"); ?>
</SELECT>
</td>
</tr>
<?php
$codeActeChambre = (isset($_SESSION['p_codeActeChambre_C']) && $idBeneficiaire > "0") ? $_SESSION['p_codeActeChambre_C'] : "";
$codeMedecinProforma = (isset($_SESSION['p_codeMedecinProforma_C']) && $idBeneficiaire > "0") ? $_SESSION['p_codeMedecinProforma_C'] : "";
$codeAffectionProforma = isset($_SESSION['p_codeAffection_C']) ? $_SESSION['p_codeAffection_C'] : "";
?>
<tr>
<td class="required"> <?= _("Type Chambre") ?> </td>
<td >
<SELECT class="form-select" id="codeActeChambre" NAME="codeActeChambre" required style='font-size:10pt; height:30px !important;' onChange="javascript:messageSituationProformaHospit();" required >
<?php liste_options($actesChambre,$codeActeChambre); ?>
</SELECT>
</td >
<td align="center" class="required"> <?= _("Début") ?> </td>
<td colspan="3">
<INPUT class="form-control datepicker" TYPE="text" id="dateDebut" name="dateDebut" style='font-size:10pt;' value="<?= $dateDebutProforma ?>" required onChange="javascript:verifierDate();" required >
</td>
<td align="center" class="required"> <?= _("Durée (J)") ?> </td>
<td>
<input class="form-control" type="number" id="duree" name="duree" style="font-size:10pt;" Value="<?= (isset($_SESSION['p_dureeProforma_C']) && $idBeneficiaire > "0") ? $_SESSION['p_dureeProforma_C'] : "0" ?>" min="0">
</td>
</tr>
<tr>
<td class="required"> <?= _("Renseignement Clinique") ?> </td>
<td colspan="7"><input id="motif" name="motif" style="font-size:10pt;" class="form-control" value="<?= (isset($_SESSION['p_motifProforma_C']) && $idBeneficiaire > "0") ? $_SESSION['p_motifProforma_C'] : "" ?>" type="text" required AUTOCOMPLETE="OFF" placeholder="<?= _("Obligatoire avant d'enregistrer la proforma...")?>"></td>
</tr>
<tr >
<td class="required"> <?= _("Médecin") ?> </td>
<td colspan="7">
<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>
</td>
</tr>
<tr>
<td > <?= _("Affection") ?> </td>
<td colspan="7">
<SELECT id="codeAffection" NAME="codeAffection" class="form-control selectpicker" data-live-search="true" style='font-size:10pt;'>
<?php liste_options($affections, $codeAffectionProforma); ?>
</SELECT>
</td>
</tr>
<tr><td colspan="8" height='15'> </td></tr>
<tr>
<td colspan="8">
<div id="div_reponse" >
</div>
</td>
</tr>
</tbody>
</table>
<div id="div_statutacte">
</div>
<div id="div_messages">
</div>