This project, named Health Clinic Management Web, is a C++ web application for managing health clinic operations. It includes features for registering patients and doctors, scheduling appointments, recording medical history, handling insurance claims, managing inventory, and placing orders.
- CMake version 3.26 or higher
- C++ Compiler supporting C++20
- Crow C++ microframework
- Homebrew package manager
- SQLite library
- Boost library (version 1.83.0)
- ASIO library (version 1.28.1)
- Ensure that the required dependencies are installed on your system.
- Adjust the
CMakeLists.txt
file if necessary. - (Recommonded) Use CLion to compile.
- (Recommonded) Use Postman to compile.
- Ensure the database is prepared before testing every specific function.
The web application will be accessible at http://127.0.0.1:18080
.
To implement the web application the address should be like: http://127.0.0.1:18080/register_patient
- Register Patient: Send a POST request to
/register_patient
with patient details. - View Patients: Send a GET request to
/patients
to view the list of registered patients. - Register Doctor: Send a POST request to
/register_doctor
with doctor details. - View Doctors: Send a GET request to
/doctors
to view the list of registered doctors. - Make Appointment: Send a POST request to
/make_appointment
with appointment details. - View Appointments: Send a GET request to
/appointments
to view the list of appointments. - Record Medical History: Send a POST request to
/record_medical_history
with medical history details. - View Medical History: Send a GET request to
/medical_history
with the patient_id parameter. - Update Insurance Claim: Send a POST request to
/update_insurance_claim
with insurance claim details. - View Insurance Claims: Send a GET request to
/insurance_claims
to view the list of insurance claims. - Make Order: Send a POST request to
/make_order
with order details. - Update Order Status: Send a POST request to
/update_order_status
with order status details. - Add to Inventory: Send a POST request to
/add_to_inventory
with inventory details. - Use from Inventory: Send a POST request to
/use_from_inventory
with inventory usage details.
- The application runs on
127.0.0.1
and port18080
by default. - Ensure proper input validation when interacting with the API.
- The SQLite database file (
clinic.db
) is used for data storage.
Feel free to explore and extend the functionality of the Health Clinic Management Web as needed for your specific use case. Also feel free to leave you comments or contact us.