Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /**
* A bonus program of another data space, as /api/patient/programmes returns
* it (#934, step 3). Here and not in the route: the page imports it, and the
* static build removes src/app/api.
*/
export interface BonusProgramme {
programmeId: string;
title: string;
description: string | null;
publisherName: string;
publisherDid: string;
dataSpace: string | null;
endpointUrl: string | null;
ruleTitle: string | null;
ruleDescription: string | null;
ruleVersion: string | null;
lastSeenAt: string | null;
}
/** One consent of the person to one program (#934, step 4). */
export interface ProgrammeConsent {
consentId: string;
programmeId: string;
joinedAt: string;
withdrawnAt: string | null;
/**
* What the program's answer is tied to (step 8, ADR-091): the member gives
* it to the insurer. Absent in the static build, which keeps no record.
*/
memberReference?: string;
/** When the insurer last collected an answer under this consent, if it has. */
collectedAt?: string | null;
}
/**
* The member's own result for one program year (#934, step 6; ADR-087), as
* /api/patient/programmes/evaluation returns it. The breakdown is for the
* member's eyes; a transfer carries the year and goalMet only.
*/
export type YearEvaluation =
| {
year: number;
status: "year-not-over";
/** The first day the year can be evaluated. */
evaluableFrom: string;
}
| {
year: number;
status: "evaluated";
goalMet: boolean;
activity: {
minutesPerWeek: number;
required: number;
weeksWithData: number;
met: boolean;
};
checkUp: { count: number; required: number; met: boolean };
};
|