Administrators have cross-cutting visibility into every part of Oasis Liquido. You are responsible for provisioning clinics and pharmacies, onboarding and managing user accounts across all roles, and monitoring platform health through real-time statistics and an immutable audit trail.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/FlasheyEstudi/Oasis-Liquido/llms.txt
Use this file to discover all available pages before exploring further.
What administrators can do
- View platform-wide
AdminStatscovering all entities and revenue - Create, update, and deactivate clinics and pharmacies
- Manage user accounts — create users, assign roles, and toggle
is_active - Assign doctors to clinics and pharmacists to pharmacies
- Review the audit log to investigate any action taken by any user
Clinics API
Create and configure clinic locations, assign doctors, and control active status.
Pharmacies API
Provision pharmacy locations, assign managers, and set delivery fee parameters.
Users API
Onboard users, assign roles, and deactivate accounts when needed.
Admin API
Review the full immutable history of every critical action on the platform.
Platform statistics
TheAdminStats object is returned by GET /api/v1/admin/stats and provides a real-time snapshot of the entire platform.
| Field | Description |
|---|---|
total_clinics | Total clinic locations registered |
total_pharmacies | Total pharmacy locations registered |
total_doctors | Registered doctor accounts |
total_patients | Registered patient accounts |
total_appointments | Appointments created across all time |
total_prescriptions | Prescriptions issued across all time |
total_sales | Completed pharmacy sales |
total_delivery_orders | Delivery orders created |
monthly_revenue | Aggregate sales revenue for the current calendar month |
appointments_by_status), prescriptions (prescriptions_by_status), and deliveries (deliveries_by_status), as well as recent_sales for a short-term activity indicator.
Managing clinics and pharmacies
Administrators are the only role that can create or deactivate clinic and pharmacy records. Deactivation (is_active: false) prevents new appointments and sales from being booked at that location without deleting historical data.
DoctorProfile.clinic_id. Pharmacies follow the same pattern via PharmacyManagerProfile.pharmacy_id.
Audit log
Every significant action on the platform — creating prescriptions, fulfilling orders, modifying inventory, changing user roles — is recorded as anAuditLog entry. Entries are append-only and cannot be modified or deleted.
| Field | Description |
|---|---|
user_id | The user who performed the action |
user_name | Display name at the time of the action |
action | Verb describing the action (e.g., "CREATE", "UPDATE", "DELETE") |
entity_type | The resource type affected (e.g., "Prescription", "User") |
entity_id | ID of the specific record affected |
details | Free-text JSON snapshot of the change |
ip_address | Client IP address for the request |
created_at | Timestamp of the action |
The audit log is paginated. For compliance investigations, filter by
entity_type and entity_id to trace the full lifecycle of a specific record.