| | |
| | | package com.ruoyi.datacollection.service.impl; |
| | | |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.core.service.HisGatherApi; |
| | | import com.ruoyi.datacollection.collect.HisGatherCollectors; |
| | | import com.ruoyi.common.core.service.dto.InhospPositionRecord; |
| | | import com.ruoyi.common.core.service.dto.SltdGatherReq; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | |
| | | * HIS 采集能力契约(smartor 侧 Bridge 纯转发到 healthcareRecord 查询,只取数不落库) |
| | | */ |
| | | @Autowired |
| | | private HisGatherApi hisGatherApi; |
| | | private HisGatherCollectors hisGatherCollectors; |
| | | |
| | | /** |
| | | * 出入院数据契约({@code pat_med_inhosp} 归属 ruoyi-inhospvisit): |
| | |
| | | req.setStatusList(STATUS_IN_HOSP); |
| | | req.setHealthcareRecordNo(serialnum); |
| | | |
| | | List<InhospPositionRecord> records = hisGatherApi.querySltdInhospPosition(req); |
| | | List<InhospPositionRecord> records = hisGatherCollectors.querySltdInhospPosition(req); |
| | | InhospPositionRecord current = pickInHospRecord(records, serialnum); |
| | | if (current == null) { |
| | | // 接口按在院状态过滤后没有返回记录:该患者当前已不在"入院"状态。 |