Skip to main content

3.1 Introduction to the PSQL Backend

PSQL (Supabase) is used as the backend database for Clinic Edge. It consists of multiple tables for storage and management of data, including case data, patient data, and more. These tables and their associated data interact with each other and represent key components of the Clinic Edge workflow.

A brief overview of the tables is provided below, while more detailed descriptions are given in the respective subsections. For an explanation of how tables interact and data is processed, see Section 4. System Logic.

TableDescription
CardinalSymptomsLists all selectable cardinal symptoms on the landing page
CaseTemplatesStores all static and dynamic case templates (case_id)
FindingsTemplateTemplates to generate diagnostic reports for each examination
PatBaseStores all dynamically generated patient cases (pat_id)
PatChatChat logs between user and patient
PatDiagnosisContains diagnoses assigned to each patient
PatFindingsStores the findings requested for each patient case
PatReportsStores rendered reports generated for each patient
PatRx
all_cardinal_symptoms
bfarm_ref_medBfArM reference data for ...
bfarm_ref_pharmBfArM reference data for ...
bfarm_ref_substanceBfArM reference data for ...
icd10ICD-10 diagnosis code reference table