SOP-17: Book a Consultation Appointment
API SOPSubmit a consultation request for a clinic and track its status.
2 nodes · 1 edgesmedirank
apisopmedirankconsultations
Visual
ex-sop-17-book-consultation.osop.yaml
# 原始:SOP-17: 建立諮詢預約
osop_version: '1.0'
id: sop-17-book-consultation
name: 'SOP-17: Book a Consultation Appointment'
description: Submit a consultation request for a clinic and track its status.
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