Commit b45dc2d64fe7fa125b416f152107c06d7cce94f3

Authored by liquanyu
1 parent d992d90fe1

隆化婚检辅助检查修改

Showing 1 changed file with 47 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/lhxfy/LhxfyService.java View file @ b45dc2d
... ... @@ -693,6 +693,14 @@
693 693 List<LisReportModel> lisReportModels = getLhxfyLis(premaritalCheckup.getCertificateNum());
694 694 if(CollectionUtils.isNotEmpty(lisReportModels)){
695 695 for (LisReportModel model : lisReportModels) {
  696 +
  697 + if (StringUtils.isEmpty(premaritalCheckup.getAssistDoctor()))
  698 + {
  699 + premaritalCheckup.setAssistDoctor("2100002225");//修素英
  700 + premaritalCheckup.setAssistHospitalId("2100001605");
  701 + premaritalCheckup.setAssistTime(model.getCheckTime());
  702 + }
  703 +
696 704 //获取检查结果
697 705 List<LisReportItemModel> itemModels = model.getItems();
698 706 if(CollectionUtils.isNotEmpty(itemModels)){
... ... @@ -742,6 +750,12 @@
742 750 case "GLU02":
743 751 premaritalCheckup.setGlu(result);
744 752 break;
  753 + case "004GLU-G":
  754 + if (!StringUtils.isNotEmpty(premaritalCheckup.getGlu()))
  755 + {
  756 + premaritalCheckup.setGlu(result);
  757 + }
  758 + break;
745 759 /***血型***/
746 760 case "RH":
747 761 if(result.contains("阳性")) {
... ... @@ -750,6 +764,14 @@
750 764 premaritalCheckup.setRh("2");
751 765 }
752 766 break;
  767 + /***血型***/
  768 + case "RHD":
  769 + if(result.contains("阳性")) {
  770 + premaritalCheckup.setRh("1");
  771 + }else if(result.contains("阴性")) {
  772 + premaritalCheckup.setRh("2");
  773 + }
  774 + break;
753 775 case "ABO":
754 776 premaritalCheckup.setAbo(result);
755 777 break;
... ... @@ -783,7 +805,15 @@
783 805 break;
784 806 /***女性阴道分泌物***/
785 807 case "QJD":
786   - premaritalCheckup.setQjd(result);
  808 + if (result.equals("I") || result.equals("Ⅰ")) {
  809 + premaritalCheckup.setQjd("1");
  810 + } else if (result.equals("II") || result.equals("Ⅱ")) {
  811 + premaritalCheckup.setQjd("2");
  812 + } else if (result.equals("Ⅲ") || result.equals("III")) {
  813 + premaritalCheckup.setQjd("3");
  814 + } else if (result.equals("IV") || result.equals("IV")) {
  815 + premaritalCheckup.setQjd("4");
  816 + }
787 817 break;
788 818 case "XSXB":
789 819 if(result.contains("阳性")) {
... ... @@ -800,7 +830,22 @@
800 830 }
801 831 break;
802 832 case "PH02":
803   - premaritalCheckup.setPh(result);
  833 + if (StringUtils.isNotEmpty(result))
  834 + {
  835 + try {
  836 + Double ph = Double.parseDouble(result);
  837 + premaritalCheckup.setPh( ph < 4 ? "1" : "2");
  838 + }catch (Exception e){}
  839 + }
  840 + break;
  841 + case "PH02_G":
  842 + if (StringUtils.isNotEmpty(result) && !StringUtils.isNotEmpty(premaritalCheckup.getPh()))
  843 + {
  844 + try {
  845 + Double ph = Double.parseDouble(result);
  846 + premaritalCheckup.setPh( ph < 4 ? "1" : "2");
  847 + }catch (Exception e){}
  848 + }
804 849 break;
805 850 case "NZJ":
806 851 if(result.contains("阳性")) {