136 lines
7.1 KiB
PHP
136 lines
7.1 KiB
PHP
<div id="div_facture_detail" class="mt-3">
|
|
<?php
|
|
$actVisible = "0"; //$_SESSION['actVisible'];
|
|
$AffectionVisible = "0"; //$_SESSION['AffectionVisible'];
|
|
|
|
// Gestion de la langue et de la confidentialité
|
|
if (est_anglophone()) {
|
|
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffectionEng']);
|
|
$raisonconsultation = $this->nettoyer($feuillemaladie['raisonconsultationEng']);
|
|
} else {
|
|
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffection']);
|
|
$raisonconsultation = $this->nettoyer($feuillemaladie['raisonconsultation']);
|
|
}
|
|
|
|
if($AffectionVisible != "1") {
|
|
$libelleAffection = $this->nettoyer($feuillemaladie['codeAffection']);
|
|
}
|
|
?>
|
|
|
|
<div class="d-flex align-items-center bg-success text-white p-2 rounded-top">
|
|
<i class="fa-solid fa-notes-medical me-2 ms-1"></i>
|
|
<span class="fw-bold text-uppercase small"><?= _("Informations sur la consultation") ?></span>
|
|
</div>
|
|
|
|
<div class="card border-0 shadow-sm rounded-0 rounded-bottom mb-4">
|
|
<div class="card-body bg-light">
|
|
<div class="row g-3 mb-3">
|
|
<div class="col-md-3">
|
|
<label class="extra-small text-muted text-uppercase fw-bold"><?= _("No Feuille") ?></label>
|
|
<div class="fw-bold border-bottom"><?= $this->nettoyer($feuillemaladie['numeroFeuilleMaladie']) ?></div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<label class="extra-small text-muted text-uppercase fw-bold"><?= _("Date Cons.") ?></label>
|
|
<div class="fw-bold border-bottom"><?= dateLang($this->nettoyer($feuillemaladie['dateConsultation']), $_SESSION['lang']) ?></div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label class="extra-small text-muted text-uppercase fw-bold"><?= _("Prestataire") ?></label>
|
|
<div class="fw-bold border-bottom text-truncate"><?= $this->nettoyer($feuillemaladie['prestataire']) ?></div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label class="extra-small text-muted text-uppercase fw-bold"><?= _("Médecin") ?></label>
|
|
<div class="fw-bold border-bottom"><?= $this->nettoyer($feuillemaladie['medecinConsultation']) ?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row g-2 p-2 bg-white rounded border mb-3">
|
|
<?php
|
|
$bons = [
|
|
'Cons.' => $feuillemaladie['numeroBonConsultation'],
|
|
'Phar.' => $feuillemaladie['numeroBonOrdonnance'],
|
|
'Hosp.' => $feuillemaladie['numeroBonHospitalisation'],
|
|
'Opt.' => $feuillemaladie['numeroBonOptique'],
|
|
'Exam.' => $feuillemaladie['numeroBonExamen'],
|
|
'Kine.' => $feuillemaladie['numeroBonKine']
|
|
];
|
|
foreach($bons as $lbl => $val): ?>
|
|
<div class="col-md-2">
|
|
<div class="p-1 border rounded bg-light text-center">
|
|
<div class="extra-small text-muted fw-bold"><?= $lbl ?></div>
|
|
<div class="small fw-bold"><?= $this->nettoyer($val) ?: '-' ?></div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
|
|
<div class="row g-3">
|
|
<div class="col-md-4 border-end">
|
|
<label class="extra-small text-muted text-uppercase fw-bold"><?= _("Raison Consultation") ?></label>
|
|
<div class="small italic text-secondary"><?= $raisonconsultation ?></div>
|
|
</div>
|
|
<div class="col-md-8">
|
|
<label class="extra-small text-muted text-uppercase fw-bold"><?= _("Affection Principale") ?></label>
|
|
<div class="p-2 bg-white border rounded fw-bold text-success text-center">
|
|
<i class="fa-solid fa-disease me-2"></i><?= $libelleAffection ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table-responsive shadow-sm">
|
|
<table class="table table-hover align-middle border mb-0" style="font-size: 0.8rem;">
|
|
<thead class="table-secondary">
|
|
<tr>
|
|
<th class="ps-3"><?= _("Date Diagnostic") ?></th>
|
|
<th><?= _("Diagnostic détaillé") ?></th>
|
|
<th class="text-center"><?= _("Saisi par") ?></th>
|
|
<th class="text-center bg-light border-start" colspan="2"><?= _("Historique Suppression") ?></th>
|
|
</tr>
|
|
<tr class="extra-small text-uppercase text-muted bg-light">
|
|
<th colspan="3"></th>
|
|
<th class="text-center border-start"><?= _("Utilisateur") ?></th>
|
|
<th class="text-center"><?= _("Date/Heure") ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($diagnostics as $diagnostic):
|
|
$isSupprime = ($this->nettoyer($diagnostic['supprime']) == '1');
|
|
$rowStyle = $isSupprime ? 'style="background-color: #fff5f5; opacity: 0.7;"' : '';
|
|
|
|
$codeAff = $this->nettoyer($diagnostic['codeAffection']);
|
|
$libAff = est_anglophone() ? $this->nettoyer($diagnostic['libelleAffectionEng']) : $this->nettoyer($diagnostic['libelleAffection']);
|
|
|
|
if($AffectionVisible != "1") { $libAff = $codeAff; }
|
|
else { $libAff .= " <span class='badge bg-light text-dark border'>$codeAff</span>"; }
|
|
?>
|
|
<tr <?= $rowStyle ?>>
|
|
<td class="ps-3">
|
|
<?= dateheureLang($this->nettoyer($diagnostic['dateSysteme'])) ?>
|
|
</td>
|
|
<td>
|
|
<?php if($isSupprime): ?><i class="fa-solid fa-ban text-danger me-2"></i><del><?php endif; ?>
|
|
<?= $libAff ?>
|
|
<?php if($isSupprime): ?></del><?php endif; ?>
|
|
</td>
|
|
<td class="text-center fw-bold text-muted">
|
|
<?= $this->nettoyer($diagnostic['codeUtilisateur']) ?>
|
|
</td>
|
|
<td class="text-center border-start text-danger small">
|
|
<?= $this->nettoyer($diagnostic['userSuppression']) ?>
|
|
</td>
|
|
<td class="text-center text-danger small">
|
|
<?= dateheureLang($this->nettoyer($diagnostic['heueSuppression'])) ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.extra-small { font-size: 0.65rem; }
|
|
.italic { font-style: italic; }
|
|
.bg-light { background-color: #f8f9fa !important; }
|
|
</style>
|