314 lines
12 KiB
PHP
Executable File
314 lines
12 KiB
PHP
Executable File
|
|
<div class="card-header bg-light py-2 d-flex justify-content-between align-items-center">
|
|
<h5 class="mb-0 text-dark">
|
|
<i class="fas fa-list me-2"></i>
|
|
<span class="hide-on-mobile"><?= _("Liste des soins")?></span>
|
|
<span class="badge bg-primary view-end"><?= format_N(count($historiqueprestations)).' '._("soin(s)") ?> </span>
|
|
</h5>
|
|
</div>
|
|
|
|
<!-- Tableau desktop (affiché sur les écrans moyens et grands) -->
|
|
<div class="d-none d-md-block">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt; white-space:nowrap;">
|
|
<thead class="table-dark">
|
|
<tr>
|
|
<th width="10%" style="text-align:center"> Date </th>
|
|
<th style="text-align:center" > <?= _("Prestataire") ?> </th>
|
|
<th colspan="2" style="text-align:center"> <?= _("Actes") ?> </th>
|
|
<th width="5%" style="text-align:center" > <?= _("Accord") ?> </th>
|
|
<th style="text-align:center" > <?= _("Médecin") ?> </th>
|
|
<th style="text-align:center" > <?= _("Patient") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
|
|
<th width="7%" style="text-align:center"> <?= _("Montant TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("Part assureur") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Dépassement") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
foreach ($historiqueprestations as $prestation):
|
|
$idPrestationactes = $this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation = $this->nettoyer($prestation['codeTypePrestation']);
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
$ententePrealable = $this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation = $this->nettoyer($prestation['autorisation']);
|
|
|
|
$idProlongation = $this->nettoyer($prestation['idProlongation']);
|
|
|
|
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
|
|
{
|
|
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
|
|
{
|
|
$libelleActe = "PHARMACIE INTERNE";
|
|
}else{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
|
|
{
|
|
$libelleActe = "INTERNAL PHARMACY";
|
|
}else{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
|
|
|
|
$libelleConsommable = $this->nettoyer($prestation['libelleConsommable']);
|
|
|
|
if($codeTypePrestation == "CSM")
|
|
{
|
|
$libelleActe = $libelleConsommable;
|
|
}
|
|
|
|
|
|
if($idProlongation > "0"){
|
|
$libelleActe = $libelleActe." - "."PROROGATION";
|
|
}
|
|
|
|
$prixBase = $prestation['prixBase'];
|
|
|
|
if ($prixBase == "0"){
|
|
$prixBase = $prestation['valeurActe'];
|
|
}
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
|
|
$exclusionrecapacte = $this->nettoyer($prestation['exclusionrecapacte']);
|
|
|
|
?>
|
|
<tr valign="top">
|
|
<?php
|
|
if($ententePrealable == '2'){
|
|
$_SESSION['ententePrealableenattente'] = 1;
|
|
}else{
|
|
$_SESSION['ententePrealableenattente'] = 0;
|
|
}
|
|
?>
|
|
<td align='center'> <?= dateheureLang($this->nettoyer($prestation['dateSysteme']), $_SESSION['lang']) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['prestataire']); ?> </td>
|
|
|
|
<td align='center'> <?= $codeGarantie ?> </td>
|
|
<td align='center'> <?= $libelleActe ?> </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'> <?= $this->nettoyer($prestation['medecinActe']) ?> </td>
|
|
|
|
<td > <?= $this->nettoyer($prestation['patient']); ?> </td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></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!='' && $exclusionrecapacte=='0'): ?>
|
|
<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; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Affichage mobile (cartes) -->
|
|
<div class="d-md-none">
|
|
<?php
|
|
foreach ($historiqueprestations as $prestation):
|
|
$idPrestationactes = $this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation = $this->nettoyer($prestation['codeTypePrestation']);
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
$ententePrealable = $this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation = $this->nettoyer($prestation['autorisation']);
|
|
|
|
$idProlongation = $this->nettoyer($prestation['idProlongation']);
|
|
|
|
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
|
|
{
|
|
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
|
|
{
|
|
$libelleActe = "PHARMACIE INTERNE";
|
|
}else{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
|
|
{
|
|
$libelleActe = "INTERNAL PHARMACY";
|
|
}else{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
|
|
|
|
$libelleConsommable = $this->nettoyer($prestation['libelleConsommable']);
|
|
|
|
if($codeTypePrestation == "CSM")
|
|
{
|
|
$libelleActe = $libelleConsommable;
|
|
}
|
|
|
|
|
|
if($idProlongation > "0"){
|
|
$libelleActe = $libelleActe." - "."PROROGATION";
|
|
}
|
|
|
|
$prixBase = $prestation['prixBase'];
|
|
|
|
if ($prixBase == "0"){
|
|
$prixBase = $prestation['valeurActe'];
|
|
}
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
|
|
$exclusionrecapacte = $this->nettoyer($prestation['exclusionrecapacte']);
|
|
?>
|
|
<div class="card mb-3 shadow-sm">
|
|
<div class="card-header bg-light d-flex justify-content-between align-items-center py-0">
|
|
<div class="row mb-2">
|
|
<div class="col-10 mb-2">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span class="fw-bold me-2 text-dark"><?= $libelleActe ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-2 mb-1">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
|
|
<span class="badge bg-warning text-dark"><?= _("Attente") ?>
|
|
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
|
|
<span class="badge bg-success"><?= _("Accordé") ?>
|
|
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<span class="badge bg-danger"><?= _("Refusé") ?>
|
|
<?php else: ?>
|
|
<span class="badge bg-secondary"><?= _("Permis") ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card-body py-2 mb-2">
|
|
<div class="row mb-0">
|
|
<div class="col-12 mb-0">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span class="text-muted small"><?= _("Date") ?></span>
|
|
<span class="fw-bold"><?= dateheureLang($this->nettoyer($prestation['dateSysteme']), $_SESSION['lang']) ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 mb-0">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span class="text-muted small"><?= _("Prestataire") ?></span>
|
|
<span class="fw-bold"><?= substr($this->nettoyer($prestation['prestataire']),0, 32) ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 mb-0">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span class="text-muted small"><?= _("Médecin") ?></span>
|
|
<span class="fw-bold"><?= substr($this->nettoyer($prestation['medecinActe']),0, 32) ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 mb-0">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<span class="text-muted small"><?= _("Patient") ?></span>
|
|
<span class="text-end"><?= substr($this->nettoyer($prestation['patient']),0,32) ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-6 mb-1">
|
|
<div class="d-flex justify-content-between">
|
|
<span class="text-muted small"><?= _("Prix Total") ?></span>
|
|
<span><?= format_N($this->nettoyer($prestation['fraisReel'])) ?></span>
|
|
</div>
|
|
</div>
|
|
<div class="col-6 mb-1">
|
|
<div class="d-flex justify-content-between">
|
|
<span class="text-muted small"><?= _("Montant TM") ?></span>
|
|
<span class="text-success"><?= format_N($this->nettoyer($prestation['montantTm'])) ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-6 mb-1">
|
|
<div class="d-flex justify-content-between">
|
|
<span class="text-muted small"><?= _("Part assureur") ?></span>
|
|
<span><?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-6 mb-1">
|
|
<div class="d-flex justify-content-between">
|
|
<span class="text-muted small"><?= _("Dépassement") ?></span>
|
|
<span class="text-danger"><?= format_N($this->nettoyer($prestation['depassement'])) ?></span>
|
|
</div>
|
|
</div>
|
|
<?php if($codeMotifDepassement!='' && $exclusionrecapacte=='0'): ?>
|
|
<div class="col-12 mb-1">
|
|
<div class="d-flex justify-content-between">
|
|
<span class="text-muted small"><?= _("Motif") ?></span>
|
|
<button type="button" class="btn btn-info" title="<?= _("Voir le motif du dépassement...")?>" onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
|
|
<?= $codeMotifDepassement ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|