Commit 752fb5ce6c83fb6c13709e50ec0a009c87c721c4

Authored by gengxiaokai
1 parent ae7eb0d31c

诸城初诊,复诊接口

Showing 1 changed file with 589 additions and 9 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/zcfy/ZcPrenatalService.java View file @ 752fb5c
... ... @@ -83,7 +83,7 @@
83 83 join1 = list.get(0).get("join").toString();//衔接
84 84  
85 85 }
86   - String inSql = "insert into lyms_zccscz(id,name,idcard,vccardno,\n" +
  86 + /*String inSql = "insert into lyms_zccscz(id,name,idcard,vccardno,\n" +
87 87 "phone,genRemark,gynRemark,treatmentOpinion3,\n" +
88 88 "quicken,quickenRemark,resultSupple,syjgSelect,\n" +
89 89 "hivktSelect,neoDeathTodo,birthDefectTodo,neoDeath,\n" +
90 90  
91 91  
92 92  
... ... @@ -121,19 +121,457 @@
121 121 "\""+map.get("yghxkt")+"\",\""+map.get("xqjq")+"\",\""+map.get("xnsd")+"\",\""+map.get("hivkt")+"\",\""+map.get("ydfmw")+"\",\""+map.get("ydqjd")+"\",\n" +
122 122 "\""+map.get("bChao")+"\",\""+heartRate+"\",\""+fetalPosition+"\",\""+fetalPresentation+"\",\""+join1+"\",\""+map.get("checkDate")+"\",\n" +
123 123 "\""+map.get("cDueWeek")+"\",\""+map.get("checkDoctor")+"\",\""+map.get("hospital")+"\",\""+map.get("dirOpinion")+"\")";
  124 +*/
124 125  
125   - ps=conn.prepareStatement(inSql);
126   - int result = ps.executeUpdate();
127   - if(result > 0){
128   - br.setErrorcode(ErrorCodeConstants.SUCCESS);
129   - br.setErrormsg("成功");
130   - return br;
131   - }
  126 + String innSql = "insert into lyms_zccscz(id,name,idcard,vccardno,\n" +
  127 + "phone,genRemark,gynRemark,treatmentOpinion3,\n" +
  128 + "quicken,quickenRemark,resultSupple,syjgSelect,\n" +
  129 + "hivktSelect,neoDeathTodo,birthDefectTodo,neoDeath,\n" +
  130 + "birthDefect,dueDate,lastMenses,bg,pastHistory,\n" +
  131 + "familyHistory,personalHistory,ymjzHistory,ywgmHistory,\n" +
  132 + "fksxHistory,ysfyHistory,cestationInfo,hHealthInfo,\n" +
  133 + "pregnancyTimes,prodTime,delivery,planedProd,\n" +
  134 + "abortion,stillbirth,stillChan,height,weight,\n" +
  135 + "yqWeight,baricIndex,bp,heart,lungs,\n" +
  136 + "vulva,vagina,cervical,uterus,fujian,\n" +
  137 + "gonggao,fuwei,edema,tireNumber,xhdb,\n" +
  138 + "bxbjs,platelet,chgOther,ndb,nt,\n" +
  139 + "urineKetone,bld,ncgOther,abo,rh,\n" +
  140 + "bloodSugar,xqgbzam,xqgczam,albumin,totalBilirubin,\n" +
  141 + "jhBilirubin,ygbmky,ygbmkt,ygeky,ygekt,\n" +
  142 + "yghxkt,xqjq,xnsd,hivkt,ydfmw,ydqjd,\n" +
  143 + "bChao,heartRate,fetalPosition,fetalPresentation,join1,checkDate,\n" +
  144 + "cDueWeek,checkDoctor,hospital,dirOpinion) " +
  145 + "values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?," +
  146 + "?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
