fixing condition report.

This commit is contained in:
Jason Kulatunga 2022-12-22 19:39:09 -08:00
parent c8e074ff4b
commit 8598a99860
1 changed files with 35 additions and 17 deletions

View File

@ -5,7 +5,7 @@
<!-- Header Row -->
<report-header [reportHeaderTitle]="'Medical History'" [reportHeaderSubTitle]="'Organized by conditions, describes the scope and breadth of medical care'"></report-header>
<ng-container *ngIf="conditions.length || unassigned_encounters.length; else emptyReport">
<!-- Editor Button -->
<div class="row mt-5 mb-3">
<div class="col-12">
@ -28,6 +28,24 @@
<!-- Condition List -->
<app-report-medical-history-condition *ngFor="let condition of conditions; let i = index" [condition]="condition"></app-report-medical-history-condition>
</ng-container>
<ng-template #emptyReport>
<div class="d-flex align-items-center" style="height:100%">
<div class="modal-body tx-center pd-y-20 pd-x-20">
<h4 class="tx-purple mg-b-20">No Medical History Found!</h4>
<p class="mg-b-20 mg-x-20">
Fasten was unable determine your medical history using your connected sources. You may need to connect another source to import your medical history.
</p>
<p class="mg-b-20 mg-x-20">
Click below to add a new healthcare provider to Fasten.
</p>
<button [routerLink]="'/sources'" type="button" class="btn btn-purple pd-x-25">Add Source</button>
</div><!-- modal-body -->
</div>
</ng-template>
</div>
</div>
</div>