Commit 4144355560c2c8fe1b2f528cb7a517a13a3821e9
1 parent
1333c2fe5a
Exists in
master
and in
6 other branches
体重修改
Showing 1 changed file with 15 additions and 15 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
4144355
| ... | ... | @@ -1007,7 +1007,7 @@ |
| 1007 | 1007 | if ("2100001635".equals(hospitalId)) { |
| 1008 | 1008 | kmap = getWhComputeKul(week, Double.parseDouble(patientWeight.getNowWeight()), Double.parseDouble(patientWeight.getBeforeWeight()), patientWeight.getBregmatic(), bmi); |
| 1009 | 1009 | }else if ("2100002043".equals(hospitalId)) { //临西县热量单独计算 |
| 1010 | - kmap = getLxComputeKul(week, Double.parseDouble(patientWeight.getNowWeight()), Double.parseDouble(patientWeight.getBeforeWeight()), patientWeight.getBregmatic(), bmi); | |
| 1010 | + kmap = getLxComputeKul(week, Double.parseDouble(patientWeight.getBeforeHeight()), Double.parseDouble(patientWeight.getNowWeight()), Double.parseDouble(patientWeight.getBeforeWeight()), patientWeight.getBregmatic(), bmi); | |
| 1011 | 1011 | } |
| 1012 | 1012 | else { |
| 1013 | 1013 | kmap = computeKulServiceManager.getComputeKulByRisk(rid).getComputeKul(Double.parseDouble(patientWeight.getBeforeWeight()), |
| ... | ... | @@ -2299,7 +2299,7 @@ |
| 2299 | 2299 | |
| 2300 | 2300 | |
| 2301 | 2301 | |
| 2302 | - public Map<String, String> getLxComputeKul(int week, double currentWeight, double beforeWeight, String bregmatic, double bmiD) { | |
| 2302 | + public Map<String, String> getLxComputeKul(int week, double height, double currentWeight, double beforeWeight, String bregmatic, double bmiD) { | |
| 2303 | 2303 | |
| 2304 | 2304 | String bmiStr = null; |
| 2305 | 2305 | //空和1表示单胎 |
| 2306 | 2306 | |
| 2307 | 2307 | |
| 2308 | 2308 | |
| 2309 | 2309 | |
| 2310 | 2310 | |
| 2311 | 2311 | |
| 2312 | 2312 | |
| 2313 | 2313 | |
| 2314 | 2314 | |
| 2315 | 2315 | |
| 2316 | 2316 | |
| 2317 | 2317 | |
| ... | ... | @@ -2349,46 +2349,46 @@ |
| 2349 | 2349 | if (week <= 11) { |
| 2350 | 2350 | if (add <= hvalue) { |
| 2351 | 2351 | if (bmiD < 18.5) { |
| 2352 | - kulStart = (currentWeight - 105) * 37; | |
| 2352 | + kulStart = (height - 105) * 37; | |
| 2353 | 2353 | } else if (bmiD >= 18.5 && bmiD <= 24.9) { |
| 2354 | - kulStart = (currentWeight - 105) * 33; | |
| 2354 | + kulStart = (height - 105) * 33; | |
| 2355 | 2355 | } else if (bmiD >= 25) { |
| 2356 | - kulStart = (currentWeight - 105) * 28; | |
| 2356 | + kulStart = (height - 105) * 28; | |
| 2357 | 2357 | } |
| 2358 | 2358 | } |
| 2359 | 2359 | else |
| 2360 | 2360 | { |
| 2361 | 2361 | if (bmiD < 18.5) { |
| 2362 | - kulStart = (currentWeight - 105) * 35; | |
| 2362 | + kulStart = (height - 105) * 35; | |
| 2363 | 2363 | } else if (bmiD >= 18.5 && bmiD <= 24.9) { |
| 2364 | - kulStart = (currentWeight - 105) * 30; | |
| 2364 | + kulStart = (height - 105) * 30; | |
| 2365 | 2365 | } else if (bmiD >= 25) { |
| 2366 | - kulStart = (currentWeight - 105) * 25; | |
| 2366 | + kulStart = (height - 105) * 25; | |
| 2367 | 2367 | } |
| 2368 | 2368 | } |
| 2369 | 2369 | } |
| 2370 | 2370 | //孕中期 |
| 2371 | - else if (week < 28) { | |
| 2371 | + else if (week < 42) { | |
| 2372 | 2372 | int addKal = week < 28 ? 200 : 400; |
| 2373 | 2373 | if (add <= hvalue) { |
| 2374 | 2374 | if (bmiD < 18.5) |
| 2375 | 2375 | { |
| 2376 | - kulStart = (currentWeight - 105) * 37 + addKal; | |
| 2376 | + kulStart = (height - 105) * 37 + addKal; | |
| 2377 | 2377 | } else if (bmiD >= 18.5 && bmiD <= 24.9) { |
| 2378 | - kulStart = (currentWeight - 105) * 33 + addKal; | |
| 2378 | + kulStart = (height - 105) * 33 + addKal; | |
| 2379 | 2379 | } else if (bmiD >= 25) { |
| 2380 | - kulStart = (currentWeight - 105) * 28 + addKal; | |
| 2380 | + kulStart = (height - 105) * 28 + addKal; | |
| 2381 | 2381 | } |
| 2382 | 2382 | } |
| 2383 | 2383 | else |
| 2384 | 2384 | { |
| 2385 | 2385 | if (bmiD < 18.5) |
| 2386 | 2386 | { |
| 2387 | - kulStart = (currentWeight - 105) * 35 + addKal; | |
| 2387 | + kulStart = (height - 105) * 35 + addKal; | |
| 2388 | 2388 | } else if (bmiD >= 18.5 && bmiD <= 24.9) { |
| 2389 | - kulStart = (currentWeight - 105) * 30 + addKal; | |
| 2389 | + kulStart = (height - 105) * 30 + addKal; | |
| 2390 | 2390 | } else if (bmiD >= 25) { |
| 2391 | - kulStart = (currentWeight - 105) * 25 + addKal; | |
| 2391 | + kulStart = (height - 105) * 25 + addKal; | |
| 2392 | 2392 | } |
| 2393 | 2393 | } |
| 2394 | 2394 | if (kulStart < 1500) |