Domain Models and Entities
The following list represents the core entities within the Healthbuddy ecosystem:

| Entity | Description |
|---|---|
| User | Can be an Employee, Nurse, Patient, or Portal Admin. Is an Employee when performing administrative or healthcare duties. Is a Nurse when providing care to patients. Is a Patient when receiving care. Is a Portal Admin when managing the backend. |
| Contact | Each User creates an entry as a Contact. |
| Patient | Is a User with additional attributes. Can create an Encounter through an Appointment or Walk-in. Has a Profile and Health History. Has Vitals recorded during an Encounter. May have Prescriptions or Medications linked to an Encounter. |
| Encounter | Is for a Patient and mapped to a Primary Physician. Contains Vitals. May contain Prescriptions or Medications. |
| Volunteer | Is a Patient who participates in a Clinical Trial. Is covered by a Nursing Task specific to the Clinical Trial Program. |
| Nursing Task | Links Nurse to Patient. May be associated with a Clinical Trial Program. |
| Medication | Is prescribed in an Encounter. Is demarked for Clinical Trials or Non-Clinical Trials. |
| Reminder and Notification | Patients receive Reminders before Medication doses. Patients can opt-out of Reminders. When Reminders are sent, an entry is recorded in Notifications. |
| Medication Consumption Log | Records Drug consumption by Patients. |