-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from intersystems-ib/production
Updated analysis
- Loading branch information
Showing
12 changed files
with
236 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
encoder-ui/src/app/matches-list/matches-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
@if (loading) { | ||
<div class="d-flex justify-content-center"> | ||
<div class="spinner-border" role="status"> | ||
</div> | ||
</div> | ||
} | ||
@if (!loading) { | ||
<table class="table table-striped table-hover"> | ||
<thead> | ||
<tr> | ||
<th scope="col">#</th> | ||
<th scope="col">{{'ICD-CODE' | transloco}}</th> | ||
<th scope="col">{{'DESCRIPTION' | transloco}}</th> | ||
<th scope="col">{{'SIMILARITY' | transloco}}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@for (diagnostic of diagnosticsPage; track diagnostic; let i = $index) { | ||
<tr> | ||
<th scope="row">{{ i + 1 }}</th> | ||
<td> | ||
{{ diagnostic.code }} | ||
</td> | ||
<td> | ||
{{ diagnostic.description }} | ||
</td> | ||
<td [ngClass]="{'similarity-veryhigh': diagnostic.similarity >= .8 , | ||
'similarity-high': diagnostic.similarity < .8 && diagnostic.similarity >= .7, | ||
'similarity-medium': diagnostic.similarity < .7 && diagnostic.similarity >= .6, | ||
'similarity-low': diagnostic.similarity < .6 }"> | ||
{{ diagnostic.similarity }} | ||
</td> | ||
</tr> | ||
} | ||
</tbody> | ||
</table> | ||
|
||
<div class="d-flex justify-content-between p-2"> | ||
<ngb-pagination | ||
[collectionSize]="collectionSize" | ||
[(page)]="page" | ||
[pageSize]="pageSize" | ||
(pageChange)="refreshOptions()" | ||
> | ||
</ngb-pagination> | ||
|
||
<select class="form-select" style="width: auto" [(ngModel)]="pageSize" (ngModelChange)="refreshOptions()"> | ||
<option [ngValue]="6">6 {{'CODES-PAGE' | transloco}}</option> | ||
<option [ngValue]="8">8 {{'CODES-PAGE' | transloco}}</option> | ||
<option [ngValue]="10" selected>10 {{'CODES-PAGE' | transloco}}</option> | ||
</select> | ||
</div> | ||
} |
16 changes: 16 additions & 0 deletions
16
encoder-ui/src/app/matches-list/matches-list.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.similarity-veryhigh { | ||
background-color: #27AE60; | ||
color: white; | ||
} | ||
.similarity-high { | ||
background-color: #46C84E; | ||
color: white; | ||
} | ||
.similarity-medium { | ||
background-color: #FFC300; | ||
color: black; | ||
} | ||
.similarity-low { | ||
background-color: #FF5733; | ||
color: black; | ||
} |
23 changes: 23 additions & 0 deletions
23
encoder-ui/src/app/matches-list/matches-list.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { MatchesListComponent } from './matches-list.component'; | ||
|
||
describe('MatchesListComponent', () => { | ||
let component: MatchesListComponent; | ||
let fixture: ComponentFixture<MatchesListComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [MatchesListComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(MatchesListComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.