副反应管理

副反应列表: /medicationSideEffects GET

请求参数

参数名 示列值 类型 必须 说明
page 1 number 当前页数
pageSize 10 number 每页条数
name 头晕 number 名称
sort -createdAt number 排序。多个排序字段用,号隔开。sort=-a,b
expand '' string 获取指定子资源数据 ''
attributes "id,name" string 本资源的字段。不定义该字段时返回所有字段;空数组不返回字段

返回参数

参数名 示列值 说明
page 1 当前页数
pageSize 10 每页条数
limit 10 同 pageSize
offset 2 起始条数
total 3231 符合条件的总数量
items [{ "id": 4, "name": "test2"}] 返回数据项
参数名 示列值 类型 说明
id 1 number id
organizationId 1 number 来源组织id,默认云医
name 头晕 string 名称
genericName 头晕 string 通用名
remark 头大 string 备注
organization
createdAt 1650160322 number 创建时间
updatedAt 1650160322 number 更新时间

返回示列

HTTP/1.1 200 OK
{
    "items": [
      {
        "id": 1,
        "name": "头晕",
        "genericName": "头晕",
        "remark": "头晕",
        "createdAt": 1647846587,
        "updatedAt": 1647846587,
    }],
    "total": 4070,
    "offset": 1,
    "limit": 2,
    "page": 1,
    "pageSize": 2
  }

新建副反应: /medicationSideEffects POST

请求参数

参数名 示列值 类型 必须 说明
name demo string 名称
genericName demo string 通用名
remark demo string 备注

返回结果: 副反应信息

编辑副反应: /medicationSideEffects/:id PUT

请求参数

参数名 示列值 类型 必须 说明
name demo string 名称
genericName demo string 通用名
remark demo string 备注

返回结果: 副反应信息

副反应详情: /medicationSideEffects/:id GET

请求参数

参数名 示列值 类型 必须 说明
id 1 number 组织 id
expand '' string 获取指定子资源数据 'organization'
attributes ["id", "name"] array 本资源的字段。不定义该字段时返回所有字段

返回结果: 副反应信息

删除副反应: /medicationSideEffects/:id DELETE

请求参数

参数名 示列值 类型 必须 说明
id 1 number 资源 id

返回示列

HTTP/1.1 204 NO CONTENT

所有副反应: /listAll/medicationSideEffects GET

请求参数

参数名 示列值 类型 必须 说明 默认值
name 头晕 number 名称
expand '' string 获取指定子资源数据 ''
attributes "id,name" string 本资源的字段。不定义该字段时返回所有字段;空数组不返回字段

返回结果: 副反应信息

返回示列

HTTP/1.1 200 OK
[
  {}
]

副反应入库: librarySetting/medicationSideEffects POST

请求参数

参数名 示列值 类型 必须 说明
ids [1] array Y 资源 id 数组
orgIds [1,2] array Y 组织 id 数组
bulk true boolean 是否是批量入库(true:是)

返回示列

HTTP/1.1 200