- 首页
- 公共分类
- 消息
- 个人中心
- 聊天对话
- 订单通用接口
- 找医生、极速问诊、开药问诊
- 医生客户端接口
- 药品订单
问诊-保存/修改问诊订单
POST
/patient/consult/order
找医生、极速问诊、开药问诊
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
authorization
string
可选
示例值:
{{Btoken}}
Body 参数application/json
type
number
必需
couponId
string
可选
illnessType
integer
可选
patientId
string
必需
depId
string
可选
illnessDesc
string
病情--症状描述
illnessTime
number
可选
consultFlag
number
可选
liverFunction
number
可选
renalFunction
number
可选
allergicHistory
number
可选
fertilityStatus
number
可选
docId
string
可选
medicines
array [object {2}]
可选
id
string
选择的药品id
quantity
number
选择的药品数量
pictures
array [object {2}]
可选
>= 0 items<= 9 items
id
string
图片id
url
string
图片url
示例
{
"type": 2,
"patientId": "220000200106256766",
"illnessDesc": "肚子疼",
"liverFunction": 0,
"couponId": "810000198811218423",
"medicines": [
{
"id": "460000200012068531",
"quantity": 2
}
],
"depId": "110000199605148822",
"consultFlag": 0,
"illnessType": 0,
"pictures": [
{
"url": "https://img2.baidu.com/it/u=2519487304,446123205&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1660323600&t=5a3fea25babc281922d113a5d54b27e6",
"id": "45000020040417610X"
},
{
"url": "https://img2.baidu.com/it/u=2519487304,446123205&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1660323600&t=5a3fea25babc281922d113a5d54b27e6",
"id": "640000200002183839"
}
],
"renalFunction": 0,
"allergicHistory": 0,
"docId": "BewLy",
"illnessTime": 1,
"fertilityStatus": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://consult-api.itheima.net/patient/consult/order' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 2,
"patientId": "220000200106256766",
"illnessDesc": "肚子疼",
"liverFunction": 0,
"couponId": "810000198811218423",
"medicines": [
{
"id": "460000200012068531",
"quantity": 2
}
],
"depId": "110000199605148822",
"consultFlag": 0,
"illnessType": 0,
"pictures": [
{
"url": "https://img2.baidu.com/it/u=2519487304,446123205&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1660323600&t=5a3fea25babc281922d113a5d54b27e6",
"id": "45000020040417610X"
},
{
"url": "https://img2.baidu.com/it/u=2519487304,446123205&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1660323600&t=5a3fea25babc281922d113a5d54b27e6",
"id": "640000200002183839"
}
],
"renalFunction": 0,
"allergicHistory": 0,
"docId": "BewLy",
"illnessTime": 1,
"fertilityStatus": 0
}'
返回响应
🟢200成功
application/json
Body
success
boolean
请求成功标志
code
number
可选
message
string
请求成功
data
object
返回数据
id
string
问诊订单id
示例
{
"success": true,
"code": 0,
"message": "string",
"data": {
"id": "string"
}
}
修改于 2024-03-30 02:12:44