|
5 | 5 | <!-- Header Row --> |
6 | 6 | <report-header [reportHeaderTitle]="'Medical History'" [reportHeaderSubTitle]="'Organized by conditions, describes the scope and breadth of medical care'"></report-header> |
7 | 7 |
|
| 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"> |
8 | 12 |
|
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> |
12 | 21 |
|
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> |
18 | 26 | </div> |
19 | 27 | </div> |
20 | | - </div> |
21 | 28 |
|
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 --> |
26 | 45 | </div> |
27 | | - </div> |
| 46 | + </ng-template> |
| 47 | + |
28 | 48 |
|
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 | 49 | </div> |
32 | 50 | </div> |
33 | 51 | </div> |
0 commit comments