marmar-context / web / context / test / fixture / records.ts
records.ts
Raw
// Fictional record text for the fixture. Labelled lines, so the local reader reads them.
// Dates sit on or before the preview's fixed check date (23 October 2026).

export const MARIAM_RECORDS = [
  {
    key: "rx",
    title: "Clinic prescription",
    type: "prescription" as const,
    place: "Surulere Family Clinic",
    recordDate: "2026-10-20",
    text: [
      "Patient: Mariam Adeyemi",
      "Age: 67",
      "Medication: Metformin; strength: 500 mg; form: tablet; dose: 1 tablet; frequency: 2/day; origin: prescribed",
      "Medication: Amlodipine; strength: 5 mg; form: tablet; dose: 1 tablet; frequency: 1/day; origin: prescribed",
      "Medication: Amoxicillin; strength: 500 mg; form: capsule; dose: 1 capsule; frequency: 3/day; origin: prescribed",
      "Condition: Type 2 diabetes",
      "Condition: Hypertension",
    ].join("\n"),
  },
  {
    key: "lab",
    title: "Kidney function",
    type: "lab_result" as const,
    place: "Yaba laboratory",
    recordDate: "2026-10-12",
    text: ["Patient: Mariam Adeyemi", "Lab: eGFR; value: 38; unit: mL/min/1.73m2; date: 2026-10-12"].join("\n"),
  },
  {
    key: "hospital",
    title: "Previous care record",
    type: "discharge_summary" as const,
    place: "Ikeja hospital",
    recordDate: "2026-09-02",
    text: [
      "Patient: Mariam Adeyemi",
      "Allergies: Penicillin",
      "She reported hives after Penicillin during an earlier episode of care.",
    ].join("\n"),
  },
];

/** REC-8: what Mariam and Funke share from MARMAR Health, as a record that still goes through review. */
export const MARIAM_APP_RECORD = [
  "Patient: Mariam Adeyemi",
  "Sex: female",
  "Medication: Metformin; strength: 500 mg; form: tablet; dose: 1 tablet; frequency: 2/day; origin: prescribed",
  "Medication: Amlodipine; strength: 5 mg; form: tablet; dose: 1 tablet; frequency: 1/day; origin: prescribed",
  "Medication: Amoxicillin; strength: 500 mg; form: capsule; dose: 1 capsule; frequency: 3/day; origin: prescribed",
  "Allergies: Penicillin",
].join("\n");

export const ADAEZE_RECORDS = [
  {
    key: "rx",
    title: "Repeat prescription",
    type: "prescription" as const,
    place: "Surulere Family Clinic",
    recordDate: "2026-10-02",
    text: [
      "Patient: Adaeze Nwosu",
      "Age: 58",
      "Medication: Lisinopril; strength: 10 mg; form: tablet; dose: 1 tablet; frequency: 1/day; origin: prescribed",
      "Medication: Spironolactone; strength: 25 mg; form: tablet; dose: 1 tablet; frequency: 1/day; origin: prescribed",
      "Condition: Heart failure",
    ].join("\n"),
  },
  {
    key: "lab",
    title: "Blood chemistry",
    type: "lab_result" as const,
    place: "Yaba laboratory",
    recordDate: "2026-10-23",
    text: [
      "Patient: Adaeze Nwosu",
      "Lab: Potassium; value: 6.8; unit: mmol/L; date: 2026-10-23",
      "Lab: eGFR; value: 52; unit: mL/min/1.73m2; date: 2026-10-23",
    ].join("\n"),
  },
];

export const TUNDE_RECORDS = [
  {
    key: "note",
    title: "Clinic note",
    type: "clinic_note" as const,
    place: "Surulere Family Clinic",
    recordDate: "2026-10-18",
    text: [
      "Patient: Tunde Bakare",
      "Age: 45",
      "Medication: Atorvastatin; strength: 20 mg; form: tablet; dose: 1 tablet; frequency: 1/day; origin: prescribed",
      "Allergies: No known allergies",
    ].join("\n"),
  },
];