Commit 8497374ba40376e25c68f375bdeb249e13efded9

Authored by mengfanqiang
1 parent 4cc811d6a8
Exists in fengning2023-06-06

add 新增访视统计接口

Showing 8 changed files with 1165 additions and 1 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/IMatDeliverDao.java View file @ 8497374
... ... @@ -3,6 +3,7 @@
3 3 import com.lyms.platform.common.dao.operator.MongoQuery;
4 4 import com.lyms.platform.pojo.MaternalDeliverModel;
5 5  
  6 +import java.util.HashMap;
6 7 import java.util.List;
7 8  
8 9 /**
... ... @@ -62,5 +63,7 @@
62 63 int count(MongoQuery mongoQuery);
63 64  
64 65 List<MaternalDeliverModel> pageQuery(MongoQuery mongoQuery);
  66 +
  67 + List<HashMap> aggregateOne(MongoQuery mongoQuery);
65 68 }
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/MatDeliverDaoImpl.java View file @ 8497374
... ... @@ -6,9 +6,13 @@
6 6 import com.lyms.platform.common.dao.operator.MongoOper;
7 7 import com.lyms.platform.common.dao.operator.MongoQuery;
8 8 import com.lyms.platform.pojo.MaternalDeliverModel;
  9 +import org.springframework.data.mongodb.core.aggregation.Aggregation;
  10 +import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
  11 +import org.springframework.data.mongodb.core.aggregation.AggregationResults;
9 12 import org.springframework.stereotype.Repository;
10 13  
11 14 import java.util.Date;
  15 +import java.util.HashMap;
12 16 import java.util.List;
13 17  
14 18 /**
... ... @@ -71,6 +75,22 @@
71 75 @Override
72 76 public List<MaternalDeliverModel> pageQuery(MongoQuery mongoQuery) {
73 77 return super.find(mongoQuery.convertToMongoQuery());
  78 + }
  79 + /**
  80 + * 统计单个医院的产检情况
  81 + *
  82 + * @param mongoQuery
  83 + * @return
  84 + */
  85 + public List<HashMap> aggregateOne(MongoQuery mongoQuery){
  86 + AggregationOperation match = Aggregation.match(mongoQuery.getCriteria());
  87 +
  88 + AggregationOperation group = Aggregation.group("visitDoctor").count().as("count");
  89 +
  90 + Aggregation aggregation= Aggregation.newAggregation(match, group);
  91 +
  92 + AggregationResults<HashMap> result = mongoTemplate.aggregate(aggregation,"lyms_matdeliver_follow", HashMap.class);
  93 + return result.getMappedResults();
74 94 }
75 95 }
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MatDeliverService.java View file @ 8497374
... ... @@ -66,5 +66,9 @@
66 66 mongoQuery.start(matDeliverQuery.getOffset()).end(matDeliverQuery.getLimit());
67 67 return iMatDeliverDao.pageQuery(mongoQuery.addOrder(Sort.Direction.DESC, "created"));
68 68 }
  69 +
  70 + public List aggregateOne(MatDeliverQuery matDeliverQuery) {
  71 + return iMatDeliverDao.aggregateOne(matDeliverQuery.convertToQuery());
  72 + }
69 73 }
platform-dal/src/main/java/com/lyms/platform/query/MatDeliverQuery.java View file @ 8497374
... ... @@ -56,6 +56,16 @@
56 56 //分娩记录加住院管床大夫
57 57 private String gcdfDoctorId;
58 58  
  59 + private Boolean NeNullVisitDoctor;
  60 +
  61 + public Boolean getNeNullVisitDoctor() {
  62 + return NeNullVisitDoctor;
  63 + }
  64 +
  65 + public void setNeNullVisitDoctor(Boolean neNullVisitDoctor) {
  66 + NeNullVisitDoctor = neNullVisitDoctor;
  67 + }
  68 +
59 69 public String getGcdfDoctorId() {
60 70 return gcdfDoctorId;
61 71 }
... ... @@ -227,6 +237,19 @@
227 237 private String areaPostRestId;
228 238 private String streetPostRestId;
229 239  
  240 + /**
  241 + * 访视医生
  242 + */
  243 + private String visitDoctor;
  244 +
  245 + public String getVisitDoctor() {
  246 + return visitDoctor;
  247 + }
  248 +
  249 + public void setVisitDoctor(String visitDoctor) {
  250 + this.visitDoctor = visitDoctor;
  251 + }
  252 +
230 253 public String getStreetPostRestId() {
231 254 return streetPostRestId;
232 255 }
... ... @@ -485,6 +508,10 @@
485 508  
486 509 if (null != hospitalId) {
487 510 condition = condition.and("hospitalId", hospitalId, MongoOper.IS);
  511 + }
  512 +
  513 + if (null != NeNullVisitDoctor) {
  514 + condition = condition.and("visitDoctor", null, MongoOper.NE);
488 515 }
489 516  
490 517 // /**
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatdeliverFollowController.java View file @ 8497374
... ... @@ -120,6 +120,17 @@
120 120 return matdeliverFollowFacade.getPostpartumFollowMake(matdeliverFollowRequest, loginState.getId());
121 121 }
122 122  
  123 + @RequestMapping(value = "/fsStatistics", method = RequestMethod.GET)
  124 + @ResponseBody
  125 + @TokenRequired
  126 + public BaseResponse fsStatistics(
  127 + FsMatdeliverFollowRequest fsMatdeliverFollowRequest,
  128 + HttpServletRequest request){
  129 + LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
  130 + fsMatdeliverFollowRequest.setNeed("need");
  131 + return matdeliverFollowFacade.queryStatis(fsMatdeliverFollowRequest, loginState.getId());
  132 + }
  133 +
