科室接口

医协云平台 wangjingning@doc-exam.com开放平台开放平台科室列表大约 3 分钟

注意

除认证接口外,所有接口请求头需要加上以下两个参数
Authorization: Bearer + token
platform: exy_tenant_mgmt

新增科室接口地址

 /organization/v1/admin/open/thrid/specialties/save

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述: 新增科室

请求示例:

{"parentId":0,"name":"科目名称","status":"ACTIVE","parent":true}

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
name科室IDbodytrueStringString
parentId科室名称bodytrueStringString
parent是否为父节点bodytrueStringString
status有效 无效bodytrueStringString

响应状态:

状态码说明schema
200OK响应成功
201Created已创建
401Unauthorized未认证
403Forbidden禁止访问
404Not Found没有找到

响应参数:

参数名称参数说明类型schema
code响应状态码integerinteger(int32)
msg响应消息体string
data响应数据体Object

响应示例:

{
  "code": 200,
  "msg": "操作成功",
  "data": {
  }
}



编辑科室

 /organization/v1/admin/open/thrid/specialties/edit/{specialtiesId}

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述: 编辑科室

请求示例:

{"parentId":0,"name":"科目名称","status":"ACTIVE","parent":true}

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
name科室IDbodytrueStringString
parentId科室名称bodytrueStringString
parent是否为父节点bodytrueStringString
status有效 无效bodytrueStringString

响应参数:

参数名称参数说明类型schema
code响应状态码integerinteger(int32)
msg响应消息体string
data响应数据体Object

响应示例:

{
  "code": 200,
  "msg": "操作成功",
  "data": {
  }
}






删除科室接口地址

 /organization/v1/admin/open/thrid/specialties/del/{specialtiesId}

请求方式:DELETE

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述: 删除科室

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
code科室编码pathtrueStringString

响应状态:

状态码说明schema
200OK响应成功
201Created已创建
401Unauthorized未认证
403Forbidden禁止访问
404Not Found没有找到

响应参数:

参数名称参数说明类型schema
code响应状态码integerinteger(int32)
msg响应消息体string
data响应数据体Object

响应示例:

{
  "code": 200,
  "msg": "操作成功",
  "data": {
  }
}



:::

获得科室列表

 /organization/v1/admin/open/thrid/specialties/list

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

响应参数:

参数名称参数说明类型schema
code响应状态码integerinteger(int32)
msg响应消息体string
data响应数据体Object

响应示例:

{
  "code": 200,
  "msg": "操作成功",
  "data": [{
    "specialtiesId": "科室id",
    "code": "科室代码",
    "name": "科室名称",
    "parentId": "父节点id,最高节点为0",
    "parent": "是否为父节点,0为否,1为是",
    "status": "ACTIVE,INACTIVE",
    "children": [{
         "specialtiesId": "科室id",
         "code": "科室代码",
         "name": "科室名称",
         "parentId": "父节点id,最高节点为0",
         "parent": "是否为父节点,0为否,1为是",
         "status": "ACTIVE,INACTIVE",                     
         "children": []
    }]
  }]
}
上次编辑于:
贡献者: ccb719126100,汪靖宁