feat(indicadores): CaMa histopathology by BI-RADS drawn from the published matrix
The card for cama_histopatologia_birads now shows rates with their Wilson interval per BI-RADS category and a two-ring donut of the biopsy result, with group and category selection, period navigation and the published values table. A pure adapter turns the stratified C2 response into rows and figures; the view only asks for the data and draws what the adapter returns. BI-RADS 4 is a row of its own. The denominator is benign, B3, in situ and invasive; no biopsy and no data are reported apart. A published zero is a zero, a suppressed cell is suppressed, and a cell or stratum the response does not carry is unavailable, never zero: no rate or donut total is drawn over an incomplete matrix. The card keeps its place first in the summary and stays pending while the catalog does not publish the indicator. The `birads` stratum is added to the accepted dimensions of the data request. The CaCu cytology confirmation view is not touched.
This commit is contained in:
@@ -296,7 +296,9 @@ export class IndicadoresPage {
|
||||
// CaMa's summary: without the indicators it does not draw, and with the patients' counts on the exams' card.
|
||||
private cardsDeCama(catalog: Indicador[]) {
|
||||
const ids = catalog.map(item => item.id);
|
||||
return catalog.filter(item => !CAMA_FUERA_DEL_RESUMEN.includes(item.id) && !esSocioConteos(this.dominio, item.id, ids));
|
||||
const cards = catalog.filter(item => !CAMA_FUERA_DEL_RESUMEN.includes(item.id) && !esSocioConteos(this.dominio, item.id, ids));
|
||||
// The histopathology card keeps its place, first, whether pending or published.
|
||||
return [...cards.filter(item => item.id === ID_HISTOPATOLOGIA_CAMA), ...cards.filter(item => item.id !== ID_HISTOPATOLOGIA_CAMA)];
|
||||
}
|
||||
// CaMa's histopathology card keeps its place, as pending, while the catalog does not publish its indicator.
|
||||
get histopatologiaPendiente() {
|
||||
|
||||
Reference in New Issue
Block a user