Skip to content

aidin1324/MedTech-Backpart

Repository files navigation

Patient Relationship Management

Description

Patient Relationship Management is an efficient system for managing patient relationships. This repository provides a basic API for creating and authenticating doctors and users.

Main Models:

  • User: user model, contains the is_super_user attribute.
  • Doctor: doctor model.
  • DTimeSlot: a time slot for a doctor, one record per slot.
  • Appointment: appointment record.

Key Technologies:

  • FastAPI: for building the API.
  • SQLAlchemy: for database interaction.
  • Alembic: for database migrations.
  • Poetry: for dependency management and packaging.

Project Structure:

  • alembic/: directory for managing database migrations.
  • crud/: functions for Create, Read, Update, Delete operations.
  • database/: database connection settings and sessions.
  • models/: database model definitions.
  • oauth2/: OAuth2 implementation for authentication.
  • routers/: API endpoint routes.
  • schemas/: Pydantic schemas for data validation.
  • utils/: utility functions.
  • main.py: the main file to run the application.
  • alembic.ini: Alembic configuration file.
  • pyproject.toml: Poetry configuration file for managing dependencies.
  • poetry.lock: Poetry lock file for dependency versions.
  • .gitignore: file specifying which files and directories to ignore in Git.

Installation and Running:

To run the project on your local machine, follow these steps:

  1. Clone the repository:
    git clone https://github.com/aidin1324/MedTech-Backpart.git
    cd https://github.com/aidin1324/MedTech-Backpart.git
    poetry install
    poetry run uvicorn main:app --reload
    

fastapi provides automatic documentation

Swagger UI

Below is an example of our API documentation generated by Swagger UI, where you can interact with the API directly.

USER Model

image

Doctor Model

image

Auth Service

image

Doctor time slots Model

image

Appointments Model

image

Authors

Khan Aidin - [email protected]

About

Backend of MedTechAI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published