SOP-17:預約諮詢

API SOP

向診所提交諮詢請求,並追蹤預約狀態。

2 個節點 · 1 條連接medirank
apisopmedirankconsultations
ex-sop-17-book-consultation.osop.yaml
# 原始:SOP-17: 建立諮詢預約
osop_version: '1.0'
id: sop-17-book-consultation
name: "SOP-17:預約諮詢"
description: "向診所提交諮詢請求,並追蹤預約狀態。"
version: 1.0.0
tags:
- api
- sop
- medirank
- consultations
nodes:
- id: step_1
  type: api
  subtype: rest
  name: POST /clinics/{clinic_id}/consultations
  description: Submit a consultation appointment request.
  runtime:
    method: POST
    url: https://medi-rank.com/api/v1
    endpoint: /clinics/{clinic_id}/consultations
    headers:
      Authorization: Bearer ${secrets.TOKEN}
    body:
      name: John Wang
      phone: 0912345678
      email: wang@example.com
      preferred_date: '2026-04-10'
      preferred_time: 2:00 PM
      message: Interested in hyaluronic acid treatment
      doctor_id: 3
      treatment_id: 2
- id: step_2
  type: api
  subtype: rest
  name: PUT /consultations/{consultation_id}/status
  description: Clinic staff updates the consultation status after contacting the patient.
  runtime:
    method: PUT
    url: https://medi-rank.com/api/v1
    endpoint: /consultations/{consultation_id}/status
    headers:
      Authorization: Bearer ${secrets.TOKEN}
    body:
      status: contacted
      notes: Called to confirm appointment
edges:
- from: step_1
  to: step_2
  mode: sequential