Repository navigation
Conversation
MaxTrann
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mô tả
Thêm
AvailableSlotsReader(D3) vàoSchedulingModuleđểbookingvàsearchK1 lấy khung giờ còn trống của bác sĩ theo ngày.list({ bacSiId, ngay })vàlistMany({ bacSiIds, ngay })trảtrangThaiNgay(CoLich,KhongCoLich,ChiNhanhNghikèmthuNghi,NghiPhep) và danh sách{ khungGioId, batDau, ketThuc, ca, trangThai }.slot-status.rules.ts(hàm thuần) suy trạng thái ô khi đọc: quá giờ làHetHan(xét trước),DangGiuChohết hạn hoặc thiếugiu_cho_denlàConTrong.ChoDuyet/DaDuyetphủ (dùngLeaveReadercủa B5) và ô ngoài giờ nhận khám hiện hành (dùngcheckSlotWithinBranchHourscủa P2).emcủa người gọi (mặc địnhdataSource.manager).listManydùng 3 truy vấn cho cả trang bác sĩ (trần 4 theo H14).ngay_giođọc bằngDATE_FORMATrồi ghép+07:00, không phụ thuộc cách driver đổi DATETIME raDate(M4).[đề xuất]Test case
AV-01…AV-16, HD-02, HD-04, HD-12 (xem
docs/features/doctor/PLAN.mdmục 7).Kiểm thử
lint,tsc --noEmit: sạch.vitest run src/scheduling src/doctor: 85/85 pass (gồm HD-08 và kiểm tra chiều phụ thuộc).available-slots.reader.int-spec.ts): [chưa chạy, điền kết quả sau khi chạynpm run test:int]. M4 [chưa đo].Ghi chú cho người review
searchK1 sẽ bọc reader này.[ĐỒNG BỘ TL].Closes #280