8007-患者端API
  1. appointments
8007-患者端API
  • departments
    • 获取所有科室
      GET
    • 根据科室ID获取医生
      GET
  • medical_records
    • 获取所有病历
      GET
    • 创建医疗记录
      POST
    • 根据病历ID获取病历详情
      GET
  • patients
    • 添加或更新就诊人
      POST
    • 更新默认就诊人
      POST
    • 编辑就诊人信息
      PUT
    • 删除就诊人
      DELETE
    • 获取就诊人列表
      GET
  • sessions
    • 获取所有会话
      GET
    • 获取问诊信息
      POST
    • 获取会话消息
      GET
    • 获取会话详情
      POST
  • users
    • 注册用户
      POST
  • appointments
    • 创建挂号
      POST
  • doctors
    • 注册医生
      POST
  • notifications
    • Send a notification message
      POST
  • Schemas
    • Schemas
      • controllers.GetMedicalRecordsResponse
      • controllers.GetSessionsResponse
      • controllers.GetMessagesResponse
      • controllers.GetMemoReq
      • models.AiDoctor
      • controllers.UpdateDefaultPatientRequest
      • controllers.GetMemoResp
      • models.Department
      • models.Function
      • models.AIDoctor
      • models.MedicalRecord
      • models.CardType
      • models.Appointment
      • models.Patient
      • models.CreateMedicalRecordRequest
      • models.Relation
      • models.FormattedMedicalRecord
      • models.Session
      • models.Gender
      • models.Notification
      • models.Doctor
      • models.User
      • models.History
      • models.InspectionExamination
      • models.MedicalHistory
      • models.Message
      • models.PatientBasicInfo
      • models.PregnancyStatus
      • models.SignatureInfo
  1. appointments

创建挂号

POST
/api/appointments
创建新的挂号记录

Request

Body Params application/json

Example
{
    "availabilityID": 0,
    "createdAt": "string",
    "doctor_id": 0,
    "id": 0,
    "patient_id": 0,
    "session_id": 0,
    "status": 0,
    "updatedAt": "string",
    "user_id": 0
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/appointments' \
--header 'Content-Type: application/json' \
--data-raw '{
    "availabilityID": 0,
    "createdAt": "string",
    "doctor_id": 0,
    "id": 0,
    "patient_id": 0,
    "session_id": 0,
    "status": 0,
    "updatedAt": "string",
    "user_id": 0
}'

Responses

🟢201Created
application/json
创建成功
Body

Example
{
    "availabilityID": 0,
    "createdAt": "string",
    "doctor_id": 0,
    "id": 0,
    "patient_id": 0,
    "session_id": 0,
    "status": 0,
    "updatedAt": "string",
    "user_id": 0
}
🟠400Bad Request
🔴500Server Error
Modified at 2025-08-27 03:59:00
Previous
注册用户
Next
注册医生
Built with