doc_batch_opd_note
Batch retrieve outpatient SOAP notes by date range. Set target departments and limits to collect data while avoiding timeouts.
Instructions
批次取得門診 SOAP (耗時操作)。
Args: date_start: 開始日期 (YYYY-MM-DD) date_end: 結束日期 (YYYY-MM-DD),預設同 date_start limit: 最大處理數量 (預設 50) target_depts: 科別代碼清單,預設眼科 ['010', '110', '0PH', '1PH']
Returns: 含 S, O, P, soap, drugs 欄位
防護機制: - 基本延遲 1 秒 + 隨機 0~0.5 秒 - 每 50 筆額外休息 10 秒 - 錯誤時加倍延遲,連續 3 錯暫停 30 秒
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| eip_id | Yes | ||
| date_end | No | ||
| date_start | Yes | ||
| eip_password | Yes | ||
| target_depts | No |