+
{{'FINDINGS' | transloco}}:
@if (loading && !error) {
@@ -56,7 +56,7 @@
}
@if (!loading && !error) {
-
-
+
{{'POSSIBLE-DIAGNOSES' | transloco}}:
@@ -82,31 +82,24 @@
{{'TEXT' | transloco}}
- {{'CODE' | transloco}}
- {{'DESCRIPTION' | transloco}}
- {{'SIMILARITY' | transloco}}
+ {{'MATCHES' | transloco}}
+ {{'ACTION' | transloco}}
@for (textAndDiagnostic of textAndDiagnosticList; track $index) {
- @for (diagnostic of textAndDiagnostic.diagnostics; track diagnostic; let i = $index) {
-
- {{textAndDiagnostic.rawText}}
-
- {{ diagnostic.code }}
-
-
- {{ diagnostic.description }}
-
- = .8 ,
- 'similarity-high': diagnostic.similarity < .8 && diagnostic.similarity >= .7,
- 'similarity-medium': diagnostic.similarity < .7 && diagnostic.similarity >= .6,
- 'similarity-low': diagnostic.similarity < .6 }">
- {{ diagnostic.similarity }}
-
-
- }
- }
+
+ {{textAndDiagnostic.rawText}}
+ {{textAndDiagnostic.diagnostics.length}}
+
+
+
+
+
+
+
+
+ }
}
@@ -114,4 +107,15 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/encoder-ui/src/app/analysis/analysis.component.ts b/encoder-ui/src/app/analysis/analysis.component.ts
index 6001788..fd70aba 100644
--- a/encoder-ui/src/app/analysis/analysis.component.ts
+++ b/encoder-ui/src/app/analysis/analysis.component.ts
@@ -1,5 +1,6 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, inject, OnInit, TemplateRef } from '@angular/core';
import { IrisService } from '../services/iris.service';
+import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
interface Diagnostic {
code: String;
@@ -25,6 +26,7 @@ interface AnalysisText {
})
export class AnalysisComponent implements OnInit{
+ private modalService = inject(NgbModal);
textUpdated: String = "";
diagnostics: Array
= [];
loading = false;
@@ -39,6 +41,8 @@ export class AnalysisComponent implements OnInit{
textOriginal: string = "";
screenHeight: number = 0;
textToMark: String = "";
+ diagnosticsSelected: Array = [];
+ diagnosticText: String = "";
constructor(private irisService: IrisService)
{
@@ -155,4 +159,16 @@ export class AnalysisComponent implements OnInit{
textHTML = textHTML.replace("","");
this.textUpdated = textHTML;
}
+
+ open(content: TemplateRef, textAndDiagnostic: TextAndDiagnostic) {
+ this.diagnosticText = textAndDiagnostic.rawText;
+ this.diagnosticsSelected = textAndDiagnostic.diagnostics;
+ this.modalService.open(content, { ariaLabelledBy: 'modal-basic-title', size: 'xl' }).result.then(
+ (result) => {
+ },
+ (reason) => {
+
+ },
+ );
+ }
}
diff --git a/encoder-ui/src/app/analyzer/analyzer.component.html b/encoder-ui/src/app/analyzer/analyzer.component.html
index fb98199..e774093 100644
--- a/encoder-ui/src/app/analyzer/analyzer.component.html
+++ b/encoder-ui/src/app/analyzer/analyzer.component.html
@@ -15,7 +15,7 @@