Methods
(inner) get /treatmentplan_template_list(diseaseIdopt, doctorId, findopt, sortNameopt, orderopt, pageSizeopt, pageopt, languageopt, timestamp, sign)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
diseaseId |
String(24)
|
<optional>
|
|
病症ID |
doctorId |
String(24)
|
|
|
医生ID |
find |
String(500)
|
<optional>
|
|
查询条件,json文本,示例:{"title":{"$regex":"风寒"}} |
sortName |
String(20)
|
<optional>
|
createdAt
|
排序列名,默认createdAt |
order |
Number
|
<optional>
|
-1
|
排序参数,默认-1,1 为升序排列,-1 为降序排列 |
pageSize |
Number
|
<optional>
|
20
|
分页行数,最大100 2023/8/30 |
page |
Number
|
<optional>
|
1
|
页码 |
language |
String(50)
|
<optional>
|
|
语种,不传或无值将维持默认语种(简体中文)不会转换简繁体文字内容,目前支持:simplifiedChinese:简体中文,traditionalChinese:繁体中文 2022/2/28 |
timestamp |
String(10)
|
|
|
时间戳,值为秒值,长度10位,时间戳有效期:±10分钟 |
sign |
String(64)
|
|
|
签名 |
Properties:
Name |
Type |
Description |
total |
Number
|
总行数 |
diseaseSummary |
Array.<Object>
|
按病症汇总
Properties
Name |
Type |
Description |
_id |
String(24)
|
病症ID |
title |
String(50)
|
病症名称 |
count |
Number
|
汇总 |
|
data |
Array.<Object>
|
当前页数据
Properties
Name |
Type |
Attributes |
Default |
Description |
_id |
String(24)
|
|
|
中药配方模板ID |
diseaseId |
Object
|
|
|
病症信息
Properties
Name |
Type |
Description |
_id |
String(24)
|
病症ID |
title |
String(50)
|
病症名称 |
|
title |
String(50)
|
|
|
证型名称 |
prescriptionName |
String(50)
|
|
|
配方名称 |
isdeleted |
Boolean
|
<optional>
|
false
|
删除标志,true为删除,默认false 2021/11/4 |
isPublic |
Boolean
|
<optional>
|
false
|
是否公开发布,true为公开发布,默认false 2021/11/3 |
isDefault |
Boolean
|
<optional>
|
false
|
是否为默认使用的模板,trur为默认使用,默认false 2021/11/3 |
count |
Number
|
<optional>
|
o
|
被使用计数 |
useAmount |
Number
|
<optional>
|
0
|
使用费,一般由模板医生设置,其他医生需要付费使用 |
createdAt |
Date
|
|
|
创建时间 |
updatedAt |
Date
|
|
|
更新时间 |
|
Throws:
400 缺少templateId
Examples
请求示例:/treatmentplan_template_list?diseaseId=5e3815da27ddaa24a8b0c74b&doctorId=617f939587cc726f80d59af6&sign=29B95FBA8B10FEDFDCD4C9BC172F31AFA687DFA6B9241E69F3E59E873B6CF924×tamp=1570428513
返回示例:
{
"total": 4,
"diseaseSummary": [
{
"_id": "5e3815da27ddaa24a8b0c74b",
"count": 4,
"title": "感冒"
}
],
"data": [
{
"isdeleted": false,
"isPublic": false,
"isDefault": false,
"count": 0,
"useAmount": 0,
"_id": "61809fa11914e55ccc060686",
"diseaseId": {
"_id": "5e3815da27ddaa24a8b0c74b",
"title": "感冒"
},
"title": "风寒",
"prescriptionName": "新加香薷饮",
"createdAt": "2021-11-02T02:17:05.513Z",
"updatedAt": "2021-11-02T02:17:26.363Z"
},
{
"public": false,
"default": false,
"count": 0,
"useAmount": 0,
"_id": "61809bd2995c5591806bd72c",
"diseaseId": {
"_id": "5e3815da27ddaa24a8b0c74b",
"title": "感冒"
},
"title": "风寒",
"createdAt": "2021-11-02T02:00:50.965Z",
"updatedAt": "2021-11-02T02:00:50.965Z"
},
{
"public": false,
"default": false,
"count": 0,
"useAmount": 0,
"_id": "617fe750b94c6f92086b3aa7",
"diseaseId": {
"_id": "5e3815da27ddaa24a8b0c74b",
"title": "感冒"
},
"title": "风寒",
"createdAt": "2021-11-01T13:10:40.104Z",
"updatedAt": "2021-11-01T13:10:55.017Z"
},
{
"public": false,
"default": false,
"count": 0,
"useAmount": 0,
"_id": "617fdd9c0845835df4402387",
"diseaseId": {
"_id": "5e3815da27ddaa24a8b0c74b",
"title": "感冒"
},
"title": "风寒",
"createdAt": "2021-11-01T12:29:16.030Z",
"updatedAt": "2021-11-01T12:29:16.030Z"
}
]
}