assure/Vue/Prescriptioncons/index.php
2025-12-01 19:07:16 +00:00

169 lines
6.9 KiB
PHP

<?php $this->titre = "Intersanté - Prescription Médicaments";
$numeroBonOrdonnance = $prescription['numeroBonOrdonnance'];
?>
<script type="text/javascript">
</script>
<input style='text-align:center; font-size:11pt;' class="form-control" type="text" value= "Informations sur la prescription N° : <?= $_SESSION['numeroPrescription_C'] ?>
=> Prestataire : <?= $_SESSION['prestataire_C'] ?> => Feuille Maladie : <?= $_SESSION['numeroFeuilleMaladie_C'] ?>" readonly >
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > Date Prescription </td>
<td width="15%" > <INPUT class="form-control" TYPE="text" value="<?= dateFr($this->nettoyer($prescription['datePrescription'])) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
<td width="10%" align="center"> N° Ordonnance </td>
<td width="15%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonOrdonnance ?>" readonly > </td>
<td width="10%" align="center"> Médecin </td>
<td> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['medecinPrescription']) ?>" readonly style='font-size:10pt;'> </td>
</tr>
</tbody>
</table>
<div id="medicaments">
<legend> Médicaments prescrits </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th width="35%"> Libellé </th>
<th width="10%" style="text-align:center"> Forme </th>
<th style="text-align:center">Posologie </th>
<th width="5%" style="text-align:center"> Qtité </th>
<th style="text-align:center"> Bon </th>
<th colspan="2" style="text-align:center"> Rempl </th>
<th style="text-align:center"> Livré par </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailprescriptions as $detailprescription):
$livre=$this->nettoyer($detailprescription['livre']);
$codePrestataireLivraison=$this->nettoyer($detailprescription['codePrestataireLivraison']);
$prestataireLivraison=$this->nettoyer($detailprescription['prestataireLivraison']);
$substituable = $this->nettoyer($detailprescription['substituable']);
$substitue = $this->nettoyer($detailprescription['substitue']);
$nomSubstitut = $this->nettoyer($detailprescription['nomSubstitut']);
$libelleMedicament = $this->nettoyer($detailprescription['libelleMedicament']);
$ajPharmacie = $this->nettoyer($detailprescription['ajPharmacie']);
$medicamentRemplace = $this->nettoyer($detailprescription['medicamentRemplace']);
$forme = $this->nettoyer($detailprescription['forme']);
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
{
$forme = $this->nettoyer($detailprescription['formeEng']);
}
?>
<?php if($ajPharmacie=="1") : ?>
<tr valign="top" style="background-color: rgb(0, 142, 142);">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?php if($substituable=="1") : ?>
<td style="background-color: yellow;"> <?= $libelleMedicament . " => " . $nomSubstitut ?> </td>
<?php else: ?>
<td> <?= $libelleMedicament ?> </td>
<?php endif; ?>
<td align='center'> <?= $forme ?> </td>
<td align='center'> <?= $this->nettoyer($detailprescription['posologie']) ?> </td>
<td align='center'> <?= $this->nettoyer($detailprescription['quantite']) ?> </td>
<td align='center'> <?= $this->nettoyer($detailprescription['numeroBonOrdonnance']) ?> </td>
<td align='center'> <?= $this->nettoyer($detailprescription['numeroRemplacement']) ?> </td>
<?php if ($medicamentRemplace=="1") : ?>
<td> <input class = "form-control btn btn-primary" type="button" value="Cons" onClick="javascript:consulter_remplacer_medicament('<?= $numeroBonOrdonnance ?>');"> </td>
<?php else: ?>
<td> </td>
<?php endif; ?>
<?php if ($livre=="1") : ?>
<td> <input style="font-size:9pt;" class = "form-control btn btn-info" type="button" value="<?= $prestataireLivraison ?>" onClick="javascript:afficher_pharmacie('<?= $numeroBonOrdonnance ?>','<?= $codePrestataireLivraison ?>');"> </td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<!--
<div id="div_ged_0">
<form enctype="multipart/form-data" action="Prescriptioncons" method="post">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td> Upload </td>
<td> <input style="font-size: 15px; height: 40px" class="form-control btn btn-info" name="fichier_upload" type="file" id="fichier_upload" /> </td>
<td> </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value=" Envoyer / Send" /> </td>
</tr>
</tbody>
</table>
</form>
<?php if((isset($msgErreur)) && ($msgErreur>" ")) : ?>
<INPUT style='font-size:12pt; color:red; text-align:center;' class="form-control" type="text" value="<?= $msgErreur ?>" readonly >
<?php endif; ?>
<table class="table table-striped table-hover table-condensed table-responsive" style="font-size:9pt;" >
<thead>
<th width="12%" style='text-align:center'> Date </th>
<th style='text-align:center'> Document GED / EDM </th>
<th width="11%" style='text-align:center'> Download </th>
</thead>
<tbody>
<?php foreach ($geds as $ged):
$idGed=$this->nettoyer($ged['idGed']);
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
?>
<tr valign="top">
<td align='center'><?= dateheureFr($this->nettoyer($ged['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($ged['nomOrigine']) ?></td>
<td align="center">
<a style="font-size:10pt;" href="<?= $cheminFichier ?>" target="_blank" > Download</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
-->
<button id="btn_medicaments_remplaces" name="btn_medicaments_remplaces" type="button" class="sr-only" btn btn-primary" data-bs-toggle="modal" data-bs-target="#po_liste_medicaments_remplaces" > </button>
<div class="modal fade" id="po_liste_medicaments_remplaces" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"><?= _("Médicaments remplacés") ?></h4>
</div>
<div class="modal-body">
<div id="div_liste_medicaments_remplaces" >
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>