Methods
(inner) get /patients_list(patientIdopt, doctorIdopt, findopt, sortNameopt, orderopt, timestamp, sign, pageSizeopt, pageopt, languageopt)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
patientId |
String(24)
|
<optional>
|
|
用户ID |
doctorId |
String(24)
|
<optional>
|
|
医生ID |
find |
String(500)
|
<optional>
|
|
查询条件,json文本,示例:{"name":{"$regex":"王"}} |
sortName |
String(20)
|
<optional>
|
createdAt
|
排序列名,默认createdAt |
order |
Number
|
<optional>
|
-1
|
排序参数,默认-1,1 为升序排列,-1 为降序排列 |
timestamp |
String(10)
|
|
|
时间戳,值为秒值,长度10位,时间戳有效期:±10分钟 |
sign |
String(64)
|
|
|
签名 |
pageSize |
Number
|
<optional>
|
20
|
分页行数,最大100 2023/8/30 |
page |
Number
|
<optional>
|
1
|
页码 |
language |
String(50)
|
<optional>
|
|
语种,不传或无值将维持默认语种(简体中文)不会转换简繁体文字内容,目前支持:simplifiedChinese:简体中文,traditionalChinese:繁体中文 2022/2/28 |
Properties:
Name |
Type |
Description |
total |
Number
|
总行数 |
data |
Array.<Object>
|
当前页数据
Properties
Name |
Type |
Attributes |
Description |
_id |
String(24)
|
|
患者ID |
name |
String(20)
|
|
患者姓名 |
gender |
String(2)
|
|
患者性别 |
birthday |
Date
|
|
患者生日 |
patientId |
String(24)
|
<optional>
|
用户ID |
doctorId |
String(24)
|
<optional>
|
医生ID |
height |
Number
|
<optional>
|
身高 |
weight |
Number
|
<optional>
|
体重 |
address |
String(100)
|
<optional>
|
所在地 |
medicalhistory |
Array.<String>
|
<optional>
|
既往病史 |
allergic |
String(5000)
|
<optional>
|
患者过敏史 |
other |
String(200)
|
<optional>
|
其他信息 |
isdeleted |
Boolean
|
|
删除标志位,true为删除 |
patientsPdfUrl |
Boolean
|
|
患者信息pdf下载地址 2022/3/8 |
|
Examples
请求示例:/patients_list?pageSize=5&page=1&sign=1C2B09A2C9E20BB3948833AB7D77B4CA803D05906E8CC600014750275E2909C2×tamp=1570428513
返回示例:
{
"total": 8,
"data": [
"_id": "5e1dba29a5020d1c44270ee8",
"name": "张三1",
"gender": "男1",
"birthday": "1976-11-13T16:00:00.000Z"
},
{
"_id": "5e1dba2ca5020d1c44270ee9",
"name": "张三1",
"gender": "男1",
"birthday": "1976-11-13T16:00:00.000Z"
}
]
}