132 147  
133 148  
134 149  
135 150  
  151 + ps=conn.prepareStatement(innSql);
  152 + ps.setString(1,antExChuModel.getId());
  153 + ps.setString(2,patients.getUsername());
  154 + ps.setString(3,patients.getCardNo());
  155 + ps.setString(4,patients.getVcCardNo());
  156 + ps.setString(5,patients.getPhone());
  157 + if(map.get("genRemark") != null){
  158 + ps.setString(6,map.get("genRemark").toString());
  159 + }else{
  160 + ps.setString(6,null);
  161 + }
  162 + if(map.get("gynRemark") != null){
  163 + ps.setString(7,map.get("gynRemark").toString());
  164 + }else{
  165 + ps.setString(7,null);
  166 + }
  167 + if(map.get("treatmentOpinion3") != null){
  168 + ps.setString(8,map.get("treatmentOpinion3").toString());
  169 + }else{
  170 + ps.setString(8,null);
  171 + }
  172 + if(map.get("quicken") != null){
  173 + ps.setString(9,map.get("quicken").toString());
  174 + }else{
  175 + ps.setString(9,null);
  176 + }
  177 + if(map.get("quickenRemark") != null){
  178 + ps.setString(10,map.get("quickenRemark").toString());
  179 + }else{
  180 + ps.setString(10,null);
  181 + }
  182 + if(map.get("resultSupple") != null){
  183 + ps.setString(11,map.get("resultSupple").toString());
  184 + }else{
  185 + ps.setString(11,null);
  186 + }
  187 + if(map.get("syjgSelect") != null){
  188 + ps.setString(12,map.get("syjgSelect").toString());
  189 + }else{
  190 + ps.setString(12,null);
  191 + }
  192 + if(map.get("hivktSelect") != null){
  193 + ps.setString(13,map.get("hivktSelect").toString());
  194 + }else{
  195 + ps.setString(13,null);
  196 + }
  197 + if(map.get("neoDeathTodo") != null){
  198 + ps.setString(14,map.get("neoDeathTodo").toString());
  199 + }else{
  200 + ps.setString(14,null);
  201 + }
  202 + if(map.get("birthDefectTodo") != null){
  203 + ps.setString(15,map.get("birthDefectTodo").toString());
  204 + }else{
  205 + ps.setString(15,null);
  206 + }
  207 + if(map.get("neoDeath") != null){
  208 + ps.setString(16,map.get("neoDeath").toString());
  209 + }else{
  210 + ps.setString(16,null);
  211 + }
  212 + if(map.get("birthDefect") != null){
  213 + ps.setString(17,map.get("birthDefect").toString());
  214 + }else{
  215 + ps.setString(17,null);
  216 + }
  217 + if(map.get("dueDate") != null){
  218 + ps.setString(18,map.get("dueDate").toString());
  219 + }else{
  220 + ps.setString(18,null);
  221 + }
  222 + if(map.get("lastMenses") != null){
  223 + ps.setString(19,map.get("lastMenses").toString());
  224 + }else{
  225 + ps.setString(19,null);
  226 + }
  227 + if(map.get("bg") != null){
  228 + ps.setString(20,map.get("bg").toString());
  229 + }else{
  230 + ps.setString(20,null);
  231 + }
  232 + if(map.get("pastHistory") != null){
  233 + ps.setString(21,map.get("pastHistory").toString());
  234 + }else{
  235 + ps.setString(21,null);
  236 + }
  237 + if(map.get("familyHistory") != null){
  238 + ps.setString(22,map.get("familyHistory").toString());
  239 + }else{
  240 + ps.setString(22,null);
  241 + }
  242 + if(map.get("personalHistory") != null){
  243 + ps.setString(23,map.get("personalHistory").toString());
  244 + }else{
  245 + ps.setString(23,null);
  246 + }
  247 + if(map.get("ymjzHistory") != null){
  248 + ps.setString(24,map.get("ymjzHistory").toString());
  249 + }else{
  250 + ps.setString(24,null);
  251 + }
  252 + if(map.get("ywgmHistory") != null){
  253 + ps.setString(25,map.get("ywgmHistory").toString());
  254 + }else{
  255 + ps.setString(25,null);
  256 + }
  257 + if(map.get("fksxHistory") != null){
  258 + ps.setString(26,map.get("fksxHistory").toString());
  259 + }else{
  260 + ps.setString(26,null);
  261 + }
  262 + if(map.get("ysfyHistory") != null){
  263 + ps.setString(27,map.get("ysfyHistory").toString());
  264 + }else{
  265 + ps.setString(27,null);
  266 + }
  267 + if(map.get("cestationInfo") != null){
  268 + ps.setString(28,map.get("cestationInfo").toString());
  269 + }else{
  270 + ps.setString(28,null);
  271 + }
  272 + if(map.get("hHealthInfo") != null){
  273 + ps.setString(29,map.get("hHealthInfo").toString());
  274 + }else{
  275 + ps.setString(29,null);
  276 + }
  277 + if(map.get("pregnancyTimes") != null){
  278 + ps.setString(30,map.get("pregnancyTimes").toString());
  279 + }else{
  280 + ps.setString(30,null);
  281 + }
  282 + if(map.get("prodTime") != null){
  283 + ps.setString(31,map.get("prodTime").toString());
  284 + }else{
  285 + ps.setString(31,null);
  286 + }
  287 + if(map.get("delivery") != null){
  288 + ps.setString(32,map.get("delivery").toString());
  289 + }else{
  290 + ps.setString(32,null);
  291 + }
  292 + if(map.get("planedProd") != null){
  293 + ps.setString(33,map.get("planedProd").toString());
  294 + }else{
  295 + ps.setString(33,null);
  296 + }
  297 + if(map.get("abortion") != null){
  298 + ps.setString(34,map.get("abortion").toString());
  299 + }else{
  300 + ps.setString(34,null);
  301 + }
  302 + if(map.get("stillbirth") != null){
  303 + ps.setString(35,map.get("stillbirth").toString());
  304 + }else{
  305 + ps.setString(35,null);
  306 + }
  307 + if(map.get("stillChan") != null){
  308 + ps.setString(36,map.get("stillChan").toString());
  309 + }else{
  310 + ps.setString(36,null);
  311 + }
  312 + if(map.get("height") != null){
  313 + ps.setString(37,map.get("height").toString());
  314 + }else{
  315 + ps.setString(37,null);
  316 + }
  317 + if(map.get("weight") != null){
  318 + ps.setString(38,map.get("weight").toString());
  319 + }else{
  320 + ps.setString(38,null);
  321 + }
  322 + if(map.get("yqWeight") != null){
  323 + ps.setString(39,map.get("yqWeight").toString());
  324 + }else{
  325 + ps.setString(39,null);
  326 + }
  327 + if(map.get("baricIndex") != null){
  328 + ps.setString(40,map.get("baricIndex").toString());
  329 + }else{
  330 + ps.setString(40,null);
  331 + }
  332 + if(map.get("bp") != null){
  333 + ps.setString(41,map.get("bp").toString());
  334 + }else{
  335 + ps.setString(41,null);
  336 + }
  337 + if(map.get("heart") != null){
  338 + ps.setString(42,map.get("heart").toString());
  339 + }else{
  340 + ps.setString(42,null);
  341 + }
  342 + if(map.get("lungs") != null){
  343 + ps.setString(43,map.get("lungs").toString());
  344 + }else{
  345 + ps.setString(43,null);
  346 + }
  347 + if(map.get("vulva") != null){
  348 + ps.setString(44,map.get("vulva").toString());
  349 + }else{
  350 + ps.setString(44,null);
  351 + }
  352 + if(map.get("vagina") != null){
  353 + ps.setString(45,map.get("vagina").toString());
  354 + }else{
  355 + ps.setString(45,null);
  356 + }
  357 + if(map.get("cervical") != null){
  358 + ps.setString(46,map.get("cervical").toString());
  359 + }else{
  360 + ps.setString(46,null);
  361 + }
  362 + if(map.get("uterus") != null){
  363 + ps.setString(47,map.get("uterus").toString());
  364 + }else{
  365 + ps.setString(47,null);
  366 + }
  367 + if(map.get("fujian") != null){
  368 + ps.setString(48,map.get("fujian").toString());
  369 + }else{
  370 + ps.setString(48,null);
  371 + }
  372 + if(map.get("gonggao") != null){
  373 + ps.setString(49,map.get("gonggao").toString());
  374 + }else{
  375 + ps.setString(49,null);
  376 + }
  377 + if(map.get("fuwei") != null){
  378 + ps.setString(50,map.get("fuwei").toString());
  379 + }else{
  380 + ps.setString(50,null);
  381 + }
  382 + if(map.get("edema") != null){
  383 + ps.setString(51,map.get("edema").toString());
  384 + }else{
  385 + ps.setString(51,null);
  386 + }
  387 + if(map.get("tireNumber") != null){
  388 + ps.setString(52,map.get("tireNumber").toString());
  389 + }else{
  390 + ps.setString(52,null);
  391 + }
  392 + if(map.get("xhdb") != null){
  393 + ps.setString(53,map.get("xhdb").toString());
  394 + }else{
  395 + ps.setString(53,null);
  396 + }
  397 + if(map.get("bxbjs") != null){
  398 + ps.setString(54,map.get("bxbjs").toString());
  399 + }else{
  400 + ps.setString(54,null);
  401 + }
  402 + if(map.get("platelet") != null){
  403 + ps.setString(55,map.get("platelet").toString());
  404 + }else{
  405 + ps.setString(55,null);
  406 + }
  407 + if(map.get("chgOther") != null){
  408 + ps.setString(56,map.get("chgOther").toString());
  409 + }else{
  410 + ps.setString(56,null);
  411 + }
  412 + if(map.get("ndb") != null){
  413 + ps.setString(57,map.get("ndb").toString());
  414 + }else{
  415 + ps.setString(57,null);
  416 + }
  417 + if(map.get("nt") != null){
  418 + ps.setString(58,map.get("nt").toString());
  419 + }else{
  420 + ps.setString(58,null);
  421 + }
  422 + if(map.get("urineKetone") != null){
  423 + ps.setString(59,map.get("urineKetone").toString());
  424 + }else{
  425 + ps.setString(59,null);
  426 + }
  427 + if(map.get("bld") != null){
  428 + ps.setString(60,map.get("bld").toString());
  429 + }else{
  430 + ps.setString(60,null);
  431 + }
  432 + if(map.get("ncgOther") != null){
  433 + ps.setString(61,map.get("ncgOther").toString());
  434 + }else{
  435 + ps.setString(61,null);
  436 + }
  437 + if(map.get("abo") != null){
  438 + ps.setString(62,map.get("abo").toString());
  439 + }else{
  440 + ps.setString(62,null);
  441 + }
  442 + if(map.get("rh") != null){
  443 + ps.setString(63,map.get("rh").toString());
  444 + }else{
  445 + ps.setString(63,null);
  446 + }
  447 + if(map.get("bloodSugar") != null){
  448 + ps.setString(64,map.get("bloodSugar").toString());
  449 + }else{
  450 + ps.setString(64,null);
  451 + }
  452 + if(map.get("xqgbzam") != null){
  453 + ps.setString(65,map.get("xqgbzam").toString());
  454 + }else{
  455 + ps.setString(65,null);
  456 + }
  457 + if(map.get("xqgczam") != null){
  458 + ps.setString(66,map.get("xqgczam").toString());
  459 + }else{
  460 + ps.setString(66,null);
  461 + }
  462 + if(map.get("albumin") != null){
  463 + ps.setString(67,map.get("albumin").toString());
  464 + }else{
  465 + ps.setString(67,null);
  466 + }
  467 + if(map.get("totalBilirubin") != null){
  468 + ps.setString(68,map.get("totalBilirubin").toString());
  469 + }else{
  470 + ps.setString(68,null);
  471 + }
  472 + if(map.get("jhBilirubin") != null){
  473 + ps.setString(69,map.get("jhBilirubin").toString());
  474 + }else{
  475 + ps.setString(69,null);
  476 + }
  477 + if(map.get("ygbmky") != null){
  478 + ps.setString(70,map.get("ygbmky").toString());
  479 + }else{
  480 + ps.setString(70,null);
  481 + }
  482 + if(map.get("ygbmkt") != null){
  483 + ps.setString(71,map.get("ygbmkt").toString());
  484 + }else{
  485 + ps.setString(71,null);
  486 + }
  487 + if(map.get("ygeky") != null){
  488 + ps.setString(72,map.get("ygeky").toString());
  489 + }else{
  490 + ps.setString(72,null);
  491 + }
  492 + if(map.get("ygekt") != null){
  493 + ps.setString(73,map.get("ygekt").toString());
  494 + }else{
  495 + ps.setString(73,null);
  496 + }
  497 + if(map.get("yghxkt") != null){
  498 + ps.setString(74,map.get("yghxkt").toString());
  499 + }else{
  500 + ps.setString(74,null);
  501 + }
  502 + if(map.get("xqjq") != null){
  503 + ps.setString(75,map.get("xqjq").toString());
  504 + }else{
  505 + ps.setString(75,null);
  506 + }
  507 + if(map.get("xnsd") != null){
  508 + ps.setString(76,map.get("xnsd").toString());
  509 + }else{
  510 + ps.setString(76,null);
  511 + }
  512 + if(map.get("hivkt") != null){
  513 + ps.setString(77,map.get("hivkt").toString());
  514 + }else{
  515 + ps.setString(77,null);
  516 + }
  517 + if(map.get("ydfmw") != null){
  518 + ps.setString(78,map.get("ydfmw").toString());
  519 + }else{
  520 + ps.setString(78,null);
  521 + }
  522 + if(map.get("ydqjd") != null){
  523 + ps.setString(79,map.get("ydqjd").toString());
  524 + }else{
  525 + ps.setString(79,null);
  526 + }
  527 + if(map.get("bChao") != null){
  528 + ps.setString(80,map.get("bChao").toString());
  529 + }else{
  530 + ps.setString(80,null);
  531 + }
  532 + ps.setString(81,heartRate);
  533 + ps.setString(82,fetalPosition);
  534 + ps.setString(83,fetalPresentation);
  535 + ps.setString(84,join1);
  536 + if(map.get("checkDate") != null){
  537 + ps.setString(85,map.get("checkDate").toString());
  538 + }else{
  539 + ps.setString(85,null);
  540 + }
  541 + if(map.get("cDueWeek") != null){
  542 + ps.setString(86,map.get("cDueWeek").toString());
  543 + }else{
  544 + ps.setString(86,null);
  545 + }
  546 + if(map.get("checkDoctor") != null){
  547 + ps.setString(87,map.get("checkDoctor").toString());
  548 + }else{
  549 + ps.setString(87,null);
  550 + }
  551 + if(map.get("hospital") != null){
  552 + ps.setString(88,map.get("hospital").toString());
  553 + }else{
  554 + ps.setString(88,null);
  555 + }
  556 + if(map.get("dirOpinion") != null){
  557 + ps.setString(89,map.get("dirOpinion").toString());
  558 + }else{
  559 + ps.setString(89,null);
  560 + }