123 134 /**
124 135 * 产后转介
125 136 * @param param
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java View file @ 8497374
... ... @@ -2035,6 +2035,574 @@
2035 2035 }
2036 2036  
2037 2037 /**
  2038 + * 访视统计
  2039 + *
  2040 + * @return
  2041 + */
  2042 + public BaseResponse queryStatis(FsMatdeliverFollowRequest fsMatdeliverFollowRequest) {
  2043 + BaseListResponse listResponse = new BaseListResponse();
  2044 + List data = new ArrayList<>();
  2045 + String hospitalId = autoMatchFacade.getHospitalId(fsMatdeliverFollowRequest.getOperatorId());
  2046 + if (com.lyms.platform.common.utils.StringUtils.isEmpty(hospitalId)) {
  2047 + listResponse.setErrormsg("获取医院id为空").setErrorcode(ErrorCodeConstants.SUCCESS);
  2048 + return listResponse;
  2049 + }
  2050 + MatDeliverQuery matDeliverQuery = new MatDeliverQuery();
  2051 +// PatientsQuery patientsQuery1=new PatientsQuery();
  2052 + matDeliverQuery.setHospitalId(hospitalId);
  2053 + matDeliverQuery.setPage(fsMatdeliverFollowRequest.getPage());
  2054 + matDeliverQuery.setLimit(fsMatdeliverFollowRequest.getLimit());
  2055 + matDeliverQuery.setVisitDoctor(fsMatdeliverFollowRequest.getdId());
  2056 + List <String> fmhospitalId = new ArrayList <>();
  2057 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getHospitalId())) {
  2058 + fmhospitalId.add(fsMatdeliverFollowRequest.getHospitalId());
  2059 + matDeliverQuery.setFmHospitalList(fmhospitalId);
  2060 + } else if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getHospitalProvinceId()) || StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getHospitalCityId()) || StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getHospitalAreaId())) {
  2061 + OrganizationQuery organizationQuery = new OrganizationQuery();
  2062 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getHospitalProvinceId())) {
  2063 + organizationQuery.setProvinceId(fsMatdeliverFollowRequest.getHospitalProvinceId());
  2064 + }
  2065 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getHospitalCityId())) {
  2066 + organizationQuery.setCityId(fsMatdeliverFollowRequest.getHospitalCityId());
  2067 + }
  2068 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getHospitalAreaId())) {
  2069 + organizationQuery.setAreaId(fsMatdeliverFollowRequest.getHospitalAreaId());
  2070 + }
  2071 + organizationQuery.setYn(YnEnums.YES.getId());
  2072 + List <Organization> organizationList = organizationService.queryHospitals(organizationQuery);
  2073 + if (CollectionUtils.isNotEmpty(organizationList)) {
  2074 + for (Organization organization : organizationList) {
  2075 + fmhospitalId.add(organization.getId().toString());
  2076 + }
  2077 + }
  2078 +
  2079 + if (CollectionUtils.isNotEmpty(fmhospitalId)) {
  2080 + if (!fmhospitalId.contains(hospitalId)) {
  2081 + fmhospitalId.contains(hospitalId);
  2082 + }
  2083 + matDeliverQuery.setFmHospitalList(fmhospitalId);
  2084 + } else {
  2085 + return listResponse;
  2086 + }
  2087 + }
  2088 +
  2089 + if (fsMatdeliverFollowRequest.getFollowStarDate() != null) {
  2090 + MatDeliverFollowQuery matDeliverFollowQuery = new MatDeliverFollowQuery();
  2091 + matDeliverFollowQuery.setVisitStartDate(fsMatdeliverFollowRequest.getFollowStarDate());
  2092 + matDeliverFollowQuery.setVisitEndDate(fsMatdeliverFollowRequest.getFollowEndDate());
  2093 +
  2094 + List <MatdeliverFollowModel> matdeliverFollowModels = matDeliverFollowService.query(matDeliverFollowQuery);
  2095 + List <String> mfIds = new ArrayList <>();
  2096 + for (MatdeliverFollowModel md : matdeliverFollowModels) {
  2097 + mfIds.add(md.getDeliverId());
  2098 + }
  2099 + if (CollectionUtils.isEmpty(mfIds)) {
  2100 + // 没有查到,直接抛出
  2101 + return listResponse;
  2102 + }
  2103 + matDeliverQuery.setIds(mfIds);
  2104 + }
  2105 +
  2106 +
  2107 + //查询号不为空,则查询孕妇id
  2108 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getQueryNo())//查询号不为空
  2109 + || StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getProvinceId())//居住地省
  2110 + || StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getCityId())//居住地市
  2111 + || StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getAreaId())//居住区
  2112 + || StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getStreetId())//居住街道
  2113 + || StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getHighRiskLevel()) // 高危等级
  2114 + ) {
  2115 + PatientsQuery patientsQuery = new PatientsQuery();
  2116 + patientsQuery.setQueryNo(fsMatdeliverFollowRequest.getQueryNo());
  2117 + patientsQuery.setYn(YnEnums.YES.getId());
  2118 + patientsQuery.setIsAutoFm(YnEnums.NO.getId());
  2119 + patientsQuery.setType(3);
  2120 + //居住地 注意需要反起查询,不要搞错l,原因:前端小弟把数据存反了
  2121 + patientsQuery.setAreaRegisterId(fsMatdeliverFollowRequest.getAreaId());
  2122 + patientsQuery.setCityRegisterId(fsMatdeliverFollowRequest.getCityId());
  2123 + patientsQuery.setProvinceRegisterId(fsMatdeliverFollowRequest.getProvinceId());
  2124 + patientsQuery.setStreetRegisterId(fsMatdeliverFollowRequest.getStreetId());
  2125 +
  2126 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getBirthDate())) {
  2127 + patientsQuery.setFmDateStart(DateUtil.getSNDate(fsMatdeliverFollowRequest.getBirthDate())[0]);
  2128 + patientsQuery.setFmDateEnd(DateUtil.getSNDate(fsMatdeliverFollowRequest.getBirthDate())[1]);
  2129 + }
  2130 +
  2131 + if (fsMatdeliverFollowRequest.getFollowStage() != null) {//按访视阶段查询
  2132 + if (fsMatdeliverFollowRequest.getFollowStage() == 1) {//1、访视期内 分娩时间为:21天到当前时间
  2133 + patientsQuery.setFmDateStart(DateUtil.addDay(new Date(), -29));
  2134 + patientsQuery.setFmDateEnd(new Date());
  2135 + } else if (fsMatdeliverFollowRequest.getFollowStage() == 2) {//2、超出访视期 分娩时间为:结束时间为:21天前的
  2136 + patientsQuery.setFmDateEnd(DateUtil.addDay(new Date(), -29));
  2137 + }
  2138 + }
  2139 + //patientsQuery.setFmHospitalQueryList(hospitalList);
  2140 + //patientsQuery.setTownOrgId(hospitalId);
  2141 +
  2142 + String highRiskLevel = fsMatdeliverFollowRequest.getHighRiskLevel();
  2143 + if (StringUtils.isNotEmpty(highRiskLevel)) {
  2144 + patientsQuery.setrLevel(highRiskLevel);
  2145 + }
  2146 + List <Patients> patientsList = patientsService.queryPatient(patientsQuery);
  2147 + if (CollectionUtils.isEmpty(patientsList)) {
  2148 + // 没有查到,直接抛出
  2149 + return listResponse;
  2150 + }
  2151 +
  2152 + List <String> parentIdList = new ArrayList <>();
  2153 + for (Patients patients : patientsList) {
  2154 + parentIdList.add(patients.getId());
  2155 + }
  2156 + matDeliverQuery.setParentIdList(parentIdList);
  2157 + }
  2158 + String startAge = fsMatdeliverFollowRequest.getStartAge();
  2159 + String endAge = fsMatdeliverFollowRequest.getEndAge();
  2160 + List <String> pids = new ArrayList();
  2161 + // 年龄段
  2162 + if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(startAge) &&
  2163 + com.lyms.platform.common.utils.StringUtils.isNotEmpty(endAge)) {
  2164 + Calendar c = Calendar.getInstance();
  2165 + c.setTime(new Date());
  2166 + c.add(Calendar.YEAR, -Integer.parseInt(startAge));
  2167 + Date startDate = c.getTime();
  2168 + c.setTime(new Date());
  2169 + c.add(Calendar.YEAR, -Integer.parseInt(endAge) - 1);
  2170 + Date endDate = c.getTime();
  2171 + List <PersonModel> personModels = mongoTemplate.find(Query.query(Criteria.where("birth").gte(endDate).lt(startDate)), PersonModel.class);
  2172 + for (PersonModel model : personModels) {
  2173 + pids.add(model.getId());
  2174 + }
  2175 + }
  2176 + matDeliverQuery.setPids(pids);
  2177 +
  2178 +
  2179 + //matDeliverQuery.setYn(YnEnums.YES.getId());
  2180 +
  2181 + //产后天数=当前时间-分娩时间
  2182 + if(fsMatdeliverFollowRequest.getPostViewDay() !=null && fsMatdeliverFollowRequest.getPostViewDay()>0){
  2183 + fsMatdeliverFollowRequest.setBirthDate(DateUtil.getyyyy_MM_dd_hms(DateUtil.addDay(new Date(), -fsMatdeliverFollowRequest.getPostViewDay())));
  2184 + }
  2185 +
  2186 + //分娩日期
  2187 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getBirthDate())) {
  2188 + matDeliverQuery.setCreatedStart(DateUtil.getSNDate(fsMatdeliverFollowRequest.getBirthDate())[0]);
  2189 + matDeliverQuery.setEndStart(DateUtil.getSNDate(fsMatdeliverFollowRequest.getBirthDate())[1]);
  2190 + }
  2191 + if (fsMatdeliverFollowRequest.getStartDay() != null && fsMatdeliverFollowRequest.getEndDay() != null) {
  2192 + matDeliverQuery.setCreatedStart(DateUtil.formatDate(DateUtil.addDay(new Date(), -fsMatdeliverFollowRequest.getEndDay())));
  2193 + matDeliverQuery.setEndStart(DateUtil.formatDate(DateUtil.addDay(new Date(), -fsMatdeliverFollowRequest.getStartDay())));
  2194 + } else if (fsMatdeliverFollowRequest.getStartDay() != null) {
  2195 + matDeliverQuery.setCreatedStart(DateUtil.formatDate(DateUtil.addDay(new Date(), -fsMatdeliverFollowRequest.getStartDay())));
  2196 + matDeliverQuery.setEndStart(DateUtil.formatDate(DateUtil.addDay(new Date(), -fsMatdeliverFollowRequest.getStartDay())));
  2197 + } else if (fsMatdeliverFollowRequest.getEndDay() != null) {
  2198 + matDeliverQuery.setCreatedStart(DateUtil.formatDate(DateUtil.addDay(new Date(), -fsMatdeliverFollowRequest.getEndDay())));
  2199 + matDeliverQuery.setEndStart(DateUtil.formatDate(DateUtil.addDay(new Date(), -fsMatdeliverFollowRequest.getEndDay())));
  2200 + }
  2201 +
  2202 + // 访视列表无需加上分娩医院,因此注释
  2203 + //matDeliverQuery.setFmHospitalList(hospitalList);
  2204 +
  2205 +
  2206 + if (fsMatdeliverFollowRequest.getFlag() != null) {
  2207 + matDeliverQuery.setProvincePostRestId(fsMatdeliverFollowRequest.getProvincePostRestId());
  2208 + matDeliverQuery.setCityPostRestId(fsMatdeliverFollowRequest.getCityPostRestId());
  2209 + matDeliverQuery.setAreaPostRestId(fsMatdeliverFollowRequest.getAreaPostRestId());
  2210 + matDeliverQuery.setStreetPostRestId(fsMatdeliverFollowRequest.getStreetPostRestId());
  2211 +
  2212 + if (fsMatdeliverFollowRequest.getVisitStatus() != null && fsMatdeliverFollowRequest.getVisitStatus() == 2) {
  2213 + matDeliverQuery.setVisitStatus(fsMatdeliverFollowRequest.getVisitStatus());
  2214 + matDeliverQuery.setFsHospitalId(hospitalId);
  2215 + } else if (fsMatdeliverFollowRequest.getVisitStatus() != null && fsMatdeliverFollowRequest.getVisitStatus() == 1) {
  2216 + matDeliverQuery.setVisitStatus(fsMatdeliverFollowRequest.getVisitStatus());
  2217 + } else if (fsMatdeliverFollowRequest.getVisitStatus() != null && fsMatdeliverFollowRequest.getVisitStatus() == 3) {
  2218 + matDeliverQuery.setVisitStatus(2);
  2219 + }
  2220 + } else {
  2221 + matDeliverQuery.setFsHospitalId(hospitalId);
  2222 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getIsArea())) {
  2223 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getFsHospitalId())) {
  2224 + matDeliverQuery.setIsQueryFsHospitalId(true);
  2225 + matDeliverQuery.setFsHospitalId(fsMatdeliverFollowRequest.getFsHospitalId());
  2226 + }
  2227 + }
  2228 +
  2229 + matDeliverQuery.setVisitStatus(fsMatdeliverFollowRequest.getVisitStatus());
  2230 + }
  2231 +
  2232 + matDeliverQuery.setContactResult(fsMatdeliverFollowRequest.getContactResult());
  2233 + if (fsMatdeliverFollowRequest.getContactReason() != null) {
  2234 + matDeliverQuery.setContactResult(PostpartumFollowMakeEnums.ResultEnum.SB.getId());
  2235 + matDeliverQuery.setContactReason(fsMatdeliverFollowRequest.getContactReason());
  2236 + }
  2237 +
  2238 +
  2239 + matDeliverQuery.setVisitAffirm(fsMatdeliverFollowRequest.getVisitAffirm());
  2240 +
  2241 + matDeliverQuery.setMakeType(fsMatdeliverFollowRequest.getMakeType());
  2242 + List <MaternalDeliverModel> maternalDeliverModelList;
  2243 +
  2244 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getRiskId())) {
  2245 + PatientsQuery patientsQuery = new PatientsQuery();
  2246 + patientsQuery.setYn(YnEnums.YES.getId());
  2247 + patientsQuery.setrFactor(fsMatdeliverFollowRequest.getRiskId());
  2248 + List <String> parentIdList = new ArrayList <>();
  2249 + List <Patients> patientsList = patientsService.queryPatient(patientsQuery);
  2250 + for (Patients md : patientsList) {
  2251 + parentIdList.add(md.getId());
  2252 + }
  2253 + List <String> idList = matDeliverQuery.getParentIdList();
  2254 + if (CollectionUtils.isNotEmpty(idList)) {
  2255 + idList.retainAll(parentIdList);
  2256 + } else {
  2257 + idList = parentIdList;
  2258 + }
  2259 + matDeliverQuery.setParentIdList(idList);
  2260 + }
  2261 +
  2262 +
  2263 + Criteria criteria = matDeliverQuery.convertToQuery().getCriteria();
  2264 + criteria.and("visitResult").exists(true).in(1, 2);
  2265 + MatchOperation match = Aggregation.match(criteria);
  2266 + GroupOperation group = Aggregation.group("visitResult").count().as("count");
  2267 + Aggregation aggregation = Aggregation.newAggregation(match, group);
  2268 + AggregationResults <Map> aggregate = mongoTemplate.aggregate(aggregation, MaternalDeliverModel.class, Map.class);
  2269 + List <Map> mappedResults = aggregate.getMappedResults();
  2270 + Integer okCount = 0, errorCount = 0, totalCount = 0;
  2271 + if (CollectionUtils.isNotEmpty(mappedResults)) {
  2272 + for (Map map : mappedResults) {
  2273 + Integer visitResult = Integer.parseInt(map.get("_id").toString());
  2274 + Integer ok = 1;
  2275 + if (ok == visitResult) {
  2276 + okCount += Integer.parseInt(map.get("count").toString());
  2277 + }
  2278 + if (ok != visitResult) {
  2279 + errorCount += Integer.parseInt(map.get("count").toString());
  2280 + }
  2281 + }
  2282 + }
  2283 + totalCount = okCount + errorCount;
  2284 + double okPercentage = 0, errorPercentage = 0;
  2285 + if (totalCount > 0) {
  2286 + BigDecimal multiply = new BigDecimal(okCount.toString()).divide(new BigDecimal(totalCount.toString()), 4, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100));
  2287 + okPercentage = multiply.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
  2288 + errorPercentage = new BigDecimal(100.00).subtract(new BigDecimal(okPercentage)).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
  2289 + }
  2290 + matDeliverQuery.setVisitResult(fsMatdeliverFollowRequest.getVisitResult());
  2291 +
  2292 +
  2293 + // 转介地址
  2294 + matDeliverQuery.setProvinceZJId(fsMatdeliverFollowRequest.getProvinceZJId());
  2295 + matDeliverQuery.setCityZJId(fsMatdeliverFollowRequest.getCityZJId());
  2296 + matDeliverQuery.setAreaZJId(fsMatdeliverFollowRequest.getAreaZJId());
  2297 + matDeliverQuery.setStreetZJId(fsMatdeliverFollowRequest.getStreetZJId());
  2298 +
  2299 +
  2300 + if (fsMatdeliverFollowRequest.getType() == 1) {
  2301 + if (StringUtils.isNotEmpty(fsMatdeliverFollowRequest.getNeed())) {//是否分页
  2302 + matDeliverQuery.setNeed("need");
  2303 + matDeliverQuery.setLimit(fsMatdeliverFollowRequest.getLimit());
  2304 + matDeliverQuery.setPage(fsMatdeliverFollowRequest.getPage());
  2305 +
  2306 + System.out.println("::::::::产后访视::::"+matDeliverQuery.convertToQuery().convertToMongoQuery().toString());
  2307 + maternalDeliverModelList = matDeliverService.pageQuery(matDeliverQuery);
  2308 + } else {
  2309 + maternalDeliverModelList = matDeliverService.query(matDeliverQuery);
  2310 + }
  2311 +
  2312 + if (CollectionUtils.isEmpty(maternalDeliverModelList)) {
  2313 +
  2314 + HashMap <String, Object> map = new HashMap <>();
  2315 + map.put("matdeliverFollowListResults", listResponse);
  2316 + listResponse.setObject(map);
  2317 + listResponse.setPageInfo(matDeliverQuery.getPageInfo());
  2318 + // 没有查到,直接抛出
  2319 + return listResponse;
  2320 + }
  2321 +
  2322 + PatientsQuery patientsQuery = new PatientsQuery();
  2323 + List <String> parentIdList = new ArrayList <>();
  2324 + for (MaternalDeliverModel md : maternalDeliverModelList) {
  2325 + parentIdList.add(md.getParentId());
  2326 + }
  2327 + patientsQuery.setIds(parentIdList);
  2328 + List <Patients> patientsList = patientsService.queryPatient(patientsQuery);
  2329 + Map <String, MatdeliverFollowListResult> patientsMap = new HashMap <>();
  2330 + for (Patients patients : patientsList) {
  2331 + parentIdList.add(patients.getId());
  2332 + MatdeliverFollowListResult matdeliverFollowListResult = new MatdeliverFollowListResult();
  2333 + matdeliverFollowListResult.setPid(patients.getPid());
  2334 + matdeliverFollowListResult.setPatientId(patients.getId());
  2335 + matdeliverFollowListResult.setPostViewDay(DateUtil.daysBetween(patients.getFmDate(), new Date()) + "天");
  2336 +
  2337 + // 居住地
  2338 + if (fsMatdeliverFollowRequest.getFlag() == null) {
  2339 + matdeliverFollowListResult.setAddress(CommonsHelper.getResidence(patients.getProvinceRegisterId(), patients.getCityRegisterId(), patients.getAreaRegisterId(), patients.getStreetRegisterId(), patients.getAddressRegister(), basicConfigService));
  2340 + } else {
  2341 + //产后休养地
  2342 + matdeliverFollowListResult.setPostpartumAddress(CommonsHelper.getResidence(
  2343 + patients.getProvincePostRestId() != null ? patients.getProvincePostRestId() : patients.getProvinceRegisterId(),
  2344 + patients.getCityPostRestId() != null ? patients.getCityPostRestId() : patients.getCityRegisterId(),
  2345 + patients.getAreaPostRestId() != null ? patients.getAreaPostRestId() : patients.getAreaRegisterId(),
  2346 + patients.getStreetPostRestId() != null ? patients.getStreetPostRestId() : patients.getStreetRegisterId(),
  2347 + patients.getAddressPostRest() != null ? patients.getAddressPostRest() : patients.getAddressRegister(),
  2348 + basicConfigService));
  2349 + }
  2350 +
  2351 +
  2352 + // 电话转换
  2353 + matdeliverFollowListResult.setPhone(patients.getPhone());
  2354 + //姓名
  2355 + matdeliverFollowListResult.setName(patients.getUsername());
  2356 + // 年龄
  2357 + matdeliverFollowListResult.setAge(DateUtil.getAge(patients.getBirth()));
  2358 +
  2359 + //放入map,进行下一步数据整合
  2360 + patientsMap.put(patients.getId(), matdeliverFollowListResult);
  2361 +
  2362 +
  2363 + }
  2364 +
  2365 +
  2366 + for (MaternalDeliverModel deliverModel : maternalDeliverModelList) {
  2367 + MatdeliverFollowListResult matdeliverFollowListResult = patientsMap.get(deliverModel.getParentId());
  2368 +
  2369 + if (matdeliverFollowListResult == null) {
  2370 + continue;
  2371 + }
  2372 + // 转介地
  2373 + String provinceZJId = deliverModel.getProvinceZJId();
  2374 + String cityZJId = deliverModel.getCityZJId();
  2375 + String areaZJId = deliverModel.getAreaZJId();
  2376 + String streetZJId = deliverModel.getStreetZJId();
  2377 + if (StringUtils.isNotEmpty(provinceZJId) && StringUtils.isNotEmpty(cityZJId) && StringUtils.isNotEmpty(areaZJId) && StringUtils.isNotEmpty(streetZJId)) {
  2378 + matdeliverFollowListResult.setAddressZJ(CommonsHelper.getResidence(provinceZJId, cityZJId, areaZJId, streetZJId, deliverModel.getAddressZJ(), basicConfigService));
  2379 + } else {
  2380 + matdeliverFollowListResult.setAddressZJ("");
  2381 + }
  2382 +
  2383 + //最后一次随访Id
  2384 + matdeliverFollowListResult.setMatFollowId(deliverModel.getMatFollowId());
  2385 + matdeliverFollowListResult.setDueDate(deliverModel.getDueDate());
  2386 + matdeliverFollowListResult.setId(deliverModel.getId());
  2387 + matdeliverFollowListResult.setVisitStatus(PostpartumFollowMakeEnums.StatusEnum.getTitle(deliverModel.getVisitStatus()));
  2388 +
  2389 + //机构信息
  2390 + try {
  2391 + Organization organization = organizationService.getOrganization(Integer.valueOf(deliverModel.getFmHospital()));
  2392 + if (organization != null) {
  2393 + // 市
  2394 + BasicConfig cityName = basicConfigService.getOneBasicConfigById(organization.getCityId());
  2395 + // 区
  2396 + BasicConfig areaName = basicConfigService.getOneBasicConfigById(organization.getAreaId());
  2397 + if (cityName != null) {
  2398 + matdeliverFollowListResult.setHospitalCityName(cityName.getName());
  2399 + }
  2400 + if (areaName != null) {
  2401 + matdeliverFollowListResult.setHospitalAreaName(areaName.getName());
  2402 + }
  2403 + //分娩医院
  2404 + matdeliverFollowListResult.setFmHospital(organization.getName());
  2405 + }
  2406 + } catch (Exception e) {
  2407 + matdeliverFollowListResult.setFmHospital(deliverModel.getFmHospital());
  2408 + }
  2409 + matdeliverFollowListResult.setContactResult(deliverModel.getContactResult());
  2410 + //预约联系结果
  2411 + if (deliverModel.getContactResult() != null) {
  2412 + matdeliverFollowListResult.setContactResultStr(PostpartumFollowMakeEnums.ResultEnum.getTitle(deliverModel.getContactResult()));
  2413 + if (deliverModel.getContactResult() == 1) {//预约成功,返回访视类型
  2414 + //访视类型
  2415 + if (deliverModel.getMakeType() != null) {
  2416 + matdeliverFollowListResult.setMakeType(PostpartumFollowMakeEnums.TypeEnum.getTitle(deliverModel.getMakeType()));
  2417 + }
  2418 + }
  2419 + }
  2420 + //产妇确认结果
  2421 + if (deliverModel.getVisitAffirm() != null) {
  2422 + matdeliverFollowListResult.setVisitAffirm(PostpartumFollowMakeEnums.VisitAffirmEnum.getTitle(deliverModel.getVisitAffirm()));
  2423 + }
  2424 +
  2425 +
  2426 + //下次访视时间
  2427 + if (deliverModel.getNextVisitDate() != null) {
  2428 + matdeliverFollowListResult.setNextVisitDate(DateUtil.getyyyy_MM_dd(deliverModel.getNextVisitDate()));
  2429 + }
  2430 + //访视状态 0--是修改后替换的初始值
  2431 + if (deliverModel.getVisitStatus() != null && deliverModel.getVisitStatus() == 1) {
  2432 + matdeliverFollowListResult.setVisitResult("待访视");
  2433 + }
  2434 + //访视结果
  2435 + if (deliverModel.getVisitResult() != null && deliverModel.getVisitResult() != 0) {
  2436 + matdeliverFollowListResult.setVisitResult(PostpartumFollowMakeEnums.ResultEnum.getTitle(deliverModel.getVisitResult()));
  2437 + }
  2438 +
  2439 + matdeliverFollowListResult.setFollowStage(2);
  2440 + if (StringUtils.isNotEmpty(deliverModel.getDueDate())) {//根据分娩时间判断访视时间是否过期
  2441 + Date resultDate = DateUtil.parseYMD(deliverModel.getDueDate());
  2442 + boolean isScope = DateUtil.isBetween(resultDate, DateUtil.addDay(new Date(), -29), new Date());
  2443 + matdeliverFollowListResult.setFollowStage(isScope ? 1 : 2);
  2444 + }
  2445 +
  2446 + // 需求:现住址或者产后休养地址是衡水市桃城区的,
  2447 + // 添加字段:分娩日期、胎次、分娩方式、分娩孕周、高危因素、户籍地址、现住址、产后休养地址
  2448 + Patients patient = patientsService.findOnePatientById(deliverModel.getParentId());
  2449 + boolean isTaocheng = false;
  2450 + if (patient != null) {
  2451 + /* String cityId = organization.getCityId();
  2452 + String areaId = organization.getAreaId();*/
  2453 +
  2454 + // 戶籍地址
  2455 + String address = patient.getAddress();
  2456 + String provinceId = patient.getProvinceId();
  2457 + String cityId = patient.getCityId();
  2458 + String areaId = patient.getAreaId();
  2459 + String streetId = patient.getStreetId();
  2460 +
  2461 + // 产后休养地
  2462 + String addressPostRest = patient.getAddressPostRest();
  2463 + String provincePostRestId = patient.getProvincePostRestId();
  2464 + String cityPostRestId = patient.getCityPostRestId();
  2465 + String areaPostRestId = patient.getAreaPostRestId();
  2466 + String streetPostRestId = patient.getStreetPostRestId();
  2467 +
  2468 + // 居住地
  2469 + String addressRegister = patient.getAddressRegister();
  2470 + String provinceRegisterId = patient.getProvinceRegisterId();
  2471 + String cityRegisterId = patient.getCityRegisterId();
  2472 + String areaRegisterId = patient.getAreaRegisterId();
  2473 + String streetRegisterId = patient.getStreetRegisterId();
  2474 +
  2475 + // 修养地和居住地是否为衡水市桃城区的
  2476 + boolean existByPostRest = "12".equals(cityPostRestId) && "160".equals(areaPostRestId);
  2477 + boolean existByRegister = "12".equals(cityRegisterId) && "160".equals(areaRegisterId);
  2478 + if (existByPostRest || existByRegister) {
  2479 + isTaocheng = true;
  2480 + matdeliverFollowListResult.setDeliverTimeStr(deliverModel.getDueDate());
  2481 + matdeliverFollowListResult.setTaiSize(deliverModel.getTireNumber());
  2482 + matdeliverFollowListResult.setDeliveryTypeStr(deliverModel.getDeliveryMode());
  2483 + matdeliverFollowListResult.setDeliveryWeek(deliverModel.getDueWeek());
  2484 + List <Map <String, Object>> list = new ArrayList <>();
  2485 + List <String> riskFactorId = patient.getRiskFactorId();
  2486 + if (CollectionUtils.isNotEmpty(riskFactorId)) {
  2487 + for (String id : riskFactorId) {
  2488 + HashMap <String, Object> hashMap = new HashMap <>(16);
  2489 + BasicConfig config = basicConfigService.getOneBasicConfigById(id);
  2490 + hashMap.put("id", id);
  2491 + hashMap.put("bean", config);
  2492 + list.add(hashMap);
  2493 +
  2494 + }
  2495 + }
  2496 + matdeliverFollowListResult.setHighRiskFactors(list);
  2497 +
  2498 + // 户籍
  2499 + String province = getAddressNameById(provinceId);
  2500 + String city = getAddressNameById(cityId);
  2501 + String area = getAddressNameById(areaId);
  2502 + String street = getAddressNameById(streetId);
  2503 + matdeliverFollowListResult.setHujiAddress(province + city + area + street + address);
  2504 +
  2505 + // 居住地
  2506 + String provinceRegister = getAddressNameById(provinceRegisterId);
  2507 + String cityRegister = getAddressNameById(cityRegisterId);
  2508 + String areaRegister = getAddressNameById(areaRegisterId);
  2509 + String streetRegister = getAddressNameById(streetRegisterId);
  2510 + matdeliverFollowListResult.setCurrentAddress(provinceRegister + cityRegister + areaRegister + streetRegister + addressRegister);
  2511 +
  2512 + // 产后休养地
  2513 + String provincePostRest = getAddressNameById(provincePostRestId);
  2514 + String cityPostRest = getAddressNameById(cityPostRestId);
  2515 + String areaPostRest = getAddressNameById(areaPostRestId);
  2516 + String streetPostRest = getAddressNameById(streetPostRestId);
  2517 + matdeliverFollowListResult.setPostpartumAddress(provincePostRest + cityPostRest + areaPostRest + streetPostRest + addressPostRest);
  2518 + }
  2519 + if("12".equals(cityRegisterId) ){
  2520 + // 居住地
  2521 + String provinceRegister = getAddressNameById(provinceRegisterId);
  2522 + String cityRegister = getAddressNameById(cityRegisterId);
  2523 + String areaRegister = getAddressNameById(areaRegisterId);
  2524 + String streetRegister = getAddressNameById(streetRegisterId);
  2525 + matdeliverFollowListResult.setCurrentAddress(provinceRegister + cityRegister + areaRegister + streetRegister + addressRegister);
  2526 + }
  2527 +
  2528 + // 添加高危等级、失败原因
  2529 + String riskLevelId = patient.getRiskLevelId();
  2530 + List <Map <String, Object>> objects = new ArrayList <>();
  2531 + if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(riskLevelId)) {
  2532 + List <String> ids = JsonUtil.toList(riskLevelId, String.class);
  2533 + for (String id : ids) {
  2534 + String s = HosptialHighRiskFacade.colorMap.get(id);
  2535 + HashMap <String, Object> map = new HashMap <>();
  2536 + map.put("color", s);
  2537 + map.put("id", id);
  2538 + objects.add(map);
  2539 + }
  2540 + }
  2541 + matdeliverFollowListResult.setHighRiskLevels(objects);
  2542 +
  2543 + List <MatdeliverFollowModel> followModels = mongoTemplate.find(Query.query(Criteria.where("pid").is(patient.getPid())), MatdeliverFollowModel.class);
  2544 + // 1-无人接听电话、2-拒绝访视、3-其他
  2545 + String contactReasonStr = "";
  2546 + if (CollectionUtils.isNotEmpty(followModels)) {
  2547 + MatdeliverFollowModel model = followModels.get(followModels.size() - 1);
  2548 + Integer contactReason = model.getContactReason();
  2549 + if (contactReason != null) {
  2550 + contactReasonStr = PostpartumFollowMakeEnums.ContactReasonEnum.getTitle(contactReason);
  2551 + }
  2552 + //访视医生
  2553 + matdeliverFollowListResult.setVisitDoctor(CommonsHelper.getUserName(model.getVisitDoctor(), usersService));
  2554 + ;
  2555 + }
  2556 + matdeliverFollowListResult.setCauseFailure(contactReasonStr);
  2557 + }
  2558 +
  2559 + matdeliverFollowListResult.setTaoCheng(isTaocheng);
  2560 +
  2561 + // 推送时间
  2562 + String pushTime = "";
  2563 + List <MatdeliverFollowModel> deliverId = mongoTemplate.find(Query.query(Criteria.where("deliverId").is(deliverModel.getId())), MatdeliverFollowModel.class);
  2564 + if (CollectionUtils.isNotEmpty(deliverId)) {
  2565 + MatdeliverFollowModel model = deliverId.get(deliverId.size() - 1);
  2566 + pushTime = DateUtil.getyyyy_MM_dd(model.getCreateDate());
  2567 + }
  2568 + matdeliverFollowListResult.setPushTime(pushTime);
  2569 +
  2570 + data.add(matdeliverFollowListResult);
  2571 + }
  2572 + } else {
  2573 + matDeliverQuery.setNeNullVisitDoctor(true);
  2574 + List<HashMap> list = matDeliverService.aggregateOne(matDeliverQuery);
  2575 + for (HashMap map : list) {
  2576 + CjStatisticsResult cjStatisticsResult = new CjStatisticsResult();
  2577 + String dId = null;
  2578 + Object id = map.get("_id");
  2579 + if (null != id) {
  2580 + dId = id.toString();
  2581 + } else {
  2582 + continue;
  2583 + }
  2584 +
  2585 + cjStatisticsResult.setdId(dId);
  2586 + cjStatisticsResult.setCount(map.get("count").toString());
  2587 + try {
  2588 + if (null == dId) {
  2589 + cjStatisticsResult.setdName("未知");
  2590 + } else {
  2591 + Users users = usersService.getUsers(Integer.valueOf(dId));
  2592 + if (null != users) {
  2593 + cjStatisticsResult.setdName(users.getName());
  2594 + }
  2595 + }
  2596 + } catch (Exception e) {
  2597 + }
  2598 + data.add(cjStatisticsResult);
  2599 + }
  2600 + Collections.sort(data, new CjStatisticsResult());
  2601 + }
  2602 + return listResponse.setErrormsg("成功").setErrorcode(ErrorCodeConstants.SUCCESS).setData(data).setPageInfo(matDeliverQuery.getPageInfo());
  2603 + }
  2604 +
  2605 + /**
2038 2606 * 分娩后随访列表数据
2039 2607 *
2040 2608 * @param matdeliverFollowRequest
... ... @@ -2173,7 +2741,7 @@
2173 2741 matDeliverQuery.setYn(YnEnums.YES.getId());
2174 2742  
2175 2743 //产后天数=当前时间-分娩时间
2176   - if(matdeliverFollowRequest.getPostViewDay()>0){
  2744 + if(matdeliverFollowRequest.getPostViewDay() !=null && matdeliverFollowRequest.getPostViewDay()>0){
2177 2745 matdeliverFollowRequest.setBirthDate(DateUtil.getyyyy_MM_dd_hms(DateUtil.addDay(new Date(), -matdeliverFollowRequest.getPostViewDay())));
2178 2746 }
2179 2747  
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatdeliverFollowFacade.java View file @ 8497374
... ... @@ -165,6 +165,14 @@
165 165 return matDeliverFacade.postpartumDeliver(matdeliverFollowRequest);
166 166 }
167 167  
  168 + /**
  169 + *访视统计
  170 + */
  171 + public BaseResponse queryStatis(FsMatdeliverFollowRequest fsMatdeliverFollowRequest, Integer id) {
  172 + fsMatdeliverFollowRequest.setOperatorId(id);
  173 + fsMatdeliverFollowRequest.setIsArea("area");
  174 + return matDeliverFacade.queryStatis(fsMatdeliverFollowRequest);
  175 + }
