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