The Veterinary Clinic Management System
Stage: Idea · The Veterinary Clinic Management System handles:
-Patient Management: Registration of new pets with their symptoms and owner information -Queue Management: Automatic routing of pets to appropriate doctors based on species (cat/dog) and emergency status -Treatment Tracking: Monitoring the status of pets throughout treatment (In Progress, Done, Paid) -Billing System: Generation of itemized bills including consultation fees, treatment costs, and medication -History Tracking: Maintaining records of discharged patients
The system uses several data structures:
-Hash tables for efficient patient lookup -Queues for managing doctor appointments -Priority Queues for an emergency cases -Stacks for tracking discharged patients
How to Run the Code
Compilation
gcc -o vet_clinic main.c patient.c clinic.c filehandling.c symptoms.c
Sample Input and Expected Output
Scenario 1: New Pet Registration Input:
1 # Select Pet Owner from main menu 1 # Select Register New Pet Fluffy # Pet name cat # Species John # Owner name fever # Symptoms 3 # Age 9876543210 # Phone number
Expected Output:
===== Main Menu =====
Pet Owner
Clinic Staff
Exit ===================== Enter your choice: 1
======= Pet Owner Menu =======
Register New Pet
Login (Existing Customers)
Return to Main Menu ============================== Enter your choice: 1
--- Register New Pet --- Enter pet's name: Fluffy Enter species (dog or cat): cat Enter owner's name: John Enter symptoms (e.g. injury / fever / vomitting / poisoning / seizure): fever Enter pet's age: 3 Enter phone number: 9876543210
Registration successful! Your customer ID is: 32105 Please remember this ID for future logins.
Pet with ID 32105 added to Cat Doctor queue.