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

https://github.com/devyank1/hospital-management

A API made for hospital Patient, Medic and See Schedule
https://github.com/devyank1/hospital-management

docker java maven postgresql spring-boot

Last synced: 3 months ago
JSON representation

A API made for hospital Patient, Medic and See Schedule

Awesome Lists containing this project

README

          


Hospital API

## 📚 Project
API made for a hospital, with Services and HTTP methods.

## 🔍 Operation Flows

1. **Find (GET Method):** Return a List or specific class called.
2. **Create (POST Method):** Create a info on database.
3. **Modify (PUT Method):** Modify a info setted in the persistence.
4. **Delete (DELETE Method):** Picks a info and delete.

## 👨‍💻 Endpoints

Medic

Patient

Schedule

Medic Availability

```mermaid
classDiagram
class Patient {
Long id
String name
String email
String number
Date birth_date
String cpf
}

class Medic {
Long id
String name
String specialty
String crm
String number
String email
}

class MedicAvailability {
Long id
LocalDate data
List~String~ avaliableHours
Long id_medic
}

class Scheduling {
Long id
LocalDateTime dateHour
String status
Long id_patient
Long id_medic
}

Pacient "1" --> "0..*" Scheduling : "possui"
Medic "1" --> "0..*" Scheduling : "realiza"
Medic "1" --> "0..*" MedicAvailability : "tem"
```

## 💻 Technology

- Language: Java
- Framework: Spring Framework
- Database: PostgreSQL
- Maven
- Junit5
- Mockito