CaCu record: grouped NCI comparison, Spanish outcome names, survival texts and risk-only scales
The NCI comparison shows the reference once per horizon and one block per model, saying the reasons that every incompatible comparison shares only once. Outcome names are translated for display only (the API identifiers stay), and the reference outcome is read from the answer. The CaCu survival card is titled as survival and states that its curves estimate the clinical scenario's group, not an individual. Survival and recurrence estimates no longer feed the risk scales, curves, probability table or PDF.
This commit is contained in:
@@ -12,6 +12,11 @@ export interface RiskScale {
|
||||
risk?: Prediction;
|
||||
}
|
||||
|
||||
/** Whether a model's estimate is a risk of the outcome the scales and curves draw. Survival (S(t)) and
|
||||
* recurrence-free survival are estimates of another outcome, shown in their own analysis: they are
|
||||
* never drawn on these scales, and no conversion (1 − S) is made. */
|
||||
export const isRiskModel = (model: string) => !/.(survival|recurrence)$/.test(model);
|
||||
|
||||
/** Each model's risk at its index visit and at five years; none where it gives no such horizon. */
|
||||
export function riskScales(models: { text: string; predictions: Prediction[] }[]): RiskScale[] {
|
||||
return models.flatMap((m) =>
|
||||
@@ -82,9 +87,7 @@ export function riskGroups(
|
||||
<strong>{{ s.label }}</strong>
|
||||
@if (s.risk; as r) {
|
||||
@if (r.low !== undefined && r.high !== undefined) {
|
||||
· IC 95 %: {{ r.low * 100 | number: '1.1-2' }}–{{
|
||||
r.high * 100 | number: '1.1-2'
|
||||
}}
|
||||
· IC 95 %: {{ r.low * 100 | number: '1.1-2' }}–{{ r.high * 100 | number: '1.1-2' }}
|
||||
%
|
||||
}
|
||||
} @else {
|
||||
|
||||
Reference in New Issue
Block a user