tasddc1226 / doctor-for-you Goto Github PK
View Code? Open in Web Editor NEW환자가 원하는 의사를 쉽게 찾고, 진료 예약까지 한번에 할 수 있도록 도와주는 백엔드 서비스
환자가 원하는 의사를 쉽게 찾고, 진료 예약까지 한번에 할 수 있도록 도와주는 백엔드 서비스
# 예약 요청을 날린 시각을 설정한다.
now = datetime(2022, 1, 11, 12, 50) # 평일 점심시간대로 설정
{
"patient_id" : 3,
"doctor_id" : 2,
"year": 2022,
"month": 1,
"day": 11,
"hour": 14,
"min": 45
}
{
"id": 11,
"book_time": "2022-01-11T14:45:00",
"created_at": "2022-07-21T00:48:42.640920", // don't care
"expire_time": "2022-01-11T13:15:00",
"is_booked": false,
"patient": 3,
"doctor": 2
}
expire_time
이 생성되어진다.# 예약 요청을 날린 시각을 설정한다.
now = datetime(2022, 1, 15, 1, 0) # 주말 새벽 시간대로 설정
{
"patient_id" : 3,
"doctor_id" : 1,
"year": 2022,
"month": 1,
"day": 17,
"hour": 10,
"min": 45
}
- 즉, 환자가 15일(토요일)에 17일(월요일)날 오전 10시 45분에 진료를 요청한 경우이다.
{
"id": 12,
"book_time": "2022-01-17T10:45:00",
"created_at": "2022-07-21T00:52:59.889905", // don't care
"expire_time": "2022-01-16T09:15:00",
"is_booked": false,
"patient": 3,
"doctor": 1
}
expire_time
로는 15일(토요일) 다음날인 16일(일요일)의 영업 시작일 + 15분으로 나오는 현상이 발생. info = {
"patient": data["patient_id"],
"doctor": data["doctor_id"],
"book_time": book_time,
"expire_time": datetime(
now.year, now.month, now.day + 1
)
+ timedelta(hours=hour_range_list[0], minutes=15),
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.