Skip to content
This repository was archived by the owner on Jul 18, 2026. It is now read-only.

Commit 8598a99

Browse files
committed
fixing condition report.
1 parent c8e074f commit 8598a99

1 file changed

Lines changed: 34 additions & 16 deletions

File tree

frontend/src/app/pages/medical-history/medical-history.component.html

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,47 @@
55
<!-- Header Row -->
66
<report-header [reportHeaderTitle]="'Medical History'" [reportHeaderSubTitle]="'Organized by conditions, describes the scope and breadth of medical care'"></report-header>
77

8+
<ng-container *ngIf="conditions.length || unassigned_encounters.length; else emptyReport">
9+
<!-- Editor Button -->
10+
<div class="row mt-5 mb-3">
11+
<div class="col-12">
812

9-
<!-- Editor Button -->
10-
<div class="row mt-5 mb-3">
11-
<div class="col-12">
13+
<div class="alert alert-warning" role="alert">
14+
<strong>Warning!</strong> Fasten has detected medical Encounters that are not associated with a Condition.
15+
They are grouped under the "Unassigned" section below.
16+
<br/>
17+
You can re-organize your conditions & encounters by using the <a class="alert-link cursor-pointer" (click)="openEditorRelated()">report editor</a>
18+
</div>
19+
</div>
20+
</div>
1221

13-
<div class="alert alert-warning" role="alert">
14-
<strong>Warning!</strong> Fasten has detected medical Encounters that are not associated with a Condition.
15-
They are grouped under the "Unassigned" section below.
16-
<br/>
17-
You can re-organize your conditions & encounters by using the <a class="alert-link cursor-pointer" (click)="openEditorRelated()">report editor</a>
22+
<!-- Conditions Title -->
23+
<div class="row mt-5 mb-3">
24+
<div class="col-6">
25+
<h1 class="az-dashboard-title">Condition</h1>
1826
</div>
1927
</div>
20-
</div>
2128

22-
<!-- Conditions Title -->
23-
<div class="row mt-5 mb-3">
24-
<div class="col-6">
25-
<h1 class="az-dashboard-title">Condition</h1>
29+
<!-- Condition List -->
30+
<app-report-medical-history-condition *ngFor="let condition of conditions; let i = index" [condition]="condition"></app-report-medical-history-condition>
31+
</ng-container>
32+
33+
<ng-template #emptyReport>
34+
<div class="d-flex align-items-center" style="height:100%">
35+
<div class="modal-body tx-center pd-y-20 pd-x-20">
36+
<h4 class="tx-purple mg-b-20">No Medical History Found!</h4>
37+
<p class="mg-b-20 mg-x-20">
38+
Fasten was unable determine your medical history using your connected sources. You may need to connect another source to import your medical history.
39+
</p>
40+
<p class="mg-b-20 mg-x-20">
41+
Click below to add a new healthcare provider to Fasten.
42+
</p>
43+
<button [routerLink]="'/sources'" type="button" class="btn btn-purple pd-x-25">Add Source</button>
44+
</div><!-- modal-body -->
2645
</div>
27-
</div>
46+
</ng-template>
47+
2848

29-
<!-- Condition List -->
30-
<app-report-medical-history-condition *ngFor="let condition of conditions; let i = index" [condition]="condition"></app-report-medical-history-condition>
3149
</div>
3250
</div>
3351
</div>

0 commit comments

Comments
 (0)