Skip to content
Calm motion: animations on this site only fade, with no movement

Medication schedule ​

The doses of each medicine for the day, which you mark as taken

Helps a patient or a carer keep track of medicine. The app gives the plan. The component does not give medical advice.

Basic

1 of 4 doses taken

07:30

19:00

21:00

  • doses is a list of doses. Each dose has an id, the medicine, the amount, and the time as HH:MM. It can also have a note, such as "with food".
  • The doses group by time, in order of the day.
  • v-model is the list of ids of the doses taken. Each dose has a native check box, named with the medicine and the time. A taken dose is struck through.
  • now is the time now, as HH:MM. With it, a dose that is due and not taken says "late" and has a dashed red edge. Without it, nothing is late. Give it from the clock of the reader after the page loads.
  • A status line on top counts the taken doses, such as "1 of 4 doses taken".
  • Change the words with labels or a label pack: title, late, and the functions taken and mark.

Usage ​

ts
import { BlessMedicationSchedule } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
doses*BlessDose[]—
nowstring—the time now as HH:MM; with it, a dose that is due and not taken says late
labelsPartial<{ title: string; late: string; taken: (done: number, total: number) => string; mark: (medicine: string, time: string) => string; }>—
modelValuestring[][]the ids of the doses taken today

Events

NamePayloadDescription
update:modelValue[value: string[]]

Released under the MIT License. Character names and artwork belong to their owners.