Commit e4677acde0b5250d0689035d7845a28c0eb04a8b
1 parent
3be73b83f0
Exists in
master
and in
6 other branches
孕妇课程调查
Showing 2 changed files with 3 additions and 399 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CourseFacade.java
View file @
e4677ac
... | ... | @@ -811,6 +811,9 @@ |
811 | 811 | data.put("courseTypeEvaluates",model.getCourseTypeEvaluates()); |
812 | 812 | |
813 | 813 | |
814 | + data.put("courseTypeScore",model.getCourseTypeSocre()); | |
815 | + data.put("courseDocScore",model.getCourseDocSocre()); | |
816 | + | |
814 | 817 | CourseQuery query = new CourseQuery(); |
815 | 818 | query.setYn(YnEnums.YES.getId()); |
816 | 819 | query.setId(model.getCourseId()); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
e4677ac
... | ... | @@ -1993,7 +1993,6 @@ |
1993 | 1993 | matDeliverQuery.setLimit(childbirthManagerRequest.getLimit()); |
1994 | 1994 | matDeliverQuery.setPage(childbirthManagerRequest.getPage()); |
1995 | 1995 | matDeliverQuery.setNeed("need"); |
1996 | - System.out.println(matDeliverQuery.convertToQuery().convertToMongoQuery().toString()); | |
1997 | 1996 | maternalDeliverModelList = matDeliverService.pageQuery(matDeliverQuery); |
1998 | 1997 | // 这里就设置分页内容 |
1999 | 1998 | childbirthManagerResult.setPageInfo(matDeliverQuery.getPageInfo()); |
... | ... | @@ -2038,404 +2037,6 @@ |
2038 | 2037 | } |
2039 | 2038 | } |
2040 | 2039 | } |
2041 | - | |
2042 | - | |
2043 | -// for (MaternalDeliverModel maternalDeliverModel : maternalDeliverModelList) { | |
2044 | -// Patients patients = patientsMap.get(maternalDeliverModel.getParentId()); | |
2045 | -// // 开始封装数据 | |
2046 | -// ChildbirthManagerQueryModel childbirthManagerQueryModel = new ChildbirthManagerQueryModel(); | |
2047 | -// if (maternalDeliverModel != null) { | |
2048 | -// BeanUtils.copy(maternalDeliverModel, childbirthManagerQueryModel); | |
2049 | -// } | |
2050 | -// BeanUtils.copy(patients, childbirthManagerQueryModel); | |
2051 | -// // 分娩孕周 | |
2052 | -// String week = (patients.getFmWeek() / 7) + ""; | |
2053 | -// int day = (patients.getFmWeek() % 7); | |
2054 | -// childbirthManagerQueryModel.setDueWeek("孕" + week + "周" + (day > 0 ? "+" + day + "天" : "")); | |
2055 | -// // 分娩日期 | |
2056 | -// childbirthManagerQueryModel.setDueDate(DateUtil.getyyyy_MM_dd(patients.getFmDate())); | |
2057 | -// // name | |
2058 | -// childbirthManagerQueryModel.setName(patients.getUsername()); | |
2059 | -// // 各种id | |
2060 | -// childbirthManagerQueryModel.setPid(patients.getPid()); | |
2061 | -// childbirthManagerQueryModel.setPatientId(patients.getId()); | |
2062 | -// // 居住地 | |
2063 | -// if (childbirthManagerRequest.getInitQuery().contains("address")) { | |
2064 | -// childbirthManagerQueryModel.setAddress(CommonsHelper.getResidence(patients.getProvinceRegisterId(), patients.getCityRegisterId(), patients.getAreaRegisterId(), patients.getStreetRegisterId(), patients.getAddressRegister(), basicConfigService)); | |
2065 | -// } | |
2066 | -// // 电话转换 | |
2067 | -// childbirthManagerQueryModel.setPhone(DefenceUtils.getPhone(patients.getPhone())); | |
2068 | -// childbirthManagerQueryModel.setHusbandPhone(DefenceUtils.getPhone(patients.getHusbandPhone())); | |
2069 | -// // 加密身份证号 | |
2070 | -// childbirthManagerQueryModel.setCardNo(DefenceUtils.getCardNo(patients.getCardNo())); | |
2071 | -// // 年龄 | |
2072 | -// childbirthManagerQueryModel.setAge(DateUtil.getAge(patients.getBirth())); | |
2073 | -// | |
2074 | -// // 居住类型 | |
2075 | -// if (childbirthManagerRequest.getInitQuery().contains("pliveTypeId")) { | |
2076 | -// try { | |
2077 | -// if (StringUtils.isNotEmpty(patients.getPliveTypeId())) { | |
2078 | -// childbirthManagerQueryModel.setPliveTypeId(basicConfigService.getOneBasicConfigById(patients.getPliveTypeId()).getName()); | |
2079 | -// } | |
2080 | -// } catch (Exception e) { | |
2081 | -// // 什么都不干 | |
2082 | -// } | |
2083 | -// } | |
2084 | -// | |
2085 | -// // 户口类型 | |
2086 | -// if (childbirthManagerRequest.getInitQuery().contains("pcensusTypeId")) { | |
2087 | -// try { | |
2088 | -// if (StringUtils.isNotEmpty(patients.getPcensusTypeId())) { | |
2089 | -// childbirthManagerQueryModel.setPcensusTypeId(basicConfigService.getOneBasicConfigById(patients.getPcensusTypeId()).getName()); | |
2090 | -// } | |
2091 | -// } catch (Exception e) { | |
2092 | -// // 什么都不干 | |
2093 | -// } | |
2094 | -// } | |
2095 | -// | |
2096 | -// // 查询活产数 | |
2097 | -// // 妊娠结局,儿童性别,儿童体重,儿童身长,Apgar1分钟,Apgar5分钟,Apgar10分钟,窒息分钟数,新生儿疾病,畸形 | |
2098 | -// if (childbirthManagerRequest.getInitQuery().contains("livingNumber") || childbirthManagerRequest.getInitQuery().contains("pregnancyOut") || childbirthManagerRequest.getInitQuery().contains("sex") || childbirthManagerRequest.getInitQuery().contains("babyWeight") || childbirthManagerRequest.getInitQuery().contains("babyHeight") || childbirthManagerRequest.getInitQuery().contains("apgarScorePf1") || childbirthManagerRequest.getInitQuery().contains("apgarScorePf5") || childbirthManagerRequest.getInitQuery().contains("apgarScorePf10") || childbirthManagerRequest.getInitQuery().contains("asphyxiaM") || childbirthManagerRequest.getInitQuery().contains("babyHealthy") || childbirthManagerRequest.getInitQuery().contains("malformation")) { | |
2099 | -// BabyModelQuery babyModelQuery = new BabyModelQuery(); | |
2100 | -// // babyModelQuery.setYn(YnEnums.YES.getId()); | |
2101 | -// babyModelQuery.setParentId(patients.getId()); | |
2102 | -// babyModelQuery.setDataStatus(false); | |
2103 | -// babyModelQuery.setPregnancyOut(RenShenJieJuEnums.O.getId()); | |
2104 | -// //System.out.println("查询调价n:"+babyModelQuery.convertToQuery().convertToMongoQuery()); | |
2105 | -// List<BabyModel> babyModelList = babyService.queryBabyWithQuery(babyModelQuery); | |
2106 | -// if (CollectionUtils.isNotEmpty(babyModelList)) { | |
2107 | -// childbirthManagerQueryModel.setLivingNumber(babyModelList.size()); | |
2108 | -// } else { | |
2109 | -// if (childbirthManagerQueryModel.getTireNumber() == null) { | |
2110 | -// childbirthManagerQueryModel.setLivingNumber(null); | |
2111 | -// } else { | |
2112 | -// childbirthManagerQueryModel.setLivingNumber(0); | |
2113 | -// } | |
2114 | -// } | |
2115 | -// | |
2116 | -// if (CollectionUtils.isNotEmpty(babyModelList)) { | |
2117 | -// String pregnancyOut = ""; | |
2118 | -// String sex = ""; | |
2119 | -// String babyWeight = ""; | |
2120 | -// String babyHeight = ""; | |
2121 | -// String apgarScorePf1 = ""; | |
2122 | -// String apgarScorePf5 = ""; | |
2123 | -// String apgarScorePf10 = ""; | |
2124 | -// String asphyxiaM = ""; | |
2125 | -// String babyHealthy = ""; | |
2126 | -// String malformation = ""; | |
2127 | -// try { | |
2128 | -// for (BabyModel babyModel : babyModelList) { | |
2129 | -// if (childbirthManagerRequest.getInitQuery().contains("pregnancyOut")) { | |
2130 | -// for (RenShenJieJuEnums renShenJieJuEnums : RenShenJieJuEnums.values()) { | |
2131 | -// if (renShenJieJuEnums.getId().equals(babyModel.getPregnancyOut())) { | |
2132 | -// pregnancyOut += renShenJieJuEnums.getName() + ","; | |
2133 | -// break; | |
2134 | -// } | |
2135 | -// if (StringUtils.isEmpty(pregnancyOut)) { | |
2136 | -// pregnancyOut += "-,"; | |
2137 | -// } | |
2138 | -// } | |
2139 | -// } | |
2140 | -// if (childbirthManagerRequest.getInitQuery().contains("sex")) { | |
2141 | -// for (SexEnum sexEnum : SexEnum.values()) { | |
2142 | -// if (sexEnum.getId().equals(babyModel.getSex())) { | |
2143 | -// sex += sexEnum.getText() + ","; | |
2144 | -// break; | |
2145 | -// } | |
2146 | -// if (StringUtils.isEmpty(sex)) { | |
2147 | -// sex += "-,"; | |
2148 | -// } | |
2149 | -// } | |
2150 | -// } | |
2151 | -// babyWeight += babyModel.getBabyWeight() == null ? "-," : babyModel.getBabyWeight() + ","; | |
2152 | -// babyHeight += babyModel.getBabyHeight() == null ? "-," : babyModel.getBabyHeight() + ","; | |
2153 | -// asphyxiaM += babyModel.getAsphyxiaM() == null ? "-," : babyModel.getAsphyxiaM() + ","; | |
2154 | -// babyHealthy += babyModel.getBabyHealthy() == null ? "-," : babyModel.getBabyHealthy() + ","; | |
2155 | -// if (Integer.valueOf(0).equals(babyModel.getMalformation())) { | |
2156 | -// malformation += "非畸形" + ","; | |
2157 | -// } else if (Integer.valueOf(1).equals(babyModel.getMalformation())) { | |
2158 | -// malformation += "畸形" + ","; | |
2159 | -// } else { | |
2160 | -// malformation += "-,"; | |
2161 | -// } | |
2162 | -// Map<String, String> map = JsonUtil.getMap(babyModel.getApgarScore()); | |
2163 | -// if (MapUtils.isNotEmpty(map)) { | |
2164 | -// apgarScorePf1 += map.get("pf1") == null ? "-," : map.get("pf1") + ","; | |
2165 | -// apgarScorePf5 += map.get("pf5") == null ? "-," : map.get("pf5") + ","; | |
2166 | -// apgarScorePf10 += map.get("pf10") == null ? "-," : map.get("pf10") + ","; | |
2167 | -// } | |
2168 | -// } | |
2169 | -// } catch (Exception e) { | |
2170 | -// // 什么都不干,这么干是为了避开原始数据的问题 | |
2171 | -// } | |
2172 | -// childbirthManagerQueryModel.setPregnancyOut(pregnancyOut.length() == 0 ? "" : pregnancyOut.substring(0, pregnancyOut.length() - 1)); | |
2173 | -// childbirthManagerQueryModel.setSex(sex.length() == 0 ? "" : sex.substring(0, sex.length() - 1)); | |
2174 | -// childbirthManagerQueryModel.setBabyWeight(babyWeight.length() == 0 ? "" : babyWeight.substring(0, babyWeight.length() - 1)); | |
2175 | -// childbirthManagerQueryModel.setBabyHeight(babyHeight.length() == 0 ? "" : babyHeight.substring(0, babyHeight.length() - 1)); | |
2176 | -// childbirthManagerQueryModel.setApgarScorePf1(apgarScorePf1.length() == 0 ? "" : apgarScorePf1.substring(0, apgarScorePf1.length() - 1)); | |
2177 | -// childbirthManagerQueryModel.setApgarScorePf5(apgarScorePf5.length() == 0 ? "" : apgarScorePf5.substring(0, apgarScorePf5.length() - 1)); | |
2178 | -// childbirthManagerQueryModel.setApgarScorePf10(apgarScorePf10.length() == 0 ? "" : apgarScorePf10.substring(0, apgarScorePf10.length() - 1)); | |
2179 | -// childbirthManagerQueryModel.setAsphyxiaM(asphyxiaM.length() == 0 ? "" : asphyxiaM.substring(0, asphyxiaM.length() - 1)); | |
2180 | -// childbirthManagerQueryModel.setBabyHealthy(babyHealthy.length() == 0 ? "" : babyHealthy.substring(0, babyHealthy.length() - 1)); | |
2181 | -// childbirthManagerQueryModel.setMalformation(malformation.length() == 0 ? "" : malformation.substring(0, malformation.length() - 1)); | |
2182 | -// } | |
2183 | -// } | |
2184 | -// | |
2185 | -// if (maternalDeliverModel != null) { | |
2186 | -// // 会阴情况 | |
2187 | -// if (childbirthManagerRequest.getInitQuery().contains("perinealCondition")) { | |
2188 | -// if (StringUtils.isNotEmpty(maternalDeliverModel.getPerinealCondition())) { | |
2189 | -// if ("split".equals(maternalDeliverModel.getPerinealCondition())) { | |
2190 | -// childbirthManagerQueryModel.setPerinealCondition("切开"); | |
2191 | -// } else if ("full".equals(maternalDeliverModel.getPerinealCondition())) { | |
2192 | -// childbirthManagerQueryModel.setPerinealCondition("完整"); | |
2193 | -// } else { | |
2194 | -// childbirthManagerQueryModel.setPerinealCondition("-"); | |
2195 | -// } | |
2196 | -// } | |
2197 | -// } | |
2198 | -// | |
2199 | -// // 失血原因 | |
2200 | -// if (childbirthManagerRequest.getInitQuery().contains("loseBloodCause")) { | |
2201 | -// String loseBloodCauseJson = maternalDeliverModel.getLoseBloodCause(); | |
2202 | -// Map<String, String> loseBloodCauseMap = JsonUtil.getMap(loseBloodCauseJson); | |
2203 | -// if (MapUtils.isNotEmpty(loseBloodCauseMap) && StringUtils.isNotEmpty(loseBloodCauseMap.get("select"))) { | |
2204 | -// for (SXCauseEnums sxCauseEnums : SXCauseEnums.values()) { | |
2205 | -// if (sxCauseEnums.getId().equals(loseBloodCauseMap.get("select"))) { | |
2206 | -// childbirthManagerQueryModel.setLoseBloodCause(sxCauseEnums.getName()); | |
2207 | -// break; | |
2208 | -// } | |
2209 | -// } | |
2210 | -// if (SXCauseEnums.O5.getName().equals(childbirthManagerQueryModel.getLoseBloodCause()) && StringUtils.isNotEmpty(loseBloodCauseMap.get("other"))) { | |
2211 | -// childbirthManagerQueryModel.setLoseBloodCause(loseBloodCauseMap.get("other")); | |
2212 | -// } | |
2213 | -// } else { | |
2214 | -// childbirthManagerQueryModel.setLoseBloodCause(""); | |
2215 | -// } | |
2216 | -// } | |
2217 | -// | |
2218 | -// // 查询分娩方式 | |
2219 | -// childbirthManagerQueryModel.setMaternalDeliverId(maternalDeliverModel.getId()); | |
2220 | -// if (childbirthManagerRequest.getInitQuery().contains("deliveryMode")) { | |
2221 | -// String deliveryModeJson = maternalDeliverModel.getDeliveryMode(); | |
2222 | -// Map<String, String> deliveryModeMap = JsonUtil.getMap(deliveryModeJson); | |
2223 | -// if (MapUtils.isNotEmpty(deliveryModeMap) && StringUtils.isNotEmpty(deliveryModeMap.get("fmfs"))) { | |
2224 | -// for (FmTypeEnums fmTypeEnums : FmTypeEnums.values()) { | |
2225 | -// if (fmTypeEnums.getId().equals(deliveryModeMap.get("fmfs"))) { | |
2226 | -// childbirthManagerQueryModel.setDeliveryMode(fmTypeEnums.getName()); | |
2227 | -// break; | |
2228 | -// } | |
2229 | -// } | |
2230 | -// } else { | |
2231 | -// childbirthManagerQueryModel.setDeliveryMode(""); | |
2232 | -// } | |
2233 | -// } | |
2234 | -// | |
2235 | -// // 产妇情况 | |
2236 | -// if (childbirthManagerRequest.getInitQuery().contains("maternalInfo")) { | |
2237 | -// if (StringUtils.isNotBlank(maternalDeliverModel.getMaternalInfo())) { | |
2238 | -// for (CfEnums cfEnums : CfEnums.values()) { | |
2239 | -// if (cfEnums.getId().equals(maternalDeliverModel.getMaternalInfo())) { | |
2240 | -// childbirthManagerQueryModel.setMaternalInfo(cfEnums.getName()); | |
2241 | -// break; | |
2242 | -// } | |
2243 | -// } | |
2244 | -// } | |
2245 | -// } | |
2246 | -// | |
2247 | -// // 查询接生医生 | |
2248 | -// try { | |
2249 | -// if (childbirthManagerRequest.getInitQuery().contains("deliverDoctor")) { | |
2250 | -// childbirthManagerQueryModel.setDeliverDoctor(usersService.getUsers(Integer.valueOf(maternalDeliverModel.getDeliverDoctor())).getName()); | |
2251 | -// } | |
2252 | -// } catch (Exception e) { | |
2253 | -// // 什么都不干,这么干是为了避开原始数据的问题 | |
2254 | -// } | |
2255 | -// | |
2256 | -// // 查分娩医院 | |
2257 | -// try { | |
2258 | -// if (childbirthManagerRequest.getInitQuery().contains("fmHospital")) { | |
2259 | -// System.out.println("分娩医院:"+maternalDeliverModel.getFmHospital()); | |
2260 | -// if(StringUtils.isNumeric(maternalDeliverModel.getFmHospital())){ | |
2261 | -// childbirthManagerQueryModel.setFmHospital(organizationService.getOrganization(Integer.valueOf(maternalDeliverModel.getFmHospital())).getName()); | |
2262 | -// }else{ | |
2263 | -// childbirthManagerQueryModel.setFmHospital(maternalDeliverModel.getFmHospital()); | |
2264 | -// } | |
2265 | -// } | |
2266 | -// } catch (Exception e) { | |
2267 | -// // 什么都不干,这么干是为了避开原始数据的问题 | |
2268 | -// } | |
2269 | -// | |
2270 | -// // 胎方位,胎心率,胎先露 | |
2271 | -// if (childbirthManagerRequest.getInitQuery().contains("fetalPosition") || childbirthManagerRequest.getInitQuery().contains("heartRate") || childbirthManagerRequest.getInitQuery().contains("fetalPresentation")) { | |
2272 | -// // 这个泛型不会出错,传入的就是这个 | |
2273 | -// @SuppressWarnings("unchecked") | |
2274 | -// List<MatDeliverAddRequest.Placenta> placentaList = maternalDeliverModel.getPlacentas(); | |
2275 | -// if (CollectionUtils.isNotEmpty(placentaList)) { | |
2276 | -// String fetalPosition = ""; | |
2277 | -// String heartRate = ""; | |
2278 | -// String fetalPresentation = ""; | |
2279 | -// for (Object obj : placentaList) { | |
2280 | -// if ("com.lyms.platform.operate.web.request.MatDeliverAddRequest$Placenta".equals(obj.getClass().getName())) { | |
2281 | -// MatDeliverAddRequest.Placenta placenta = (MatDeliverAddRequest.Placenta) obj; | |
2282 | -// if (childbirthManagerRequest.getInitQuery().contains("fetalPosition")) { | |
2283 | -// for (FetalPositionEnums fetalPositionEnums : FetalPositionEnums.values()) { | |
2284 | -// if (fetalPositionEnums.getId().equals(placenta.getFetalPosition())) { | |
2285 | -// fetalPosition += fetalPositionEnums.getName() + ","; | |
2286 | -// break; | |
2287 | -// } | |
2288 | -// } | |
2289 | -// } | |
2290 | -// heartRate += placenta.getHeartRate() == null ? "" : placenta.getHeartRate().toString() + ","; | |
2291 | -// fetalPresentation += placenta.getFetalPresentation() == null ? "" : placenta.getFetalPresentation() + ","; | |
2292 | -// } | |
2293 | -// if ("java.util.LinkedHashMap".equals(obj.getClass().getName())) { | |
2294 | -// Map<String, String> placenta = JsonUtil.getMap(obj.toString()); | |
2295 | -// if (childbirthManagerRequest.getInitQuery().contains("fetalPosition")) { | |
2296 | -// if (MapUtils.isNotEmpty(placenta)) { | |
2297 | -// for (FetalPositionEnums fetalPositionEnums : FetalPositionEnums.values()) { | |
2298 | -// if (fetalPositionEnums.getId().equals(placenta.get("fetalPosition"))) { | |
2299 | -// fetalPosition += fetalPositionEnums.getName() + ","; | |
2300 | -// break; | |
2301 | -// } | |
2302 | -// } | |
2303 | -// heartRate += placenta.get("heartRate") == null ? "" : placenta.get("heartRate") + ","; | |
2304 | -// for (FetalEnums fetalEnums : FetalEnums.values()) { | |
2305 | -// if (fetalEnums.getId().equals(placenta.get("fetalPresentation"))) { | |
2306 | -// fetalPresentation += fetalEnums.getName() + ","; | |
2307 | -// break; | |
2308 | -// } | |
2309 | -// } | |
2310 | -// } | |
2311 | -// } | |
2312 | -// } | |
2313 | -// } | |
2314 | -// childbirthManagerQueryModel.setFetalPosition(fetalPosition.length() == 0 ? "" : fetalPosition.substring(0, fetalPosition.length() - 1)); | |
2315 | -// childbirthManagerQueryModel.setHeartRate(heartRate.length() == 0 ? "" : heartRate.substring(0, heartRate.length() - 1)); | |
2316 | -// childbirthManagerQueryModel.setFetalPresentation(fetalPresentation.length() == 0 ? "" : fetalPresentation.substring(0, fetalPresentation.length() - 1)); | |
2317 | -// } | |
2318 | -// } | |
2319 | -// | |
2320 | -// // 第一产程,第二产程,第三产程 | |
2321 | -// Map<String, Map<String, String>> prodprocessMap = JsonUtil.getDoubleMap(maternalDeliverModel.getProdprocess()); | |
2322 | -// if (MapUtils.isNotEmpty(prodprocessMap)) { | |
2323 | -// Map<String, String> prodprocessOne = prodprocessMap.get("one"); | |
2324 | -// if (MapUtils.isNotEmpty(prodprocessOne)) { | |
2325 | -// childbirthManagerQueryModel.setProdprocessOne(prodprocessOne.get("h") + "时," + prodprocessOne.get("m") + "分"); | |
2326 | -// } else { | |
2327 | -// childbirthManagerQueryModel.setProdprocessOne(""); | |
2328 | -// } | |
2329 | -// Map<String, String> prodprocessTwo = prodprocessMap.get("two"); | |
2330 | -// if (MapUtils.isNotEmpty(prodprocessTwo)) { | |
2331 | -// childbirthManagerQueryModel.setProdprocessTwo(prodprocessTwo.get("h") + "时," + prodprocessTwo.get("m") + "分"); | |
2332 | -// } else { | |
2333 | -// childbirthManagerQueryModel.setProdprocessTwo(""); | |
2334 | -// } | |
2335 | -// Map<String, String> prodprocessThree = prodprocessMap.get("three"); | |
2336 | -// if (MapUtils.isNotEmpty(prodprocessThree)) { | |
2337 | -// childbirthManagerQueryModel.setProdprocessThree(prodprocessThree.get("h") + "时," + prodprocessThree.get("m") + "分"); | |
2338 | -// } else { | |
2339 | -// childbirthManagerQueryModel.setProdprocessThree(""); | |
2340 | -// } | |
2341 | -// } | |
2342 | -// | |
2343 | -// // 总产程 | |
2344 | -// Map<String, String> totalprocessMap = JsonUtil.getMap(maternalDeliverModel.getTotalprocess()); | |
2345 | -// if (MapUtils.isNotEmpty(totalprocessMap)) { | |
2346 | -// childbirthManagerQueryModel.setTotalprocess(totalprocessMap.get("h") + "时" + totalprocessMap.get("m") + "分"); | |
2347 | -// } else { | |
2348 | -// childbirthManagerQueryModel.setTotalprocess(""); | |
2349 | -// } | |
2350 | -// // 死亡原因 | |
2351 | -// if (childbirthManagerRequest.getInitQuery().contains("deathCause")) { | |
2352 | -// for (DeathCauseEnums deathCauseEnums : DeathCauseEnums.values()) { | |
2353 | -// if (deathCauseEnums.getId().equals(maternalDeliverModel.getDeathCause())) { | |
2354 | -// childbirthManagerQueryModel.setDeathCause(deathCauseEnums.getName()); | |
2355 | -// break; | |
2356 | -// } | |
2357 | -// } | |
2358 | -// } | |
2359 | -// | |
2360 | -// // 收缩压,舒张压 | |
2361 | -// Map<String, String> chBpMap = JsonUtil.getMap(maternalDeliverModel.getChBp()); | |
2362 | -// if (MapUtils.isNotEmpty(chBpMap)) { | |
2363 | -// childbirthManagerQueryModel.setChBpSsy1(chBpMap.get("ssy")); | |
2364 | -// childbirthManagerQueryModel.setChBpSzy1(chBpMap.get("szy")); | |
2365 | -// | |
2366 | -// } | |
2367 | -// | |
2368 | -// // 产后1/2/24小时失血量 | |
2369 | -// childbirthManagerQueryModel.setOhloseBloodL(maternalDeliverModel.getoHloseBloodL()); | |
2370 | -// childbirthManagerQueryModel.setThloseBloodL(maternalDeliverModel.gettHloseBloodL()); | |
2371 | -// childbirthManagerQueryModel.setRhloseBloodL(maternalDeliverModel.getrHloseBloodL()); | |
2372 | -// | |
2373 | -// // 胎盘娩出方式,胎盘大小,胎盘重量,脐带长度,脐带是否异常,脐带异常类型 | |
2374 | -// if (childbirthManagerRequest.getInitQuery().contains("tpmcType") || childbirthManagerRequest.getInitQuery().contains("tpSize") || childbirthManagerRequest.getInitQuery().contains("tpWeight") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordLength") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordEx") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordExType")) { | |
2375 | -// List<MaternalDeliverModel.ExtPlacenta> extPlacentaList = maternalDeliverModel.getExtPlacentas(); | |
2376 | -// if (CollectionUtils.isNotEmpty(extPlacentaList)) { | |
2377 | -// String tpmcType = ""; | |
2378 | -// String tpSize = ""; | |
2379 | -// String tpWeight = ""; | |
2380 | -// String umbilicalCordLength = ""; | |
2381 | -// String umbilicalCordEx = ""; | |
2382 | -// String umbilicalCordExType = ""; | |
2383 | -// try { | |
2384 | -// for (MaternalDeliverModel.ExtPlacenta extPlacenta : extPlacentaList) { | |
2385 | -// if (childbirthManagerRequest.getInitQuery().contains("tpmcType")) { | |
2386 | -// for (TpmcTypeEnums tpmcTypeEnums : TpmcTypeEnums.values()) { | |
2387 | -// if (tpmcTypeEnums.getId().equals(extPlacenta.getTpmcType())) { | |
2388 | -// tpmcType += tpmcTypeEnums.getName() + ","; | |
2389 | -// break; | |
2390 | -// } | |
2391 | -// } | |
2392 | -// } | |
2393 | -// if (childbirthManagerRequest.getInitQuery().contains("umbilicalCordExType")) { | |
2394 | -// String umbilicalCordExTypeTemp = ""; | |
2395 | -// for (QiDaiEnums qiDaiEnums : QiDaiEnums.values()) { | |
2396 | -// if (qiDaiEnums.getId().equals(extPlacenta.getUmbilicalCordExType())) { | |
2397 | -// umbilicalCordExTypeTemp = qiDaiEnums.getName() + ","; | |
2398 | -// break; | |
2399 | -// } | |
2400 | -// } | |
2401 | -// if (StringUtils.isEmpty(umbilicalCordExTypeTemp)) { | |
2402 | -// umbilicalCordExTypeTemp = "-,"; | |
2403 | -// } | |
2404 | -// umbilicalCordExType += umbilicalCordExTypeTemp; | |
2405 | -// } | |
2406 | -// if (childbirthManagerRequest.getInitQuery().contains("umbilicalCordEx")) { | |
2407 | -// if ("yes".equals(extPlacenta.getUmbilicalCordEx())) { | |
2408 | -// umbilicalCordEx += "是" + ","; | |
2409 | -// } else if ("no".equals(extPlacenta.getUmbilicalCordEx())) { | |
2410 | -// umbilicalCordEx += "否" + ","; | |
2411 | -// } else { | |
2412 | -// umbilicalCordEx += "-" + ","; | |
2413 | -// } | |
2414 | -// } | |
2415 | -// if (childbirthManagerRequest.getInitQuery().contains("tpSize")) { | |
2416 | -// if (MapUtils.isNotEmpty(extPlacenta.getTpSize())) { | |
2417 | -// tpSize += "长:" + extPlacenta.getTpSize().get("c") + "宽:" + extPlacenta.getTpSize().get("k") + "高:" + extPlacenta.getTpSize().get("g") + ","; | |
2418 | -// } | |
2419 | -// } | |
2420 | -// tpWeight += extPlacenta.getTpWeight() == null ? "" : extPlacenta.getTpWeight() + ","; | |
2421 | -// umbilicalCordLength += extPlacenta.getUmbilicalCordLength() == null ? "" : extPlacenta.getUmbilicalCordLength() + ","; | |
2422 | -// } | |
2423 | -// } catch (Exception e) { | |
2424 | -// // 什么都不干,这么干是为了避开原始数据的问题 | |
2425 | -// } | |
2426 | -// childbirthManagerQueryModel.setTpmcType(tpmcType.length() == 0 ? "" : tpmcType.substring(0, tpmcType.length() - 1)); | |
2427 | -// childbirthManagerQueryModel.setTpSize(tpSize.length() == 0 ? "" : tpSize.substring(0, tpSize.length() - 1)); | |
2428 | -// childbirthManagerQueryModel.setTpWeight(tpWeight.length() == 0 ? "" : tpWeight.substring(0, tpWeight.length() - 1)); | |
2429 | -// childbirthManagerQueryModel.setUmbilicalCordLength(umbilicalCordLength.length() == 0 ? "" : umbilicalCordLength.substring(0, umbilicalCordLength.length() - 1)); | |
2430 | -// childbirthManagerQueryModel.setUmbilicalCordEx(umbilicalCordEx.length() == 0 ? "" : umbilicalCordEx.substring(0, umbilicalCordEx.length() - 1)); | |
2431 | -// childbirthManagerQueryModel.setUmbilicalCordExType(umbilicalCordExType.length() == 0 ? "" : umbilicalCordExType.substring(0, umbilicalCordExType.length() - 1)); | |
2432 | -// } | |
2433 | -// } | |
2434 | -// } | |
2435 | -// | |
2436 | -// childbirthManagerQueryModelList.add(childbirthManagerQueryModel); | |
2437 | -// // 拼装自定义查询结果结束 | |
2438 | -// } | |
2439 | 2040 | |
2440 | 2041 | childbirthManagerResult.setData(childbirthManagerQueryModelList); |
2441 | 2042 | childbirthManagerResult.setErrorcode(ErrorCodeConstants.SUCCESS); |