CaCu indicators: one selector for the cytology and HPV genotype views, grouped bars and genotype labels
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** The colours of CaCu's charts, by category. A colour names a category (never a position in a
|
||||
* report, never a threshold), so the same category looks the same on every card; neutral greys
|
||||
* are for what is absent or not classified. They are the ones CaCu's page had before the
|
||||
* rebuild, kept here so that no other domain (CaMa, TEA) changes with them. */
|
||||
* are for what is absent or not classified. They live here, not in the shared palette, so that no
|
||||
* other domain (CaMa, TEA) takes them. */
|
||||
|
||||
/** Not classified, or no data. */
|
||||
export const NEUTRAL = '#C9CDD2';
|
||||
@@ -66,17 +66,6 @@ export const ROUND_COLORS: Record<string, string> = {
|
||||
no_data: NEUTRAL,
|
||||
};
|
||||
|
||||
/** Follow-up status and age groups, as the HPV card drew them. */
|
||||
export const STATUS_COLORS: Record<string, string> = {
|
||||
pre_colposcopy: STEEL,
|
||||
post_colposcopy: STEEL_MID,
|
||||
post_treatment: STEEL_LIGHT,
|
||||
case: NEUTRAL_DARK,
|
||||
};
|
||||
export const AGE_COLORS: Record<string, string> = Object.fromEntries(
|
||||
['<25', '25-34', '35-44', '45-54', '55-64', '65+'].map((c) => [c, STEEL]),
|
||||
);
|
||||
|
||||
/** Referral PPV groups: cytology and histology levels by the colour of their category, HPV by
|
||||
* genotype. */
|
||||
export const PPV_CYTOLOGY_COLORS: Record<string, string> = {
|
||||
@@ -91,11 +80,7 @@ export const PPV_LEVEL_COLORS: Record<string, string> = {
|
||||
carcinoma: BIOPSY_COLORS['carcinoma'],
|
||||
};
|
||||
|
||||
/** The whole of a CaCu card as a donut: the colours of its two parts. */
|
||||
export const VPH_DONUT: Record<string, string> = {
|
||||
negative: HPV_COLORS['negative'],
|
||||
positive: HPV_COLORS['positive_other'],
|
||||
};
|
||||
/** The whole of a PPV card as a donut: the colours of its two parts. */
|
||||
export const PPV_DONUT: Record<string, string> = { numerator: '#6A8000', rest: NEUTRAL };
|
||||
|
||||
/** Median bars of the screening route, and the marks of their quartiles. */
|
||||
|
||||
Reference in New Issue
Block a user