SMMNN02000_외부신생아간호정보조사.xrw 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>외부신생아 간호정보조사</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <wardrecinfo>
  11. <bfrecddtm/>
  12. <bfrecdd/>
  13. <bfrecuser/>
  14. <bfrectm/>
  15. <recdd/>
  16. <rectm/>
  17. <recuser/>
  18. <infooffer/>
  19. <patinfo/>
  20. <signno/>
  21. <room/>
  22. <patnm/>
  23. <sex/>
  24. <age/>
  25. <pid/>
  26. <fstrgstrnm/>
  27. <fstrgstdt/>
  28. </wardrecinfo>
  29. </main>
  30. <send>
  31. <req/>
  32. <patgnrlinfo/>
  33. <wardrecinfo/>
  34. <bodyases/>
  35. </send>
  36. <init>
  37. <mlist>
  38. <M0068>
  39. <cdid/>
  40. <cdnm/>
  41. </M0068>
  42. <M0069>
  43. <cdid/>
  44. <cdnm/>
  45. </M0069>
  46. <M0070>
  47. <cdid/>
  48. <cdnm/>
  49. </M0070>
  50. <M0071>
  51. <cdid/>
  52. <cdnm/>
  53. </M0071>
  54. <M0072>
  55. <cdid/>
  56. <cdnm/>
  57. </M0072>
  58. <M0073>
  59. <cdid/>
  60. <cdnm/>
  61. </M0073>
  62. <M0074>
  63. <cdid/>
  64. <cdnm/>
  65. </M0074>
  66. </mlist>
  67. </init>
  68. <hidden>
  69. <paminfo/>
  70. <histinfo/>
  71. <bodyases>
  72. <mfmdstatinfo/>
  73. <shpaininfo/>
  74. <resorgninfo/>
  75. <digorgninfo/>
  76. <nvesysinfo/>
  77. <skinsectinfo/>
  78. </bodyases>
  79. <rsltinfo/>
  80. </hidden>
  81. <codeinfo/>
  82. <signinfo>
  83. <signno/>
  84. </signinfo>
  85. </root>
  86. </instance>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. fGetCmbList();
  90. fInit();
  91. fGetInitRecInfo();
  92. fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
  93. fInitEvent();
  94. model.refresh();
  95. ]]>
  96. </script>
  97. <script type="javascript">
  98. <![CDATA[
  99. var status = "select";
  100. var NoneInspCode = "-1"; //측정불가코드값
  101. //현재수진이력의 입원시간을 가져온다
  102. function fGetIndtInfo() {
  103. var indd = model.getValue("/root/temp/cond/list/indd");
  104. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|"); //이전기록일시
  105. var bfrecindd = recpkspec[1]; //이전기록일시 입원일자
  106. if(indd != bfrecindd) {
  107. ipt_indt.value = model.getValue("/root/temp/cond/list/careinrmtm"); //입원시간
  108. }
  109. }
  110. function fInitEvent() {
  111. fInitEventOutNBabyInfo();
  112. fInitEventBodyAses();
  113. }
  114. function fGetCmbList() {
  115. model.removeNodeset("/root/init/mlist");
  116. model.makeNode("/root/init/mlist");
  117. //성가병원 기관코드 조회_20090626_SMY
  118. fGetNursHardCdInfo("'077','172'", getCurrentDate()); //CareCom.js
  119. zbcfGetCodeList( new Array ( "M0068" //직업
  120. ,"M0069" //교육정도
  121. ,"M0070" //종교
  122. ,"M0071" //결혼상태
  123. ,"M0072" //관계
  124. ,"M0073" //부위
  125. ,"M0376" //혈액형
  126. ,"M0075" //의식상태
  127. ,"M0088" //생존여부
  128. ,"M0090" //알러지
  129. ,"M0098" //동반자
  130. ,"M0100" //지남력
  131. ,"M0102" //요흔
  132. ,"M0103" //부착기구
  133. ,"M0104" //소변색깔
  134. ,"M0105" //소변증상
  135. ,"M0106" //대변색깔
  136. ,"M0107" //대변종류
  137. ,"M0109" //동공빛반사여부
  138. ,"M0110" //동공수치
  139. ,"M0086"
  140. ,"M0418" //입원경로
  141. ,"M0375" //체온부위
  142. ,"M0210" //입원방법
  143. )
  144. , new Array ( "/root/init/mlist" //직업
  145. ,"/root/init/mlist" //교육정도
  146. ,"/root/init/mlist" //종교
  147. ,"/root/init/mlist" //결혼상태
  148. ,"/root/init/mlist" //관계
  149. ,"/root/init/mlist" //부위
  150. ,"/root/init/mlist" //혈액형
  151. ,"/root/init/mlist" //의식상태
  152. ,"/root/init/mlist" //생존여부
  153. ,"/root/init/mlist" //알러지
  154. ,"/root/init/mlist" //동반자
  155. ,"/root/init/mlist" //지남력
  156. ,"/root/init/mlist" //요흔
  157. ,"/root/init/mlist" //부착기구
  158. ,"/root/init/mlist" //소변색깔
  159. ,"/root/init/mlist" //소변증상
  160. ,"/root/init/mlist" //대변색깔
  161. ,"/root/init/mlist" //대변종류
  162. ,"/root/init/mlist" //동공빛반사여부
  163. ,"/root/init/mlist" //동공수치
  164. ,"/root/init/mlist" //동공수치
  165. ,"/root/init/mlist" //입원경로
  166. ,"/root/init/mlist" //체온부위
  167. ,"/root/init/mlist" //입원방법
  168. )
  169. );
  170. model.refresh();
  171. }
  172. function fSetStatus() {
  173. var rtn = "";
  174. if(status == "select") {
  175. rtn = "6";
  176. } else {
  177. rtn = messageBox("데이터를 ", "Q001");
  178. }
  179. return rtn;
  180. }
  181. //화면 로딩시
  182. function fInit(){
  183. model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
  184. model.makeValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1");
  185. model.makeValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1");
  186. model.makeValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1");
  187. model.makeValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1");
  188. model.makeValue("/root/hidden/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
  189. model.makeValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1");
  190. model.makeValue("/root/hidden/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
  191. model.makeValue("/root/hidden/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1");
  192. model.makeNode("/root/temp/cond/list");
  193. getPatientInfoDetails("/root/temp/cond/list");
  194. var pid;
  195. var room;
  196. var patnm;
  197. var sex;
  198. var age;
  199. var instcd;
  200. var orddeptcd;
  201. var indd;
  202. room = model.getValue("/root/temp/cond/list/roomcd");
  203. patnm = model.getValue("/root/temp/cond/list/hngnm");
  204. sex = model.getValue("/root/temp/cond/list/sex");
  205. age = model.getValue("/root/temp/cond/list/age");
  206. pid = model.getValue("/root/temp/cond/list/pid");
  207. indd = model.getValue("/root/temp/cond/list/indd");
  208. instcd = model.getValue("/root/temp/cond/list/instcd");
  209. orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  210. cretno = model.getValue("/root/temp/cond/list/cretno");
  211. ioflag = model.getValue("/root/temp/cond/list/ioflag");
  212. model.makeValue("/root/main/wardrecinfo/room", room);
  213. model.makeValue("/root/main/wardrecinfo/patnm", patnm);
  214. model.makeValue("/root/main/wardrecinfo/age", age);
  215. model.makeValue("/root/main/wardrecinfo/pid", pid);
  216. model.makeValue("/root/main/wardrecinfo/nbabynm", patnm);
  217. model.makeValue("/root/main/wardrecinfo/sex", sex);
  218. var scrnid =getScreenID();
  219. var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
  220. +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
  221. fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
  222. model.refresh();
  223. }
  224. //간호정보조사지 조회
  225. function fGetInitRecInfo() {
  226. var pid = model.getValue("/root/temp/cond/list/pid");
  227. var indd = model.getValue("/root/temp/cond/list/indd");
  228. var cretno = model.getValue("/root/temp/cond/list/cretno");
  229. var instcd = model.getValue("/root/temp/cond/list/instcd");
  230. var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  231. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  232. //웹용 인자값 셋팅
  233. model.makeValue("/root/send/req/pid", pid);
  234. model.makeValue("/root/send/req/indd", indd);
  235. model.makeValue("/root/send/req/instcd", instcd);
  236. model.makeValue("/root/send/req/recflag", "07");
  237. model.makeValue("/root/send/req/docucode", "0000002434");
  238. model.makeValue("/root/send/req/deptcd", orddeptcd);
  239. if(pid == "") {
  240. messageBox("환자를 선택하지 ", "E007");
  241. window.close();
  242. } else {
  243. if(instUseYN == "Y"){
  244. btn_edurec.visible = true;
  245. grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px;" ;
  246. setParameter("SPMRJ00300_pid", pid);
  247. setParameter("SPMRJ00300_orddd", indd);
  248. setParameter("SPMRJ00300_cretno", cretno);
  249. ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw.xrw";
  250. }else{
  251. grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
  252. btn_edurec.visible = false;
  253. }
  254. submit("TRMNN02001", "false");//저장후 삭제(K), 신규(I), 수정(U)
  255. var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
  256. if(exeflag == 'U') {
  257. submit("TRMNN02002", false);
  258. //인증번호set_20090722_SMY
  259. model.setValue("/root/signinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
  260. var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
  261. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  262. //마지막 기록일시 셋팅
  263. model.makeValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '07' and indd = '" + indd + "']/recpkspec"));
  264. model.makeValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '07' and indd = '" + indd + "']/bfrecuser"));
  265. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  266. model.makeValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  267. model.refresh();
  268. } else {
  269. //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
  270. if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
  271. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
  272. fChgRecHistInfo();
  273. }else{
  274. submit("TRMNN02004", "false");
  275. var exist = model.getValue("/root/hidden/cominfo/histinfo/existyn");
  276. var existfamyinfo = model.getValue("/root/hidden/cominfo/famyinfo/existfamyinfo");
  277. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
  278. //병력 연동부분
  279. if(exist == "N") {
  280. model.copyNode("/root/main/histinfo", "/root/hidden/histinfo");
  281. model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
  282. model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
  283. model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
  284. model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
  285. model.setValue("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
  286. model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
  287. model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
  288. model.setValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "");
  289. } else {
  290. model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
  291. }
  292. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  293. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  294. //기록일시 정보를 쿼리에서 가져옴
  295. model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
  296. model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
  297. model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
  298. model.refresh();
  299. }
  300. }
  301. //최초기록자
  302. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|"); //이전기록일시
  303. var indd2 = recpkspec[1]; //이전기록일시 입원일자
  304. var fstrgstdt = model.getValue("/root/hidden/paminfo/recinfo[recflag = '07' and indd = '" + indd2 + "']/fstrgstdt");
  305. if(model.getValue("/root/main/wardrecinfo/bfrecuser") !="" || model.getValue("/root/main/wardrecinfo/bfrecddtm") !="") {
  306. model.makeValue("/root/main/wardrecinfo/fstrgstdt", fstrgstdt.substr(0,4) + "-" + fstrgstdt.substr(4,2)+"-"+fstrgstdt.substr(6,2)+" "+fstrgstdt.substr(8,2)+":"+fstrgstdt.substr(10,2));
  307. model.makeValue("/root/main/wardrecinfo/fstrgstrnm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '07' and indd = '" + indd2 + "']/fstrgstrnm"));
  308. }
  309. //가계도 연동부분.
  310. if(existfamyinfo == "Y") {
  311. model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
  312. opt_existyn.refresh();
  313. }
  314. }
  315. status = "select";
  316. model.refresh();
  317. }
  318. function fGetDate() {
  319. }
  320. function fGetXmlToStr(xPath) {
  321. var str = instance1.selectNodesXml(xPath);
  322. return str;
  323. }
  324. function fPatgnrlInfo(certFlag) {
  325. var userid = getUserId();
  326. //model.removeNodeset("/root/send/wardinfo");
  327. //신생아 일반정보
  328. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/main/wardrecinfo/pid"));
  329. model.makeValue("/root/send/wardrecinfo/nbabynm", model.getValue("/root/main/wardrecinfo/nbabynm"));
  330. model.makeValue("/root/send/wardrecinfo/partrtndd", model.getValue("/root/main/wardrecinfo/partrtndd"));
  331. model.makeValue("/root/send/wardrecinfo/partrtndt", model.getValue("/root/main/wardrecinfo/partrtndt"));
  332. model.makeValue("/root/send/wardrecinfo/sex", model.getValue("/root/main/wardrecinfo/sex"));
  333. model.makeValue("/root/send/wardrecinfo/brthbdwt", model.getValue("/root/main/wardrecinfo/brthbdwt"));
  334. model.makeValue("/root/send/wardrecinfo/brthbdwtunit", model.getValue("/root/main/wardrecinfo/brthbdwtunit"));
  335. model.makeValue("/root/send/wardrecinfo/inbdwt", model.getValue("/root/main/wardrecinfo/inbdwt"));
  336. model.makeValue("/root/send/wardrecinfo/inbdwtunit", model.getValue("/root/main/wardrecinfo/inbdwtunit"));
  337. model.makeValue("/root/send/wardrecinfo/mthernm", model.getValue("/root/main/wardrecinfo/mthernm"));
  338. model.makeValue("/root/send/wardrecinfo/mtherage", model.getValue("/root/main/wardrecinfo/mtherage"));
  339. model.makeValue("/root/send/wardrecinfo/mtherbtype", model.getValue("/root/main/wardrecinfo/mtherbtype"));
  340. model.makeValue("/root/send/wardrecinfo/mtherbrh", model.getValue("/root/main/wardrecinfo/mtherbrh"));
  341. model.makeValue("/root/send/wardrecinfo/mthertel", model.getValue("/root/main/wardrecinfo/mthertel"));
  342. model.makeValue("/root/send/wardrecinfo/fthernm", model.getValue("/root/main/wardrecinfo/fthernm"));
  343. model.makeValue("/root/send/wardrecinfo/ftherage", model.getValue("/root/main/wardrecinfo/ftherage"));
  344. model.makeValue("/root/send/wardrecinfo/ftherbtype", model.getValue("/root/main/wardrecinfo/ftherbtype"));
  345. model.makeValue("/root/send/wardrecinfo/ftherbrh", model.getValue("/root/main/wardrecinfo/ftherbrh"));
  346. model.makeValue("/root/send/wardrecinfo/fthertel", model.getValue("/root/main/wardrecinfo/fthertel"));
  347. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/main/wardrecinfo/indd"));
  348. model.makeValue("/root/send/wardrecinfo/indt", model.getValue("/root/main/wardrecinfo/indt"));
  349. model.makeValue("/root/send/wardrecinfo/inpathcd", model.getValue("/root/main/wardrecinfo/inpathcd"));
  350. model.makeValue("/root/send/wardrecinfo/inpathnm", model.getValue("/root/main/wardrecinfo/inpathnm"));
  351. model.makeValue("/root/send/wardrecinfo/inmthdcd", model.getValue("/root/main/wardrecinfo/inmthdcd"));
  352. model.makeValue("/root/send/wardrecinfo/inmthdnm", model.getValue("/root/main/wardrecinfo/inmthdnm"));
  353. model.makeValue("/root/send/wardrecinfo/inacompstcd", model.getValue("/root/main/wardrecinfo/inacompstcd"));
  354. model.makeValue("/root/send/wardrecinfo/inacompstnm", model.getValue("/root/main/wardrecinfo/inacompstnm"));
  355. model.makeValue("/root/send/wardrecinfo/visitplaccd", model.getValue("/root/main/wardrecinfo/visitplaccd"));
  356. model.makeValue("/root/send/wardrecinfo/visitplacnm", model.getValue("/root/main/wardrecinfo/visitplacnm"));
  357. model.makeValue("/root/send/wardrecinfo/basebdinfoinclyn", model.getValue("/root/main/wardrecinfo/basebdinfoinclyn"));
  358. /*
  359. model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
  360. model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
  361. model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
  362. model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
  363. model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
  364. model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
  365. model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
  366. model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
  367. model.makeValue("/root/send/wardrecinfo/headgirth", model.getValue("/root/main/wardrecinfo/headgirth"));
  368. model.makeValue("/root/send/wardrecinfo/chestgirth", model.getValue("/root/main/wardrecinfo/chestgirth"));
  369. */
  370. //신체정보 측정불가체크시 측정불가코드값 저장로직 추가_20090310_SMY
  371. //혈압
  372. if(model.getValue("/root/main/wardrecinfo/bpinspyn") == "Y"){
  373. model.makeValue("/root/send/wardrecinfo/lowbp", NoneInspCode);
  374. model.makeValue("/root/send/wardrecinfo/highbp", NoneInspCode);
  375. }else{
  376. model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
  377. model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
  378. }
  379. //맥박
  380. if(model.getValue("/root/main/wardrecinfo/pulseinspyn") == "Y"){
  381. model.makeValue("/root/send/wardrecinfo/pulse", NoneInspCode);
  382. }else{
  383. model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
  384. }
  385. //호흡
  386. if(model.getValue("/root/main/wardrecinfo/brethinspyn") == "Y"){
  387. model.makeValue("/root/send/wardrecinfo/breth", NoneInspCode);
  388. }else{
  389. model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
  390. }
  391. //체온
  392. if(model.getValue("/root/main/wardrecinfo/bdtpinspyn") == "Y"){
  393. model.makeValue("/root/send/wardrecinfo/bdtp", NoneInspCode);
  394. model.makeValue("/root/send/wardrecinfo/bdtppartcd", NoneInspCode);
  395. }else{
  396. model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
  397. model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
  398. }
  399. //신장
  400. if(model.getValue("/root/main/wardrecinfo/bdhtinspyn") == "Y"){
  401. model.makeValue("/root/send/wardrecinfo/bdht", NoneInspCode);
  402. }else{
  403. model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
  404. }
  405. //체중
  406. if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") == "Y"){
  407. model.makeValue("/root/send/wardrecinfo/bdwt", NoneInspCode);
  408. }else{
  409. model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
  410. }
  411. //머리둘레
  412. if(model.getValue("/root/main/wardrecinfo/headgirthinspyn") == "Y"){
  413. model.makeValue("/root/send/wardrecinfo/headgirth", NoneInspCode);
  414. }else{
  415. model.makeValue("/root/send/wardrecinfo/headgirth", model.getValue("/root/main/wardrecinfo/headgirth"));
  416. }
  417. //가슴둘레
  418. if(model.getValue("/root/main/wardrecinfo/chestgirthinspyn") == "Y"){
  419. model.makeValue("/root/send/wardrecinfo/chestgirth", NoneInspCode);
  420. }else{
  421. model.makeValue("/root/send/wardrecinfo/chestgirth", model.getValue("/root/main/wardrecinfo/chestgirth"));
  422. }
  423. model.makeValue("/root/send/wardrecinfo/gesage", model.getValue("/root/main/wardrecinfo/gesage"));
  424. model.makeValue("/root/send/wardrecinfo/partrtntype", model.getValue("/root/main/wardrecinfo/partrtntype"));
  425. model.makeValue("/root/send/wardrecinfo/partrtnplce", model.getValue("/root/main/wardrecinfo/partrtnplce"));
  426. model.makeValue("/root/send/wardrecinfo/apgarscore1", model.getValue("/root/main/wardrecinfo/apgarscore1"));
  427. model.makeValue("/root/send/wardrecinfo/apgarscore5", model.getValue("/root/main/wardrecinfo/apgarscore5"));
  428. //일반정보 XML
  429. model.makeValue("/root/send/wardrecinfo/nbabybrthinfoinclyn", model.getValue("/root/main/wardrecinfo/nbabybrthinfoinclyn"));
  430. model.makeValue("/root/send/wardrecinfo/famytree", fGetXmlToStr("/root/main/wardrecinfo/famytree/existyn"));
  431. model.makeValue("/root/send/wardrecinfo/inmotiveinfo", fGetXmlToStr("/root/main/wardrecinfo/inmotiveinfo/inmotive"));
  432. model.makeValue("/root/send/wardrecinfo/maternalinfo", fGetXmlToStr("/root/main/wardrecinfo/maternalinfo/maternal"));
  433. model.makeValue("/root/send/wardrecinfo/spcffact", fGetXmlToStr("/root/main/wardrecinfo/spcffact/spcf"));
  434. model.makeValue("/root/send/wardrecinfo/etcbrthinfo", fGetXmlToStr("/root/main/wardrecinfo/etcbrthinfo/etcbrth"));
  435. model.makeValue("/root/send/wardrecinfo/feedinginfo", fGetXmlToStr("/root/main/wardrecinfo/feedinginfo/feeding"));
  436. //신체사정
  437. model.makeValue("/root/send/wardrecinfo/actcryinfo", fGetXmlToStr("/root/main/wardrecinfo/actcryinfo/actcry"));
  438. model.makeValue("/root/send/wardrecinfo/resorgninfo", fGetXmlToStr("/root/main/wardrecinfo/resorgninfo/resorgn"));
  439. model.makeValue("/root/send/wardrecinfo/cirorgninfo", fGetXmlToStr("/root/main/wardrecinfo/cirorgninfo/cirorgn"));
  440. model.makeValue("/root/send/wardrecinfo/skinsectinfo", fGetXmlToStr("/root/main/wardrecinfo/skinsectinfo/skinsect"));
  441. model.makeValue("/root/send/wardrecinfo/faceinfo", fGetXmlToStr("/root/main/wardrecinfo/faceinfo/face"));
  442. model.makeValue("/root/send/wardrecinfo/eyeinfo", fGetXmlToStr("/root/main/wardrecinfo/eyeinfo/eye"));
  443. model.makeValue("/root/send/wardrecinfo/urintorgninfo", fGetXmlToStr("/root/main/wardrecinfo/urintorgninfo/urintorgn"));
  444. model.makeValue("/root/send/wardrecinfo/dembztinfo", fGetXmlToStr("/root/main/wardrecinfo/dembztinfo/dembzt"));
  445. model.makeValue("/root/send/wardrecinfo/extrminfo", fGetXmlToStr("/root/main/wardrecinfo/extrminfo/extrm"));
  446. model.makeValue("/root/send/wardrecinfo/headinfo", fGetXmlToStr("/root/main/wardrecinfo/headinfo/head"));
  447. model.makeValue("/root/send/wardrecinfo/rflxinfo", fGetXmlToStr("/root/main/wardrecinfo/rflxinfo/rflx"));
  448. model.makeValue("/root/send/wardrecinfo/tensioninfo", fGetXmlToStr("/root/main/wardrecinfo/tensioninfo/tension"));
  449. model.makeValue("/root/send/wardrecinfo/emotstatinfo", fGetXmlToStr("/root/main/wardrecinfo/emotstatinfo/emotstat"));
  450. model.makeValue("/root/send/wardrecinfo/etcmfmdtrma", fGetXmlToStr("/root/main/wardrecinfo/etcmfmdtrma/etcmfmdtrma"));
  451. //병력정보
  452. model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/main/histinfo/pasthistinfo/pasthist"));
  453. model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/main/histinfo/famyhistinfo/famyhist"));
  454. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
  455. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
  456. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/histinfo/rectmedistatinfo/rectmedistat"));
  457. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
  458. model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
  459. //다른 기록지에서 저장한 이력을 조회하여 저장한다.(다른 기록지에서 저장하기 위한 이력인스턴스를 저장한다)
  460. model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
  461. model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
  462. model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
  463. model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
  464. // 현재 로컬 웹상에서 사용할 경우
  465. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  466. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  467. model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
  468. model.makeValue("/root/send/wardrecinfo/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  469. model.makeValue("/root/send/wardrecinfo/recflag", "07");
  470. model.makeValue("/root/send/wardrecinfo/docucode", "0000002434");
  471. model.makeValue("/root/send/wardrecinfo/userid", userid);
  472. model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
  473. //수행구분(I, U에 따른 입력, 수정을위한 구분)
  474. model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
  475. if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
  476. model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
  477. } else {
  478. model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
  479. }
  480. model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
  481. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  482. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  483. model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
  484. //수행구분(I, U에 따른 입력, 수정을위한 구분)
  485. // model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
  486. }
  487. function fSetSignData() {
  488. var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
  489. var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
  490. var str;
  491. var arr = new Array();
  492. /****************************** 신생아기본정보 **************************************/
  493. //성별
  494. var sex = model.getValue(xWardRecPath +"/sex");
  495. if(sex != "") {
  496. model.setValue(xWardRecPath +"/sex", cmb_sex.label);
  497. }
  498. //출생시체중단위
  499. var brthbdwtunit = model.getValue(xWardRecPath +"/brthbdwtunit");
  500. if(brthbdwtunit != "") {
  501. model.setValue(xWardRecPath +"/brthbdwtunit", cmb_brthbdwtunit.label);
  502. }
  503. //입원시체중단위
  504. var inbdwtunit = model.getValue(xWardRecPath +"/inbdwtunit");
  505. if(inbdwtunit != "") {
  506. model.setValue(xWardRecPath +"/inbdwtunit", cmb_inbdwtunit.label);
  507. }
  508. /****************************** 가족사항 **************************************/
  509. //엄마혈액형
  510. var mtherbtype = model.getValue(xWardRecPath +"/mtherbtype");
  511. if(mtherbtype != "") {
  512. model.setValue(xWardRecPath +"/mtherbtype", cmb_mtherbtype.label);
  513. }
  514. //아빠혈액형
  515. var ftherbtype = model.getValue(xWardRecPath +"/ftherbtype");
  516. if(ftherbtype != "") {
  517. model.setValue(xWardRecPath +"/ftherbtype", cmb_ftherbtype.label);
  518. }
  519. /****************************** 입원정보 **************************************/
  520. //입원경로
  521. var inpath = model.getValue(xWardRecPath + "/inpathcd");
  522. if(inpath != "") {
  523. if(inpath == "08") {
  524. if(model.getValue(xWardRecPath + "/inpathnm") != "") {
  525. model.setValue(xWardRecPath + "/inpathcd", model.getValue(xWardRecPath + "/inpathnm"));
  526. } else {
  527. model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
  528. }
  529. } else {
  530. model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
  531. }
  532. }
  533. //입원방법
  534. var inmthd = model.getValue(xWardRecPath + "/inmthdcd");
  535. if(inmthd != "") {
  536. if(inmthd == "08") {
  537. if(model.getValue(xWardRecPath + "/inmthdnm") != "") {
  538. model.setValue(xWardRecPath + "/inmthdcd", model.getValue(xWardRecPath + "/inmthdnm"));
  539. } else {
  540. model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
  541. }
  542. } else {
  543. model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
  544. }
  545. }
  546. //입원시동반자
  547. var inacompst = model.getValue(xWardRecPath + "/inacompstcd");
  548. if(inacompst != "") {
  549. if(inacompst == "04") {
  550. if(model.getValue(xWardRecPath + "/inacompstnm") != "") {
  551. model.setValue(xWardRecPath + "/inacompstcd", model.getValue(xWardRecPath + "/inacompstnm"));
  552. } else {
  553. model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
  554. }
  555. } else {
  556. model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
  557. }
  558. }
  559. //머물렀던 곳
  560. var visitplaccd = model.getValue(xWardRecPath + "/visitplaccd");
  561. if(visitplaccd != "") {
  562. if(inacompst == "04") {
  563. if(model.getValue(xWardRecPath + "/visitplacnm") != "") {
  564. model.setValue(xWardRecPath + "/visitplaccd", model.getValue(xWardRecPath + "/visitplacnm"));
  565. } else {
  566. model.setValue(xWardRecPath + "/visitplaccd", cmb_visitplaccd.label);
  567. }
  568. } else {
  569. model.setValue(xWardRecPath + "/visitplaccd", cmb_visitplaccd.label);
  570. }
  571. }
  572. /****************************** 입원동기와 병에대한 인식 **************************************/
  573. //입원동기
  574. var inmotive1 = model.getValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1");
  575. if( inmotive1 != "") {
  576. if(inmotive1 = "Y") {
  577. model.setValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1", "자의");
  578. } else{
  579. model.setValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1", "타의");
  580. }
  581. }
  582. /****************************** 기본 신체정보 **************************************/
  583. //체온
  584. var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
  585. if(bdtppart != "") {
  586. model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
  587. }
  588. /****************************** Maternal /Anternatal History **************************************/
  589. //Maternal /Anternatal History
  590. var maternalkind = model.getValue(xWardRecPath + "/maternalinfo/maternal/maternalkind");
  591. var etc = model.getValue(xWardRecPath + "/maternalinfo/maternal/etc");
  592. var promdd = model.getValue(xWardRecPath + "/maternalinfo/maternal/promdd");
  593. var promdt = model.getValue(xWardRecPath + "/maternalinfo/maternal/promdt");
  594. var arr = "";
  595. var infcsicknm=new Array();
  596. if(maternalkind != ""){
  597. for(var i = 1; i<= chk_maternalkind.length; i++){
  598. //var infcsicknm = isSearchString(maternalkind, chk_maternalkind.item(i-1).value);
  599. infcsicknm = maternalkind.split(" ");
  600. for ( var idx = 0 ; idx < infcsicknm.length ; idx++ ){
  601. if(infcsicknm[idx] == chk_maternalkind.item(i-1).value ) {
  602. if(arr == ""){
  603. arr += chk_maternalkind.item(i-1).label;
  604. }else{
  605. arr += ", " + chk_maternalkind.item(i-1).label;
  606. }
  607. if( chk_maternalkind.item(i-1).value == "8"){
  608. if(etc != ""){
  609. arr += "(" + etc + ")";
  610. }
  611. }else if( chk_maternalkind.item(i-1).value== "15"){
  612. if(promdd != "" && promdt != "") {
  613. arr += "(" + promdd.substr(0,4) + "-" + promdd.substr(4,2) + "-" + promdd.substr(6,2) + " " + promdt.substr(0,2) + ":" + promdt.substr(2, 2) + ")";
  614. } else if( promdd != "" && promdt == "") {
  615. arr += "(" + promdd.substr(0,4) + "-" + promdd.substr(4,2) + "-" + promdd.substr(6,2) + ")";
  616. } else if( promdd == "" && promdt != "") {
  617. arr += "(" + promdt.substr(0,2) + ":" + promdt.substr(2, 2) + ")"
  618. }
  619. }
  620. }
  621. }
  622. }
  623. }
  624. model.setValue(xWardRecPath + "/maternalinfo/maternal/maternalkind", arr);
  625. /****************************** 예방접종이력 **************************************/
  626. //DPT
  627. var dpttims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/dpttims");
  628. if(dpttims != "") {
  629. arr = chk_dpt.label.split(" ");
  630. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/dpttims", arr);
  631. }
  632. //소아마비
  633. var infparaltims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/infparaltims");
  634. if(infparaltims != "") {
  635. arr = chk_infparal.label.split(" ");
  636. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/infparaltims", arr);
  637. }
  638. //A형간염
  639. var ahptstims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/ahptstims");
  640. if(ahptstims != "") {
  641. arr = chk_ahpts.label.split(" ");
  642. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/ahptstims", arr);
  643. }
  644. //B형간염
  645. var bhptstims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bhptstims");
  646. var bhptsdrugnm = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bhptsdrugnm");
  647. str = chk_bhpts.label;
  648. if(bhptstims != "") {
  649. /* var bhpts = isSearchString(bhptstims, "4");
  650. if(bhpts == true) {
  651. if(bhptsdrugnm != "") {
  652. str += "(약이름: " + bhptsdrugnm + ")";
  653. }
  654. }
  655. */
  656. if(bhptsdrugnm != "") {
  657. str += "(약이름: " + bhptsdrugnm + ")";
  658. }
  659. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/bhptstims", str);
  660. }
  661. //B형간염 면역글로블린
  662. var bhptsyn = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bhptsyn");
  663. if (bhptsyn != ""){
  664. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/bhptsyn", rdo_bhpts.label);
  665. }
  666. //BCG
  667. var bcgyn = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bcgyn");
  668. if(bcgyn != "") {
  669. arr = rdo_bcgyn.label.split(" ");
  670. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/bcgyn", arr);
  671. }
  672. //MMR
  673. var mmrtims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/mmrtims");
  674. if(mmrtims != "") {
  675. arr = chk_mmr.label.split(" ");
  676. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/mmrtims", arr);
  677. }
  678. //생백신
  679. var alivvacntims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/alivvacntims");
  680. if(alivvacntims != "") {
  681. arr = chk_alivvacn.label.split(" ");
  682. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/alivvacntims", arr);
  683. }
  684. //사백신
  685. var deadvaccntims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/deadvaccntims");
  686. if(deadvaccntims != "") {
  687. arr = chk_deadvacn.label.split(" ");
  688. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/deadvaccntims", arr);
  689. }
  690. //뇌수막염
  691. var brnmeningitistims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/brnmeningitistims");
  692. if(brnmeningitistims != "") {
  693. arr = chk_brnmeningitis.label.split(" ");
  694. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/brnmeningitistims", arr);
  695. }
  696. //폐구균
  697. var lungcoccustims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/lungcoccustims");
  698. if(lungcoccustims != "") {
  699. arr = chk_lungcoccus.label.split(" ");
  700. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/lungcoccustims", arr);
  701. }
  702. //수두
  703. var chickenpoxtims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/chickenpoxtims");
  704. if(chickenpoxtims != "") {
  705. arr = chk_chickenpox.label.split(" ");
  706. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/chickenpoxtims", arr);
  707. }
  708. /****************************** Feeding History **************************************/
  709. //Feeding History
  710. var feedinghistkind = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedinghistkind"); //구분
  711. var feedingkind = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedingkind"); //모유
  712. var powderedmilk = model.getValue(xWardRecPath + "/feedinginfo/feeding/powderedmilk"); //분유
  713. var feedingtim = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedingtim");
  714. var feedingtimtoday = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedingtimtoday");
  715. var feedinghistdetl = model.getValue(xWardRecPath + "/feedinginfo/feeding/feedinghistdetl"); //기타
  716. arr = "";
  717. if(feedinghistkind != ""){
  718. for(var i = 1; i<= chk_feedinghistkind.length; i++){
  719. var feedingnm = isSearchString(feedinghistkind, i);
  720. if(feedingnm == true) {
  721. if(arr == ""){
  722. arr += chk_feedinghistkind.item(i-1).label;
  723. }else{
  724. arr += ", " + chk_feedinghistkind.item(i-1).label;
  725. }
  726. if( i == "2"){
  727. if(feedingkind != ""){
  728. arr += "(" + cmb_feedingkind.label + ")";
  729. }
  730. }else if( i == "3"){
  731. if(powderedmilk != "" || feedingtim != "" || feedingtimtoday != ""){
  732. arr += "(" ;
  733. if(powderedmilk != ""){
  734. arr += cmb_powerdmilk.label + " ";
  735. }
  736. if(feedingtim != ""){
  737. arr += feedingtim + "cc/회 ";
  738. }
  739. if(feedingtimtoday != ""){
  740. arr += feedingtimtoday + "회/일 ";
  741. }
  742. arr += ")";
  743. }
  744. }else if( i == "4"){
  745. if(feedinghistdetl != "") {
  746. arr += "(" + feedinghistdetl + ")";
  747. }
  748. }
  749. }
  750. }
  751. model.setValue(xWardRecPath + "/feedinginfo/feeding/feedinghistkind", arr);
  752. }
  753. /****************************** 신생아출생정보 **************************************/
  754. //임신주수
  755. var gesage = model.getValue(xWardRecPath +"/gesage");
  756. if(gesage != ""){
  757. model.setValue(xWardRecPath + "/gesage", gesage + "(주+일)");
  758. }
  759. //분만형태
  760. var partrtntype = model.getValue(xWardRecPath +"/partrtntype");
  761. if(partrtntype != ""){
  762. model.setValue(xWardRecPath + "/partrtntype", cmb_partrtntype.label);
  763. }
  764. //분만장소
  765. var partrtnplce = model.getValue(xWardRecPath +"/partrtnplce");
  766. if(partrtnplce != ""){
  767. model.setValue(xWardRecPath + "/partrtnplce", cmb_partrtnplce.label);
  768. }
  769. //산소흡입
  770. var oxysuctyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxysuctyn");
  771. var oxysuctcnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxysuctcnts");
  772. str = rdo_oxysuctyn.label;
  773. if(oxysuctyn != "") {
  774. if(oxysuctyn == "Y") {
  775. if(oxysuctcnts != "") {
  776. str += "(" + oxysuctcnts + ")";
  777. }
  778. }
  779. model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/oxysuctyn", str);
  780. }
  781. //심폐소생술
  782. var cpryn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/cpryn");
  783. var cprcnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/cprcnts");
  784. str = rdo_cpryn.label;
  785. if(cpryn != "") {
  786. if(cpryn == "Y") {
  787. if(cprcnts != "") {
  788. str += "(" + cprcnts + ")";
  789. }
  790. }
  791. model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/cpryn", str);
  792. }
  793. //vitamin K1
  794. var vitaminyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/vitaminyn");
  795. var vitamincnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/vitamincnts");
  796. str = rdo_vitaminyn.label;
  797. if(vitaminyn != "") {
  798. if(vitaminyn == "2") {
  799. if(vitamincnts != "") {
  800. str += "(" + vitamincnts + ")";
  801. }
  802. }
  803. model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/vitaminyn", str);
  804. }
  805. //선천성 대사이상검사
  806. var inbornerrmetayn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/inbornerrmetayn");
  807. var inbornerrmetacnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/inbornerrmetacnts");
  808. str = rdo_inbornerrmetayn.label;
  809. if(inbornerrmetayn != "") {
  810. if(inbornerrmetayn == "2") {
  811. if(inbornerrmetacnts != "") {
  812. str += "(" + inbornerrmetacnts + ")";
  813. }
  814. }
  815. model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/inbornerrmetayn", str);
  816. }
  817. //청력 선별검사
  818. var hearasrttestyn = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/hearasrttestyn");
  819. var hearasrttestcnts = model.getValue(xWardRecPath +"/etcbrthinfo/etcbrth/hearasrttestcnts");
  820. str = rdo_hearasrttestyn.label;
  821. if(hearasrttestyn != "") {
  822. if(hearasrttestyn == "2") {
  823. if(hearasrttestcnts != "") {
  824. str += "(" + hearasrttestcnts + ")";
  825. }
  826. }
  827. model.setValue(xWardRecPath +"/etcbrthinfo/etcbrth/hearasrttestyn", str);
  828. }
  829. /****************************** 신체사정 **************************************/
  830. //활동 및 울음정보
  831. var actcrykind = model.getValue(xWardRecPath +"/actcryinfo/actcry/actcrykind");
  832. if(actcrykind != "") {
  833. arr = chk_actcrykind.label.split(" ");
  834. model.setValue(xWardRecPath +"/actcryinfo/actcry/actcrykind", arr);
  835. }
  836. //호흡기계
  837. var resorgnkind = model.getValue(xWardRecPath +"/resorgninfo/resorgn/resorgnkind");
  838. var resorgnkindetc = model.getValue(xWardRecPath +"/resorgninfo/resorgn/resorgnkindetc");
  839. var arr = chk_resorgnkind.label.split(" ");
  840. if(resorgnkind != "") {
  841. var resorgn = isSearchString(resorgnkind, "11");
  842. if(resorgn == true) {
  843. if(resorgnkindetc != "") {
  844. arr += "(" + resorgnkindetc + ")";
  845. }
  846. }
  847. model.setValue(xWardRecPath +"/resorgninfo/resorgn/resorgnkind", arr);
  848. }
  849. //순환기계
  850. var cirorgnkind = model.getValue(xWardRecPath +"/cirorgninfo/cirorgn/cirorgnkind");
  851. var cirorgnkindetc = model.getValue(xWardRecPath +"/cirorgninfo/cirorgn/cirorgnkindetc");
  852. var arr = chk_cirorgnkind.label.split(" ");
  853. if(cirorgnkind != "") {
  854. var cirorgn = isSearchString(cirorgnkind, "6");
  855. if(cirorgn == true) {
  856. if(cirorgnkindetc != "") {
  857. arr += "(" + cirorgnkindetc + ")";
  858. }
  859. }
  860. model.setValue(xWardRecPath +"/cirorgninfo/cirorgn/cirorgnkind", arr);
  861. }
  862. //피부
  863. var skinsectkind = model.getValue(xWardRecPath +"/skinsectinfo/skinsect/skinsectkind");
  864. var skinsectkindetc = model.getValue(xWardRecPath +"/skinsectinfo/skinsect/skinsectkindetc");
  865. var arr = chk_skinsectkind.label.split(" ");
  866. if(skinsectkind != "") {
  867. var skinsect = isSearchString(cirorgnkind, "13");
  868. if(skinsect == true) {
  869. if(skinsectkindetc != "") {
  870. arr += "(" + skinsectkindetc + ")";
  871. }
  872. }
  873. model.setValue(xWardRecPath +"/skinsectinfo/skinsect/skinsectkind", arr);
  874. }
  875. //얼굴
  876. var facekind = model.getValue(xWardRecPath +"/faceinfo/face/facekind");
  877. var facekindetc = model.getValue(xWardRecPath +"/faceinfo/face/facekindetc");
  878. var arr = chk_facekind.label.split(" ");
  879. if(facekind != "") {
  880. var cirorgn = isSearchString(facekind, "6");
  881. if(cirorgn == true) {
  882. if(facekindetc != "") {
  883. arr += "(" + facekindetc + ")";
  884. }
  885. }
  886. model.setValue(xWardRecPath +"/faceinfo/face/facekind", arr);
  887. }
  888. //눈
  889. var eyekind = model.getValue(xWardRecPath +"/eyeinfo/eye/eyekind");
  890. var eyekindetc = model.getValue(xWardRecPath +"/eyeinfo/eye/eyekindetc");
  891. var eyekindnm = model.getValue(xWardRecPath +"/eyeinfo/eye/eyekindnm");
  892. str = rdo_eyekind.label;
  893. if(eyekind != "") {
  894. if(eyekind == "Y") {
  895. if(eyekindetc != "") {
  896. if(eyekindetc == "04") {
  897. if(eyekindnm != "") {
  898. str += "(" + cmb_eyekindetc.label + "(" + eyekindnm + "))";
  899. } else {
  900. str += "(" + cmb_eyekindetc.label + ")";
  901. }
  902. }else{
  903. str += "(" + cmb_eyekindetc.label + ")";
  904. }
  905. }
  906. }
  907. model.setValue(xWardRecPath +"/eyeinfo/eye/eyekind", str);
  908. }
  909. //비뇨생식기
  910. var idx = 0;
  911. var urintorgnkind = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/urintorgnkind");
  912. var urintorgnkindetc = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/urintorgnkindetc");
  913. var fststoolyn = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/fststoolyn");
  914. var fststoolafttm = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/fststoolafttm");
  915. var fsturineyn = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/fsturineyn");
  916. var fsturineafttm = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/fsturineafttm");
  917. if(urintorgnkind != "") {
  918. var urintorgnkindVal = chk_urintorgnkind.value;
  919. var urintorgnkindLab = chk_urintorgnkind.label;
  920. var arrVal = urintorgnkindVal.split(" "); //선택된 Value값을 가져온.다
  921. var arrLab = urintorgnkindLab.split(" "); //선택된 Label값을 가져온다.
  922. //전체 아이템 갯수 만큼 반복.(item값을 비교하기를 위한 반복문)
  923. for(var i = 1; i <= chk_urintorgnkind.length; i++) {
  924. //선택된 아이템의 갯수만큼 반복.
  925. for(var j = 0; j < arrVal.length; j++) {
  926. //i를 가지고 비교를 함으로써 아이템 항목 순서대로 값을 가져감.
  927. if(i == arrVal[j]) {
  928. if( i == "7"){
  929. if(fststoolyn != ""){
  930. if(fststoolafttm != ""){
  931. arrLab[idx] += "(" + rdo_fststoolyn.label + "(생후 " + fststoolafttm + "시간))"
  932. }else{
  933. arrLab[idx] += "(" + rdo_fststoolyn.label + ")"
  934. }
  935. }
  936. }else if( i == "8"){
  937. if(fsturineyn != ""){
  938. if(fsturineafttm != ""){
  939. arrLab[idx] += "(" + rdo_fsturineyn.label + "(생후 " + fsturineafttm + "시간))"
  940. }else{
  941. arrLab[idx] += "(" + rdo_fsturineyn.label + ")"
  942. }
  943. }
  944. }else if( i == "9"){
  945. if(urintorgnkindetc != ""){
  946. arrLab[idx] += "(" + urintorgnkindetc + ")";
  947. }
  948. }
  949. idx++; //선택된 항목만큼. 값이 담겨져있는지 비료를 위한 인덱스.
  950. //선택된 항목만큼값을 담았다면 종료.
  951. if(idx == arrVal.length) {
  952. break;
  953. }
  954. }
  955. }
  956. }
  957. str = arrLab; //저장한 값을 변수에 담음.
  958. model.setValue(xWardRecPath + "/urintorgninfo/urintorgn/urintorgnkind", str );
  959. }
  960. /*
  961. //비뇨생식기
  962. var urintorgnkind = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/urintorgnkind");
  963. var urintorgnkindetc = model.getValue(xWardRecPath +"/urintorgninfo/urintorgn/urintorgnkindetc");
  964. var fststooldt = model.getValue(xWardRecPath + "/urintorgninfo/urintorgn/fststooldt");
  965. var fststooltm = model.getValue(xWardRecPath + "/urintorgninfo/urintorgn/fststooltm");
  966. var fsturinedt = model.getValue(xWardRecPath + "/urintorgninfo/urintorgn/fsturinedt");
  967. var fsturinetm = model.getValue(xWardRecPath + "/urintorgninfo/urintorgn/fsturinetm");
  968. arr = "";
  969. if(urintorgnkind != ""){
  970. for(var i = 1; i<= chk_urintorgnkind.length; i++){
  971. var urintorgninfo = isSearchString(urintorgnkind, i);
  972. if(urintorgninfo == true) {
  973. if(arr == ""){
  974. arr += chk_urintorgnkind.item(i-1).label;
  975. }else{
  976. arr += ", " + chk_urintorgnkind.item(i-1).label;
  977. }
  978. if( i == "7"){
  979. if(fststooldt != "" && fststooltm != "") {
  980. arr += "(" + fststooldt.substr(0,4) + "-" + fststooldt.substr(4,2) + "-" + fststooldt.substr(6,2) + " " + fststooltm.substr(0,2) + ":" + fststooltm.substr(2, 2) + ")";
  981. } else if( fststooldt != "" && fststooltm == "") {
  982. arr += "(" + fststooldt.substr(0,4) + "-" + fststooldt.substr(4,2) + "-" + fststooldt.substr(6,2) + ")";
  983. } else if( fststooldt == "" && fststooltm != "") {
  984. arr += "(" + fststooltm.substr(0,2) + ":" + fststooltm.substr(2, 2) + ")"
  985. }
  986. }else if( i == "8"){
  987. if(fsturinedt != "" && fsturinetm != "") {
  988. arr += "(" + fsturinedt.substr(0,4) + "-" + fsturinedt.substr(4,2) + "-" + fsturinedt.substr(6,2) + " " + fsturinetm.substr(0,2) + ":" + fsturinetm.substr(2, 2) + ")";
  989. } else if( fsturinedt != "" && fsturinetm == "") {
  990. arr += "(" + fsturinedt.substr(0,4) + "-" + fsturinedt.substr(4,2) + "-" + fsturinedt.substr(6,2) + ")";
  991. } else if( fsturinedt == "" && fsturinetm != "") {
  992. arr += "(" + fsturinetm.substr(0,2) + ":" + fsturinetm.substr(2, 2) + ")"
  993. }
  994. }else if( i == "9"){
  995. if(urintorgnkindetc != ""){
  996. arr += "(" + urintorgnkindetc + ")";
  997. }
  998. }
  999. }
  1000. }
  1001. model.setValue(xWardRecPath + "/urintorgninfo/urintorgn/urintorgnkind", arr);
  1002. }
  1003. */
  1004. //출혈
  1005. var bledyn = model.getValue(xWardRecPath +"/dembztinfo/dembzt/bledyn");
  1006. if(bledyn != "") {
  1007. model.setValue(xWardRecPath +"/dembztinfo/dembzt/bledyn", rdo_bledyn.label);
  1008. }
  1009. //태변착색
  1010. var mecstainyn = model.getValue(xWardRecPath +"/dembztinfo/dembzt/mecstainyn");
  1011. if(mecstainyn != "") {
  1012. model.setValue(xWardRecPath +"/dembztinfo/dembzt/mecstainyn", rdo_mecstainyn.label);
  1013. }
  1014. //다지증
  1015. var polydactylyyn = model.getValue(xWardRecPath +"/extrminfo/extrm/polydactylyyn");
  1016. if(polydactylyyn != "") {
  1017. model.setValue(xWardRecPath +"/extrminfo/extrm/polydactylyyn", rdo_polydactylyyn.label);
  1018. }
  1019. //합지증
  1020. var syndactylyyn = model.getValue(xWardRecPath +"/extrminfo/extrm/syndactylyyn");
  1021. if(syndactylyyn != "") {
  1022. model.setValue(xWardRecPath +"/extrminfo/extrm/syndactylyyn", rdo_syndactylyyn.label);
  1023. }
  1024. //쇄골골절
  1025. var clavfractyn = model.getValue(xWardRecPath +"/extrminfo/extrm/clavfractyn");
  1026. if(clavfractyn != "") {
  1027. model.setValue(xWardRecPath +"/extrminfo/extrm/clavfractyn", rdo_clavfractyn.label);
  1028. }
  1029. //고관절탈골
  1030. var disclochipjointyn = model.getValue(xWardRecPath +"/extrminfo/extrm/disclochipjointyn");
  1031. if(disclochipjointyn != "") {
  1032. model.setValue(xWardRecPath +"/extrminfo/extrm/disclochipjointyn", rdo_disclochipjointyn.label);
  1033. }
  1034. //만곡독
  1035. var clubfootyn = model.getValue(xWardRecPath +"/extrminfo/extrm/clubfootyn");
  1036. if(clubfootyn != "") {
  1037. model.setValue(xWardRecPath +"/extrminfo/extrm/clubfootyn", rdo_clubfootyn.label);
  1038. }
  1039. //척추
  1040. var vertebrayn = model.getValue(xWardRecPath +"/extrminfo/extrm/vertebrayn");
  1041. if(vertebrayn != "") {
  1042. model.setValue(xWardRecPath +"/extrminfo/extrm/vertebrayn", rdo_vertebrayn.label);
  1043. }
  1044. //내반
  1045. var entropion = model.getValue(xWardRecPath +"/extrminfo/extrm/entropion");
  1046. if(entropion != "") {
  1047. model.setValue(xWardRecPath +"/extrminfo/extrm/entropion", rdo_entropion.label);
  1048. }
  1049. //외반
  1050. var hallux = model.getValue(xWardRecPath +"/extrminfo/extrm/hallux");
  1051. if(hallux != "") {
  1052. model.setValue(xWardRecPath +"/extrminfo/extrm/hallux", rdo_hallux.label);
  1053. }
  1054. //simian line
  1055. var simianlineyn = model.getValue(xWardRecPath +"/extrminfo/extrm/simianlineyn");
  1056. if(simianlineyn != "") {
  1057. model.setValue(xWardRecPath +"/extrminfo/extrm/simianlineyn", rdo_simianlineyn.label);
  1058. }
  1059. //대천문
  1060. var antfontanellstat = model.getValue(xWardRecPath +"/headinfo/head/antfontanellstat");
  1061. if(antfontanellstat != "") {
  1062. arr = chk_antfontanellstat.label.split(" ");
  1063. model.setValue(xWardRecPath +"/headinfo/head/antfontanellstat", arr);
  1064. }
  1065. //두혈종
  1066. var cephallhematomayn = model.getValue(xWardRecPath +"/headinfo/head/cephallhematomayn");
  1067. var cephallhematomacnts = model.getValue(xWardRecPath +"/headinfo/head/cephallhematomacnts");
  1068. str = rdo_cephallhematomayn.label;
  1069. if(cephallhematomayn != "") {
  1070. if(cephallhematomayn == "Y") {
  1071. if(cephallhematomacnts != "") {
  1072. str += "(" + cephallhematomacnts + ")";
  1073. }
  1074. }
  1075. model.setValue(xWardRecPath +"/headinfo/head/cephallhematomayn", str);
  1076. }
  1077. //산류
  1078. var caputsuccedyn = model.getValue(xWardRecPath +"/headinfo/head/caputsuccedyn");
  1079. var caputsuccedcnts = model.getValue(xWardRecPath +"/headinfo/head/caputsuccedcnts");
  1080. str = rdo_caputsuccedyn.label;
  1081. if(caputsuccedyn != "") {
  1082. if(caputsuccedyn == "Y") {
  1083. if(caputsuccedcnts != "") {
  1084. str += "(" + caputsuccedcnts + ")";
  1085. }
  1086. }
  1087. model.setValue(xWardRecPath +"/headinfo/head/caputsuccedyn", str);
  1088. }
  1089. //아두변형
  1090. var babyheadchngyn = model.getValue(xWardRecPath +"/headinfo/head/babyheadchngyn");
  1091. var babyheadchngcnts = model.getValue(xWardRecPath +"/headinfo/head/babyheadchngcnts");
  1092. str = rdo_babyheadchngyn.label;
  1093. if(babyheadchngyn != "") {
  1094. if(babyheadchngyn == "Y") {
  1095. if(babyheadchngcnts != "") {
  1096. str += "(" + babyheadchngcnts + ")";
  1097. }
  1098. }
  1099. model.setValue(xWardRecPath +"/headinfo/head/babyheadchngyn", str);
  1100. }
  1101. //모로반사
  1102. var mororflxkind = model.getValue(xWardRecPath +"/rflxinfo/rflx/mororflxkind");
  1103. var mororflxsymmetryyn = model.getValue(xWardRecPath +"/rflxinfo/rflx/mororflxsymmetryyn");
  1104. var mororflxpos = model.getValue(xWardRecPath +"/rflxinfo/rflx/mororflxpos");
  1105. arr = chk_mororflxkind.label.split(" ");
  1106. if(mororflxkind != ""){
  1107. model.setValue(xWardRecPath +"/rflxinfo/rflx/mororflxkind", arr);
  1108. }
  1109. if(mororflxsymmetryyn != ""){
  1110. if(mororflxpos != ""){
  1111. model.setValue(xWardRecPath +"/rflxinfo/rflx/mororflxsymmetryyn", chk_mororflxsymmetryyn.label + "," + rdo_mororflxpos.label);
  1112. }else{
  1113. model.setValue(xWardRecPath +"/rflxinfo/rflx/mororflxsymmetryyn", chk_mororflxsymmetryyn.label);
  1114. }
  1115. }else if (mororflxpos != ""){
  1116. model.setValue(xWardRecPath +"/rflxinfo/rflx/mororflxsymmetryyn", rdo_mororflxpos.label);
  1117. }
  1118. //쥐기반사
  1119. var grasprflxkind = model.getValue(xWardRecPath +"/rflxinfo/rflx/grasprflxkind");
  1120. var grasprflxsummetryyn = model.getValue(xWardRecPath +"/rflxinfo/rflx/grasprflxsummetryyn");
  1121. var grasprflxpos = model.getValue(xWardRecPath +"/rflxinfo/rflx/grasprflxpos");
  1122. arr = chk_grasprflxkind.label.split(" ");
  1123. if(grasprflxkind != ""){
  1124. model.setValue(xWardRecPath +"/rflxinfo/rflx/grasprflxkind", arr);
  1125. }
  1126. if(grasprflxsummetryyn != ""){
  1127. if(grasprflxpos != ""){
  1128. model.setValue(xWardRecPath +"/rflxinfo/rflx/grasprflxsummetryyn", chk_grasprflxsummetryyn.label + "," + rdo_grasprflxpos.label);
  1129. }else{
  1130. model.setValue(xWardRecPath +"/rflxinfo/rflx/grasprflxsummetryyn", chk_grasprflxsummetryyn.label);
  1131. }
  1132. }else if (grasprflxpos != ""){
  1133. model.setValue(xWardRecPath +"/rflxinfo/rflx/grasprflxsummetryyn", rdo_grasprflxpos.label);
  1134. }
  1135. //빨기반사
  1136. var suckingrflxkind = model.getValue(xWardRecPath +"/rflxinfo/rflx/suckingrflxkind");
  1137. if(suckingrflxkind != "") {
  1138. arr = chk_suckingrflxkind.label.split(" ");
  1139. model.setValue(xWardRecPath +"/rflxinfo/rflx/suckingrflxkind", arr);
  1140. }
  1141. //포유반사
  1142. var rootingrflxkind = model.getValue(xWardRecPath +"/rflxinfo/rflx/rootingrflxkind");
  1143. if(rootingrflxkind != "") {
  1144. arr = chk_rootingrflxkind.label.split(" ");
  1145. model.setValue(xWardRecPath +"/rflxinfo/rflx/rootingrflxkind", arr);
  1146. }
  1147. //근긴장도
  1148. var tensionkind = model.getValue(xWardRecPath +"/tensioninfo/tension/tensionkind");
  1149. if(tensionkind != "") {
  1150. arr = chk_tensionkind.label.split(" ");
  1151. model.setValue(xWardRecPath +"/tensioninfo/tension/tensionkind", arr);
  1152. }
  1153. //정서상태
  1154. var emotstatkind = model.getValue(xWardRecPath +"/emotstatinfo/emotstat/emotstatkind");
  1155. if(emotstatkind != "") {
  1156. arr = chk_emotstatkind.label.split(" ");
  1157. model.setValue(xWardRecPath +"/emotstatinfo/emotstat/emotstatkind", arr);
  1158. }
  1159. }
  1160. function fMake_SignData() {
  1161. //JCI 교육요구도 추가 (20100113 김홍점)
  1162. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1163. if ( instUseYN =="Y" ){
  1164. Sign.addnode("/root/temp/signdata/edurecinfo");
  1165. }
  1166. Sign.addnode("/root/main/wardrecinfo");
  1167. Sign.addnode("/root/main/histinfo");
  1168. fSetSignData();
  1169. }
  1170. //이전기록일시 변경
  1171. function fChgRecHistInfo(){
  1172. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
  1173. var bfrecpid = recpkspec[0];
  1174. var bfrecindd = recpkspec[1];
  1175. var bfreccretno = recpkspec[2];
  1176. var bfrecflag = recpkspec[3];
  1177. var bfrecinstcd = recpkspec[4];
  1178. model.removeNodeset("/root/send/req");
  1179. model.makeNode("/root/send/req");
  1180. model.makeValue("/root/send/req/pid", bfrecpid);
  1181. model.makeValue("/root/send/req/indd", bfrecindd);
  1182. model.makeValue("/root/send/req/cretno", bfreccretno);
  1183. model.makeValue("/root/send/req/instcd", bfrecinstcd);
  1184. model.makeValue("/root/send/req/recflag", bfrecflag);
  1185. //model.makeValue("/root/send/req/docucode", "0000002434");
  1186. //model.makeValue("/root/send/req/deptcd", orddeptcd);
  1187. //외부신생아 간호정보조사지
  1188. submit("TRMNN02002", false);
  1189. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  1190. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  1191. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  1192. model.refresh();
  1193. }
  1194. ]]>
  1195. </script>
  1196. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  1197. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  1198. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  1199. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  1200. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  1201. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  1202. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
  1203. <submission id="TRMNN02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
  1204. <submission id="TRMNN02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
  1205. <submission id="TRMNN02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
  1206. <submission id="TRMNN02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
  1207. <submission id="TXMNN02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo" resultref="/root/hidden/rsltinfo"/>
  1208. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  1209. <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
  1210. </model>
  1211. </xhtml:head>
  1212. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1213. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1214. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:15px; ">간호초기평가(외부신생아)</caption>
  1215. </group>
  1216. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1217. <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
  1218. <caption id="caption10" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
  1219. <caption id="caption1" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
  1220. <caption id="caption2" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
  1221. <caption id="caption3" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
  1222. <caption id="caption4" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
  1223. <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
  1224. <caption id="caption5" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
  1225. <caption id="caption7" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
  1226. <caption id="caption8" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
  1227. <caption id="caption9" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
  1228. </group>
  1229. <input id="ipt_bfrecdd" ref="/root/main/wardrecinfo/bfrecdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" style="left:83px; top:45px; width:100px; height:19px; "/>
  1230. <output id="opt_bfrectm" ref="/root/main/wardrecinfo/bfrectm" class="output_fix" visibility="hidden" format="hh:nn" style="left:186px; top:45px; width:50px; height:19px; "/>
  1231. <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
  1232. <caption>일반정보</caption>
  1233. <toggle case="case1" ev:event="onclick"/>
  1234. </button>
  1235. <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
  1236. <caption>신체사정</caption>
  1237. <toggle case="case2" ev:event="onclick"/>
  1238. </button>
  1239. <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
  1240. <caption>교육요구도</caption>
  1241. <toggle case="case_edurec" ev:event="onclick"/>
  1242. </button>
  1243. <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
  1244. <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
  1245. <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08300_신생아정보외부.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1246. </case>
  1247. <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1248. <import id="import4" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08600_신체사정신생아.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1249. </case>
  1250. <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1251. <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1252. </case>
  1253. </switch>
  1254. <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
  1255. <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
  1256. <button id="btn_save" class="btn2_letter4" visibility="hidden" style="left:1062px; top:49px; width:64px; height:19px; ">
  1257. <caption>임시저장</caption>
  1258. <script type="javascript" ev:event="DOMActivate">
  1259. <![CDATA[
  1260. fPatgnrlInfo("T");
  1261. if(submit("TXMNN02001") ==true) {
  1262. messageBox("저장이 ", "I001");
  1263. } else {
  1264. messageBox("저장을 실패하였습니다", "E");
  1265. }
  1266. ]]>
  1267. </script>
  1268. </button>
  1269. <button id="button2" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
  1270. <caption>인증저장</caption>
  1271. <script type="javascript" ev:event="DOMActivate">
  1272. <![CDATA[
  1273. //20090626_SMY추가
  1274. var msgstr = "";
  1275. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1276. //필수입력사항 blocking
  1277. if(model.getValue("/root/main/wardrecinfo/infooffer") == ""){
  1278. var msg9 = "[정보제공자]";
  1279. if(msgstr == ""){
  1280. msgstr += msg9;
  1281. }else{
  1282. msgstr += ", " + msg9;
  1283. }
  1284. }
  1285. if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive2") == ""){
  1286. var msg10 = "[입원동기]";
  1287. if(msgstr == ""){
  1288. msgstr += msg10;
  1289. }else{
  1290. msgstr += ", " + msg10;
  1291. }
  1292. }
  1293. if(model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid = '077' and supcdid = '02' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid") || model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //supcdid='02' : 의정부성모, 03 : 부천성가병원
  1294. if(model.getValue("/root/main/wardrecinfo/bdht") == "" && model.getValue("/root/main/wardrecinfo/bdhtinspyn") != "Y"){
  1295. var msg6 = "[신장]";
  1296. if(msgstr == ""){
  1297. msgstr += msg6;
  1298. }else{
  1299. msgstr += ", " + msg6;
  1300. }
  1301. }
  1302. if(model.getValue("/root/main/wardrecinfo/bdwt") == "" && model.getValue("/root/main/wardrecinfo/bdwtinspyn") != "Y"){
  1303. var msg7 = "[체중]";
  1304. if(msgstr == ""){
  1305. msgstr += msg7;
  1306. }else{
  1307. msgstr += ", " + msg7;
  1308. }
  1309. }
  1310. }
  1311. if(msgstr != "" ){
  1312. messageBox(msgstr + " 은(는) 필수 입력사항입니다.", "I");
  1313. return;
  1314. }
  1315. fPatgnrlInfo("C");
  1316. //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
  1317. if ( instUseYN =="Y"){
  1318. model.removenode('/root/temp/signdata');
  1319. if ( !ivw_edurec.window.javascript.fSave() ){
  1320. return;
  1321. }
  1322. var xEduRecPath = '/root/temp/signdata/edurecinfo';
  1323. fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "N");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn)
  1324. }
  1325. //최초기록자
  1326. var fstrgstdt = getCurrentDateTime();
  1327. if(isNull(model.getValue("/root/main/wardrecinfo/fstrgstrnm"))) {
  1328. model.makeValue("/root/main/wardrecinfo/fstrgstdt", fstrgstdt.substr(0,4) + "-" + fstrgstdt.substr(4,2)+"-"+fstrgstdt.substr(6,2)+" "+fstrgstdt.substr(9,2)+":"+fstrgstdt.substr(11,2));
  1329. model.makeValue("/root/main/wardrecinfo/fstrgstrnm", model.getValue("/root/main/wardrecinfo/recuser"));
  1330. }
  1331. Sign.certreload = true ;
  1332. if (Sign.signprocess() == true){
  1333. //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
  1334. // alert("인증성공" );
  1335. // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
  1336. // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
  1337. // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
  1338. // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
  1339. // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
  1340. // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
  1341. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  1342. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  1343. model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/signinfo/signno")); //20090722_SMY변경
  1344. model.makeValue("/root/send/wardrecinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
  1345. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  1346. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  1347. model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
  1348. model.makeValue("/root/send/wardrecinfo/signflag", "02");
  1349. model.makeValue("/root/send/wardrecinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
  1350. model.makeValue("/root/send/wardrecinfo/formcd", "0000002434");
  1351. model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  1352. model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
  1353. model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
  1354. model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
  1355. if(submit("TXMNN02001") ==true) {
  1356. model.setValue("/root/send/wardrecinfo", "");
  1357. messageBox("저장이 ", "I001");
  1358. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  1359. fGetInitRecInfo(); //재조회
  1360. fInitEvent();
  1361. } else {
  1362. messageBox("저장을 실패하였습니다", "E");
  1363. }
  1364. }
  1365. ]]>
  1366. </script>
  1367. </button>
  1368. <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:915px; top:45px; width:100px; height:19px; "/>
  1369. <button id="button1" class="btn2_letter6" style="left:1040px; top:49px; width:86px; height:19px; ">
  1370. <caption>전체기록삭제</caption>
  1371. <script type="javascript" ev:event="DOMActivate">
  1372. <![CDATA[
  1373. setCareInfoDel("TXMNN02001"); //CareCom.js
  1374. fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
  1375. ]]>
  1376. </script>
  1377. </button>
  1378. <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
  1379. <caption id="cap_sinfodnor" class="cell_1" style="left:677px; top:18px; width:68px; height:23px; vertical-align:middle; ">정보제공자</caption>
  1380. <caption id="cap_recdt" class="cell_1" style="left:351px; top:18px; width:56px; height:23px; vertical-align:middle; ">기록일시</caption>
  1381. <input id="ipt_rectm" ref="/root/main/wardrecinfo/rectm" class="input_default" format="hh:nn" validateformat="true" style="left:500px; top:20px; width:50px; height:19px; "/>
  1382. <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:601px; top:20px; width:75px; height:19px; "/>
  1383. <caption id="caption11" class="cell_1" style="left:1044px; top:18px; width:71px; height:23px; vertical-align:middle; ">최초기록자</caption>
  1384. <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:409px; top:20px; width:90px; height:19px; "/>
  1385. <caption id="caption12" class="cell_1" style="left:845px; top:18px; width:80px; height:23px; vertical-align:middle; ">최초기록일시</caption>
  1386. <select1 id="cmb_bfrecddtm" ref="/root/main/wardrecinfo/bfrecddtm" class="combo_default" navindex="16" appearance="minimal" style="left:83px; top:20px; width:120px; height:19px; ">
  1387. <choices>
  1388. <itemset nodeset="/root/hidden/paminfo/recinfo">
  1389. <label ref="bfrecddtm"/>
  1390. <value ref="recpkspec"/>
  1391. </itemset>
  1392. </choices>
  1393. <script type="javascript" ev:event="xforms-value-changed">
  1394. <![CDATA[
  1395. fChgRecHistInfo();
  1396. ]]>
  1397. </script>
  1398. </select1>
  1399. <caption id="cap_recuser" class="cell_1" style="left:553px; top:18px; width:47px; height:23px; vertical-align:middle; ">기록자</caption>
  1400. <caption id="cap_bfrecuser" class="cell_1" style="left:205px; top:18px; width:67px; height:23px; vertical-align:middle; ">이전기록자</caption>
  1401. <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:274px; top:20px; width:75px; height:19px; "/>
  1402. <output id="output1" ref="/root/main/wardrecinfo/fstrgstdt" class="output_fix" style="left:927px; top:20px; width:115px; height:19px; "/>
  1403. <output id="output2" ref="/root/main/wardrecinfo/fstrgstrnm" class="output_fix" style="left:1116px; top:20px; width:75px; height:19px; "/>
  1404. <input id="ipt_infooffer" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:747px; top:20px; width:97px; height:19px; "/>
  1405. </group>
  1406. <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
  1407. <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1408. </group>
  1409. </xhtml:body>
  1410. </xhtml:html>