Nova Pharmacy is a comprehensive database management system designed to handle pharmacy operations, including inventory management, prescription tracking, contracts with pharmaceutical companies, and patient-doctor relationships.
The system is built around these key entities:
- Pharmacy: Stores pharmacy information (name, address, phone)
- Pharmaceutical Companies: Manages drug manufacturers
- Drugs: Records drug details with formulas
- Doctors: Tracks healthcare providers and their specialties
- Patients: Manages patient information and their primary physicians
- Prescriptions: Links patients to doctors and prescribed medications
- Contracts: Handles agreements between pharmacies and pharmaceutical companies
- Supervisors: Manages contract supervision
The database schema is documented in the Entity Relationship Diagram and Relational Mapping files.
All CRUD operations are available through the managedb package:
- Add, update, and delete entities for all tables
- Manage relationships between entities
report_patient_prescriptions.sql: Generate prescription reports for patients within a date rangeprint_prescription_details.sql: Display prescription details for a patient on a specific dateprint_pharmacy_stock.sql: List all drugs available at a pharmacy with pricingprint_patients_for_doctor.sql: Show all patients assigned to a specific doctorprint_contract_details.sql: Display contract details between pharmacies and pharmaceutical companiesget_pharma_drug_details.sql: List drugs manufactured by a pharmaceutical company
- Run the schema creation scripts in the
schemasdirectory to set up the database tables - Install the package specification and body from
packages - Install the reporting procedures from
procedures
- Aryan Dalmia
- Pratyush Nair
- Riddhi Chatterjee
- Saket Goyal