CaMa record as the old card: summary, mammography, histopathology, prognosis, risk of death and its scenarios' risk factors

This commit is contained in:
Roberto Treviño
2026-11-29 12:39:07 -06:00
parent 2216186d26
commit edc32af67e
6 changed files with 352 additions and 47 deletions
+4 -2
View File
@@ -146,11 +146,12 @@ export interface CamaRow {
status: string;
priority: string;
ageGroup: string;
mammogram: { date: string; birads?: string };
/** `days`: from the mammogram to its diagnosis, when known by the cut-off. */
mammogram: { date: string; birads?: string; days?: number };
biopsy?: { date: string; histology?: string };
}
const CAMA_AGE_GROUPS: [number, number][] = [
export const CAMA_AGE_GROUPS: [number, number][] = [
[40, 49],
[50, 59],
[60, 69],
@@ -196,6 +197,7 @@ export function camaRows(page: Bundle, cutoff: string): CamaRow[] {
birads: mammogram
? code(results(mammogram).get('mammography.birads')?.valueCodeableConcept)
: undefined,
days: mammogram ? ext(mammogram, 'days-to-diagnosis')?.valueInteger : undefined,
},
biopsy: biopsy && {
date: reported(biopsy)!,