T17: sweep of the WebApp after the feature-parity work
Removed the legacy indicator layout, unused chart helpers, styles and exports, the card-actions component, fetch-all and explanatory comments; one pager shared by the four worklists, shared filter-row styles, one FHIR name and CURP reader, downloads through export/, the concept-map editor on Material controls.
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
export interface Page {
|
||||
interface Page {
|
||||
kpis: Kpi[];
|
||||
/** Under the cards, before the clinical indicators (CaMa's timeliness boxes). */
|
||||
opportunity?: Section[];
|
||||
clinical: Section[];
|
||||
/** The measure whose data decides the default period. */
|
||||
anchor: string;
|
||||
}
|
||||
/** A card: its measure (none: not published yet), its title, and its value and note as
|
||||
* templates (figures.fill). */
|
||||
export interface Kpi {
|
||||
measure?: string;
|
||||
title: string;
|
||||
@@ -19,18 +15,13 @@ export type Section =
|
||||
| { kind: 'figures'; title?: string; figures: FigureSpec[] }
|
||||
| {
|
||||
kind: 'boxes';
|
||||
/** none: the boxes stand alone (TEA) */
|
||||
title?: string;
|
||||
cards: { measure?: string; title: string }[];
|
||||
/** the measure's own title under each card's (CaMa) */
|
||||
subtitles?: boolean;
|
||||
}
|
||||
/** Each figure in its own card, titled, two to a row (TEA). */
|
||||
| { kind: 'grid'; figures: FigureSpec[] }
|
||||
/** TEA's period summary in words, its numbers from the measures. */
|
||||
| { kind: 'tea-summary' }
|
||||
| ({ kind: 'card' } & Kpi);
|
||||
/** Figure titles may carry `{p}`, the applied period. */
|
||||
export type FigureSpec =
|
||||
| {
|
||||
kind: 'donut' | 'share-donut';
|
||||
@@ -45,7 +36,6 @@ export type FigureSpec =
|
||||
kind: 'age-stack' | 'age-share';
|
||||
title: string;
|
||||
measure: string;
|
||||
/** the numerator's and the rest's names (stack), or the axis (share) */
|
||||
names: [string, string];
|
||||
}
|
||||
| {
|
||||
@@ -54,9 +44,7 @@ export type FigureSpec =
|
||||
measure: string;
|
||||
stratum: string;
|
||||
rows: Category[];
|
||||
/** each row in its category's colour (else all rose) */
|
||||
colored?: boolean;
|
||||
/** the categories (of the measure) that count as a positive */
|
||||
positive: string[];
|
||||
axis: string;
|
||||
};
|
||||
@@ -70,14 +58,12 @@ export interface Category {
|
||||
export interface Catalog {
|
||||
groups: { id: string; label: string; color: string }[];
|
||||
categories: Category[];
|
||||
/** categories drawn faded (not the ones the figure is about) */
|
||||
faded?: string[];
|
||||
}
|
||||
|
||||
const OLIVE = '#A8C243';
|
||||
const ROSE = '#C24269';
|
||||
|
||||
/** Bethesda results as the old app grouped and coloured them. */
|
||||
const CYTOLOGY: Catalog = {
|
||||
groups: [
|
||||
{ id: 'normal', label: 'Sin anomalía', color: OLIVE },
|
||||
@@ -93,7 +79,6 @@ const CYTOLOGY: Catalog = {
|
||||
],
|
||||
};
|
||||
|
||||
/** Biopsy grades: below high grade, and high grade or worse (what confirmation counts). */
|
||||
const BIOPSY: Catalog = {
|
||||
groups: [
|
||||
{ id: 'low', label: 'Menor que LIEAG', color: OLIVE },
|
||||
@@ -119,7 +104,6 @@ const CAMA_DAYS = {
|
||||
};
|
||||
const PENDING = 'Indicador no publicado en el catálogo institucional.';
|
||||
|
||||
/** BI-RADS 4 to 6 as the old app named and coloured them. */
|
||||
const BIRADS: Catalog = {
|
||||
groups: [],
|
||||
categories: [
|
||||
@@ -430,17 +414,13 @@ export interface HistoryPanel {
|
||||
title: string;
|
||||
measure: string;
|
||||
kind: 'stack' | 'percent' | 'median';
|
||||
/** stack: the categories, in the old order, with their names and colours */
|
||||
series?: { code: string; label: string; color: string }[];
|
||||
/** stack: the y axis */
|
||||
axis?: string;
|
||||
group?: string;
|
||||
}
|
||||
export interface History {
|
||||
interface History {
|
||||
panels: HistoryPanel[];
|
||||
/** the line's colour (percent and median) */
|
||||
line: string;
|
||||
/** how many of the latest months the tab opens with (none: from the first with data) */
|
||||
months?: number;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user