168 176  
169 177 /**
170 178 * 新增或修改一条访视记录
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/FsMatdeliverFollowRequest.java View file @ 8497374
  1 +package com.lyms.platform.operate.web.request;
  2 +
  3 +import java.util.Date;
  4 +
  5 +/**
  6 + * @auther yangfei
  7 + * @createTime 2017年11月21日 17时58分
  8 + * @discription 随访列查询条件
  9 + */
  10 +public class FsMatdeliverFollowRequest extends BasePageQueryRequest{
  11 +
  12 + //0 统计 1 类别
  13 + private int type=0;
  14 +
  15 + //医生id
  16 + private String dId;
  17 +
  18 + /**
  19 + * 产后天数
  20 + */
  21 + private Integer postViewDay;
  22 +
  23 + /**
  24 + * 当前用户
  25 + */
  26 + private Integer operatorId;
  27 + /**
  28 + * @discription 查询号
  29 + */
  30 + private String queryNo;
  31 + /**
  32 + * 访视阶段 1-访视期内、2-超出访视期
  33 + */
  34 + private Integer followStage;
  35 +
  36 + /**
  37 + * 访视时间开始
  38 + */
  39 + private Date followStarDate;
  40 + /**
  41 + * 访视时间结束
  42 + */
  43 + private Date followEndDate;
  44 +
  45 + /**
  46 + * @discription 是否区域
  47 + */
  48 + private String isArea;
  49 + /**
  50 + * @discription 分娩日期
  51 + */
  52 + private String birthDate;
  53 +
  54 + //居住地
  55 + private String provinceId;
  56 + private String cityId;
  57 + private String areaId;
  58 + private String streetId;
  59 +
  60 + /**
  61 + * @discription 分娩医院省
  62 + */
  63 + private String hospitalProvinceId;
  64 +
  65 + /**
  66 + * @discription 分娩医院市
  67 + */
  68 + private String hospitalCityId;
  69 +
  70 + /**
  71 + * @discription 分娩医院区县
  72 + */
  73 + private String hospitalAreaId;
  74 +
  75 + /**
  76 + * @discription 分娩医院id
  77 + */
  78 + private String hospitalId;
  79 +
  80 + /**
  81 + * 预约联系结果(1-成功、2-失败)
  82 + */
  83 + private Integer contactResult;
  84 +
  85 + /**
  86 + * 预约失败理由(1-无人接听电话、2-拒绝访视、3-其他)
  87 + */
  88 + private Integer contactReason;
  89 + /**
  90 + * 访视状态(1-待访视、2-已访视)
  91 + */
  92 + private Integer visitStatus;
  93 + /**
  94 + * 预约访视类型(1-上门访视、2-电话访视)
  95 + */
  96 + private Integer makeType;
  97 + /**
  98 + * 访视结果(1-成功、2-失败)
  99 + */
  100 + private Integer visitResult;
  101 + /**
  102 + * 产妇随访确认(1-待确认、2-已确认)
  103 + */
  104 + private Integer visitAffirm;
  105 + /**
  106 + * 是否分页(导出不分页,普通分页)
  107 + */
  108 + private String need;
  109 +
  110 + private String riskId;
  111 + private Integer startDay;
  112 + private Integer endDay;
  113 +
  114 + //访视机构
  115 + private String fsHospitalId;
  116 +
  117 + /**
  118 + * 开始年龄段
  119 + */
  120 + private String startAge;
  121 +
  122 + /**
  123 + * 结束年龄段
  124 + */
  125 + private String endAge;
  126 +
  127 + /**
  128 + * 开始访视时间
  129 + */
  130 + private String fsStartTime;
  131 +
  132 + /**
  133 + * 结束访视时间
  134 + */
  135 + private String fsEndTime;
  136 +
  137 + /**
  138 + * 高危等级
  139 + */
  140 + private String highRiskLevel;
  141 +
  142 + private String startPushTime;
  143 +
  144 + private String endPushTime;
  145 +
  146 + /**
  147 + * 转介地
  148 + */
  149 + private String provinceZJId;
  150 + private String cityZJId;
  151 + private String areaZJId;
  152 + private String streetZJId;
  153 +
  154 +
  155 + //产后休养地址
  156 + private String provincePostRestId;
  157 + private String cityPostRestId;
  158 + private String areaPostRestId;
  159 + private String streetPostRestId;
  160 +
  161 + //空表示查询的是原来的追访模式,即根据建档选择的访视机构来访视,1,市, 2 区
  162 + private Integer flag;
  163 +
  164 + public int getType() {
  165 + return type;
  166 + }
  167 +
  168 + public void setType(int type) {
  169 + this.type = type;
  170 + }
  171 +
  172 + public String getdId() {
  173 + return dId;
  174 + }
  175 +
  176 + public void setdId(String dId) {
  177 + this.dId = dId;
  178 + }
  179 +
  180 + public Integer getPostViewDay() {
  181 + return postViewDay;
  182 + }
  183 +
  184 + public void setPostViewDay(Integer postViewDay) {
  185 + this.postViewDay = postViewDay;
  186 + }
  187 +
  188 + public String getStreetPostRestId() {
  189 + return streetPostRestId;
  190 + }
  191 +
  192 + public void setStreetPostRestId(String streetPostRestId) {
  193 + this.streetPostRestId = streetPostRestId;
  194 + }
  195 +
  196 + public String getProvincePostRestId() {
  197 + return provincePostRestId;
  198 + }
  199 +
  200 + public void setProvincePostRestId(String provincePostRestId) {
  201 + this.provincePostRestId = provincePostRestId;
  202 + }
  203 +
  204 + public String getCityPostRestId() {
  205 + return cityPostRestId;
  206 + }
  207 +
  208 + public void setCityPostRestId(String cityPostRestId) {
  209 + this.cityPostRestId = cityPostRestId;
  210 + }
  211 +
  212 + public Integer getFlag() {
  213 + return flag;
  214 + }
  215 +
  216 + public void setFlag(Integer flag) {
  217 + this.flag = flag;
  218 + }
  219 +
  220 + public String getAreaPostRestId() {
  221 + return areaPostRestId;
  222 + }
  223 +
  224 + public void setAreaPostRestId(String areaPostRestId) {
  225 + this.areaPostRestId = areaPostRestId;
  226 + }
  227 +
  228 + public String getProvinceZJId() {
  229 + return provinceZJId;
  230 + }
  231 +
  232 + public void setProvinceZJId(String provinceZJId) {
  233 + this.provinceZJId = provinceZJId;
  234 + }
  235 +
  236 + public String getCityZJId() {
  237 + return cityZJId;
  238 + }
  239 +
  240 + public void setCityZJId(String cityZJId) {
  241 + this.cityZJId = cityZJId;
  242 + }
  243 +
  244 + public String getAreaZJId() {
  245 + return areaZJId;
  246 + }
  247 +
  248 + public void setAreaZJId(String areaZJId) {
  249 + this.areaZJId = areaZJId;
  250 + }
  251 +
  252 + public String getStreetZJId() {
  253 + return streetZJId;
  254 + }
  255 +
  256 + public void setStreetZJId(String streetZJId) {
  257 + this.streetZJId = streetZJId;
  258 + }
  259 +
  260 + public String getStartPushTime() {
  261 + return startPushTime;
  262 + }
  263 +
  264 + public void setStartPushTime(String startPushTime) {
  265 + this.startPushTime = startPushTime;
  266 + }
  267 +
  268 + public String getEndPushTime() {
  269 + return endPushTime;
  270 + }
  271 +
  272 + public void setEndPushTime(String endPushTime) {
  273 + this.endPushTime = endPushTime;
  274 + }
  275 +
  276 + public String getStartAge() {
  277 + return startAge;
  278 + }
  279 +
  280 + public void setStartAge(String startAge) {
  281 + this.startAge = startAge;
  282 + }
  283 +
  284 + public String getEndAge() {
  285 + return endAge;
  286 + }
  287 +
  288 + public void setEndAge(String endAge) {
  289 + this.endAge = endAge;
  290 + }
  291 +
  292 + public String getFsStartTime() {
  293 + return fsStartTime;
  294 + }
  295 +
  296 + public void setFsStartTime(String fsStartTime) {
  297 + this.fsStartTime = fsStartTime;
  298 + }
  299 +
  300 + public String getFsEndTime() {
  301 + return fsEndTime;
  302 + }
  303 +
  304 + public void setFsEndTime(String fsEndTime) {
  305 + this.fsEndTime = fsEndTime;
  306 + }
  307 +
  308 + public String getHighRiskLevel() {
  309 + return highRiskLevel;
  310 + }
  311 +
  312 + public void setHighRiskLevel(String highRiskLevel) {
  313 + this.highRiskLevel = highRiskLevel;
  314 + }
  315 +
  316 + public String getFsHospitalId() {
  317 + return fsHospitalId;
  318 + }
  319 +
  320 + public void setFsHospitalId(String fsHospitalId) {
  321 + this.fsHospitalId = fsHospitalId;
  322 + }
  323 +
  324 + public String getRiskId() {
  325 + return riskId;
  326 + }
  327 +
  328 + public void setRiskId(String riskId) {
  329 + this.riskId = riskId;
  330 + }
  331 +
  332 + public Integer getStartDay() {
  333 + return startDay;
  334 + }
  335 +
  336 + public void setStartDay(Integer startDay) {
  337 + this.startDay = startDay;
  338 + }
  339 +
  340 + public Integer getEndDay() {
  341 + return endDay;
  342 + }
  343 +
  344 + public void setEndDay(Integer endDay) {
  345 + this.endDay = endDay;
  346 + }
  347 +
  348 + public Date getFollowStarDate() {
  349 + return followStarDate;
  350 + }
  351 +
  352 + public void setFollowStarDate(Date followStarDate) {
  353 + this.followStarDate = followStarDate;
  354 + }
  355 +
  356 + public Date getFollowEndDate() {
  357 + return followEndDate;
  358 + }
  359 +
  360 + public void setFollowEndDate(Date followEndDate) {
  361 + this.followEndDate = followEndDate;
  362 + }
  363 +
  364 + public Integer getFollowStage() {
  365 + return followStage;
  366 + }
  367 +
  368 + public void setFollowStage(Integer followStage) {
  369 + this.followStage = followStage;
  370 + }
  371 +
  372 + public Integer getMakeType() {
  373 + return makeType;
  374 + }
  375 +
  376 + public void setMakeType(Integer makeType) {
  377 + this.makeType = makeType;
  378 + }
  379 +
  380 + public String getNeed() {
  381 + return need;
  382 + }
  383 +
  384 + public void setNeed(String need) {
  385 + this.need = need;
  386 + }
  387 +
  388 + public String getProvinceId() {
  389 + return provinceId;
  390 + }
  391 +
  392 + public void setProvinceId(String provinceId) {
  393 + this.provinceId = provinceId;
  394 + }
  395 +
  396 + public String getCityId() {
  397 + return cityId;
  398 + }
  399 +
  400 + public void setCityId(String cityId) {
  401 + this.cityId = cityId;
  402 + }
  403 +
  404 + public String getAreaId() {
  405 + return areaId;
  406 + }
  407 +
  408 + public void setAreaId(String areaId) {
  409 + this.areaId = areaId;
  410 + }
  411 +
  412 + public String getStreetId() {
  413 + return streetId;
  414 + }
  415 +
  416 + public void setStreetId(String streetId) {
  417 + this.streetId = streetId;
  418 + }
  419 +
  420 + public Integer getVisitStatus() {
  421 + return visitStatus;
  422 + }
  423 +
  424 + public void setVisitStatus(Integer visitStatus) {
  425 + this.visitStatus = visitStatus;
  426 + }
  427 +
  428 + public Integer getOperatorId() {
  429 + return operatorId;
  430 + }
  431 +
  432 + public void setOperatorId(Integer operatorId) {
  433 + this.operatorId = operatorId;
  434 + }
  435 +
  436 + public String getQueryNo() {
  437 + return queryNo;
  438 + }
  439 +
  440 + public void setQueryNo(String queryNo) {
  441 + this.queryNo = queryNo;
  442 + }
  443 +
  444 + public String getBirthDate() {
  445 + return birthDate;
  446 + }
  447 +
  448 + public void setBirthDate(String birthDate) {
  449 + this.birthDate = birthDate;
  450 + }
  451 +
  452 + public String getIsArea() {
  453 + return isArea;
  454 + }
  455 +
  456 + public void setIsArea(String isArea) {
  457 + this.isArea = isArea;
  458 + }
  459 +
  460 + public String getHospitalProvinceId() {
  461 + return hospitalProvinceId;
  462 + }
  463 +
  464 + public void setHospitalProvinceId(String hospitalProvinceId) {
  465 + this.hospitalProvinceId = hospitalProvinceId;
  466 + }
  467 +
  468 + public String getHospitalCityId() {
  469 + return hospitalCityId;
  470 + }
  471 +
  472 + public void setHospitalCityId(String hospitalCityId) {
  473 + this.hospitalCityId = hospitalCityId;
  474 + }
  475 +
  476 + public String getHospitalAreaId() {
  477 + return hospitalAreaId;
  478 + }
  479 +
  480 + public void setHospitalAreaId(String hospitalAreaId) {
  481 + this.hospitalAreaId = hospitalAreaId;
  482 + }
  483 +
  484 + public String getHospitalId() {
  485 + return hospitalId;
  486 + }
  487 +
  488 + public void setHospitalId(String hospitalId) {
  489 + this.hospitalId = hospitalId;
  490 + }
  491 +
  492 + public Integer getContactResult() {
  493 + return contactResult;
  494 + }
  495 +
  496 + public void setContactResult(Integer contactResult) {
  497 + this.contactResult = contactResult;
  498 + }
  499 +
  500 + public Integer getContactReason() {
  501 + return contactReason;
  502 + }
  503 +
  504 + public void setContactReason(Integer contactReason) {
  505 + this.contactReason = contactReason;
  506 + }
  507 +
  508 + public Integer getVisitResult() {
  509 + return visitResult;
  510 + }
  511 +
  512 + public void setVisitResult(Integer visitResult) {
  513 + this.visitResult = visitResult;
  514 + }
  515 +
  516 + public Integer getVisitAffirm() {
  517 + return visitAffirm;
  518 + }
  519 +
  520 + public void setVisitAffirm(Integer visitAffirm) {
  521 + this.visitAffirm = visitAffirm;
  522 + }
  523 +}