Module: 患者修改^2024/01/22

Since:
  • 2024/01/22
Author:
  • zz

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
Name Type Attributes Description
name String(20) 患者姓名
gender String(10) 患者性别
phone String(50) <optional>
患者电话 2024/01/22
birthday Date 患者生日
patientId String(24) <optional>
用户ID,和医生ID必须有一个有值
doctorId String(24) <optional>
医生ID,和用户ID必须有一个有值
relation String(20) <optional>
患者关系
weight Number <optional>
患者体重,单位kg
height Number <optional>
患者身高,单位cm
medicalhistory Array.<String> <optional>
既往病史
allergic String(5000) <optional>
患者过敏史
address String(100) <optional>
患者所在地
other String(200) <optional>
患者其他信息
Properties:
Name Type Description
success Boolean true为修改成功,否则失败
Throws:
400 缺少patientsId
400 缺少name
400 缺少gender
400 缺少birthday
Examples
请求示例:/open/api/patients_modify?patientsId=5e1bff31ef89e1059c0c98b9&sign=725085C8A709A4F16183B26FBB9E67A156A2F3D82D47CE00A067902EA006FA15&timestamp=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"
  }