Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pintu544/patient-appointment-system

Implement API endpoints for an out-patient appointment system. Doctors practice on a weekly schedule. API implementation is expected for doctors listing, doctor detail page, availability and appointment booking.
https://github.com/pintu544/patient-appointment-system

Last synced: 24 days ago
JSON representation

Implement API endpoints for an out-patient appointment system. Doctors practice on a weekly schedule. API implementation is expected for doctors listing, doctor detail page, availability and appointment booking.

Awesome Lists containing this project

README

        

```markdown
# Outpatient Appointment System API

This API provides a system for managing outpatient appointments. Key features include:

* **Doctor Information:** Retrieve doctor listings and detailed profiles.
* **Availability Checking:** Find available appointment slots for doctors, with optional filtering by date and duration.
* **Appointment Booking:** Schedule appointments for patients.

## Setup
1. **Clone the repository:**
```bash
git clone (https://github.com/pintu544/patient-appointment-system)
```
2. **Install dependencies:**
```bash
npm install
```
3. **Run :**
```bash
npm start
```
4. **Start the development server:**
```bash
python manage.py runserver
```

## API Endpoints

* **GET /doctors/**
* Retrieves a list of doctors (name, specialty, location).

* **GET /doctors//**
* Retrieves details about a specific doctor (name, specialty, location, bio).

* **GET /doctors//availability**
* Retrieves available appointment slots for a doctor.
* Optional query parameters:
* `date` (YYYY-MM-DD): Filter by date.
* `duration` (minutes): Filter slots by appointment duration.

* **POST /api/appointments/**
* Books an appointment.
* **Payload:**
```json
{
"doctor": ,
"patient_name": "Patient Name",
"patient_contact": "[email address removed]",
"start_time": "YYYY-MM-DDTHH:MM:SSZ"
}
```

## Authentication (optional)

* Describe the authentication method (if any) used in your API, for instance, Basic Auth or token-based authentication.

## Error Handling

* Provide a brief overview of how errors are represented in API responses (e.g., HTTP status codes, specific error message structures).