Commit 222ff4b6f39d27c3c990f415adfd0b9a865494bf

Authored by gengxiaokai
1 parent 6859effccf

乐陵分娩

Showing 2 changed files with 77 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/dzfy/Fm.java View file @ 222ff4b
... ... @@ -70,6 +70,53 @@
70 70  
71 71 private String babyDate;//接收孕妇分娩最近日期
72 72  
  73 +
  74 + private String sxl; //用来接收乐陵失血量中间转换字段
  75 + private String ccOne; //用来接收乐陵第一产程中间转化字段
  76 + private String ccTwo; //用来接收乐陵第二产程中间转化字段
  77 + private String ccThree; //用来接收乐陵第三产程中间转化字段
  78 + private String total; //用来接收乐陵总产程中间转换字段
  79 +
  80 + public String getSxl() {
  81 + return sxl;
  82 + }
  83 +
  84 + public void setSxl(String sxl) {
  85 + this.sxl = sxl;
  86 + }
  87 +
  88 + public String getCcOne() {
  89 + return ccOne;
  90 + }
  91 +
  92 + public void setCcOne(String ccOne) {
  93 + this.ccOne = ccOne;
  94 + }
  95 +
  96 + public String getCcTwo() {
  97 + return ccTwo;
  98 + }
  99 +
  100 + public void setCcTwo(String ccTwo) {
  101 + this.ccTwo = ccTwo;
  102 + }
  103 +
  104 + public String getCcThree() {
  105 + return ccThree;
  106 + }
  107 +
  108 + public void setCcThree(String ccThree) {
  109 + this.ccThree = ccThree;
  110 + }
  111 +
  112 + public String getTotal() {
  113 + return total;
  114 + }
  115 +
  116 + public void setTotal(String total) {
  117 + this.total = total;
  118 + }
  119 +
73 120 public String getBabyDate() {
74 121 return babyDate;
75 122 }
platform-operate-api/src/main/java/com/lyms/hospitalapi/llfy/LlfyFmService.java View file @ 222ff4b
... ... @@ -136,12 +136,17 @@
136 136 " 产妇离开产室情况 as MATERNAL_INFO,\n" +
137 137 " 会阴切开术 as PERINEAL_CONDITION,\n" +
138 138 //" 失血量 as SH_LOSE_BLOOD,\n" +
  139 + " 失血量 as sxl,\n" +
139 140 // " TH_LOSE_BLOOD as TH_LOSE_BLOOD,\n" +
140 141 // " 接生者 as DELIVER_DOCTOR,\n" +
141 142 // " 产程第一期 as PROD_PROCESS_ONE,\n" +
  143 + " 产程第一期 as ccOne,\n" +
142 144 // " 第二期 as PROD_PROCESS_TWO,\n" +
  145 + " 第二期 as ccTwo,\n" +
143 146 // " 第三期 as PROD_PROCESS_THREE,\n" +
  147 + " 第三期 as ccThree,\n" +
144 148 //" 总计 as TOTAL_PROCESS,\n" +
  149 + " 总计 as total,\n" +
145 150 " CONVERT(int,胎盘数量) as PLACENTA_NUM,\n" +
146 151 //" DELIVER_HOSPITAL as DELIVER_HOSPITAL,\n" +
147 152 " 产妇居住地址 as ADDR,\n"+
... ... @@ -211,6 +216,31 @@
211 216 {
212 217 continue;
213 218 }
  219 +
  220 + //将中间字段的值整理赋值到正式字段中
  221 + int sxl = allFm.getSxl().length();
  222 + allFm.setSH_LOSE_BLOOD(Integer.parseInt(allFm.getSxl().substring(0, sxl-1)));//失血量
  223 +
  224 + String[] oneShi = allFm.getCcOne().split("时");
  225 + int one = Integer.parseInt(oneShi[0])*60;
  226 + String[] oneFen = oneShi[1].split("分");
  227 + allFm.setPROD_PROCESS_ONE(one+Integer.parseInt(oneFen[0]));//第一产程
  228 +
  229 + String[] twoShi = allFm.getCcTwo().split("时");
  230 + int two = Integer.parseInt(twoShi[0])*60;
  231 + String[] twoFen = twoShi[1].split("分");
  232 + allFm.setPROD_PROCESS_TWO(two+Integer.parseInt(twoFen[0]));//第二产程
  233 +
  234 + String[] threeShi = allFm.getCcThree().split("时");
  235 + int three = Integer.parseInt(threeShi[0])*60;
  236 + String[] threeFen = threeShi[1].split("分");
  237 + allFm.setPROD_PROCESS_THREE(three+Integer.parseInt(threeFen[0]));//第三产程
  238 +
  239 + String[] totalShi = allFm.getTotal().split("时");
  240 + int total = Integer.parseInt(totalShi[0])*60;
  241 + String[] totalFen = totalShi[1].split("分");
  242 + allFm.setTOTAL_PROCESS(String.valueOf(total+Integer.parseInt(totalFen[0])));//总产程
  243 +
214 244  
215 245 PatientsQuery query = new PatientsQuery();
216 246 query.setYn(YnEnums.YES.getId());