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
dosesis a list of doses. Each dose has anid, themedicine, theamount, and thetimeasHH:MM. It can also have anote, such as "with food".- The doses group by time, in order of the day.
v-modelis 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.nowis the time now, asHH: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
labelsor a label pack:title,late, and the functionstakenandmark.
Usage
ts
import { BlessMedicationSchedule } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
doses* | BlessDose[] | — | |
now | string | — | the time now as HH:MM; with it, a dose that is due and not taken says late |
labels | Partial<{ title: string; late: string; taken: (done: number, total: number) => string; mark: (medicine: string, time: string) => string; }> | — | |
modelValue | string[] | [] | the ids of the doses taken today |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string[]] |