13.后台系统-上传科室信息
# model 添加医院基础类
package com.stt.yygh.model.hosp;
import com.stt.yygh.model.base.BaseMongoEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
@Data
@ApiModel(description = "Department")
@Document("Department")
public class Department extends BaseMongoEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "医院编号")
@Indexed //普通索引
private String hoscode;
@ApiModelProperty(value = "科室编号")
@Indexed(unique = true) //唯一索引
private String depcode;
@ApiModelProperty(value = "科室名称")
private String depname;
@ApiModelProperty(value = "科室描述")
private String intro;
@ApiModelProperty(value = "大科室编号")
private String bigcode;
@ApiModelProperty(value = "大科室名称")
private String bigname;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# service-hosp 添加医院基础类
# 添加repository
在service-hosp
中创建并添加 DepartmentRepository 类
package com.stt.yygh.hosp.repository;
import com.stt.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
}
2
3
4
5
6
7
8
9
# 添加service
在service-hosp
中创建并添加 DepartmentService 接口
package com.stt.yygh.hosp.service;
public interface DepartmentService {
}
2
3
4
在service-hosp
中创建并添加 DepartmentServiceImpl 实现类
package com.stt.yygh.hosp.service.impl;
import com.stt.yygh.hosp.service.DepartmentService;
import org.springframework.stereotype.Service;
@Service
public class DepartmentServiceImpl implements DepartmentService {
}
2
3
4
5
6
7
8
# 上传科室信息接口定义
参考 附录:在线预约挂号API接口文档 平台接口> 上传科室
# 提交地址
http://localhost/api/hosp/saveDepartment
# 请求参数
变量定义
字段名 | 类型 | 长度 | 必输 | 说明 |
---|---|---|---|---|
hoscode | string | 30 | 是 | 给医院分配的唯一标识 |
depcode | string | 50 | 是 | 科室编号 |
depname | string | 1 | 是 | 科室名称 |
intro | string | 18 | 是 | 科室描述 |
bigcode | string | 50 | 是 | 大科室编号 |
bigname | string | 10 | 是 | 大科室名称 |
address | string | 20 | 是 | 详情地址 |
timestamp | long | 是 | 时间戳;从1970-01-01 00:00:00算起的毫秒数 | |
sign | string | 32 | 是 | 验签参数 |
# 同步返回
结果参数含义
字段名 | 类型 | 长度 | 必输 | 说明 |
---|---|---|---|---|
code | string | 是 | 结果编码;200:请求成功 不等于200:请求失败(message:失败原因) | |
message | string | 100 | 是 | 结果描述 |
data | string | 5000 | 是 | 业务数据 |
# 接口分析
接口参数示例
{
"hoscode": "1000_0",
"depcode": "200050923",
"depname": "门诊部核酸检测门诊(东院)",
"intro": "门诊部核酸检测门诊(东院)",
"bigcode": "44f162029abb45f9ff0a5f743da0650d",
"bigname": "体检科"
}
2
3
4
5
6
7
8
一个大科室下可以有多个小科室
# 上传科室信息接口实现 service-hosp
医院编号是平台分配的,全局唯一,科室编号为医院自己的编号,相对医院唯一,上传科室接口可以多次调用,如果医院编号与科室编号组合唯一为更新操作
# 添加controller接口
package com.stt.yygh.hosp.controller;
...
@Api(tags = "医院管理API接口")
@RestController
@RequestMapping("/api/hosp")
public class ApiController {
...
@Autowired
private DepartmentService departmentService;
@ApiOperation(value = "上传科室")
@PostMapping("saveDepartment")
public Result saveDepartment(HttpServletRequest request) {
Map<String, Object> paramMap = HttpRequestHelper.switchMap(request.getParameterMap());
String hoscode = (String) paramMap.get("hoscode");
if (StringUtils.isEmpty(hoscode)) {
throw new YyghException(ResultCodeEnum.PARAM_ERROR);
}
//签名校验
if (!HttpRequestHelper.isSignEquals(paramMap, hospitalSetService.getSignKey(hoscode))) {
throw new YyghException(ResultCodeEnum.SIGN_ERROR);
}
departmentService.save(paramMap);
return Result.ok();
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 添加service 接口
在 DepartmentService
类添加接口
package com.stt.yygh.hosp.service;
import java.util.Map;
public interface DepartmentService {
/**
* 上传科室信息
* @param paramMap
*/
void save(Map<String, Object> paramMap);
}
2
3
4
5
6
7
8
9
10
11
在 DepartmentServiceImpl
类添加实现
package com.stt.yygh.hosp.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.stt.yygh.hosp.repository.DepartmentRepository;
import com.stt.yygh.hosp.service.DepartmentService;
import com.stt.yygh.model.hosp.Department;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.Map;
import java.util.Objects;
@Service
public class DepartmentServiceImpl implements DepartmentService {
@Autowired
private DepartmentRepository repository;
@Override
public void save(Map<String, Object> paramMap) {
Department department = JSONObject.parseObject(JSONObject.toJSONString(paramMap), Department.class);
Department targetDepartment = repository.getDepartmentByHoscodeAndDepcode(department.getHoscode(), department.getDepcode());
// 表示不存在该科室,则添加
if (Objects.isNull(targetDepartment)) {
department.setCreateTime(new Date());
department.setUpdateTime(new Date());
department.setIsDeleted(0);
repository.save(department);
} else {
// copy不为null的值
BeanUtils.copyProperties(department, targetDepartment, Department.class);
repository.save(targetDepartment);
}
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 添加repository接口
添加方法 getDepartmentByHoscodeAndDepcode
package com.stt.yygh.hosp.repository;
import com.stt.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
2
3
4
5
6
7
8
9
10
# 测试上传数据
启动hospital-manager
服务,用于模拟发送上传请求
在JSON中输入示例数据 department.json
department.json
[
{"hoscode":"1000_0","depcode":"200050923","depname":"门诊部核酸检测门诊(东院)","intro":"门诊部核酸检测门诊(东院)","bigcode":"44f162029abb45f9ff0a5f743da0650d","bigname":"全部科室"},
{"hoscode":"1000_0","depcode":"200050924","depname":"国际医疗部门诊","intro":"国际医疗部门诊","bigcode":"44f162029abb45f9ff0a5f743da0650d","bigname":"全部科室"},
{"hoscode":"1000_0","depcode":"200050931","depname":"临床营养科(西院国际医疗)","intro":"临床营养科(西院国际医疗)","bigcode":"44f162029abb45f9ff0a5f743da0650d","bigname":"全部科室"},
{"hoscode":"1000_0","depcode":"200050964","depname":"内分泌科互联网诊疗","intro":"内分泌科互联网诊疗","bigcode":"44f162029abb45f9ff0a5f743da0650d","bigname":"全部科室"},
{"hoscode":"1000_0","depcode":"200051188","depname":"心内科互联网诊疗","intro":"心内科互联网诊疗","bigcode":"44f162029abb45f9ff0a5f743da0650d","bigname":"全部科室"},
{"hoscode":"1000_0","depcode":"200051469","depname":"特需心理医学科门诊2","intro":"特需心理医学科门诊2","bigcode":"44f162029abb45f9ff0a5f743da0650d","bigname":"全部科室"},
{"hoscode":"1000_0","depcode":"200041542","depname":"特需心内科门诊2","intro":"特需心内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200042374","depname":"特需消化内科门诊2","intro":"特需消化内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200040886","depname":"特需内分泌科门诊(西院)1","intro":"特需内分泌科门诊(西院)1","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200041246","depname":"特需呼吸内科门诊2","intro":"特需呼吸内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200041038","depname":"特需肾内科门诊2","intro":"特需肾内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200041244","depname":"特需血液内科门诊2","intro":"特需血液内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200044248","depname":"特需老年医学科门诊2","intro":"特需老年医学科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200040166","depname":"特需普通内科门诊1","intro":"特需普通内科门诊1","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200041666","depname":"内科门诊(西院)","intro":"内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200043118","depname":"普通内科全科门诊","intro":"普通内科全科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200045974","depname":"普通内科疑难病症门诊","intro":"普通内科疑难病症门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200048285","depname":"特需肿瘤内科门诊2","intro":"特需肿瘤内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200048369","depname":"特需普通内科门诊2","intro":"特需普通内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200048378","depname":"卫干门诊(内科)","intro":"卫干门诊(内科)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200048380","depname":"特需免疫内科门诊2","intro":"特需免疫内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200048440","depname":"特需感染内科门诊2","intro":"特需感染内科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004002","depname":"内分泌科门诊(西院)","intro":"内分泌科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004004","depname":"特需内分泌科门诊2","intro":"特需内分泌科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004020","depname":"特需普通内科门诊(西院)","intro":"特需普通内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004014","depname":"肿瘤内科门诊","intro":"肿瘤内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003975","depname":"心内科门诊","intro":"心内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003976","depname":"心内科门诊(西院)","intro":"心内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003977","depname":"心内科高血压专科门诊","intro":"心内科高血压专科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003978","depname":"特需心内科门诊","intro":"特需心内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004005","depname":"神经科门诊","intro":"神经科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004006","depname":"神经科门诊(西院)","intro":"神经科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004007","depname":"神经内科癫痫门诊","intro":"神经内科癫痫门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004010","depname":"特需神经科门诊2","intro":"特需神经科门诊2","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003997","depname":"消化内科门诊","intro":"消化内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003998","depname":"消化内科门诊(西院)","intro":"消化内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003999","depname":"早期胃癌专科门诊","intro":"早期胃癌专科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004000","depname":"特需消化内科门诊","intro":"特需消化内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004001","depname":"内分泌科门诊","intro":"内分泌科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004003","depname":"特需内分泌科门诊","intro":"特需内分泌科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003989","depname":"免疫内科门诊","intro":"免疫内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003990","depname":"免疫内科门诊(西院)","intro":"免疫内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003991","depname":"特需免疫内科门诊","intro":"特需免疫内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003992","depname":"特需免疫内科门诊(西院)","intro":"特需免疫内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003993","depname":"呼吸内科门诊","intro":"呼吸内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003994","depname":"呼吸内科门诊(西院)","intro":"呼吸内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003995","depname":"戒烟门诊","intro":"戒烟门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003996","depname":"特需呼吸内科门诊","intro":"特需呼吸内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003979","depname":"肾内科门诊","intro":"肾内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003980","depname":"肾内科门诊(西院)","intro":"肾内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003981","depname":"特需肾内科门诊","intro":"特需肾内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003982","depname":"血液科门诊","intro":"血液科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003983","depname":"血友病门诊(西院)","intro":"血友病门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003984","depname":"特需血液内科门诊","intro":"特需血液内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003985","depname":"感染内科门诊","intro":"感染内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003986","depname":"感染内科热病门诊","intro":"感染内科热病门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003987","depname":"感染内科免疫功能低下门诊","intro":"感染内科免疫功能低下门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003988","depname":"特需感染内科门诊","intro":"特需感染内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003973","depname":"老年综合门诊","intro":"老年综合门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003974","depname":"特需老年综合门诊","intro":"特需老年综合门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200003972","depname":"内科门诊","intro":"内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004018","depname":"普通内科门诊","intro":"普通内科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004019","depname":"普通内科门诊(西院)","intro":"普通内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004015","depname":"肿瘤内科门诊(西院)","intro":"肿瘤内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004016","depname":"特需肿瘤内科门诊1","intro":"特需肿瘤内科门诊1","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004017","depname":"特需肿瘤内科门诊(西院)","intro":"特需肿瘤内科门诊(西院)","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004012","depname":"重症肌无力专科门诊","intro":"重症肌无力专科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004008","depname":"头疼专科门诊","intro":"头疼专科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004009","depname":"脑血管病专科门诊","intro":"脑血管病专科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004011","depname":"痴呆与脑白质病专科门诊","intro":"痴呆与脑白质病专科门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200004134","depname":"肝炎门诊","intro":"肝炎门诊","bigcode":"1c87253ca8aa8fc966a2443eeaac0fc1","bigname":"内科"},
{"hoscode":"1000_0","depcode":"200045976","depname":"特需血管外科门诊2","intro":"特需血管外科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200040164","depname":"特需胸外科门诊2","intro":"特需胸外科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200048287","depname":"乳腺外科乳癌化疗门诊(西院)","intro":"乳腺外科乳癌化疗门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200048331","depname":"乳腺外科乳癌随访门诊(西院)","intro":"乳腺外科乳癌随访门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200048412","depname":"特需整形外科门诊2","intro":"特需整形外科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200048490","depname":"泌尿外科专项诊疗门诊","intro":"泌尿外科专项诊疗门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200048586","depname":"胸外科化疗专病门诊","intro":"胸外科化疗专病门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004041","depname":"特需神经外科门诊2","intro":"特需神经外科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004051","depname":"心外科门诊","intro":"心外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004052","depname":"心外科成人门诊","intro":"心外科成人门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004053","depname":"特需心外科门诊1","intro":"特需心外科门诊1","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004054","depname":"特需心外科门诊2","intro":"特需心外科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004049","depname":"特需泌尿外科门诊2","intro":"特需泌尿外科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004072","depname":"特需肝脏外科门诊2","intro":"特需肝脏外科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004027","depname":"特需基本外科门诊2","intro":"特需基本外科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004031","depname":"特需骨科门诊2","intro":"特需骨科门诊2","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004046","depname":"肾积水专科门诊","intro":"肾积水专科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004034","depname":"神经外科门诊","intro":"神经外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004035","depname":"神经外科门诊(西院)","intro":"神经外科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004040","depname":"特需神经外科门诊","intro":"特需神经外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004059","depname":"血管外科门诊","intro":"血管外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004060","depname":"血管外科门诊(西院)","intro":"血管外科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004061","depname":"动脉疾病专科门诊","intro":"动脉疾病专科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004062","depname":"特需血管外科门诊","intro":"特需血管外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004063","depname":"特需血管外科门诊(西院)","intro":"特需血管外科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004032","depname":"胸外科门诊","intro":"胸外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004033","depname":"特需胸外科门诊","intro":"特需胸外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004066","depname":"特需整形外科门诊(西院)","intro":"特需整形外科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004067","depname":"乳腺外科门诊","intro":"乳腺外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004068","depname":"乳腺外科门诊(西院)","intro":"乳腺外科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004069","depname":"特需乳腺外科门诊(西院)1","intro":"特需乳腺外科门诊(西院)1","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004042","depname":"泌尿外科门诊","intro":"泌尿外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004043","depname":"泌尿外科男科门诊","intro":"泌尿外科男科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004044","depname":"泌尿外科门诊(西院)","intro":"泌尿外科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004045","depname":"泌尿外科男科门诊(西院)","intro":"泌尿外科男科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004047","depname":"特需泌尿外科门诊","intro":"特需泌尿外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004070","depname":"肝脏外科门诊","intro":"肝脏外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004071","depname":"特需肝外科门诊","intro":"特需肝外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004022","depname":"外科门诊","intro":"外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004023","depname":"基本外科门诊","intro":"基本外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004025","depname":"基本外科门诊(西院)","intro":"基本外科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004026","depname":"特需基本外科门诊1","intro":"特需基本外科门诊1","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004028","depname":"骨科门诊","intro":"骨科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004029","depname":"骨科门诊(西院)","intro":"骨科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004030","depname":"特需骨科门诊","intro":"特需骨科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004064","depname":"整形美容外科门诊","intro":"整形美容外科门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004116","depname":"急诊科","intro":"急诊科","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200004065","depname":"整形美容外科门诊(西院)","intro":"整形美容外科门诊(西院)","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200039788","depname":"泌尿外科肾癌靶向治疗专病门诊","intro":"泌尿外科肾癌靶向治疗专病门诊","bigcode":"cbc348c817edeffab9599ad12205fa78","bigname":"外科"},
{"hoscode":"1000_0","depcode":"200046682","depname":"特需综合妇科门诊","intro":"特需综合妇科门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200046684","depname":"特需妇科内分泌门诊2","intro":"特需妇科内分泌门诊2","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200048276","depname":"妇泌中心(西院)","intro":"妇泌中心(西院)","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200048413","depname":"特需普通妇科门诊","intro":"特需普通妇科门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200048441","depname":"特需肿瘤妇科门诊","intro":"特需肿瘤妇科门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200048447","depname":"特需妇科计划生育门诊","intro":"特需妇科计划生育门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200048487","depname":"特需产科门诊","intro":"特需产科门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200048521","depname":"妇科计划生育门诊","intro":"妇科计划生育门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200048522","depname":"综合妇科门诊","intro":"综合妇科门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200048523","depname":"妇科肿瘤门诊","intro":"妇科肿瘤门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004078","depname":"妇产科辅助生育中心","intro":"妇产科辅助生育中心","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004073","depname":"妇科门诊","intro":"妇科门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004074","depname":"妇科门诊(西院)","intro":"妇科门诊(西院)","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004075","depname":"特需妇科门诊","intro":"特需妇科门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004076","depname":"特需妇科门诊(西院)1","intro":"特需妇科门诊(西院)1","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004080","depname":"妇科内分泌门诊","intro":"妇科内分泌门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004081","depname":"特需妇科内分泌门诊","intro":"特需妇科内分泌门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004082","depname":"特需妇科内分泌门诊(西院)","intro":"特需妇科内分泌门诊(西院)","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004077","depname":"产科门诊","intro":"产科门诊","bigcode":"17be7b5423b1782612f4a50608246fb4","bigname":"妇产科"},
{"hoscode":"1000_0","depcode":"200004084","depname":"儿科门诊","intro":"儿科门诊","bigcode":"2543ade3aecd3f5a3e2329d068c1d367","bigname":"儿科"},
{"hoscode":"1000_0","depcode":"200004085","depname":"特需儿科门诊","intro":"特需儿科门诊","bigcode":"2543ade3aecd3f5a3e2329d068c1d367","bigname":"儿科"},
{"hoscode":"1000_0","depcode":"200004094","depname":"变态反应科门诊","intro":"变态反应科门诊","bigcode":"e7391935e2070acf94e87b5b6f104f68","bigname":"变态反应科"},
{"hoscode":"1000_0","depcode":"200004095","depname":"特需变态反应科门诊","intro":"特需变态反应科门诊","bigcode":"e7391935e2070acf94e87b5b6f104f68","bigname":"变态反应科"},
{"hoscode":"1000_0","depcode":"200048325","depname":"特需皮肤科门诊2","intro":"特需皮肤科门诊2","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200048377","depname":"皮科激光中心","intro":"皮科激光中心","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200048468","depname":"普通皮科复诊","intro":"普通皮科复诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200048529","depname":"特需口腔科门诊2","intro":"特需口腔科门诊2","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004107","depname":"皮肤科白癜风副教授门诊","intro":"皮肤科白癜风副教授门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004108","depname":"皮肤科普通皮科门诊","intro":"皮肤科普通皮科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004119","depname":"美容皮肤科门诊","intro":"美容皮肤科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004086","depname":"眼科门诊","intro":"眼科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004087","depname":"眼科门诊(西院)","intro":"眼科门诊(西院)","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004088","depname":"特需眼科门诊","intro":"特需眼科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004089","depname":"眼科糖尿病视网膜病专科","intro":"眼科糖尿病视网膜病专科","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004096","depname":"口腔科门诊","intro":"口腔科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004097","depname":"口腔科门诊(西院)","intro":"口腔科门诊(西院)","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004101","depname":"口腔科住院医门诊","intro":"口腔科住院医门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004098","depname":"口腔科洁牙门诊","intro":"口腔科洁牙门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004099","depname":"特需口腔外科门诊","intro":"特需口腔外科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004100","depname":"口腔科特需门诊(西院)","intro":"口腔科特需门诊(西院)","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004090","depname":"耳鼻喉科门诊","intro":"耳鼻喉科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004091","depname":"耳鼻喉科门诊(西院)","intro":"耳鼻喉科门诊(西院)","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004093","depname":"特需耳鼻喉科门诊","intro":"特需耳鼻喉科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004102","depname":"皮科门诊","intro":"皮科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004103","depname":"皮科门诊(西院)","intro":"皮科门诊(西院)","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004104","depname":"皮肤科性病门诊","intro":"皮肤科性病门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200004106","depname":"特需皮肤科门诊","intro":"特需皮肤科门诊","bigcode":"2feb85b952a4dcd6dbf832100f6ef595","bigname":"五官"},
{"hoscode":"1000_0","depcode":"200041040","depname":"特需中医科门诊2","intro":"特需中医科门诊2","bigcode":"7dafa91626a45481feefb3d1a84c7984","bigname":"中医科"},
{"hoscode":"1000_0","depcode":"200048480","depname":"卫干门诊(中医科)","intro":"卫干门诊(中医科)","bigcode":"7dafa91626a45481feefb3d1a84c7984","bigname":"中医科"},
{"hoscode":"1000_0","depcode":"200004112","depname":"中医科针灸室(西院)","intro":"中医科针灸室(西院)","bigcode":"7dafa91626a45481feefb3d1a84c7984","bigname":"中医科"},
{"hoscode":"1000_0","depcode":"200004110","depname":"中医科针灸室","intro":"中医科针灸室","bigcode":"7dafa91626a45481feefb3d1a84c7984","bigname":"中医科"},
{"hoscode":"1000_0","depcode":"200004109","depname":"中医科门诊","intro":"中医科门诊","bigcode":"7dafa91626a45481feefb3d1a84c7984","bigname":"中医科"},
{"hoscode":"1000_0","depcode":"200004111","depname":"中医科门诊(西院)","intro":"中医科门诊(西院)","bigcode":"7dafa91626a45481feefb3d1a84c7984","bigname":"中医科"},
{"hoscode":"1000_0","depcode":"200004113","depname":"特需中医科门诊1","intro":"特需中医科门诊1","bigcode":"7dafa91626a45481feefb3d1a84c7984","bigname":"中医科"},
{"hoscode":"1000_0","depcode":"200048262","depname":"临床营养科西院门诊","intro":"临床营养科西院门诊","bigcode":"4dcb42d3a6ca39589f20bcd160903ae9","bigname":"营养科"},
{"hoscode":"1000_0","depcode":"200047302","depname":"特需营养科门诊1","intro":"特需营养科门诊1","bigcode":"4dcb42d3a6ca39589f20bcd160903ae9","bigname":"营养科"},
{"hoscode":"1000_0","depcode":"200004133","depname":"营养科咨询门诊","intro":"营养科咨询门诊","bigcode":"4dcb42d3a6ca39589f20bcd160903ae9","bigname":"营养科"},
{"hoscode":"1000_0","depcode":"200040878","depname":"多发性硬化专科门诊","intro":"多发性硬化专科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200040182","depname":"运动障碍病专科门诊","intro":"运动障碍病专科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200048482","depname":"特需病理科门诊","intro":"特需病理科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200048483","depname":"病理科门诊","intro":"病理科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004057","depname":"麻醉科门诊","intro":"麻醉科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004124","depname":"放疗科门诊","intro":"放疗科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004125","depname":"放疗科门诊(西院)","intro":"放疗科门诊(西院)","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004126","depname":"特需放疗科门诊","intro":"特需放疗科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004117","depname":"心理医学科门诊","intro":"心理医学科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004118","depname":"特需心理医学科门诊1","intro":"特需心理医学科门诊1","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004123","depname":"介入治疗门诊(放射科)","intro":"介入治疗门诊(放射科)","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004130","depname":"超声介入门诊","intro":"超声介入门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004129","depname":"物理医学康复科门诊","intro":"物理医学康复科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004127","depname":"物理医学康复科门诊(西院)","intro":"物理医学康复科门诊(西院)","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004120","depname":"肠外肠内营养科门诊","intro":"肠外肠内营养科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004122","depname":"特需肠外肠内营养科门诊","intro":"特需肠外肠内营养科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004131","depname":"核医学科门诊","intro":"核医学科门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004132","depname":"特需核医学门诊","intro":"特需核医学门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004055","depname":"麻醉科","intro":"麻醉科","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200004056","depname":"麻醉科疼痛门诊","intro":"麻醉科疼痛门诊","bigcode":"a4e171f4cf9b6816acdfb9ae62c414d7","bigname":"专科"},
{"hoscode":"1000_0","depcode":"200040142","depname":"肾内科IGA肾病专病门诊","intro":"肾内科IGA肾病专病门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200048338","depname":"检验科门诊","intro":"检验科门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200048491","depname":"门诊部疑难病会诊中心(东院)","intro":"门诊部疑难病会诊中心(东院)","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200048571","depname":"加速器治疗室(放疗科)(西院)","intro":"加速器治疗室(放疗科)(西院)","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200048575","depname":"生殖中心门诊(西院)","intro":"生殖中心门诊(西院)","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004013","depname":"帕金森专病门诊","intro":"帕金森专病门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004037","depname":"癫痫门诊","intro":"癫痫门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004021","depname":"老年医学科门诊","intro":"老年医学科门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004038","depname":"神经外科垂体专病门诊","intro":"神经外科垂体专病门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004039","depname":"神经外科脊髓疾病专科门诊","intro":"神经外科脊髓疾病专科门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004048","depname":"泌尿外科泌尿结石门诊","intro":"泌尿外科泌尿结石门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004050","depname":"泌尿外科膀胱癌专科门诊","intro":"泌尿外科膀胱癌专科门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004024","depname":"基本外科肠造口门诊","intro":"基本外科肠造口门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004092","depname":"耳聋基因筛查遗传门诊","intro":"耳聋基因筛查遗传门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004128","depname":"特需康复理疗门诊2","intro":"特需康复理疗门诊2","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004036","depname":"疼痛门诊","intro":"疼痛门诊","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004058","depname":"特需麻醉科门诊2","intro":"特需麻醉科门诊2","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004135","depname":"针灸按摩室(西院)","intro":"针灸按摩室(西院)","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200004121","depname":"肠外肠内营养科门诊(西院)","intro":"肠外肠内营养科门诊(西院)","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200041160","depname":"特需放射科门诊1","intro":"特需放射科门诊1","bigcode":"0551a547cc19d3d09f2e57bd2931b7d0","bigname":"其它"},
{"hoscode":"1000_0","depcode":"200048271","depname":"国际医疗(儿科)","intro":"国际医疗(儿科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048272","depname":"国际医疗(预防接种)","intro":"国际医疗(预防接种)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048273","depname":"国际医疗(神经科)","intro":"国际医疗(神经科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048274","depname":"国际医疗(胸外科)","intro":"国际医疗(胸外科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048278","depname":"国际医疗(内分泌科)","intro":"国际医疗(内分泌科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048279","depname":"基本外科门诊(西院国际医疗)","intro":"基本外科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048280","depname":"内分泌科门诊(西院国际医疗)","intro":"内分泌科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048281","depname":"国际医疗(消化内科)","intro":"国际医疗(消化内科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048282","depname":"国际医疗(普通内科)","intro":"国际医疗(普通内科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048283","depname":"国际医疗(皮肤科)","intro":"国际医疗(皮肤科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048286","depname":"消化内科门诊(西院国际医疗)","intro":"消化内科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048288","depname":"国际医疗(感染内科)","intro":"国际医疗(感染内科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048289","depname":"国际医疗(变态反应科)","intro":"国际医疗(变态反应科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048290","depname":"国际医疗(免疫内科)","intro":"国际医疗(免疫内科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048293","depname":"国际医疗(中医科)","intro":"国际医疗(中医科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048294","depname":"国际医疗(呼吸内科)","intro":"国际医疗(呼吸内科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048297","depname":"国际医疗(美容外科)","intro":"国际医疗(美容外科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048298","depname":"国际医疗(产科)","intro":"国际医疗(产科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048299","depname":"医学美容中心外科门诊(西院国际医疗)","intro":"医学美容中心外科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048300","depname":"国际医疗(血管外科)","intro":"国际医疗(血管外科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048301","depname":"核医学科(西院国际医疗)","intro":"核医学科(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048304","depname":"国际医疗(妇科内分泌)","intro":"国际医疗(妇科内分泌)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048308","depname":"变态(过敏)反应科门诊(西院国际医疗)","intro":"变态(过敏)反应科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048309","depname":"免疫内科门诊(西院国际医疗)","intro":"免疫内科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048310","depname":"国际医疗(骨科)","intro":"国际医疗(骨科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048311","depname":"口腔科门诊(西院国际医疗)","intro":"口腔科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048312","depname":"国际医疗(泌尿外科)","intro":"国际医疗(泌尿外科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048313","depname":"国际医疗(核医学科)","intro":"国际医疗(核医学科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048314","depname":"内分泌与生殖妇科中心门诊(西院国际医疗)","intro":"内分泌与生殖妇科中心门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048315","depname":"国际医疗(血液科)","intro":"国际医疗(血液科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048316","depname":"国际医疗(美容皮肤科)","intro":"国际医疗(美容皮肤科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048317","depname":"国际医疗(耳鼻喉科)","intro":"国际医疗(耳鼻喉科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048318","depname":"国际医疗(神经外科)","intro":"国际医疗(神经外科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048319","depname":"肿瘤内科门诊(西院国际医疗)","intro":"肿瘤内科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048320","depname":"耳鼻喉科门诊(西院国际医疗)","intro":"耳鼻喉科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048326","depname":"国际医疗(针灸按摩室)","intro":"国际医疗(针灸按摩室)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048327","depname":"国际医疗(心内科)","intro":"国际医疗(心内科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048328","depname":"国际医疗(口腔科)","intro":"国际医疗(口腔科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048329","depname":"国际医疗(麻醉科)","intro":"国际医疗(麻醉科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048330","depname":"神经科门诊(西院国际医疗)","intro":"神经科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048332","depname":"呼吸内科门诊(西院国际医疗)","intro":"呼吸内科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048333","depname":"国际医疗(物理医学康复科)","intro":"国际医疗(物理医学康复科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048334","depname":"心内科门诊(西院国际医疗)","intro":"心内科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048335","depname":"肾内科门诊(西院国际医疗)","intro":"肾内科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048346","depname":"国际医疗(基本外科)","intro":"国际医疗(基本外科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048347","depname":"乳腺外科门诊(西院国际医疗)","intro":"乳腺外科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048348","depname":"国际医疗(肾内科)","intro":"国际医疗(肾内科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048349","depname":"皮肤科门诊(西院国际医疗)","intro":"皮肤科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048350","depname":"国际医疗(眼科)","intro":"国际医疗(眼科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048352","depname":"国际医疗(肝脏外科)","intro":"国际医疗(肝脏外科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048353","depname":"眼科门诊(西院国际医疗)","intro":"眼科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048355","depname":"麻醉科(西院国际医疗)","intro":"麻醉科(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048356","depname":"国际医疗(肿瘤内科)","intro":"国际医疗(肿瘤内科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048366","depname":"国际医疗(营养科)","intro":"国际医疗(营养科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048368","depname":"国际医疗(放射治疗科)","intro":"国际医疗(放射治疗科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048379","depname":"国际医疗部特约门诊","intro":"国际医疗部特约门诊","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048465","depname":"物理医学康复科(西院国际医疗)","intro":"物理医学康复科(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048467","depname":"泌尿外科门诊(西院国际医疗)","intro":"泌尿外科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048470","depname":"国际医疗(肠外肠内营养科)","intro":"国际医疗(肠外肠内营养科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048485","depname":"国际医疗(老年医学科)","intro":"国际医疗(老年医学科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048486","depname":"普通内科门诊(西院国际医疗)","intro":"普通内科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048513","depname":"医学美容中心门诊(西院国际医疗)","intro":"医学美容中心门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048524","depname":"国际医疗(妇科肿瘤)","intro":"国际医疗(妇科肿瘤)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048525","depname":"国际医疗(综合妇科)","intro":"国际医疗(综合妇科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048526","depname":"国际医疗(妇科计划生育)","intro":"国际医疗(妇科计划生育)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048536","depname":"骨科门诊(西院国际医疗)","intro":"骨科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048559","depname":"国际医疗(放射科)","intro":"国际医疗(放射科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048585","depname":"老年医学门诊(西院国际医疗)","intro":"老年医学门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200048644","depname":"儿科门诊(西院国际医疗)","intro":"儿科门诊(西院国际医疗)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200004114","depname":"国际医疗(妇科)","intro":"国际医疗(妇科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"},
{"hoscode":"1000_0","depcode":"200004115","depname":"国际医疗(心理医学科)","intro":"国际医疗(心理医学科)","bigcode":"1e452d84823e025229c72c23d100a464","bigname":"国际医疗部"}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
插入完成后查看MongoDB中的数据是否创建
# 查询科室信息接口定义
参考 附录:在线预约挂号API接口文档 平台接口> 查询科室
# 提交地址
http://localhost/api/hosp/department/list
# 请求参数
变量定义
字段名 | 类型 | 长度 | 必输 | 说明 |
---|---|---|---|---|
hoscode | string | 30 | 是 | 给医院分配的唯一标识 |
pageNum | Int | 是 | 第几页 | |
pageSize | Int | 是 | 每页个数 | |
timestamp | long | 是 | 时间戳;从1970-01-01 00:00:00算起的毫秒数 | |
sign | string | 32 | 是 | 验签参数。 |
# 同步返回
结果参数含义
字段名 | 类型 | 长度 | 必输 | 说明 |
---|---|---|---|---|
code | string | 是 | 结果编码; 200:请求成功 不等于200:请求失败(message:失败原因) | |
message | string | 100 | 是 | 结果描述 |
data | string | 5000 | 是 | 业务数据 |
# 查询科室信息接口实现 service-hosp
# model中添加查询vo类
package com.stt.yygh.vo.hosp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel(description = "Department")
public class DepartmentQueryVo {
@ApiModelProperty(value = "医院编号")
private String hoscode;
@ApiModelProperty(value = "科室编号")
private String depcode;
@ApiModelProperty(value = "科室名称")
private String depname;
@ApiModelProperty(value = "大科室编号")
private String bigcode;
@ApiModelProperty(value = "大科室名称")
private String bigname;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 添加controller接口
ApiController
中添加实现方法
package com.stt.yygh.hosp.controller;
...
@Api(tags = "医院管理API接口")
@RestController
@RequestMapping("/api/hosp")
public class ApiController {
...
@ApiOperation(value = "获取分页列表")
@PostMapping("department/list")
public Result getDepartmentList(HttpServletRequest request) {
Map<String, Object> paramMap = HttpRequestHelper.switchMap(request.getParameterMap());
//必须参数校验 略
String hoscode = (String) paramMap.get("hoscode");
//非必填
String depcode = (String) paramMap.get("depcode");
int page = StringUtils.isEmpty(paramMap.get("page")) ? 1 : Integer.parseInt((String) paramMap.get("page"));
int limit = StringUtils.isEmpty(paramMap.get("limit")) ? 10 : Integer.parseInt((String) paramMap.get("limit"));
if (StringUtils.isEmpty(hoscode)) {
throw new YyghException(ResultCodeEnum.PARAM_ERROR);
}
//签名校验
if (!HttpRequestHelper.isSignEquals(paramMap, hospitalSetService.getSignKey(hoscode))) {
throw new YyghException(ResultCodeEnum.SIGN_ERROR);
}
DepartmentQueryVo departmentQueryVo = new DepartmentQueryVo();
departmentQueryVo.setHoscode(hoscode);
departmentQueryVo.setDepcode(depcode);
Page<Department> pageModel = departmentService.selectPage(page, limit, departmentQueryVo);
return Result.ok(pageModel);
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 添加service接口
在 DepartmentService
中添加方法
package com.stt.yygh.hosp.service;
...
public interface DepartmentService {
...
Page<Department> selectPage(int page, int limit, DepartmentQueryVo departmentQueryVo);
}
2
3
4
5
6
7
在 DepartmentServiceImpl
添加实现
package com.stt.yygh.hosp.service.impl;
...
@Service
public class DepartmentServiceImpl implements DepartmentService {
...
@Override
public Page<Department> selectPage(int page, int limit, DepartmentQueryVo departmentQueryVo) {
// 分页参数
Sort sort = Sort.by(Sort.Direction.DESC, "createTime");
Pageable pageable = PageRequest.of(page - 1, limit, sort);
// 创建匹配器,条件查询
ExampleMatcher exampleMatcher = ExampleMatcher
.matching()
.withStringMatcher(ExampleMatcher.StringMatcher.CONTAINING)
.withIgnoreCase(true);
// 查询参数
Department department = new Department();
BeanUtils.copyProperties(departmentQueryVo, department);
department.setIsDeleted(0);
Example<Department> example = Example.of(department, exampleMatcher);
Page<Department> re = repository.findAll(example, pageable);
return re;
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 删除科室信息接口定义
参考 附录:在线预约挂号API接口文档 平台接口> 删除科室
# 提交地址
http://localhost/api/hosp/department/remove
# 请求参数
变量定义
字段名 | 类型 | 长度 | 必输 | 说明 |
---|---|---|---|---|
hoscode | string | 30 | 是 | 给医院分配的唯一标识 |
depcode | string | 30 | 是 | 科室编号 |
timestamp | long | 是 | 时间戳;从1970-01-01 00:00:00算起的毫秒数 | |
sign | string | 32 | 是 | 验签参数 |
# 同步返回
结果参数含义
字段名 | 类型 | 长度 | 必输 | 说明 |
---|---|---|---|---|
code | string | 是 | 结果编码; 200:请求成功 不等于200:请求失败(message:失败原因) | |
message | string | 100 | 是 | 结果描述 |
data | string | 5000 | 是 | 业务数据 |
# 删除科室信息接口实现 service-hosp
根据医院编号与科室编号删除科室
# 添加controller接口
修改 ApiController
类,添加如下实现
package com.stt.yygh.hosp.controller;
...
@Api(tags = "医院管理API接口")
@RestController
@RequestMapping("/api/hosp")
public class ApiController {
...
@ApiOperation(value = "删除科室")
@PostMapping("department/remove")
public Result removeDepartment(HttpServletRequest request) {
Map<String, Object> paramMap = HttpRequestHelper.switchMap(request.getParameterMap());
//必须参数校验 略
String hoscode = (String) paramMap.get("hoscode");
//必填
String depcode = (String) paramMap.get("depcode");
if (StringUtils.isEmpty(hoscode)) {
throw new YyghException(ResultCodeEnum.PARAM_ERROR);
}
//签名校验
if (!HttpRequestHelper.isSignEquals(paramMap, hospitalSetService.getSignKey(hoscode))) {
throw new YyghException(ResultCodeEnum.SIGN_ERROR);
}
departmentService.remove(hoscode, depcode);
return Result.ok();
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 添加service接口
修改 DepartmentService
接口
package com.stt.yygh.hosp.service;
...
public interface DepartmentService {
...
void remove(String hoscode, String depcode);
}
2
3
4
5
6
7
8
修改 DepartmentServiceImpl
实现类
package com.stt.yygh.hosp.service.impl;
...
@Service
public class DepartmentServiceImpl implements DepartmentService {
...
@Override
public void remove(String hoscode, String depcode) {
Department department = repository.getDepartmentByHoscodeAndDepcode(hoscode, depcode);
if(Objects.isNull(department)) {
return;
}
repository.deleteById(department.getId());
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15