abdibrahem commited on
Commit
cb9072a
·
1 Parent(s): d819139

Update model

Browse files
Files changed (2) hide show
  1. endpoints_documentation.py +32 -2
  2. main.py +1 -1
endpoints_documentation.py CHANGED
@@ -274,10 +274,17 @@ endpoints_documentation = {
274
  "required": True,
275
  "description": "Doctor name for the reservation"
276
  },
 
 
 
 
 
 
 
277
  "new_date_time": {
278
  "type": "str",
279
  "required": True,
280
- "description": "New date/time"
281
  }
282
  },
283
  "response": {
@@ -295,6 +302,11 @@ endpoints_documentation = {
295
  "type": "str",
296
  "required": True,
297
  "description": "Doctor name for the reservation to cancel"
 
 
 
 
 
298
  }
299
  },
300
  "response": {
@@ -307,13 +319,31 @@ endpoints_documentation = {
307
  "path": "/doctors",
308
  "method": "GET",
309
  "description": "Get list of available doctors and their specialties",
310
- "parameters": None,
 
 
 
 
 
 
311
  "response": {
312
  "description": "List of doctors",
313
  "model": "List[Doctor]"
314
  },
315
  "use_case": "When user asks: Show doctors, List available doctors, اظهر الاطباء"
316
  },
 
 
 
 
 
 
 
 
 
 
 
 
317
  "get_doctor_availability": {
318
  "path": "/doctors/{doctor_id}/availability",
319
  "method": "GET",
 
274
  "required": True,
275
  "description": "Doctor name for the reservation"
276
  },
277
+ "patient_id": {
278
+ "type": "str",
279
+ "required": True,
280
+ "description": "ID of the patient who wants to reschedule"
281
+ }
282
+ },
283
+ "body": {
284
  "new_date_time": {
285
  "type": "str",
286
  "required": True,
287
+ "description": "New date/time to reschedule to (format: YYYY-MM-DDTHH:MM:SS)"
288
  }
289
  },
290
  "response": {
 
302
  "type": "str",
303
  "required": True,
304
  "description": "Doctor name for the reservation to cancel"
305
+ },
306
+ "patient_id": {
307
+ "type": "str",
308
+ "required": True,
309
+ "description": "ID of the patient who wants to cancel"
310
  }
311
  },
312
  "response": {
 
319
  "path": "/doctors",
320
  "method": "GET",
321
  "description": "Get list of available doctors and their specialties",
322
+ "parameters": {
323
+ "department": {
324
+ "type": "str",
325
+ "required": False,
326
+ "description": "Filter by department (e.g., cardiology, dermatology)"
327
+ }
328
+ },
329
  "response": {
330
  "description": "List of doctors",
331
  "model": "List[Doctor]"
332
  },
333
  "use_case": "When user asks: Show doctors, List available doctors, اظهر الاطباء"
334
  },
335
+ "get_doctor_details": {
336
+ "path": "/doctor-details",
337
+ "method": "GET",
338
+ "description": "Get detailed information about a specific doctor and their availability and start and end working times",
339
+ "parameters": {
340
+ "doctor_name": {
341
+ "type": "str",
342
+ "required": True,
343
+ "description": "Name of the doctor to get details for"
344
+ }
345
+ },
346
+ },
347
  "get_doctor_availability": {
348
  "path": "/doctors/{doctor_id}/availability",
349
  "method": "GET",
main.py CHANGED
@@ -69,7 +69,7 @@ class HealthcareChatbot:
69
  self.model_name = "gemma3"
70
  self.BASE_URL = 'https://ae84-197-54-54-66.ngrok-free.app'
71
  self.headers = {'Content-type': 'application/json'}
72
- self.user_id = 'c5e7e4f0-63c0-4fe6-801e-4a0880e155bc'
73
  self.max_retries = 3
74
  self.retry_delay = 2
75
 
 
69
  self.model_name = "gemma3"
70
  self.BASE_URL = 'https://ae84-197-54-54-66.ngrok-free.app'
71
  self.headers = {'Content-type': 'application/json'}
72
+ self.user_id = '4160336b-fde3-43ef-98c2-f4724db41758'
73
  self.max_retries = 3
74
  self.retry_delay = 2
75