This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatients.php
59 lines (56 loc) · 3.59 KB
/
patients.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php $title = "Patients | SmartLab"?>
<?php ob_start(); ?>
<section class="page_patients table_page">
<section>
<div class="header">
<h1>Liste des patients</h1>
<div class="description">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
</div>
</div>
<div class="scrollable">
<table class="patient_table">
<thead>
<tr class="ligne">
<th>Check</th>
<th>Alerte</th>
<th>Attente</th>
<th>Prénom</th>
<th>Nom</th>
<th>id Patient / HADM</th>
<th>Service</th>
<th>Age</th>
<th>Sexe</th>
<th>Suivi</th>
<th>Date entrée</th>
<th>Date sortie</th>
</tr>
</thead>
<tbody>
<?php foreach($patients->patients_data as $patient):?>
<tr>
<td><a href="patient/<?php echo $patient->getPatientId();?>" class="link_patient"><span class="icon secondary material-symbols-outlined">fact_check</span></a></td>
<?php $alerts = $patient->getNumberAlerts(); $restantes = $patient->getRemainingPrescriptions();?>
<td class="simple-item"><div class="icon <?php if($alerts>0) echo("red");?>"><?php if($alerts>0) echo($alerts);else echo("-");?></div></td>
<td class="simple-item"><div class="icon <?php if($restantes>0) echo("green");?>"><?php if($restantes>0) echo($restantes);else echo("-");?></div></td>
<td><?php echo $patient->getName();?></td>
<td><?php echo $patient->getSurname();?></td>
<td class="ipp_iep"><?php echo $patient->getPatientId();?></td>
<td class="icon_text">Service</td>
<td><?php $age = 59; echo($age);?></td>
<?php $gender_infos = $patient->getGenderInfos($patient->getGender());?>
<td class="icon_text"><span class="icon material-symbols-outlined <?=$gender_infos['color']?>"><?=$gender_infos['icon']?></span>
<div><?=$gender_infos['fullletter']?></div>
</td>
<td><?php echo $patient->followed();?></td>
<td><?php echo "start";?></td>
<td><?php echo "end";?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</section>
</section>
<?php $content = ob_get_clean(); ?>
<?php require('layout.php') ?>