Skip to content

Commit

Permalink
Merge branch 'main' of github.com:DIPSAS/hello-open-dips
Browse files Browse the repository at this point in the history
  • Loading branch information
jko218 committed Jun 26, 2024
2 parents 8ecad07 + 74c9015 commit 5a4cf8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/pages/appointments/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ if (!patient) {
);
}

// console.log(appointments?.total)

if(patient && appointments && encounters){

return (
Expand Down Expand Up @@ -111,7 +113,7 @@ if(patient && appointments && encounters){
<AppointmentsEncountersInfo title= "Appointments" onClose={handleCloseList}>
<ul className={styles.appointmentList}>
<div>
<ul className={styles.appointmentWrapper}>
{appointments?.total && <ul className={styles.appointmentWrapper}>
{appointments?.entry?.map((entry) => {
const resource = entry.resource as R4.IAppointment;
const display = getDisplayFromExtensions(resource.extension);
Expand All @@ -124,7 +126,8 @@ if(patient && appointments && encounters){
</li>
);
})}
</ul>
</ul>}
{!appointments?.total && <p className="conditions-error">The patient has no appointments.</p>}
</div>
</ul>
</AppointmentsEncountersInfo>
Expand All @@ -136,7 +139,7 @@ if(patient && appointments && encounters){
<AppointmentsEncountersInfo title="Encounters" onClose={handleCloseList}>
<ul className={styles.encounterList}>
<div>
<ul className={styles.appointmentWrapper}>
{encounters?.total && <ul className={styles.appointmentWrapper}>
{encounters?.entry?.map((entry) => {
const resource = entry.resource as R4.IEncounter;
return (
Expand All @@ -149,7 +152,8 @@ if(patient && appointments && encounters){
</li>
)
})}
</ul>
</ul>}
{!encounters?.total && <p className="conditions-error">The patient has no encounters.</p>}
</div>
</ul>
</AppointmentsEncountersInfo>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/appointment.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.appointmentList, .encounterList {
list-style-type: none;
padding: 0;
height: calc(90vh - 100pt);
height: calc(80vh - 100pt);
overflow-y: auto;
}

Expand Down

0 comments on commit 5a4cf8b

Please sign in to comment.