136 561  
  562 +
  563 +
  564 + int result = ps.executeUpdate();
  565 + if(result > 0){
  566 + br.setErrorcode(ErrorCodeConstants.SUCCESS);
  567 + br.setErrormsg("成功");
  568 + return br;
  569 + }
  570 +
  571 +
  572 +
  573 +
  574 +
137 575 }
138 576  
139 577 }
... ... @@ -223,7 +661,149 @@
223 661 "\""+map.get("bloodSugar3")+"\",\""+map.get("bloodSugar4")+"\",\""+map.get("bChao")+"\",\""+map.get("diagnosis")+"\",\n" +
224 662 "\""+map.get("diagnosisOther")+"\",\""+map.get("treatmentOpinion")+"\",\""+map.get("guide")+"\")";
225 663  
226   - ps = conn.prepareStatement(inSql);
  664 +
  665 +
  666 + String innSql = "insert into lyms_zccsfz(id,name,idcard,vccardno,\n" +
  667 + "phone,checkDate,currentDueDate,checkDoctor,\n" +
  668 + "hospital,chiefComplaint,bp,weight,gongGao,\n" +
  669 + "abdominalCircumference,edema,tireNumber,quicken,\n" +
  670 + "quickenRemark,heartRate,FetalPosition,fetalPresentation,join1,\n" +
  671 + "hemoglobin,urineProtein,bloodSugar,bloodSugar2,\n" +
  672 + "bloodSugar3,bloodSugar4,bChao,diagnosis,\n" +
  673 + "diagnosisOther,treatmentOpinion,guide) " +
  674 + "values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
  675 +
  676 + ps = conn.prepareStatement(innSql);
  677 + ps.setString(1,antenatalExaminationModel.getId());
  678 + ps.setString(2,patients.getUsername());
  679 + ps.setString(3,patients.getCardNo());
  680 + ps.setString(4,patients.getVcCardNo());
  681 + ps.setString(5,patients.getPhone());
  682 + if(map.get("checkDate") != null){
  683 + ps.setString(6,map.get("checkDate").toString());
  684 + }else{
  685 + ps.setString(6,null);
  686 + }
  687 + if(map.get("currentDueDate") != null){
  688 + ps.setString(7,map.get("currentDueDate").toString());
  689 + }else{
  690 + ps.setString(7,null);
  691 + }
  692 + if(map.get("checkDoctor") != null){
  693 + ps.setString(8,map.get("checkDoctor").toString());
  694 + }else{
  695 + ps.setString(8,null);
  696 + }
  697 + if(map.get("hospital") != null){
  698 + ps.setString(9,map.get("hospital").toString());
  699 + }else{
  700 + ps.setString(9,null);
  701 + }
  702 + if(map.get("chiefComplaint") != null){
  703 + ps.setString(10,map.get("chiefComplaint").toString());
  704 + }else{
  705 + ps.setString(10,null);
  706 + }
  707 + if(map.get("bp") != null){
  708 + ps.setString(11,map.get("bp").toString());
  709 + }else{
  710 + ps.setString(11,null);
  711 + }
  712 + if(map.get("weight") != null){
  713 + ps.setString(12,map.get("weight").toString());
  714 + }else{
  715 + ps.setString(12,null);
  716 + }
  717 + if(map.get("gongGao") != null){
  718 + ps.setString(13,map.get("gongGao").toString());
  719 + }else{
  720 + ps.setString(13,null);
  721 + }
  722 + if(map.get("abdominalCircumference") != null){
  723 + ps.setString(14,map.get("abdominalCircumference").toString());
  724 + }else{
  725 + ps.setString(14,null);
  726 + }
  727 + if(map.get("edema") != null){
  728 + ps.setString(15,map.get("edema").toString());
  729 + }else{
  730 + ps.setString(15,null);
  731 + }
  732 + if(map.get("tireNumber") != null){
  733 + ps.setString(16,map.get("tireNumber").toString());
  734 + }else{
  735 + ps.setString(16,null);
  736 + }
  737 + if(map.get("quicken") != null){
  738 + ps.setString(17,map.get("quicken").toString());
  739 + }else{
  740 + ps.setString(17,null);
  741 + }
  742 + if(map.get("quickenRemark") != null){
  743 + ps.setString(18,map.get("quickenRemark").toString());
  744 + }else{
  745 + ps.setString(18,null);
  746 + }
  747 + ps.setString(19,heartRate);
  748 + ps.setString(20,fetalPosition);
  749 + ps.setString(21,fetalPresentation);
  750 + ps.setString(22,join1);
  751 + if(map.get("hemoglobin") != null){
  752 + ps.setString(23,map.get("hemoglobin").toString());
  753 + }else{
  754 + ps.setString(23,null);
  755 + }
  756 + if(map.get("urineProtein") != null){
  757 + ps.setString(24,map.get("urineProtein").toString());
  758 + }else{
  759 + ps.setString(24,null);
  760 + }
  761 + if(map.get("bloodSugar") != null){
  762 + ps.setString(25,map.get("bloodSugar").toString());
  763 + }else{
  764 + ps.setString(25,null);
  765 + }
  766 + if(map.get("bloodSugar2") != null){
  767 + ps.setString(26,map.get("bloodSugar2").toString());
  768 + }else{
  769 + ps.setString(26,null);
  770 + }
  771 + if(map.get("bloodSugar3") != null){
  772 + ps.setString(27,map.get("bloodSugar3").toString());
  773 + }else{
  774 + ps.setString(27,null);
  775 + }
  776 + if(map.get("bloodSugar4") != null){
  777 + ps.setString(28,map.get("bloodSugar4").toString());
  778 + }else{
  779 + ps.setString(28,null);
  780 + }
  781 + if(map.get("bChao") != null){
  782 + ps.setString(29,map.get("bChao").toString());
  783 + }else{
  784 + ps.setString(29,null);
  785 + }
  786 + if(map.get("diagnosis") != null){
  787 + ps.setString(30,map.get("diagnosis").toString());
  788 + }else{
  789 + ps.setString(30,null);
  790 + }
  791 + if(map.get("diagnosisOther") != null){
  792 + ps.setString(31,map.get("diagnosisOther").toString());
  793 + }else{
  794 + ps.setString(31,null);
  795 + }
  796 + if(map.get("treatmentOpinion") != null){
  797 + ps.setString(32,map.get("treatmentOpinion").toString());
  798 + }else{
  799 + ps.setString(32,null);
  800 + }
  801 + if(map.get("guide") != null){
  802 + ps.setString(33,map.get("guide").toString());
  803 + }else{
  804 + ps.setString(33,null);
  805 + }
  806 +
227 807 int result = ps.executeUpdate();
228 808 if(result > 0){
229 809 br.setErrorcode(ErrorCodeConstants.SUCCESS);