Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -509,39 +509,39 @@ class ICD10SearchInterface:
|
|
| 509 |
|
| 510 |
# Enhanced legend with chapter info
|
| 511 |
html += """
|
| 512 |
-
<div style='background
|
| 513 |
-
<h4 style='color: #2c3e50; margin-bottom: 15px;'>Enhanced Legend</h4>
|
| 514 |
|
| 515 |
<div style='margin-bottom: 15px;'>
|
| 516 |
-
<h5 style='color: #2c3e50; margin-bottom: 8px;'>Score Quality:</h5>
|
| 517 |
<div style='display: flex; flex-wrap: wrap; gap: 15px; align-items: center;'>
|
| 518 |
<div style='display: flex; align-items: center;'>
|
| 519 |
<div style='width: 20px; height: 20px; background-color: #27ae60; border-radius: 3px; margin-right: 8px;'></div>
|
| 520 |
-
<span style='font-size: 0.9em;'>Excellent Match (β₯0.8)</span>
|
| 521 |
</div>
|
| 522 |
<div style='display: flex; align-items: center;'>
|
| 523 |
<div style='width: 20px; height: 20px; background-color: #f39c12; border-radius: 3px; margin-right: 8px;'></div>
|
| 524 |
-
<span style='font-size: 0.9em;'>Good Match (β₯0.6)</span>
|
| 525 |
</div>
|
| 526 |
<div style='display: flex; align-items: center;'>
|
| 527 |
<div style='width: 20px; height: 20px; background-color: #e67e22; border-radius: 3px; margin-right: 8px;'></div>
|
| 528 |
-
<span style='font-size: 0.9em;'>Fair Match (β₯0.4)</span>
|
| 529 |
</div>
|
| 530 |
<div style='display: flex; align-items: center;'>
|
| 531 |
<div style='width: 20px; height: 20px; background-color: #e74c3c; border-radius: 3px; margin-right: 8px;'></div>
|
| 532 |
-
<span style='font-size: 0.9em;'>Low Match (<0.4)</span>
|
| 533 |
</div>
|
| 534 |
</div>
|
| 535 |
</div>
|
| 536 |
|
| 537 |
<div>
|
| 538 |
-
<h5 style='color: #2c3e50; margin-bottom: 8px;'>Features:</h5>
|
| 539 |
-
<div style='display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 0.9em;'>
|
| 540 |
-
<span
|
| 541 |
-
<span
|
| 542 |
-
<span
|
| 543 |
-
<span
|
| 544 |
-
<span
|
| 545 |
</div>
|
| 546 |
</div>
|
| 547 |
</div>
|
|
|
|
| 509 |
|
| 510 |
# Enhanced legend with chapter info
|
| 511 |
html += """
|
| 512 |
+
<div style='background: var(--background-fill-secondary, #f8f9fa); border: 1px solid var(--border-color-primary, #e9ecef); border-radius: 8px; padding: 15px; margin-top: 20px;'>
|
| 513 |
+
<h4 style='color: var(--body-text-color, #2c3e50); margin-bottom: 15px;'>Enhanced Legend</h4>
|
| 514 |
|
| 515 |
<div style='margin-bottom: 15px;'>
|
| 516 |
+
<h5 style='color: var(--body-text-color, #2c3e50); margin-bottom: 8px;'>Score Quality:</h5>
|
| 517 |
<div style='display: flex; flex-wrap: wrap; gap: 15px; align-items: center;'>
|
| 518 |
<div style='display: flex; align-items: center;'>
|
| 519 |
<div style='width: 20px; height: 20px; background-color: #27ae60; border-radius: 3px; margin-right: 8px;'></div>
|
| 520 |
+
<span style='font-size: 0.9em; color: var(--body-text-color, #333);'>Excellent Match (β₯0.8)</span>
|
| 521 |
</div>
|
| 522 |
<div style='display: flex; align-items: center;'>
|
| 523 |
<div style='width: 20px; height: 20px; background-color: #f39c12; border-radius: 3px; margin-right: 8px;'></div>
|
| 524 |
+
<span style='font-size: 0.9em; color: var(--body-text-color, #333);'>Good Match (β₯0.6)</span>
|
| 525 |
</div>
|
| 526 |
<div style='display: flex; align-items: center;'>
|
| 527 |
<div style='width: 20px; height: 20px; background-color: #e67e22; border-radius: 3px; margin-right: 8px;'></div>
|
| 528 |
+
<span style='font-size: 0.9em; color: var(--body-text-color, #333);'>Fair Match (β₯0.4)</span>
|
| 529 |
</div>
|
| 530 |
<div style='display: flex; align-items: center;'>
|
| 531 |
<div style='width: 20px; height: 20px; background-color: #e74c3c; border-radius: 3px; margin-right: 8px;'></div>
|
| 532 |
+
<span style='font-size: 0.9em; color: var(--body-text-color, #333);'>Low Match (<0.4)</span>
|
| 533 |
</div>
|
| 534 |
</div>
|
| 535 |
</div>
|
| 536 |
|
| 537 |
<div>
|
| 538 |
+
<h5 style='color: var(--body-text-color, #2c3e50); margin-bottom: 8px;'>Features:</h5>
|
| 539 |
+
<div style='display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 0.9em; color: var(--body-text-color, #666);'>
|
| 540 |
+
<span>β High-scoring codes (β₯0.6)</span>
|
| 541 |
+
<span>π Category grouping by ICD-10 structure</span>
|
| 542 |
+
<span>π Chapter context and descriptions</span>
|
| 543 |
+
<span>π Score-based category prioritization</span>
|
| 544 |
+
<span>π Duplicate category codes filtered</span>
|
| 545 |
</div>
|
| 546 |
</div>
|
| 547 |
</div>
|