|
| 1 | +<ng-container *ngIf="submission$ | async as submission"> |
| 2 | + <ul class="breadcrumbs"> |
| 3 | + <li> |
| 4 | + <a [routerLink]="['/provider-gateway/submissions/', submission.id]" |
| 5 | + >Submission Summary</a |
| 6 | + > |
| 7 | + </li> |
| 8 | + <li>Key Metrics</li> |
| 9 | + </ul> |
| 10 | + <h1>Key Metrics Breakdown</h1> |
| 11 | + <dbh-file-information |
| 12 | + [providerName]="submission.provider_name" |
| 13 | + [providerId]="submission.provider_id" |
| 14 | + [fileName]="submission.file_name" |
| 15 | + [reportingPeriod]="submission.coverage_start | date : 'MMMM, yyyy'" |
| 16 | + [submissionDate]="submission.created_at" |
| 17 | + [providerActiveStatus]="submission.provider_active_status" |
| 18 | + ></dbh-file-information> |
| 19 | + <ng-container *ngIf="submissionDemographicBreakdown$ | async as demographics"> |
| 20 | + <h3>Gender</h3> |
| 21 | + <ul class="hBarChart"> |
| 22 | + <ng-container *ngFor="let gender of demographics.genders"> |
| 23 | + <li [style.--percent]="gender.percent + '%'"> |
| 24 | + {{ gender.label }} |
| 25 | + <span>{{ gender.count }}<br />({{ gender.percent }}%)</span> |
| 26 | + </li> |
| 27 | + </ng-container> |
| 28 | + </ul> |
| 29 | + |
| 30 | + <h3>Age</h3> |
| 31 | + <ul class="vBarChart"> |
| 32 | + <ng-container *ngFor="let ageRange of demographics.ages"> |
| 33 | + <li> |
| 34 | + {{ ageRange.count }} ({{ ageRange.percent }}%) |
| 35 | + <div class="bar" [style.height]="ageRange.percent * 2 + 'px'"></div> |
| 36 | + <div class="label">{{ ageRange.label }}</div> |
| 37 | + </li> |
| 38 | + </ng-container> |
| 39 | + </ul> |
| 40 | + <div class="half"> |
| 41 | + <h3>Race</h3> |
| 42 | + <ul class="hBarChart"> |
| 43 | + <ng-container *ngFor="let race of demographics.races"> |
| 44 | + <li [style.--percent]="race.percent + '%'"> |
| 45 | + {{ race.label }} |
| 46 | + <span>{{ race.count }}<br />({{ race.percent }}%)</span> |
| 47 | + </li> |
| 48 | + </ng-container> |
| 49 | + </ul> |
| 50 | + </div> |
| 51 | + <div class="half"> |
| 52 | + <h3>Ethnicity</h3> |
| 53 | + <ul class="hBarChart"> |
| 54 | + <ng-container *ngFor="let ethnicity of demographics.ethnicities"> |
| 55 | + <li [style.--percent]="ethnicity.percent + '%'"> |
| 56 | + {{ ethnicity.label }} |
| 57 | + <span>{{ ethnicity.count }}<br />({{ ethnicity.percent }}%)</span> |
| 58 | + </li> |
| 59 | + </ng-container> |
| 60 | + </ul> |
| 61 | + </div> |
| 62 | + <h3>Treatment Setting</h3> |
| 63 | + <ul class="hBarChart wide"> |
| 64 | + <ng-container *ngFor="let setting of demographics.settings"> |
| 65 | + <li [style.--percent]="setting.percent + '%'"> |
| 66 | + {{ setting.label }} |
| 67 | + <span>{{ setting.count }}<br />({{ setting.percent }}%)</span> |
| 68 | + </li> |
| 69 | + </ng-container> |
| 70 | + </ul> |
| 71 | + </ng-container> |
| 72 | +</ng-container> |
0 commit comments