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
- Host: GitHub
- URL: https://github.com/devyank1/hospital-management
- Owner: devyank1
- License: mit
- Created: 2024-10-21T13:54:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-22T20:46:44.000Z (about 1 year ago)
- Last Synced: 2025-09-14T23:14:30.197Z (9 months ago)
- Topics: docker, java, maven, postgresql, spring-boot
- Language: Java
- Homepage:
- Size: 162 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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