- Since:
- 2024/01/22
Methods
(inner) put /patients_modify(patientsId, timestamp, sign, JSON)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
patientsId |
String(24) | 患者ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
timestamp |
String(10) | 时间戳,值为秒值,长度10位,时间戳有效期:±10分钟 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sign |
String(64) | 签名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
JSON |
JSON | body参数
Properties
|
Properties:
Name | Type | Description |
---|---|---|
success |
Boolean | true为修改成功,否则失败 |
Throws:
400 缺少patientsId
400 缺少name
400 缺少gender
400 缺少birthday
400 缺少name
400 缺少gender
400 缺少birthday
Examples
请求示例:/open/api/patients_modify?patientsId=5e1bff31ef89e1059c0c98b9&sign=725085C8A709A4F16183B26FBB9E67A156A2F3D82D47CE00A067902EA006FA15×tamp=1570428513
请求JSON参数:
{
"medicalhistory":["高血压","心脏病"],
"name":"张三",
"gender":"男",
"birthday":"1976-11-13T16:00:00.000Z",
"patientId":"5e0445db99791d7398ccb1ba",
"relation":"本人",
"weight":70,
"height":175,
"address":"北京市",
"other":"无"
}
返回示例:
{
"success": true,
"patientsId": "5e1b32e6a8bead28981cfefe"
}