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

https://github.com/wesgtox/prescriptions-api

Medical prescription service.
https://github.com/wesgtox/prescriptions-api

aiohttp docker docker-compose fastapi poetry-python postgresql pytest pytest-cov python python-asynchronous redis redis-cache redis-server sqlalchemy

Last synced: 12 months ago
JSON representation

Medical prescription service.

Awesome Lists containing this project

README

          


Prescriptions API



About  |  
Technology  |  
Getting Started  |  
Usage  |  
Roadmap  |  
License


Prescriptions API CI
codecov
GitHub top language
GitHub language count
GitHub last commit
GitHub issues
License

## About the Project

Prescription API is a medical prescription service, which inserts new prescriptions and integrates with another service that has four endpoints:
- `[GET] /physicians/:id/`: returns the data of a specific physician by its `ID`.
- `[GET] /clinics/:id/`: returns the data of a specific clinic by its `ID`.
- `[GET] /patients/:id/`: returns the data of a specific patient by their `ID`.
- `[POST] /metrics/`: final data integration, where the fetched data will be saved.

## Technology

This project was developed with the following technologies:

- [Python](https://www.python.org/)
- [FastAPI](https://fastapi.tiangolo.com/)
- [PostgreSQL](https://www.postgresql.org/)
- [Redis](https://redis.io/)
- [Docker](https://www.docker.com/)
- [Docker Compose](https://docs.docker.com/compose/)

## Getting Started

### Prerequisites

- [Python](https://www.python.org/downloads/)
- [Docker](https://docs.docker.com/get-started/)
- [Docker Compose](https://docs.docker.com/compose/install/)

### Install and Run

1. Clone the repository:
```bash
git clone https://github.com/WesGtoX/prescriptions-api.git
```
2. Set the environment variables:
```bash
cp .env.sample .env
```
3. Run:
```bash
make run
```
4. Run tests:
```bash
make test
```

## Usage

- [Prescription Live API](https://prescriptions-api-wes.herokuapp.com/)
- [Prescriptions Docs](https://prescriptions-api-wes.herokuapp.com/docs)
- [Prescriptions Redoc](https://prescriptions-api-wes.herokuapp.com/redoc)
- [ScanAPI Report](https://python-challenge-scanapi.dev.iclinic.com.br/result?o=1643176921)

## Roadmap

See the [open issues](https://github.com/WesGtoX/prescriptions-api/issues) for a list of proposed features (and known issues).

## License

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.

---

Made with ♥ by [Wesley Mendes](https://wesleymendes.com.br/) :wave: