Commit 863397225ad1cecf3bda4bef691859c6aba9346c
1 parent
38ff6f2fd3
Exists in
master
and in
6 other branches
秦皇岛冠新公卫接口
Showing 5 changed files with 414 additions and 14 deletions
- platform-dal/src/main/java/com/lyms/platform/query/BabyModelQuery.java
- platform-dal/src/main/java/com/lyms/platform/query/MatDeliverFollowQuery.java
- platform-dal/src/main/java/com/lyms/platform/query/PostReviewQuery.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdJbgwInterface.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/QhdJbgwController.java
platform-dal/src/main/java/com/lyms/platform/query/BabyModelQuery.java
View file @
8633972
| ... | ... | @@ -179,6 +179,25 @@ |
| 179 | 179 | //是否畸形 0非畸形 1畸形 |
| 180 | 180 | private Integer malformation; |
| 181 | 181 | |
| 182 | + private Date modifiedStart; | |
| 183 | + private Date modifiedEnd; | |
| 184 | + | |
| 185 | + public Date getModifiedStart() { | |
| 186 | + return modifiedStart; | |
| 187 | + } | |
| 188 | + | |
| 189 | + public void setModifiedStart(Date modifiedStart) { | |
| 190 | + this.modifiedStart = modifiedStart; | |
| 191 | + } | |
| 192 | + | |
| 193 | + public Date getModifiedEnd() { | |
| 194 | + return modifiedEnd; | |
| 195 | + } | |
| 196 | + | |
| 197 | + public void setModifiedEnd(Date modifiedEnd) { | |
| 198 | + this.modifiedEnd = modifiedEnd; | |
| 199 | + } | |
| 200 | + | |
| 182 | 201 | public Integer getMalformation() { |
| 183 | 202 | return malformation; |
| 184 | 203 | } |
| ... | ... | @@ -932,6 +951,14 @@ |
| 932 | 951 | c = c.where("created").gte(createdTimeStart).lte(createdTimeEnd); |
| 933 | 952 | }else{ |
| 934 | 953 | c = Criteria.where("created").gte(createdTimeStart).lte(createdTimeEnd); |
| 954 | + } | |
| 955 | + } | |
| 956 | + | |
| 957 | + if(null != modifiedStart && modifiedEnd != null){ | |
| 958 | + if(c != null){ | |
| 959 | + c = c.where("modified").gte(modifiedStart).lte(modifiedEnd); | |
| 960 | + }else{ | |
| 961 | + c = Criteria.where("modified").gte(modifiedStart).lte(modifiedEnd); | |
| 935 | 962 | } |
| 936 | 963 | } |
| 937 | 964 |
platform-dal/src/main/java/com/lyms/platform/query/MatDeliverFollowQuery.java
View file @
8633972
| ... | ... | @@ -204,6 +204,25 @@ |
| 204 | 204 | private Date createdTimeStart; |
| 205 | 205 | private Date createdTimeEnd; |
| 206 | 206 | |
| 207 | + private Date updateDateStart; | |
| 208 | + private Date updateDateEnd; | |
| 209 | + | |
| 210 | + public Date getUpdateDateStart() { | |
| 211 | + return updateDateStart; | |
| 212 | + } | |
| 213 | + | |
| 214 | + public void setUpdateDateStart(Date updateDateStart) { | |
| 215 | + this.updateDateStart = updateDateStart; | |
| 216 | + } | |
| 217 | + | |
| 218 | + public Date getUpdateDateEnd() { | |
| 219 | + return updateDateEnd; | |
| 220 | + } | |
| 221 | + | |
| 222 | + public void setUpdateDateEnd(Date updateDateEnd) { | |
| 223 | + this.updateDateEnd = updateDateEnd; | |
| 224 | + } | |
| 225 | + | |
| 207 | 226 | public Date getCreatedTimeStart() { |
| 208 | 227 | return createdTimeStart; |
| 209 | 228 | } |
| ... | ... | @@ -267,6 +286,9 @@ |
| 267 | 286 | Criteria c = null; |
| 268 | 287 | if(null != createdTimeStart && createdTimeEnd != null){ |
| 269 | 288 | c = Criteria.where("createDate").gte(createdTimeStart).lte(createdTimeEnd); |
| 289 | + } | |
| 290 | + if(null != updateDateStart && updateDateEnd != null){ | |
| 291 | + c = Criteria.where("updateDate").gte(updateDateStart).lte(updateDateEnd); | |
| 270 | 292 | } |
| 271 | 293 | if(c != null){ |
| 272 | 294 | return new MongoCondition(c.andOperator(condition.getCriteria())).toMongoQuery(); |
platform-dal/src/main/java/com/lyms/platform/query/PostReviewQuery.java
View file @
8633972
| ... | ... | @@ -34,6 +34,25 @@ |
| 34 | 34 | private Date createdTimeStart; |
| 35 | 35 | private Date createdTimeEnd; |
| 36 | 36 | |
| 37 | + private Date modifiedStart; | |
| 38 | + private Date modifiedEnd; | |
| 39 | + | |
| 40 | + public Date getModifiedStart() { | |
| 41 | + return modifiedStart; | |
| 42 | + } | |
| 43 | + | |
| 44 | + public void setModifiedStart(Date modifiedStart) { | |
| 45 | + this.modifiedStart = modifiedStart; | |
| 46 | + } | |
| 47 | + | |
| 48 | + public Date getModifiedEnd() { | |
| 49 | + return modifiedEnd; | |
| 50 | + } | |
| 51 | + | |
| 52 | + public void setModifiedEnd(Date modifiedEnd) { | |
| 53 | + this.modifiedEnd = modifiedEnd; | |
| 54 | + } | |
| 55 | + | |
| 37 | 56 | public Date getCreatedTimeStart() { |
| 38 | 57 | return createdTimeStart; |
| 39 | 58 | } |
| ... | ... | @@ -167,6 +186,14 @@ |
| 167 | 186 | c = c.where("created").gte(createdTimeStart).lte(createdTimeEnd); |
| 168 | 187 | } else { |
| 169 | 188 | c = Criteria.where("created").gte(createdTimeStart).lte(createdTimeEnd); |
| 189 | + } | |
| 190 | + isAddStart = Boolean.TRUE; | |
| 191 | + } | |
| 192 | + if (null != modifiedStart && modifiedEnd != null) { | |
| 193 | + if (null != c) { | |
| 194 | + c = c.where("modified").gte(modifiedStart).lte(modifiedEnd); | |
| 195 | + } else { | |
| 196 | + c = Criteria.where("modified").gte(modifiedStart).lte(modifiedEnd); | |
| 170 | 197 | } |
| 171 | 198 | isAddStart = Boolean.TRUE; |
| 172 | 199 | } |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdJbgwInterface.java
View file @
8633972
| 1 | 1 | package com.lyms.hospitalapi.qhdfy; |
| 2 | 2 | |
| 3 | -import com.lyms.platform.biz.service.AntenatalExaminationService; | |
| 4 | -import com.lyms.platform.biz.service.BasicConfigService; | |
| 5 | -import com.lyms.platform.biz.service.MatDeliverService; | |
| 6 | -import com.lyms.platform.biz.service.PatientsService; | |
| 3 | +import com.lyms.platform.biz.service.*; | |
| 7 | 4 | import com.lyms.platform.common.enums.YnEnums; |
| 8 | 5 | import com.lyms.platform.common.utils.DateUtil; |
| 9 | 6 | import com.lyms.platform.common.utils.JsonUtil; |
| 10 | 7 | |
| ... | ... | @@ -15,16 +12,14 @@ |
| 15 | 12 | import com.lyms.platform.permission.service.OrganizationService; |
| 16 | 13 | import com.lyms.platform.permission.service.UsersService; |
| 17 | 14 | import com.lyms.platform.pojo.*; |
| 18 | -import com.lyms.platform.query.AntExChuQuery; | |
| 19 | -import com.lyms.platform.query.AntExQuery; | |
| 20 | -import com.lyms.platform.query.MatDeliverQuery; | |
| 21 | -import com.lyms.platform.query.PatientsQuery; | |
| 15 | +import com.lyms.platform.query.*; | |
| 22 | 16 | import org.apache.commons.collections.MapUtils; |
| 23 | 17 | import org.apache.commons.lang.StringUtils; |
| 24 | 18 | import org.springframework.beans.factory.annotation.Autowired; |
| 25 | 19 | import org.springframework.data.domain.Sort; |
| 26 | 20 | import org.springframework.stereotype.Service; |
| 27 | 21 | |
| 22 | +import javax.management.loading.MLet; | |
| 28 | 23 | import java.util.ArrayList; |
| 29 | 24 | import java.util.HashMap; |
| 30 | 25 | import java.util.List; |
| ... | ... | @@ -50,6 +45,12 @@ |
| 50 | 45 | private UsersService usersService; |
| 51 | 46 | @Autowired |
| 52 | 47 | private MatDeliverService matDeliverService; |
| 48 | + @Autowired | |
| 49 | + private BabyBookbuildingService babyBookbuildingService; | |
| 50 | + @Autowired | |
| 51 | + private MatDeliverFollowService matDeliverFollowService; | |
| 52 | + @Autowired | |
| 53 | + private PostReviewService postReviewService; | |
| 53 | 54 | |
| 54 | 55 | /** |
| 55 | 56 | *孕产登记 |
| ... | ... | @@ -406,7 +407,7 @@ |
| 406 | 407 | * @return |
| 407 | 408 | */ |
| 408 | 409 | public List<Map<String,String>> getFm(String startDate,String endDate){ |
| 409 | - | |
| 410 | + List<Map<String,String>> mList = new ArrayList<Map<String,String>>(); | |
| 410 | 411 | MatDeliverQuery deliverQuery = new MatDeliverQuery(); |
| 411 | 412 | deliverQuery.setModifiedStart(DateUtil.parseYMDHMS(startDate)); |
| 412 | 413 | deliverQuery.setModifiedEnd(DateUtil.parseYMDHMS(endDate)); |
| ... | ... | @@ -421,7 +422,7 @@ |
| 421 | 422 | Map<String,String> map = new HashMap<String,String>(); |
| 422 | 423 | map.put("MATERNALCHILDBIRTHID",data.getId()); |
| 423 | 424 | map.put("MATERNALINFOID",patients.getId()); |
| 424 | - map.put("NAME",patients.getUsername()); | |
| 425 | + map.put("NAME", patients.getUsername()); | |
| 425 | 426 | String fmHospital = ""; |
| 426 | 427 | |
| 427 | 428 | if (StringUtils.isNotEmpty(data.getFmHospital())) { |
| ... | ... | @@ -435,7 +436,7 @@ |
| 435 | 436 | } |
| 436 | 437 | |
| 437 | 438 | } |
| 438 | - map.put("LABORPLACEVALUE",fmHospital); | |
| 439 | + map.put("LABORPLACEVALUE", fmHospital); | |
| 439 | 440 | if(data.getDeliveryMode() != null){ |
| 440 | 441 | Map m = JsonUtil.str2Obj(data.getDeliveryMode(), Map.class); |
| 441 | 442 | Object b = m.get("fmfs"); |
| ... | ... | @@ -474,6 +475,74 @@ |
| 474 | 475 | |
| 475 | 476 | } |
| 476 | 477 | }*/ |
| 478 | + map.put("ORGCODE", patients.getHospitalId()); | |
| 479 | + String hospital = ""; | |
| 480 | + if (org.apache.commons.lang.StringUtils.isNotEmpty(patients.getHospitalId())) { | |
| 481 | + Organization organization = organizationService.getOrganization(Integer.parseInt(patients.getHospitalId())); | |
| 482 | + if (organization != null && organization.getYn() == YnEnums.YES.getId()) { | |
| 483 | + hospital = organization.getName(); | |
| 484 | + } | |
| 485 | + } | |
| 486 | + map.put("ORGNAME",hospital); | |
| 487 | + mList.add(map); | |
| 488 | + } catch (Exception e) { | |
| 489 | + e.printStackTrace(); | |
| 490 | + continue; | |
| 491 | + } | |
| 492 | + } | |
| 493 | + } | |
| 494 | + return mList; | |
| 495 | + } | |
| 496 | + | |
| 497 | + | |
| 498 | + /** | |
| 499 | + * 儿童基本信息 | |
| 500 | + * @param startDate | |
| 501 | + * @param endDate | |
| 502 | + * @return | |
| 503 | + */ | |
| 504 | + public List<Map<String,String>> getXse(String startDate,String endDate){ | |
| 505 | + List<Map<String,String>> mList = new ArrayList<Map<String,String>>(); | |
| 506 | + BabyModelQuery babyQuery = new BabyModelQuery(); | |
| 507 | + babyQuery.setModifiedStart(DateUtil.parseYMDHMS(startDate)); | |
| 508 | + babyQuery.setModifiedEnd(DateUtil.parseYMDHMS(endDate)); | |
| 509 | + babyQuery.setYn(YnEnums.YES.getId()); | |
| 510 | + List<BabyModel> models = babyBookbuildingService.queryBabyBuildByCond(babyQuery); | |
| 511 | + if(models != null && models.size() > 0){ | |
| 512 | + for(BabyModel babyModel : models){ | |
| 513 | + try{ | |
| 514 | + Patients patients = patientsService.findOnePatientById(babyModel.getParentId()); | |
| 515 | + Map<String,String> map = new HashMap<String,String>(); | |
| 516 | + map.put("NEWBORNSITUATIONID",babyModel.getId()); | |
| 517 | + map.put("MATERNALINFOID",patients.getId()); | |
| 518 | + //查询分娩记录ID | |
| 519 | + MatDeliverQuery matDeliverQuery = new MatDeliverQuery(); | |
| 520 | + matDeliverQuery.setParentId(babyModel.getParentId()); | |
| 521 | + MaternalDeliverModel maternalDeliverModel = null; | |
| 522 | + List<MaternalDeliverModel> list = matDeliverService.pageQuery(matDeliverQuery); | |
| 523 | + if(list != null && list.size() > 0){ | |
| 524 | + maternalDeliverModel = list.get(0); | |
| 525 | + } | |
| 526 | + map.put("MATERNALCHILDBIRTHID",maternalDeliverModel.getId()); | |
| 527 | + if(babyModel.getSex() == 1){ | |
| 528 | + map.put("BABYSEX","1"); | |
| 529 | + }else if(babyModel.getSex() == 0){ | |
| 530 | + map.put("BABYSEX","2"); | |
| 531 | + }else{ | |
| 532 | + map.put("BABYSEX","0"); | |
| 533 | + } | |
| 534 | + map.put("BABYWEIGHT",babyModel.getBabyWeight()); | |
| 535 | + map.put("BABYCHEST",null); | |
| 536 | + map.put("BABYHEIGHT",babyModel.getBabyHeight()); | |
| 537 | + map.put("BABYHEADSIZE",babyModel.getBabyHead()); | |
| 538 | + if(1 == babyModel.getMalformation()){ | |
| 539 | + map.put("BABYMALFORMATION","2"); | |
| 540 | + } | |
| 541 | + if(babyModel.getApgarScore() != null){ | |
| 542 | + Map map1 = JsonUtil.str2Obj(babyModel.getApgarScore(), Map.class); | |
| 543 | + map.put("BABYAPGAR1",map.get("pf1").toString()); | |
| 544 | + map.put("BABYAPGAR5",map.get("pf5".toString())); | |
| 545 | + } | |
| 477 | 546 | map.put("ORGCODE",patients.getHospitalId()); |
| 478 | 547 | String hospital = ""; |
| 479 | 548 | if (org.apache.commons.lang.StringUtils.isNotEmpty(patients.getHospitalId())) { |
| 480 | 549 | |
| 481 | 550 | |
| ... | ... | @@ -484,16 +553,241 @@ |
| 484 | 553 | } |
| 485 | 554 | map.put("ORGNAME",hospital); |
| 486 | 555 | |
| 487 | - } catch (Exception e) { | |
| 556 | + mList.add(map); | |
| 557 | + }catch (Exception e){ | |
| 488 | 558 | e.printStackTrace(); |
| 489 | 559 | continue; |
| 490 | 560 | } |
| 491 | 561 | } |
| 492 | 562 | } |
| 493 | - return null; | |
| 563 | + | |
| 564 | + return mList; | |
| 494 | 565 | } |
| 495 | 566 | |
| 496 | 567 | |
| 568 | + /** | |
| 569 | + * 产后访视 | |
| 570 | + * @param startDate | |
| 571 | + * @param endDate | |
| 572 | + * @return | |
| 573 | + */ | |
| 574 | + public List<Map<String,String>> getChfs(String startDate,String endDate){ | |
| 575 | + List<Map<String,String>> mList = new ArrayList<Map<String,String>>(); | |
| 576 | + MatDeliverFollowQuery deliverQuery = new MatDeliverFollowQuery(); | |
| 577 | + deliverQuery.setUpdateDateStart(DateUtil.parseYMDHMS(startDate)); | |
| 578 | + deliverQuery.setUpdateDateEnd(DateUtil.parseYMDHMS(endDate)); | |
| 579 | + List<MatdeliverFollowModel> list = matDeliverFollowService.query(deliverQuery); | |
| 580 | + if(list != null && list.size() > 0){ | |
| 581 | + | |
| 582 | + for(MatdeliverFollowModel data : list){ | |
| 583 | + try{ | |
| 584 | + Map<String,String> map = new HashMap<String,String>(); | |
| 585 | + //根据分娩ID查询孕妇基本信息 | |
| 586 | + MaternalDeliverModel md = matDeliverService.getOneMatDeliver(data.getDeliverId()); | |
| 587 | + Patients patients = patientsService.findOnePatientById(md.getParentId()); | |
| 588 | + map.put("POSTPARTUMFOLLOWUPID",data.getId()); | |
| 589 | + map.put("MATERNALINFOID",patients.getId()); | |
| 590 | + map.put("NAME",patients.getUsername()); | |
| 591 | + if(data.getVisitDate() != null){ | |
| 592 | + map.put("FOLLOWUPDATE",DateUtil.getyyyy_MM_dd(data.getVisitDate())); | |
| 593 | + } | |
| 594 | + if(data.getDeliveryDate() != null){ | |
| 595 | + map.put("DELIVERYDATE",DateUtil.getyyyy_MM_dd(data.getDeliveryDate())); | |
| 596 | + } | |
| 597 | + if(data.getLeaveDate() != null){ | |
| 598 | + map.put("RESIOUTDATE",DateUtil.getyyyy_MM_dd(data.getLeaveDate())); | |
| 599 | + } | |
| 600 | + map.put("HEALTHDESC",data.getFitnessDesc()); | |
| 601 | + map.put("PSYDESC",data.getMentalityDesc()); | |
| 602 | + String ssy = ""; | |
| 603 | + String szy = ""; | |
| 604 | + Map<String, String> chBpMap = JsonUtil.getMap(data.getBp()); | |
| 605 | + if (MapUtils.isNotEmpty(chBpMap)) { | |
| 606 | + ssy = chBpMap.get("ssy"); | |
| 607 | + szy = chBpMap.get("szy"); | |
| 608 | + } | |
| 609 | + map.put("SYSTILIC",ssy); | |
| 610 | + map.put("DIASTOLIC",szy); | |
| 611 | + if(data.getBreast() != null){ | |
| 612 | + if("1".equals(data.getBreast())){ | |
| 613 | + map.put("UBERCODE","1"); | |
| 614 | + }else{ | |
| 615 | + map.put("UBERCODE","2"); | |
| 616 | + } | |
| 617 | + } | |
| 618 | + if(data.getLochia() != null){ | |
| 619 | + if("1".equals(data.getLochia())){ | |
| 620 | + map.put("LOCHIACODE","1"); | |
| 621 | + }else{ | |
| 622 | + map.put("LOCHIACODE","2"); | |
| 623 | + } | |
| 624 | + } | |
| 625 | + map.put("UTERUSABNORMDESC",data.getMatrix()); | |
| 626 | + if(data.getWound() != null){ | |
| 627 | + if("1".equals(data.getWound())){ | |
| 628 | + map.put("WOUNDCODE","1"); | |
| 629 | + }else{ | |
| 630 | + map.put("WOUNDCODE","2"); | |
| 631 | + } | |
| 632 | + } | |
| 633 | + map.put("OTHERSDESC",data.getOtherDesc()); | |
| 634 | + if(data.getHealthType() != null){ | |
| 635 | + if("1".equals(data.getHealthType())){ | |
| 636 | + map.put("FOLLOWUPCLASSIFYCODE","1"); | |
| 637 | + }else{ | |
| 638 | + map.put("FOLLOWUPCLASSIFYCODE","2"); | |
| 639 | + } | |
| 640 | + } | |
| 641 | + map.put("FOLLOWUPCLASSIFYVALUE",null); | |
| 642 | + map.put("BODYTEMPERATURE",data.getTemperature()); | |
| 643 | + if(data.getIsRefer() != null){ | |
| 644 | + if("1".equals(data.getIsRefer())){ | |
| 645 | + map.put("REFERRALCODE","1"); | |
| 646 | + }else if("2".equals(data.getIsRefer())){ | |
| 647 | + map.put("REFERRALCODE","2"); | |
| 648 | + } | |
| 649 | + } | |
| 650 | + String hospital = ""; | |
| 651 | + if (org.apache.commons.lang.StringUtils.isNotEmpty(data.getReferHospital())) { | |
| 652 | + Organization organization = organizationService.getOrganization(Integer.parseInt(data.getReferHospital())); | |
| 653 | + if (organization != null && organization.getYn() == YnEnums.YES.getId()) { | |
| 654 | + hospital = organization.getName(); | |
| 655 | + } | |
| 656 | + } | |
| 657 | + map.put("REFERTOORGNAME",hospital); | |
| 658 | + if(data.getNextVisitDate() != null){ | |
| 659 | + map.put("NEXTFOLLOWUPDATE",DateUtil.getyyyy_MM_dd(data.getNextVisitDate())); | |
| 660 | + } | |
| 661 | + map.put("FOLLOWUPDOCTORID",data.getCreateUser()); | |
| 662 | + String checkDoctor = ""; | |
| 663 | + | |
| 664 | + if (org.apache.commons.lang.StringUtils.isNotEmpty(data.getCreateUser())) { | |
| 665 | + Users users = usersService.getUsers(Integer.parseInt(data.getCreateUser())); | |
| 666 | + if (users != null && users.getYn() == YnEnums.YES.getId()) { | |
| 667 | + checkDoctor = users.getName(); | |
| 668 | + } | |
| 669 | + } | |
| 670 | + map.put("FOLLOWUPDOCTORNAME",checkDoctor); | |
| 671 | + map.put("ORGCODE",patients.getHospitalId()); | |
| 672 | + String hospital1 = ""; | |
| 673 | + if (org.apache.commons.lang.StringUtils.isNotEmpty(patients.getHospitalId())) { | |
| 674 | + Organization organization = organizationService.getOrganization(Integer.parseInt(patients.getHospitalId())); | |
| 675 | + if (organization != null && organization.getYn() == YnEnums.YES.getId()) { | |
| 676 | + hospital1 = organization.getName(); | |
| 677 | + } | |
| 678 | + } | |
| 679 | + map.put("ORGNAME",hospital1); | |
| 680 | + mList.add(map); | |
| 681 | + | |
| 682 | + }catch (Exception e){ | |
| 683 | + e.printStackTrace(); | |
| 684 | + continue; | |
| 685 | + } | |
| 686 | + } | |
| 687 | + } | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + return mList; | |
| 692 | + | |
| 693 | + } | |
| 694 | + | |
| 695 | + | |
| 696 | + /** | |
| 697 | + * 产后复查 | |
| 698 | + * @param startDate | |
| 699 | + * @param endDate | |
| 700 | + * @return | |
| 701 | + */ | |
| 702 | + public List<Map<String,String>> getCh42fs(String startDate,String endDate){ | |
| 703 | + List<Map<String,String>> mList = new ArrayList<Map<String,String>>(); | |
| 704 | + PostReviewQuery mongoQuery = new PostReviewQuery(); | |
| 705 | + mongoQuery.setModifiedStart(DateUtil.parseYMDHMS(startDate)); | |
| 706 | + mongoQuery.setModifiedStart(DateUtil.parseYMDHMS(endDate)); | |
| 707 | + List<PostReviewModel> list = postReviewService.findWithList(mongoQuery); | |
| 708 | + if(list != null && list.size() > 0){ | |
| 709 | + for(PostReviewModel data : list){ | |
| 710 | + try{ | |
| 711 | + Patients patients = patientsService.findOnePatientById(data.getParentId()); | |
| 712 | + Map<String,String> map = new HashMap<String,String>(); | |
| 713 | + map.put("POSTPARTUMFOLLOWUPID",data.getId()); | |
| 714 | + map.put("MATERNALINFOID",patients.getId()); | |
| 715 | + map.put("NAME",patients.getUsername()); | |
| 716 | + if(data.getCheckTime() != null){ | |
| 717 | + map.put("FOLLOWUPDATE",DateUtil.getyyyy_MM_dd(data.getCheckTime())); | |
| 718 | + } | |
| 719 | + if(patients.getFmDate() != null){ | |
| 720 | + map.put("DELIVERYDATE",DateUtil.getyyyy_MM_dd(patients.getFmDate())); | |
| 721 | + } | |
| 722 | + map.put("HEALTHDESC",data.getHealthStatus()); | |
| 723 | + map.put("PSYDESC",data.getPsychology()); | |
| 724 | + String ssy = ""; | |
| 725 | + String szy = ""; | |
| 726 | + Map<String, String> chBpMap = JsonUtil.getMap(data.getBp()); | |
| 727 | + if (MapUtils.isNotEmpty(chBpMap)) { | |
| 728 | + ssy = chBpMap.get("ssy"); | |
| 729 | + szy = chBpMap.get("szy"); | |
| 730 | + } | |
| 731 | + map.put("SYSTILIC",ssy); | |
| 732 | + map.put("DIASTOLIC",szy); | |
| 733 | + if("未见异常".equals(data.getBreast())){ | |
| 734 | + map.put("UBERCODE","1"); | |
| 735 | + }else{ | |
| 736 | + map.put("UBERCODE","2"); | |
| 737 | + } | |
| 738 | + map.put("UBERABNORMDESC",data.getBreast()); | |
| 739 | + if("未见异常".equals(data.getLochia())){ | |
| 740 | + map.put("LOCHIACODE","1"); | |
| 741 | + }else{ | |
| 742 | + map.put("LOCHIACODE","2"); | |
| 743 | + } | |
| 744 | + map.put("LOCHIAABNORMDESC",data.getBreast()); | |
| 745 | + if("未见异常".equals(data.getMatrix())){ | |
| 746 | + map.put("UTERUSCODE","1"); | |
| 747 | + }else{ | |
| 748 | + map.put("UTERUSCODE","2"); | |
| 749 | + } | |
| 750 | + map.put("UTERUSABNORMDESC",data.getBreast()); | |
| 751 | + if("未见异常".equals(data.getWound())){ | |
| 752 | + map.put("WOUNDCODE","1"); | |
| 753 | + }else{ | |
| 754 | + map.put("WOUNDCODE","2"); | |
| 755 | + } | |
| 756 | + map.put("WOUNDABNORMDESC",data.getWound()); | |
| 757 | + map.put("OTHERSDESC",data.getOther()); | |
| 758 | + map.put("FOLLOWUPCLASSIFYCODE",null); | |
| 759 | + map.put("FOLLOWUPCLASSIFYVALUE",null); | |
| 760 | + map.put("FOLLOWUPDOCTORID",data.getProdDoctor()); | |
| 761 | + String checkDoctor = ""; | |
| 762 | + | |
| 763 | + if (org.apache.commons.lang.StringUtils.isNotEmpty(data.getProdDoctor())) { | |
| 764 | + Users users = usersService.getUsers(Integer.parseInt(data.getProdDoctor())); | |
| 765 | + if (users != null && users.getYn() == YnEnums.YES.getId()) { | |
| 766 | + checkDoctor = users.getName(); | |
| 767 | + } | |
| 768 | + } | |
| 769 | + map.put("FOLLOWUPDOCTORNAME",checkDoctor); | |
| 770 | + map.put("ORGCODE",patients.getHospitalId()); | |
| 771 | + String hospital = ""; | |
| 772 | + if (org.apache.commons.lang.StringUtils.isNotEmpty(data.getHospitalId())) { | |
| 773 | + Organization organization = organizationService.getOrganization(Integer.parseInt(data.getHospitalId())); | |
| 774 | + if (organization != null && organization.getYn() == YnEnums.YES.getId()) { | |
| 775 | + hospital = organization.getName(); | |
| 776 | + } | |
| 777 | + } | |
| 778 | + map.put("ORGNAME",hospital); | |
| 779 | + | |
| 780 | + mList.add(map); | |
| 781 | + | |
| 782 | + }catch (Exception e){ | |
| 783 | + e.printStackTrace(); | |
| 784 | + continue; | |
| 785 | + } | |
| 786 | + } | |
| 787 | + } | |
| 788 | + | |
| 789 | + return mList; | |
| 790 | + } | |
| 497 | 791 | |
| 498 | 792 | |
| 499 | 793 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/QhdJbgwController.java
View file @
8633972
| ... | ... | @@ -58,7 +58,37 @@ |
| 58 | 58 | @ResponseBody |
| 59 | 59 | public List<Map<String,String>> qhdFenMian(@RequestBody Map<String,String> map){ |
| 60 | 60 | if(StringUtils.isNotEmpty(map.get("startDate")) && StringUtils.isNotEmpty(map.get("endDate"))){ |
| 61 | - return qhdJbgwInterface.getFuZhen(map.get("startDate"), map.get("endDate")); | |
| 61 | + return qhdJbgwInterface.getFm(map.get("startDate"), map.get("endDate")); | |
| 62 | + } | |
| 63 | + return null; | |
| 64 | + } | |
| 65 | + | |
| 66 | + | |
| 67 | + @RequestMapping(method = RequestMethod.POST,value = "/qhd/xse") | |
| 68 | + @ResponseBody | |
| 69 | + public List<Map<String,String>> qhdXinShengEr(@RequestBody Map<String,String> map){ | |
| 70 | + if(StringUtils.isNotEmpty(map.get("startDate")) && StringUtils.isNotEmpty(map.get("endDate"))){ | |
| 71 | + return qhdJbgwInterface.getXse(map.get("startDate"), map.get("endDate")); | |
| 72 | + } | |
| 73 | + return null; | |
| 74 | + } | |
| 75 | + | |
| 76 | + | |
| 77 | + @RequestMapping(method = RequestMethod.POST,value = "/qhd/chfs") | |
| 78 | + @ResponseBody | |
| 79 | + public List<Map<String,String>> qhdChanHouFangShi(@RequestBody Map<String,String> map){ | |
| 80 | + if(StringUtils.isNotEmpty(map.get("startDate")) && StringUtils.isNotEmpty(map.get("endDate"))){ | |
| 81 | + return qhdJbgwInterface.getChfs(map.get("startDate"), map.get("endDate")); | |
| 82 | + } | |
| 83 | + return null; | |
| 84 | + } | |
| 85 | + | |
| 86 | + | |
| 87 | + @RequestMapping(method = RequestMethod.POST,value = "/qhd/chfc") | |
| 88 | + @ResponseBody | |
| 89 | + public List<Map<String,String>> qhdChanHou42FangShi(@RequestBody Map<String,String> map){ | |
| 90 | + if(StringUtils.isNotEmpty(map.get("startDate")) && StringUtils.isNotEmpty(map.get("endDate"))){ | |
| 91 | + return qhdJbgwInterface.getCh42fs(map.get("startDate"), map.get("endDate")); | |
| 62 | 92 | } |
| 63 | 93 | return null; |
| 64 | 94 | } |