Sublink Domain Model
Sublink is a patient-facing mobile application that enables medication reminders, health tracking, and clinical trial participation. It connects patients with healthcare providers and supports medication adherence monitoring.
The following list represents the core entities within the Sublink ecosystem.

Entity Overview
| 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. |
Entity Relationships
User Hierarchy
User
├── Employee (Administrative duties)
├── Nurse (Care provider)
├── Patient (Care recipient)
│ └── Volunteer (Clinical trial participant)
└── Portal Admin (System management)
Clinical Trial Relationships
Clinical Trial Program
├── Studies
│ ├── Study Events
│ └── CRF Forms
├── Volunteers (Patients)
├── Nursing Tasks
└── Medications
Patient Care Relationships
Patient
├── Profile
├── Health History
├── Encounters
│ ├── Vitals
│ ├── Prescriptions
│ └── Medications
├── Appointments
└── Medication Consumption Logs
Core Entities
User
The base entity for all system users. Contains authentication and profile information.
Fields:
id- Unique identifieremail- User email addressrole- User role (Patient, Nurse, Admin, etc.)profile_id- Link to Profile entity
Patient
Extends User with healthcare-specific attributes.
Fields:
user_id- Link to User entitydate_of_birth- Patient DOBgender- Patient genderhealth_history- Medical history records
Encounter
Records a patient visit or interaction.
Fields:
patient_id- Link to Patientphysician_id- Primary care providerencounter_date- Date of encountervitals- Recorded vital signsnotes- Clinical notes
Medication
Represents a prescribed medication.
Fields:
name- Medication namedosage- Dosage amountfrequency- How often to takeis_clinical_trial- Whether part of a trial
CRF Form
Case Report Form for clinical trials.
Fields:
study_id- Link to Studysubject_id- Link to Subject/Patientstudy_event_id- Link to Study Event- Custom fields defined per form
Next Steps
- API Reference - Detailed API documentation
- User Guide - How to use the platform