CaMa record as the old card: summary, mammography, histopathology, prognosis, risk of death and its scenarios' risk factors
This commit is contained in:
@@ -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)!,
|
||||
|
||||
Reference in New Issue
Block a user