wiki:ConceptualModel

Version 3 (modified by 236021, 3 weeks ago) ( diff )

--

Conceptual Model

ER Diagram

er_diagram_first

Data requirements

Entities

  1. Doctor_Level – entity that stores doctor levels
  • level_id (PK, bigint)
  • level (text)
  1. Doctor_Specialization – entity that stores doctor specializations
  • specialization_id (PK, bigint)
  • specialization_name (text)
  1. Departments – entity that stores hospital departments
  • department_id (PK, bigint)
  • department_name (text)
  1. Doctors – entity that stores doctors
  • doctor_id (PK, bigint)
  • first_name (text)
  • last_name (text)
  • email_address (text)
  • level_id (FK, bigint)
  • specialization_id (FK, bigint)
  • department_id (FK, bigint)
  1. Admin – entity that stores administrator data
  • admin_id (PK, bigint)
  1. Lab_Technician – entity that stores lab technician data
  • technician_id (PK, bigint)
  1. Patients – entity that stores patients
  • patient_id (PK, bigint)
  • first_name (text)
  • last_name (text)
  • email_address (text)
  • date_of_birth (date)
  • blood_type (text)
  • gender (text)
  • phone_number (text)
  • EMBG (text)
  1. Allergies – entity that stores allergies
  • allergy_id (PK, bigint)
  • name (text)
  • allergy_severity (text)
  1. Symptoms – entity that stores symptoms
  • symptom_id (PK, bigint)
  • name (text)
  • description (text)
  1. Appointments – entity that stores appointments
  • appointment_id (PK, bigint)
  • appointment_date (date)
  • appointment_time (time)
  • status (text)
  • patient_id (FK, bigint)
  • doctor_id (FK, bigint)
  1. Diagnosis – entity that stores diagnoses
  • diagnosis_id (PK, bigint)
  • name (text)
  • description (text)
  • patient_id (FK, bigint)
  • doctor_id (FK, bigint)
  1. Diagnosis_Results – entity that stores diagnosis results
  • result_id (PK, bigint)
  • result_description (text)
  • diagnosis_id (FK, bigint)
  1. Procedures – entity that stores medical procedures
  • procedure_id (PK, bigint)
  • procedure_type (text)
  • procedure_date (date)
  • description (text)
  • cost (decimal)
  • doctor_id (FK, bigint)
  • diagnosis_id (FK, bigint)
  1. Procedure_Results – entity that stores procedure results
  • result_id (PK, bigint)
  • result_description (text)
  • result_date (date)
  • procedure_id (FK, bigint)
  1. Prescriptions – entity that stores prescriptions
  • prescription_id (PK, bigint)
  • medication_name (text)
  • dosage (text)
  • instructions (text)
  • duration (text)
  • price (decimal)
  • doctor_id (FK, bigint)
  • patient_id (FK, bigint)
  1. Prescription_Restriction – entity that stores prescription restrictions
  • restriction_id (PK, bigint)
  • allowed (boolean)
  • prescription_id (FK, bigint)
  1. Lab_Tests – entity that stores lab tests
  • test_id (PK, bigint)
  • test_name (text)
  • description (text)
  • cost (decimal)
  • patient_id (FK, bigint)
  • technician_id (FK, bigint)
  1. Lab_Results – entity that stores lab results
  • result_id (PK, bigint)
  • results (text)
  • result_date (date)
  • test_id (FK, bigint)
  1. Medical_Records – entity that stores medical records
  • record_id (PK, bigint)
  • doctor_notes (text)
  • patient_id (FK, bigint)
  • doctor_id (FK, bigint)
  1. Referrals – entity that stores referrals
  • referral_id (PK, bigint)
  • reason (text)
  • date (date)
  • doctor_id (FK, bigint)
  • patient_id (FK, bigint)
  1. Medical_Report – entity that stores medical reports
  • report_id (PK, bigint)
  • description (text)
  • date (date)
  • patient_id (FK, bigint)
  • doctor_id (FK, bigint)
  1. Billing – entity that stores billing information
  • bill_id (PK, bigint)
  • payment_status (text)
  • payment_date (date)
  • patient_id (FK, bigint)

Attachments (2)

Note: See TracWiki for help on using the wiki.