feat: refactor doctor listing and detail pages with dynamic routing, improved booking links, and optimized scheduling display.

This commit is contained in:
2026-08-03 21:32:26 +07:00
parent 417f6ecb24
commit 89c18f20fd
77 changed files with 2860 additions and 236 deletions
+33
View File
@@ -200,3 +200,36 @@ Mobile Styles (@media (max-width: 768px)): Lines 701 - 850.
Tablet & Flyout Nav (@media (max-width: 1024px)): Lines 851 - 1257.
Desktop Styles (@media (min-width: 1024px)): Lines 1258 - 1420.
Large Desktop (@media (min-width: 1366px)): Lines 1421 - 1481.
📄 Discovery Report: SIS-SOFT-HOSPITAL-WORK-SCHEDULE-API-INTEGRATION.docx
This document specifies the HIS Work Schedule API (v3.0) released by SIS SOFT for integrating doctor work schedules and appointment deep-links.
🔑 1. Authentication (/connect/token)
Base URL: https://dhs.sisvietnam.vn
Endpoint: POST /connect/token
Content-Type: application/x-www-form-urlencoded
Parameters:
grant_type: client_credentials
client_id: DigitalHealthSolutions_HospitalIntegration
client_secret: XPWFParRQldtZopqdDFLPYblIzauxuWT
scope: HospitalIntegration
⚠️ Note: Do NOT send **tenant in /connect/token. The **tenant header is only sent with API calls.
👨‍⚕️ 2. API 1: List Doctors with Work Schedules
Endpoint: GET /api/app/his/doctors/work-schedules
Headers:
Authorization: Bearer <accessToken>
**tenant: 3a0f747c-57b6-753b-ba21-3987e8e93b9a
Query Params:
fromDate (Optional): yyyy-MM-dd (default: today)
toDate (Optional): yyyy-MM-dd (default: max 14 days from today)
Response Data: Returns doctors[] with doctorId, doctorCode, fullName, title, and departments[].
📅 3. API 2: Get Doctor Work Schedule Days
Endpoint: GET /api/app/his/doctors/{doctorCode}/work-schedule-days
Headers: Same as API 1 (Authorization, **tenant).
Path Param: {doctorCode} (e.g. BS001).
Query Params: fromDate, toDate.
Response Data: Returns days[] containing date (yyyy-MM-dd) and dayOfWeek (1 = Sunday, 2 = Monday, ..., 7 = Saturday).
🔗 4. Booking Deep-Link
Format: https://<booking-host>/book-appointment?doctorCode=BS001 (or legacy mabs=BS001)
Flow: Directs external web visitors straight to the doctor's appointment step for selecting schedule dates and time slots.