SMMNW03210_NEW소아 간호정보조사.xrw 111 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <patinfo/>
  19. <infooffer/>
  20. <signno/>
  21. <room/>
  22. <patnm/>
  23. <sex/>
  24. <age/>
  25. <pid/>
  26. <fstrgstrnm/>
  27. <fstrgstdt/>
  28. <newElement/>
  29. </wardrecinfo>
  30. </main>
  31. <send>
  32. <req/>
  33. </send>
  34. <init>
  35. <mlist>
  36. <M0068>
  37. <cdid/>
  38. <cdnm/>
  39. </M0068>
  40. <M0069>
  41. <cdid/>
  42. <cdnm/>
  43. </M0069>
  44. <M0070>
  45. <cdid/>
  46. <cdnm/>
  47. </M0070>
  48. <M0071>
  49. <cdid/>
  50. <cdnm/>
  51. </M0071>
  52. <M0072>
  53. <cdid/>
  54. <cdnm/>
  55. </M0072>
  56. <M0073>
  57. <cdid/>
  58. <cdnm/>
  59. </M0073>
  60. <M0074>
  61. <cdid/>
  62. <cdnm/>
  63. </M0074>
  64. </mlist>
  65. <cond>
  66. <unitflag>kid</unitflag>
  67. </cond>
  68. </init>
  69. <hidden>
  70. <paminfo/>
  71. <histinfo/>
  72. <wardrecinfo/>
  73. <bodyases>
  74. <mfmdstatinfo/>
  75. <shpaininfo/>
  76. <resorgninfo/>
  77. <digorgninfo/>
  78. <nvesysinfo/>
  79. <skinsectinfo/>
  80. </bodyases>
  81. <errecinfo/>
  82. <rsltinfo/>
  83. </hidden>
  84. <codeinfo/>
  85. <signinfo>
  86. <signno/>
  87. </signinfo>
  88. </root>
  89. </instance>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. //---------(20101028) 경북대
  93. if (fEssentialBackColor != "") {
  94. ipt_infooffer.attribute("background-color") = fEssentialBackColor;
  95. }
  96. //---------(20101028) 경북대
  97. fGetCmbList();
  98. fInit();
  99. if( fGetInitRecInfo() ) {
  100. fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
  101. fInitEvent("init");
  102. model.refresh();
  103. //20110308 이선경 (경북대) 신체사정에 쓰일 구분자추가
  104. model.makeValue("/root/init/cond/unitflag", "kid");
  105. } else {
  106. window.close();
  107. }
  108. ]]>
  109. </script>
  110. <script type="javascript">
  111. <![CDATA[
  112. var allgInsYN = "Y";
  113. var NoneInspCode = "-1"; //측정불가코드값
  114. //현재수진이력의 입원시간을 가져온다
  115. function fGetIndtInfo() {
  116. var indd = model.getValue("/root/temp/cond/list/indd");
  117. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|"); //이전기록일시
  118. var bfrecindd = recpkspec[1]; //이전기록일시 입원일자
  119. if(indd != bfrecindd) {
  120. ipt_indt.value = model.getValue("/root/temp/cond/list/careinrmtm"); //입원시간
  121. }
  122. }
  123. function fGetCmbList() {
  124. model.removeNodeset("/root/init/mlist");
  125. model.makeNode("/root/init/mlist");
  126. //성가병원 기관코드 조회_20090626_SMY
  127. fGetNursHardCdInfo("'077','172','177', 'U31','W25'", getCurrentDate()); //CareCom.js
  128. zbcfGetCodeList( new Array ( "M0068" //직업
  129. ,"M0069" //교육정도
  130. ,"M0070" //종교
  131. ,"M0071" //결혼상태
  132. ,"M0072" //관계
  133. ,"M0073" //부위
  134. ,"M0376" //혈액형
  135. ,"M0075" //의식상태
  136. ,"M0088" //생존여부
  137. ,"M0090" //알러지
  138. ,"M0098" //동반자
  139. ,"M0100" //지남력
  140. ,"M0102" //요흔
  141. ,"M0103" //부착기구
  142. ,"M0104" //소변색깔
  143. ,"M0105" //소변증상
  144. ,"M0106" //대변색깔
  145. ,"M0107" //대변종류
  146. ,"M0109" //동공빛반사여부
  147. ,"M0110" //동공수치
  148. ,"M0411" //영적요구
  149. ,"M0210" //입원방법
  150. ,"M0418" //입원경로
  151. ,"M0375" //체온부위
  152. ,"M0368" //가족병력내역
  153. ,"M0532" //과거병력내역_20090406_SMY추가
  154. ,"M0634" //통증사정내역
  155. )
  156. , new Array ( "/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. ,"/root/init/mlist" //요흔
  169. ,"/root/init/mlist" //부착기구
  170. ,"/root/init/mlist" //소변색깔
  171. ,"/root/init/mlist" //소변증상
  172. ,"/root/init/mlist" //대변색깔
  173. ,"/root/init/mlist" //대변종류
  174. ,"/root/init/mlist" //동공빛반사여부
  175. ,"/root/init/mlist" //동공수치
  176. ,"/root/init/mlist" //영적요구
  177. ,"/root/init/mlist" //입원방법
  178. ,"/root/init/mlist" //입원경로
  179. ,"/root/init/mlist" //체온부위
  180. ,"/root/init/mlist" //가족병력내역
  181. ,"/root/init/mlist" //과거병력내역
  182. ,"/root/init/mlist" //통증사정내역
  183. )
  184. );
  185. model.refresh();
  186. }
  187. var status = "select";
  188. function fInitEvent(pFlag) {
  189. fInitEventChildInfo();
  190. fInitEventBodyAses(pFlag);
  191. }
  192. //화면 로딩시
  193. function fInit(){
  194. model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
  195. model.copyNode("/root/hidden/wardrecinfo", "/root/main/wardrecinfo");
  196. model.makeValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1");
  197. model.makeValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1");
  198. model.makeValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1");
  199. model.makeValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1");
  200. //model.makeValue("/root/hidden/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
  201. model.makeValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1");
  202. // 15.05.19 - AYS 삭제
  203. //model.makeValue("/root/hidden/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
  204. //model.makeValue("/root/hidden/histinfo/smokinfo/smok/smokinclyn", "1");
  205. //model.makeValue("/root/hidden/histinfo/drunkinfo/drunk/drunkinclyn", "1");
  206. //model.makeValue("/root/hidden/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1");
  207. // 15.05.19 - AYS 삭제
  208. model.makeValue("/root/hidden/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "1"); // 이상하다
  209. model.copyNode("/root/hidden/bodyases/mfmdstatinfo", "/root/main/wardrecinfo/mfmdstatinfo");
  210. model.makeValue("/root/hidden/bodyases/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn", "1");
  211. model.copyNode("/root/hidden/bodyases/shpaininfo", "/root/main/wardrecinfo/shpaininfo");
  212. model.makeValue("/root/hidden/bodyases/shpaininfo/shpain/shpaininfoinclyn", "1");
  213. model.copyNode("/root/hidden/bodyases/resorgninfo", "/root/main/wardrecinfo/resorgninfo");
  214. model.makeValue("/root/hidden/bodyases/resorgninfo/resorgn/resorgninfoinclyn", "1");
  215. model.copyNode("/root/hidden/bodyases/digorgninfo", "/root/main/wardrecinfo/digorgninfo");
  216. model.makeValue("/root/hidden/bodyases/digorgninfo/digorgn/digorgninfoinclyn", "1");
  217. model.copyNode("/root/hidden/bodyases/nvesysinfo", "/root/main/wardrecinfo/nvesysinfo");
  218. model.makeValue("/root/hidden/bodyases/nvesysinfo/nvesys/nvesysinfoinclyn", "1");
  219. model.copyNode("/root/hidden/bodyases/skinsectinfo", "/root/main/wardrecinfo/skinsectinfo");
  220. model.makeValue("/root/hidden/bodyases/skinsectinfo/skinsect/skincolorinfoinclyn", "1");
  221. model.makeValue("/root/hidden/bodyases/skinsectinfo/skinsect/skinstatinfoinclyn", "1");
  222. var chkantibio= instance1.selectSingleNode("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/antibiodrugyn");
  223. model.makeNode("/root/temp/cond/list");
  224. getPatientInfoDetails("/root/temp/cond/list");
  225. //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
  226. var pid;
  227. var room;
  228. var patnm;
  229. var sex;
  230. var age;
  231. var instcd;
  232. var orddeptcd;
  233. var indd;
  234. room = model.getValue("/root/temp/cond/list/roomcd");
  235. patnm = model.getValue("/root/temp/cond/list/hngnm2");
  236. sex = model.getValue("/root/temp/cond/list/sex");
  237. age = model.getValue("/root/temp/cond/list/age");
  238. pid = model.getValue("/root/temp/cond/list/pid");
  239. indd = model.getValue("/root/temp/cond/list/indd");
  240. instcd = model.getValue("/root/temp/cond/list/instcd");
  241. orddetpcd = model.getValue("/root/temp/cond/list/orddeptcd");
  242. cretno = model.getValue("/root/temp/cond/list/cretno");
  243. ioflag = model.getValue("/root/temp/cond/list/ioflag");
  244. model.makeValue("/root/main/wardrecinfo/room", room);
  245. model.makeValue("/root/main/wardrecinfo/patnm", patnm);
  246. model.makeValue("/root/main/wardrecinfo/sex", sex);
  247. model.makeValue("/root/main/wardrecinfo/age", age);
  248. model.makeValue("/root/main/wardrecinfo/pid", pid);
  249. var scrnid =getScreenID();
  250. var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
  251. +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
  252. fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
  253. model.refresh();
  254. }
  255. //간호정보조사지 조회
  256. function fGetInitRecInfo() {
  257. var pid = model.getValue("/root/temp/cond/list/pid");
  258. var indd = model.getValue("/root/temp/cond/list/indd");
  259. var cretno = model.getValue("/root/temp/cond/list/cretno");
  260. var instcd = model.getValue("/root/temp/cond/list/instcd");
  261. var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  262. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  263. var deptcd = model.getValue("/root/temp/cond/list/wardcd");
  264. var userdept = getUserInfo("dutplcecd");
  265. var spiritdept = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='U31']/cdid");
  266. var jobkindcd = getUserInfo("jobkindcd");
  267. if(jobkindcd != "0330") {
  268. if(deptcd == spiritdept) {
  269. if(userdept != spiritdept) {
  270. messageBox("환자 개인정보 보호를 위해 해당병동 사용자외엔 조회를 제한합니다", "E");
  271. return false;
  272. }
  273. }
  274. }
  275. // //웹용 인자값 셋팅
  276. model.makeValue("/root/send/req/pid", pid);
  277. model.makeValue("/root/send/req/indd", indd);
  278. model.makeValue("/root/send/req/instcd", instcd);
  279. model.makeValue("/root/send/req/recflag", "04");
  280. model.makeValue("/root/send/req/docucode", "0000002433");
  281. model.makeValue("/root/send/req/deptcd", orddeptcd);
  282. if(pid == "") {
  283. messageBox("환자를 선택하지 ", "E007");
  284. window.close();
  285. } else {
  286. if(instUseYN == "Y"){
  287. btn_edurec.visible = true;
  288. btn_SPMMO14900.visible = true;
  289. grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px; " ;
  290. setParameter("SPMRJ00300_pid", pid);
  291. setParameter("SPMRJ00300_orddd", indd);
  292. setParameter("SPMRJ00300_cretno", cretno);
  293. ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw";
  294. }else{
  295. grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px; " ;
  296. btn_edurec.visible = false;
  297. btn_SPMMO14900.visible = false;
  298. }
  299. submit("TRMNW03201", "false"); //1저장후 삭제(K), 2신규(I), 3.수정(U)
  300. var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
  301. if(exeflag == 'U') {
  302. submit("TRMNW03202", false);
  303. //인증번호set_20090722_SMY
  304. model.setValue("/root/signinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
  305. var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
  306. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  307. //마지막 기록일시 셋팅
  308. var fstrgstdt = model.getValue("/root/hidden/paminfo/recinfo[recflag = '04' and indd = '" + indd + "']/fstrgstdt");
  309. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '04' and indd = '" + indd + "']/recpkspec"));
  310. model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '04' and indd = '" + indd + "']/bfrecuser"));
  311. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  312. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  313. model.refresh();
  314. } else {
  315. //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
  316. if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
  317. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
  318. fChgRecHistInfo();
  319. }else{
  320. submit("TRMNW03204");
  321. var exist = model.getValue("/root/hidden/cominfo/histinfo/existyn");
  322. var existfamyinfo = model.getValue("/root/hidden/cominfo/famyinfo/existfamyinfo");
  323. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
  324. //가족사항 연동부분
  325. model.removeNodeset("/root/main/famyfact");
  326. if(getNodesetCount("/root/hidden/cominfo/famyfact") > 0){
  327. for(var i=1; i <= getNodesetCount("/root/hidden/cominfo/famyfact"); i++) {
  328. if(model.getValue("/root/hidden/cominfo/famyfact["+ i +"]/rela") != ""){
  329. model.duplicate("/root/main", "/root/hidden/cominfo/famyfact["+ i +"]");
  330. }
  331. }
  332. }
  333. if(exist == "N") {
  334. model.copyNode("/root/main/histinfo", "/root/hidden/histinfo");
  335. model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
  336. model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
  337. model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
  338. model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
  339. model.setValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
  340. model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
  341. //model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
  342. model.setValue("/root/main/histinfo/smokinfo/smok/smokinclyn", "");
  343. model.setValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn", "");
  344. model.setValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "");
  345. model.setValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "");
  346. } else {
  347. model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
  348. }
  349. model.setValue("/root/main/wardrecinfo/religncd", model.getValue("/root/hidden/paminfo/paminfo/religncd"));
  350. model.setValue("/root/main/wardrecinfo/baptnm", model.getValue("/root/hidden/paminfo/paminfo/baptnm"));
  351. model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/hidden/paminfo/paminfo/tel"));
  352. model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/hidden/paminfo/paminfo/mphone"));
  353. model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/hidden/paminfo/paminfo/etcphone1"));
  354. model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/hidden/paminfo/paminfo/etcphone2"));
  355. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  356. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  357. //model.setValue("/root/main/wardrecinfo/indd", indd);
  358. //기록일시 정보를 쿼리에서 가져옴
  359. model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
  360. model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
  361. model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
  362. model.refresh();
  363. }
  364. }
  365. //가계도 연동부분.
  366. if(existfamyinfo == "Y") {
  367. model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
  368. opt_existyn.refresh();
  369. }
  370. //최초기록자
  371. fMNWCareComFstdtSet( "04", "SRCH" );
  372. fNotExistsNodeCreate();
  373. }
  374. if(grd_allghist.rows > 1) {
  375. for(var i = 0; i < grd_allghist.cols; i++) {
  376. if(grd_allghist.valueMatrix(1, i) != "") {
  377. allgInsYN = "N";
  378. }
  379. }
  380. }
  381. model.refresh();
  382. return true;
  383. }
  384. function fGetDate() {
  385. }
  386. function fGetXmlToStr(xPath) {
  387. var str = instance1.selectNodesXml(xPath);
  388. return str;
  389. }
  390. function fChkInclYN() {
  391. //병력 XML
  392. var pasthistyn = model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn");
  393. var famyhistyn = model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn");
  394. var inhistyn = model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn");
  395. var ophistyn = model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn");
  396. var rectmedistatyn = model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn");
  397. var allhistinclyn = model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn");
  398. //var vacnhistyn = model.getValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn"); // '15.05.19 - 삭제
  399. //신체사정XML
  400. var mfmdstatyn = model.getValue("/root/main/wardrecinfo/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn");
  401. var shpaininfoyn = model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoinclyn");
  402. var resorgninfoyn = model.getValue("/root/main/wardrecinfo/resorgninfo/resorgn/resorgninfoinclyn");
  403. var digorgninfoyn = model.getValue("/root/main/wardrecinfo/digorgninfo/digorgn/digorgninfoinclyn");
  404. var nvesysinfoyn = model.getValue("/root/main/wardrecinfo/nvesysinfo/nvesys/nvesysinfoinclyn");
  405. var skincolorinfoyn = model.getValue("/root/main/wardrecinfo/skinsectinfo/skinsect/skincolorinfoinclyn");
  406. var skinstatinfoyn = model.getValue("/root/main/wardrecinfo/skinsectinfo/skinsect/skinstatinfoinclyn");
  407. //신체사정
  408. if(mfmdstatyn == "1") {
  409. model.makeValue("/root/send/wardrecinfo/mfmdstatinfo", fGetXmlToStr("/root/hidden/bodyases/mfmdstatinfo/mfmdstat"));
  410. } else {
  411. model.makeValue("/root/send/wardrecinfo/mfmdstatinfo", fGetXmlToStr("/root/main/wardrecinfo/mfmdstatinfo/mfmdstat"));
  412. }
  413. if(shpaininfoyn == "1") {//통증 : 무(default)/유 선택20100122 김홍점
  414. model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/hidden/bodyases/shpaininfo/shpain"));
  415. }else {
  416. model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
  417. }
  418. if(resorgninfoyn == "1") {
  419. model.makeValue("/root/send/wardrecinfo/resorgninfo", fGetXmlToStr("/root/hidden/bodyases/resorgninfo/resorgn"));
  420. } else {
  421. model.makeValue("/root/send/wardrecinfo/resorgninfo", fGetXmlToStr("/root/main/wardrecinfo/resorgninfo/resorgn"));
  422. }
  423. if(digorgninfoyn == "1") {
  424. model.makeValue("root/send/wardrecinfo/digorgninfo", fGetXmlToStr("/root/hidden/bodyases/digorgninfo/digorgn"));
  425. } else {
  426. model.makeValue("/root/send/wardrecinfo/digorgninfo", fGetXmlToStr("/root/main/wardrecinfo/digorgninfo/digorgn"));
  427. }
  428. if(nvesysinfoyn == "1") {
  429. model.makeValue("/root/send/wardrecinfo/nvesysinfo", fGetXmlToStr("/root/hidden/bodyases/nvesysinfo/nvesys"));
  430. } else {
  431. model.makeValue("/root/send/wardrecinfo/nvesysinfo", fGetXmlToStr("/root/main/wardrecinfo/nvesysinfo/nvesys"));
  432. }
  433. model.makeNode("/root/temp/wardrecinfo/skinsectinfo");
  434. model.copyNode("/root/temp/wardrecinfo/skinsectinfo", "/root/main/wardrecinfo/skinsectinfo");
  435. if(skincolorinfoyn != "1" && skinstatinfoyn != "1") {
  436. model.makeValue("/root/temp/wardrecinfo/skinsectinfo", fGetXmlToStr("/root/main/wardrecinfo/skinsectinfo/skinsect"));
  437. } else {
  438. if(skincolorinfoyn == "1") {
  439. model.setValue("/root/temp/wardrecinfo/skinsectinfo/skinsect/skincolorinfoinclyn", model.getValue("/root/hidden/bodyases/skinsectinfo/skinsect/skincolorinfoinclyn"));
  440. model.copyNode("/root/temp/wardrecinfo/skinsectinfo/skinsect/skincolor", "/root/hidden/bodyases/skinsectinfo/skinsect/skincolor");
  441. }
  442. if(skinstatinfoyn == "1") {
  443. model.setValue("/root/temp/wardrecinfo/skinsectinfo/skinsect/skinstatinfoinclyn", model.getValue("/root/hidden/bodyases/skinsectinfo/skinsect/skinstatinfoinclyn"));
  444. model.copyNode("/root/temp/wardrecinfo/skinsectinfo/skinsect/skinstat", "/root/hidden/bodyases/skinsectinfo/skinsect/skinstat");
  445. }
  446. }
  447. model.makeValue("/root/send/wardrecinfo/skinsectinfo", fGetXmlToStr("/root/temp/wardrecinfo/skinsectinfo/skinsect"));
  448. //병력
  449. if(pasthistyn == "1") {
  450. model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/hidden/histinfo/pasthistinfo/pasthist"));
  451. } else {
  452. model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/main/histinfo/pasthistinfo/pasthist"));
  453. }
  454. if(famyhistyn == "1") {
  455. model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/hidden/histinfo/famyhistinfo/famyhist"));
  456. } else {
  457. model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/main/histinfo/famyhistinfo/famyhist"));
  458. }
  459. if(inhistyn == "1") {
  460. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/hidden/histinfo/inhistinfo/inhist"));
  461. } else {
  462. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
  463. }
  464. if(ophistyn == "1") {
  465. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/hidden/histinfo/ophistinfo/ophist"));
  466. } else {
  467. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
  468. }
  469. if(rectmedistatyn == "1") {
  470. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat"));
  471. } else {
  472. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat"));
  473. }
  474. if(allhistinclyn == "1") {
  475. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/hidden/histinfo/allghistinfo/allghist"));
  476. } else {
  477. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
  478. }
  479. // '15.05.19 - 추가
  480. // if(vacnhistyn == "1") {
  481. // model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/hidden/histinfo/vacnhistinfo/vacnhist"));
  482. // } else {
  483. // model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
  484. // }
  485. //model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/hidden/histinfo/smokinfo/smok"));
  486. //model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
  487. //model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
  488. //model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
  489. //다른 기록지에서 저장한 이력을 조회하여 저장한다.
  490. model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
  491. model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
  492. model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
  493. model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
  494. // '15.05.19 추가
  495. model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
  496. }
  497. function fPatgnrlInfo(certFlag) {
  498. var userid = getUserId();
  499. model.removeNodeset("/root/send/wardinfo");
  500. //환자기본정보
  501. model.makeValue("/root/send/wardrecinfo/privacy", model.getValue("/root/main/wardrecinfo/privacy"));
  502. model.makeValue("/root/send/wardrecinfo/jobcd", model.getValue("/root/main/wardrecinfo/jobcd"));
  503. model.makeValue("/root/send/wardrecinfo/jobnm", model.getValue("/root/main/wardrecinfo/jobnm"));
  504. model.makeValue("/root/send/wardrecinfo/educgrdecd", model.getValue("/root/main/wardrecinfo/educgrdecd"));
  505. model.makeValue("/root/send/wardrecinfo/educgrdenm", model.getValue("/root/main/wardrecinfo/educgrdenm"));
  506. model.makeValue("/root/send/wardrecinfo/religncd", model.getValue("/root/main/wardrecinfo/religncd"));
  507. model.makeValue("/root/send/wardrecinfo/relignnm", model.getValue("/root/main/wardrecinfo/relignnm"));
  508. model.makeValue("/root/send/wardrecinfo/marystatcd", model.getValue("/root/main/wardrecinfo/marystatcd"));
  509. model.makeValue("/root/send/wardrecinfo/marystatnm", model.getValue("/root/main/wardrecinfo/marystatnm"));
  510. model.makeValue("/root/send/wardrecinfo/baptnm", model.getValue("/root/main/wardrecinfo/baptnm"));
  511. // model.makeValue("/root/send/wardrecinfo/spo", model.getValue("/root/main/wardrecinfo/spo2"));
  512. //입원정보
  513. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/main/wardrecinfo/indd"));
  514. model.makeValue("/root/send/wardrecinfo/indt", model.getValue("/root/main/wardrecinfo/indt"));
  515. model.makeValue("/root/send/wardrecinfo/inpathcd", model.getValue("/root/main/wardrecinfo/inpathcd"));
  516. model.makeValue("/root/send/wardrecinfo/inpathnm", model.getValue("/root/main/wardrecinfo/inpathnm"));
  517. model.makeValue("/root/send/wardrecinfo/inmthdcd", model.getValue("/root/main/wardrecinfo/inmthdcd"));
  518. model.makeValue("/root/send/wardrecinfo/inmthdnm", model.getValue("/root/main/wardrecinfo/inmthdnm"));
  519. model.makeValue("/root/send/wardrecinfo/inacompstcd", model.getValue("/root/main/wardrecinfo/inacompstcd"));
  520. model.makeValue("/root/send/wardrecinfo/inacompstnm", model.getValue("/root/main/wardrecinfo/inacompstnm"));
  521. //일반정보
  522. model.makeValue("/root/send/wardrecinfo/basebdinfoinclyn", model.getValue("/root/main/wardrecinfo/basebdinfoinclyn"));
  523. /*
  524. model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
  525. model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
  526. model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
  527. model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
  528. model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
  529. model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
  530. model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
  531. model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
  532. */
  533. model.makeValue("/root/send/wardrecinfo/bdbtype", model.getValue("/root/main/wardrecinfo/bdbtype"));
  534. model.makeValue("/root/send/wardrecinfo/bdbtyperh", model.getValue("/root/main/wardrecinfo/bdbtyperh"));
  535. //신체정보 측정불가체크시 측정불가코드값 저장로직 추가_20090306_SMY
  536. //혈압
  537. // if(model.getValue("/root/main/wardrecinfo/bpinspyn") == "Y"){
  538. // model.makeValue("/root/send/wardrecinfo/lowbp", NoneInspCode);
  539. // model.makeValue("/root/send/wardrecinfo/highbp", NoneInspCode);
  540. // }else{
  541. // model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
  542. // model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
  543. // }
  544. // //맥박
  545. // if(model.getValue("/root/main/wardrecinfo/pulseinspyn") == "Y"){
  546. // model.makeValue("/root/send/wardrecinfo/pulse", NoneInspCode);
  547. // }else{
  548. // model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
  549. // }
  550. // //호흡
  551. // if(model.getValue("/root/main/wardrecinfo/brethinspyn") == "Y"){
  552. // model.makeValue("/root/send/wardrecinfo/breth", NoneInspCode);
  553. // }else{
  554. // model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
  555. // }
  556. // //체온
  557. // if(model.getValue("/root/main/wardrecinfo/bdtpinspyn") == "Y"){
  558. // model.makeValue("/root/send/wardrecinfo/bdtp", NoneInspCode);
  559. // model.makeValue("/root/send/wardrecinfo/bdtppartcd", NoneInspCode);
  560. // }else{
  561. // model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
  562. // model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
  563. // }
  564. //신장
  565. if(model.getValue("/root/main/wardrecinfo/bdhtinspyn") == "Y"){
  566. model.makeValue("/root/send/wardrecinfo/bdht", NoneInspCode);
  567. }else{
  568. model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
  569. }
  570. //체중
  571. if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") == "Y"){
  572. model.makeValue("/root/send/wardrecinfo/bdwt", NoneInspCode);
  573. }else{
  574. model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
  575. }
  576. //SpO2
  577. if(model.getValue("/root/main/wardrecinfo/spo2inspyn") == "Y"){
  578. model.makeValue("/root/send/wardrecinfo/spo", NoneInspCode);
  579. }else{
  580. model.makeValue("/root/send/wardrecinfo/spo", model.getValue("/root/main/wardrecinfo/spo2"));
  581. }
  582. //입원동기 등등(xml)
  583. model.makeValue("/root/send/wardrecinfo/inmotiveinfo", fGetXmlToStr("/root/main/wardrecinfo/inmotiveinfo/inmotive"));
  584. model.makeValue("/root/send/wardrecinfo/spcffact", fGetXmlToStr("/root/main/wardrecinfo/spcffact/spcf"));
  585. //가계도
  586. model.makeValue("/root/send/wardrecinfo/famytree", fGetXmlToStr("/root/main/wardrecinfo/famytree/existyn"));
  587. model.makeValue("/root/send/wardrecinfo/relignreq", model.getValue("/root/main/wardrecinfo/relignreq"));
  588. model.makeValue("/root/send/wardrecinfo/telflag", model.getValue("/root/main/wardrecinfo/telflag"));
  589. model.makeValue("/root/send/wardrecinfo/tel", model.getValue("/root/main/wardrecinfo/tel"));
  590. model.makeValue("/root/send/wardrecinfo/mphone", model.getValue("/root/main/wardrecinfo/mphone"));
  591. model.makeValue("/root/send/wardrecinfo/etctelflag", model.getValue("/root/main/wardrecinfo/etctelflag"));
  592. model.makeValue("/root/send/wardrecinfo/etcphone1", model.getValue("/root/main/wardrecinfo/etcphone1"));
  593. model.makeValue("/root/send/wardrecinfo/etcphone2", model.getValue("/root/main/wardrecinfo/etcphone2"));
  594. //가족사항(가족연락처table)
  595. var updtdata = getGridUpdateData(grd_famyfact);
  596. model.makeValue("/root/send/wardrecinfo/famyfact", updtdata);
  597. //어린이 정보(소아정보 테이블에만 있는 것들)
  598. model.makeValue("/root/send/wardrecinfo/parentsinfo", fGetXmlToStr("/root/main/wardrecinfo/parentsinfo/parents"));
  599. model.makeValue("/root/send/wardrecinfo/childinfo", fGetXmlToStr("/root/main/wardrecinfo/childinfo/childs"));
  600. //15.05.19 - 예방접종이력 저장 - AYS
  601. model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/wardrecinfo/vacnhistinfo/vacnhist")); //이력테이블에 저장함
  602. fChkInclYN();
  603. model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
  604. model.makeValue("/root/send/wardrecinfo/apttbdwtchnginfo", fGetXmlToStr("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng"));
  605. model.makeValue("/root/send/wardrecinfo/slepstatinfo", fGetXmlToStr("/root/main/wardrecinfo/slepstatinfo/slepstat"));
  606. model.makeValue("/root/send/wardrecinfo/cscsstatinfo", fGetXmlToStr("/root/main/wardrecinfo/cscsstatinfo/cscsstat"));
  607. model.makeValue("/root/send/wardrecinfo/mensinfo", fGetXmlToStr("/root/main/wardrecinfo/mensinfo/mens"));
  608. model.makeValue("/root/send/wardrecinfo/cirorgninfo", fGetXmlToStr("/root/main/wardrecinfo/cirorgninfo/cirorgn"));
  609. model.makeValue("/root/send/wardrecinfo/uriorgninfo", fGetXmlToStr("/root/main/wardrecinfo/uriorgninfo/uriorgn"));
  610. model.makeValue("/root/send/wardrecinfo/stoolinfo", fGetXmlToStr("/root/main/wardrecinfo/stoolinfo/stool"));
  611. model.makeValue("/root/send/wardrecinfo/actinfo", fGetXmlToStr("/root/main/wardrecinfo/actinfo/act"));
  612. model.makeValue("/root/send/wardrecinfo/visdsordinfo", fGetXmlToStr("/root/main/wardrecinfo/visdsordinfo/visdsord"));
  613. model.makeValue("/root/send/wardrecinfo/heardsordinfo", fGetXmlToStr("/root/main/wardrecinfo/heardsordinfo/heardsord"));
  614. model.makeValue("/root/send/wardrecinfo/tootstatinfo", fGetXmlToStr("/root/main/wardrecinfo/tootstatinfo/tootstat"));
  615. //인자값
  616. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  617. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  618. model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
  619. model.makeValue("/root/send/wardrecinfo/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  620. model.makeValue("/root/send/wardrecinfo/recflag", "04");
  621. model.makeValue("/root/send/wardrecinfo/docucode", "0000002433");
  622. if(grd_allghist.rows > 1) {
  623. if(allgInsYN == "Y") {
  624. grd_allghist.addStatus(1, "insert");
  625. }
  626. }
  627. model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
  628. model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
  629. model.makeValue("/root/send/wardrecinfo/userid", userid);
  630. if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
  631. model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
  632. } else {
  633. model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
  634. }
  635. //수행구분(I, U에 따른 입력, 수정을위한 구분)
  636. model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
  637. model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
  638. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  639. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  640. model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
  641. //----------(20110108)
  642. //fnNRScalc();
  643. //----------(20110108)
  644. //------------(20101219) 경북대
  645. // model.makeValue("/root/send/wardrecinfo/nrs1cd", model.getValue("/root/main/wardrecinfo/nrs1cd"));
  646. // model.makeValue("/root/send/wardrecinfo/nrs1nm", model.getValue("/root/main/wardrecinfo/nrs1nm"));
  647. // model.makeValue("/root/send/wardrecinfo/nrs21cd", model.getValue("/root/main/wardrecinfo/nrs21cd"));
  648. // model.makeValue("/root/send/wardrecinfo/nrs21nm", model.getValue("/root/main/wardrecinfo/nrs21nm"));
  649. // model.makeValue("/root/send/wardrecinfo/nrs22cd", model.getValue("/root/main/wardrecinfo/nrs22cd"));
  650. // model.makeValue("/root/send/wardrecinfo/nrs22nm", model.getValue("/root/main/wardrecinfo/nrs22nm"));
  651. // model.makeValue("/root/send/wardrecinfo/nrs23cd", model.getValue("/root/main/wardrecinfo/nrs23cd"));
  652. // model.makeValue("/root/send/wardrecinfo/nrs23nm", model.getValue("/root/main/wardrecinfo/nrs23nm"));
  653. // model.makeValue("/root/send/wardrecinfo/nrsscore", model.getValue("/root/main/wardrecinfo/nrsscore"));
  654. //------------(20101219) 경북대
  655. }
  656. function fSetSignData() {
  657. var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
  658. var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
  659. var xFamyPath = Sign.XPATH_SIGNINFO + "/famyfactinfo";
  660. var str;
  661. var arr = new Array();
  662. /****************************** 환자기본정보 **************************************/
  663. //직업
  664. var jobcd = model.getValue(xWardRecPath + "/jobcd");
  665. if(jobcd != "") {
  666. if(jobcd == "10") {
  667. if(model.getValue(xWardRecPath + "/jobnm") == "") {
  668. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  669. } else {
  670. model.setValue(xWardRecPath + "/jobcd", model.getValue(xWardRecPath + "/jobnm"));
  671. }
  672. } else {
  673. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  674. }
  675. }
  676. //교육정도
  677. var educgrde = model.getValue(xWardRecPath + "/educgrdecd");
  678. if(educgrde != "") {
  679. if(educgrde == "15") {
  680. if(model.getValue(xWardRecPath + "/educgrdenm") != "") {
  681. model.setValue(xWardRecPath + "/educgrdecd", model.getValue(xWardRecPath + "/educgrdenm"));
  682. } else {
  683. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  684. }
  685. } else {
  686. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  687. }
  688. }
  689. //종교
  690. var relign = model.getValue(xWardRecPath + "/religncd");
  691. if(relign != "") {
  692. if(relign == "01") {
  693. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  694. if(model.getValue(xWardRecPath + "/baptnm") != "") {
  695. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/religncd") + "(" + model.getValue(xWardRecPath + "/baptnm") + ")");
  696. }
  697. } else if( relign == "09") {
  698. if(model.getValue(xWardRecPath + "/relignnm") == "") {
  699. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  700. } else {
  701. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/relignnm"));
  702. }
  703. } else {
  704. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  705. }
  706. }
  707. //영적요구
  708. var relignreq = model.getValue(xWardRecPath + "/relignreq");
  709. if (relignreq != ""){
  710. model.setValue(xWardRecPath + "/relignreq", cmb_relignreq.label);
  711. }
  712. /****************************** 부모정보 **************************************/
  713. //어머니직업
  714. var mthrjobcd = model.getValue(xWardRecPath + "/parentsinfo/parents/mthrjobcd");
  715. var mthrjobnm = model.getValue(xWardRecPath + "/parentsinfo/parents/mthrjobnm");
  716. str = cmb_mthrjobcd.label;
  717. if(mthrjobcd != "") {
  718. if(mthrjobcd == "10") {
  719. if(mthrjobnm != "") {
  720. str += "(" + mthrjobnm + ")";
  721. }
  722. }
  723. model.setValue(xWardRecPath + "/parentsinfo/parents/mthrjobcd", str);
  724. }
  725. //어머니교육정도
  726. var mthrgrdecd = model.getValue(xWardRecPath + "/parentsinfo/parents/mthrgrdecd");
  727. var mthrgrdenm = model.getValue(xWardRecPath + "/parentsinfo/parents/mthrgrdenm");
  728. str = cmb_mthrgrdecd.label;
  729. if(mthrgrdecd != "") {
  730. if(mthrgrdecd == "15") {
  731. if(mthrgrdenm != "") {
  732. str += "(" + mthrgrdenm + ")";
  733. }
  734. }
  735. model.setValue(xWardRecPath + "/parentsinfo/parents/mthrgrdecd", str);
  736. }
  737. //아버지직업
  738. var fthrjobcd = model.getValue(xWardRecPath + "/parentsinfo/parents/fthrjobcd");
  739. var fthrjobnm = model.getValue(xWardRecPath + "/parentsinfo/parents/fthrjobnm");
  740. str = cmb_fthrjobcd.label;
  741. if(fthrjobcd != "") {
  742. if(fthrjobcd == "10") {
  743. if(fthrjobnm != "") {
  744. str += "(" + fthrjobnm + ")";
  745. }
  746. }
  747. model.setValue(xWardRecPath + "/parentsinfo/parents/fthrjobcd", str);
  748. }
  749. //아버지교육정도
  750. var fthrgrdecd = model.getValue(xWardRecPath + "/parentsinfo/parents/fthrgrdecd");
  751. var fthrgrdenm = model.getValue(xWardRecPath + "/parentsinfo/parents/fthrgrdenm");
  752. str = cmb_fthrgrdecd.label;
  753. if(fthrgrdecd != "") {
  754. if(fthrgrdecd == "15") {
  755. if(fthrgrdenm != "") {
  756. str += "(" + fthrgrdenm + ")";
  757. }
  758. }
  759. model.setValue(xWardRecPath + "/parentsinfo/parents/fthrgrdecd", str);
  760. }
  761. /****************************** 가족사항 **************************************/
  762. //가족사항 관계
  763. var rows = grd_famyfact.rows;
  764. var rela;
  765. for(var i = 1 ; i < rows; i++) {
  766. rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
  767. if(rela != "") {
  768. model.setValue(xFamyPath + "/famyfact[" + i + "]/rela", grd_famyfact.labelMatrix(i, grd_famyfact.colRef("rela")));
  769. }
  770. }
  771. /****************************** 입원정보 **************************************/
  772. //입원경로
  773. var inpath = model.getValue(xWardRecPath + "/inpathcd");
  774. if(inpath != "") {
  775. if(inpath == "08") {
  776. if(model.getValue(xWardRecPath + "/inpathnm") != "") {
  777. model.setValue(xWardRecPath + "/inpathcd", model.getValue(xWardRecPath + "/inpathnm"));
  778. } else {
  779. model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
  780. }
  781. } else {
  782. model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
  783. }
  784. }
  785. //입원방법
  786. var inmthd = model.getValue(xWardRecPath + "/inmthdcd");
  787. if(inmthd != "") {
  788. if(inmthd == "08") {
  789. if(model.getValue(xWardRecPath + "/inmthdnm") != "") {
  790. model.setValue(xWardRecPath + "/inmthdcd", model.getValue(xWardRecPath + "/inmthdnm"));
  791. } else {
  792. model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
  793. }
  794. } else {
  795. model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
  796. }
  797. }
  798. //입원시동반자
  799. var inacompst = model.getValue(xWardRecPath + "/inacompstcd");
  800. if(inacompst != "") {
  801. if(inacompst == "04") {
  802. if(model.getValue(xWardRecPath + "/inacompstnm") != "") {
  803. model.setValue(xWardRecPath + "/inacompstcd", model.getValue(xWardRecPath + "/inacompstnm"));
  804. } else {
  805. model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
  806. }
  807. } else {
  808. model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
  809. }
  810. }
  811. //병원도착전 24시간내 항생제 투약여부
  812. var antibiodrugyn = model.getValue(xWardRecPath + "/rectmedistatinfo/rectmedistat/antibiodrugyn");
  813. if(antibiodrugyn != "") {
  814. model.setValue(xWardRecPath + "/rectmedistatinfo/rectmedistat/antibiodrugyn", cmb_antibiodrugyn.label);
  815. }
  816. /****************************** 입원동기와 병에대한 인식 **************************************/
  817. //입원동기와 병에대한 인식
  818. var inmotive1 = model.getValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1");
  819. var illnessflag = model.getValue(xWardRecPath + "/inmotiveinfo/inmotive/illnessflag");
  820. if( inmotive1 != "") {
  821. model.setValue(xWardRecPath + "/inmotiveinfo/inmotive/inmotive1", rdo_inmotv.label);
  822. }
  823. if( illnessflag != "") {
  824. model.setValue(xWardRecPath + "/inmotiveinfo/inmotive/illnessflag", rdo_illnessflag.label);
  825. }
  826. /****************************** 기본 신체정보 **************************************/
  827. //혈액형
  828. var bdbtype = model.getValue(xWardRecPath + "/bdbtype");
  829. if(bdbtype != "") {
  830. model.setValue(xWardRecPath + "/bdbtype", cmb_bdbtype.label);
  831. }
  832. //체온
  833. var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
  834. if(bdtppart != "") {
  835. model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
  836. }
  837. /****************************** 어린이정보 **************************************/
  838. // 15.05.19 - 석명숙 과장님 요청으로 인한 삭제
  839. // //흡연정보
  840. // var smokinfoyn = model.getValue(xWardRecPath + "/childinfo/childs/smokinfo/smokinfoyn");
  841. // var bfsmokinfoyn = model.getValue(xWardRecPath + "/childinfo/childs/smokinfo/bfsmokinfoyn");
  842. // if(smokinfoyn != "") {
  843. // if(bfsmokinfoyn != ""){
  844. // model.setValue(xWardRecPath + "/childinfo/childs/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + rdo_bfsmokinfo.label + ")");
  845. // }else{
  846. // model.setValue(xWardRecPath + "/childinfo/childs/smokinfo/smokinfoyn", rdo_smokinfo.label);
  847. // }
  848. // }
  849. //
  850. // //금연상담여부
  851. // var nosmokcnstyn = model.getValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnstyn");
  852. // if(nosmokcnstyn == "1") {
  853. // var str = rdo_nosmokcnstyn.label;
  854. //
  855. // if(model.getValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnst") != "") {
  856. // if(model.getValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnst") == "03") {
  857. // if(model.getValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnstnm") != "") {
  858. // str += "(" + ipt_nosmokcnstnm.label + ")";
  859. // model.setValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnstyn", str);
  860. // } else {
  861. // str += "(" + cmb_nosmokcnst.label + ")";
  862. // model.setValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnstyn", str);
  863. // }
  864. //
  865. // } else {
  866. // str += "(" + cmb_nosmokcnst.label + ")";
  867. // model.setValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnstyn", str);
  868. // }
  869. // } else {
  870. // model.setValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnstyn", rdo_nosmokcnstyn.label);
  871. // }
  872. // } else {
  873. // model.setValue(xWardRecPath + "/childinfo/childs/smokinfo/nosmokcnstyn", rdo_nosmokcnstyn.label);
  874. // }
  875. //
  876. // //음주정보
  877. // var drunkinfoyn = model.getValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoyn");
  878. // if(drunkinfoyn != "") {
  879. // if(drunkinfoyn == "2") {
  880. // if(model.getValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfokind") != "") {
  881. // if(model.getValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoterm") != "") {
  882. // model.setValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") + " "
  883. // + model.getValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  884. // }else{
  885. // model.setValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind"));
  886. // }
  887. // } else {
  888. // if(model.getValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoterm") != "") {
  889. // model.setValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  890. // }else{
  891. // model.setValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  892. // }
  893. // }
  894. // } else {
  895. // model.setValue(xWardRecPath + "/childinfo/childs/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  896. // }
  897. // }
  898. // //기호식품
  899. // var gustofoodyn = model.getValue(xWardRecPath + "/childinfo/childs/gustofoodinfo/gustofoodyn");
  900. // var gustofooddetl = model.getValue(xWardRecPath + "/childinfo/childs/gustofoodinfo/gustofooddetl");
  901. // str = rdo_gustofoodyn.label;
  902. //
  903. // if(gustofoodyn != "") {
  904. // if(gustofoodyn == "2") {
  905. // if(gustofooddetl != "") {
  906. // str += "(" + gustofooddetl + ")";
  907. // }
  908. // }
  909. // model.setValue(xWardRecPath + "/childinfo/childs/gustofoodinfo/gustofoodyn", str);
  910. // }
  911. //수혈부작용
  912. var tnsseffcyn = model.getValue(xWardRecPath + "/childinfo/childs/tnsseffcinfo/tnsseffcyn");
  913. var tnsseffcdetl = model.getValue(xWardRecPath + "/childinfo/childs/tnsseffcinfo/tnsseffcdetl");
  914. str = rdo_tnsseffcyn.label;
  915. if(tnsseffcyn != "") {
  916. if(tnsseffcyn == "2") {
  917. if(tnsseffcdetl != "") {
  918. str += "(" + tnsseffcdetl + ")";
  919. }
  920. }
  921. model.setValue(xWardRecPath + "/childinfo/childs/tnsseffcinfo/tnsseffcyn", str);
  922. }
  923. /****************************** 예방접종이력 **************************************/
  924. // 15.05.19 - 석명숙 과장님 요청으로 인한 삭제
  925. // //DPT
  926. // var dpttims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/dpttims");
  927. // if(dpttims != "") {
  928. // arr = chk_dpt.label.split(" ");
  929. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/dpttims", arr);
  930. // }
  931. //
  932. // //소아마비
  933. // var infparaltims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/infparaltims");
  934. // if(infparaltims != "") {
  935. // arr = chk_infparal.label.split(" ");
  936. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/infparaltims", arr);
  937. // }
  938. //
  939. // //A형간염
  940. // var ahptstims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/ahptstims");
  941. // if(ahptstims != "") {
  942. // arr = chk_ahpts.label.split(" ");
  943. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/ahptstims", arr);
  944. // }
  945. //
  946. // //B형간염
  947. // var bhptstims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bhptstims");
  948. // var bhptsdrugnm = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bhptsdrugnm");
  949. // str = chk_bhpts.label;
  950. //
  951. // if(bhptstims != "") {
  952. // var bhpts = isSearchString(bhptstims, "4");
  953. //
  954. // if(bhpts == true) {
  955. // if(bhptsdrugnm != "") {
  956. // str += "(약이름: " + bhptsdrugnm + ")";
  957. // }
  958. // }
  959. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/bhptstims", str);
  960. // }
  961. //
  962. // //BCG
  963. // var bcgyn = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/bcgyn");
  964. // if(bcgyn != "") {
  965. // arr = rdo_bcgyn.label.split(" ");
  966. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/bcgyn", arr);
  967. // }
  968. //
  969. // //MMR
  970. // var mmrtims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/mmrtims");
  971. // if(mmrtims != "") {
  972. // arr = chk_mmr.label.split(" ");
  973. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/mmrtims", arr);
  974. // }
  975. //
  976. // //생백신
  977. // var alivvacntims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/alivvacntims");
  978. // if(alivvacntims != "") {
  979. // arr = chk_alivvacn.label.split(" ");
  980. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/alivvacntims", arr);
  981. // }
  982. //
  983. // //사백신
  984. // var deadvaccntims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/deadvaccntims");
  985. // if(deadvaccntims != "") {
  986. // arr = chk_deadvacn.label.split(" ");
  987. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/deadvaccntims", arr);
  988. // }
  989. //
  990. // //뇌수막염
  991. // var brnmeningitistims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/brnmeningitistims");
  992. // if(brnmeningitistims != "") {
  993. // arr = chk_brnmeningitis.label.split(" ");
  994. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/brnmeningitistims", arr);
  995. // }
  996. //
  997. // //폐구균
  998. // var lungcoccustims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/lungcoccustims");
  999. // if(lungcoccustims != "") {
  1000. // arr = chk_lungcoccus.label.split(" ");
  1001. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/lungcoccustims", arr);
  1002. // }
  1003. //
  1004. // //수두
  1005. // var chickenpoxtims = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/chickenpoxtims");
  1006. // if(chickenpoxtims != "") {
  1007. // arr = chk_chickenpox.label.split(" ");
  1008. // model.setValue(xHistPath + "/vacnhistinfo/vacnhist/chickenpoxtims", arr);
  1009. // }
  1010. //예방접종 확인(15.05.19 - AYS 추가)
  1011. var vacncheckyn = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/vacncheckyn");
  1012. var vacnchecketc = model.getValue(xHistPath + "/vacnhistinfo/vacnhist/vacnchecketc");
  1013. str = rdo_vacncheckyn.label;
  1014. if(vacncheckyn != "") {
  1015. if(vacncheckyn == "2") {
  1016. if(vacnchecketc != "") {
  1017. str += "(" + vacnchecketc + ")";
  1018. }
  1019. }
  1020. model.setValue(xHistPath + "/vacnhistinfo/vacnhist/vacncheckyn", str);
  1021. }
  1022. /****************************** 병력 **************************************/
  1023. //과거병력
  1024. var rows = grd_pasthist.rows;
  1025. var histspec;
  1026. for(var i = 1 ; i < rows; i++) {
  1027. histspec = model.getValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec");
  1028. if(histspec != "") {
  1029. model.setValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec", grd_pasthist.labelMatrix(i, grd_pasthist.colRef("histspec")));
  1030. }
  1031. }
  1032. //가족병력
  1033. var famyrel;
  1034. var existyn;
  1035. rows = grd_famyhist.rows;
  1036. for(var i = 1 ; i < rows; i++) {
  1037. famyrel = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel");
  1038. existyn = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn");
  1039. histspec = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec");
  1040. if(famyrel != "") {
  1041. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("famyrel")));
  1042. }
  1043. if(existyn != "") {
  1044. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("existyn")));
  1045. }
  1046. if(histspec != "") {
  1047. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("histspec")));
  1048. }
  1049. }
  1050. //allergy구분
  1051. rows = grd_allghist.rows;
  1052. var flag;
  1053. for(var i = 1 ; i < rows; i++) {
  1054. flag = model.getValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag");
  1055. if(flag != "") {
  1056. model.setValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag", grd_allghist.labelMatrix(i, grd_allghist.colRef("flag")));
  1057. }
  1058. }
  1059. /****************************** 신체사정 **************************************/
  1060. //기형상태
  1061. var mfmdstatLen = grd_mfmdstat.rows;
  1062. var part;
  1063. var direc;
  1064. if(mfmdstatLen > 0) {
  1065. for(var i = 0; i < mfmdstatLen; i++) {
  1066. part = model.getValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/part");
  1067. direc = model.getValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/direc");
  1068. if(part != "" ) {
  1069. model.setValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/part", grd_mfmdstat.labelMatrix(i, grd_mfmdstat.colRef("part")));
  1070. }
  1071. if(direc != "") {
  1072. model.setValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/direc", grd_mfmdstat.labelMatrix(i, grd_mfmdstat.colRef("direc")));
  1073. }
  1074. }
  1075. }
  1076. /****************************** 식욕 및 체중변화 **************************************/
  1077. // //동통에서 통증 : 무(default)/유 선택으로 변경 20100122 김홍점
  1078. // //20120625_김병국(통증사정 정보 추가) :XSLT보이기용.
  1079. var shpaininfoinclyn = model.getValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn");
  1080. var shpaininfoflag = cmb_shpaininfoflag.label;
  1081. var shpaininfo = "";
  1082. if(shpaininfoinclyn != "") {
  1083. shpaininfo = rdo_shpaininfoinclyn.label;
  1084. if(shpaininfoinclyn == "1") {
  1085. if(shpaininfoflag != "") {
  1086. shpaininfo += "(" + shpaininfoflag + ")";
  1087. }
  1088. }
  1089. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", shpaininfo);
  1090. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
  1091. }
  1092. // //식욕변화
  1093. // var apptchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn");
  1094. // str = rdo_apttchngyn.label;
  1095. //
  1096. // if(apptchngyn != "") {
  1097. // if(apptchngyn == "2") {
  1098. // if(model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptaddyn") != "") {
  1099. // str += "(" + rdo_apttchngflag.label+ ")";
  1100. // }
  1101. // }
  1102. // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn", str);
  1103. // }
  1104. //
  1105. // //식욕상태
  1106. // var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
  1107. //
  1108. // if(apptstatflag != "") {
  1109. // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
  1110. // }
  1111. //
  1112. // //체중변화
  1113. // var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
  1114. // var bdwtchnggrde = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchnggrde");
  1115. // var incdecflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/incdecflag");
  1116. // var bdwtchngterm = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngterm");
  1117. //
  1118. // var bdwtchngtermflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
  1119. //
  1120. // str = rdo_bdwtchngyn.label;
  1121. //
  1122. // if(bdwtchngyn != "") {
  1123. // if(bdwtchngyn == "2") {
  1124. // if( !isNull(incdecflag) && bdwtchnggrde != "" && bdwtchngtermflag != "") {
  1125. // str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg " + "/ 기간 : " + rdo_bdwtchngtermflag.label + " (" + bdwtchngterm + ") )";
  1126. // } else if(bdwtchnggrde != "" && bdwtchngtermflag == "") {
  1127. // str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg )";
  1128. // } else if(bdwtchnggrde == "" && bdwtchngtermflag != "") {
  1129. // str += "(" + "기간 : " + rdo_bdwtchngtermflag.label + " ( " + bdwtchngterm + ") )";
  1130. // }
  1131. //
  1132. // }
  1133. // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", str);
  1134. //
  1135. // }
  1136. // //편식
  1137. // var onemealyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn");
  1138. //
  1139. // if(apptstatflag != "") {
  1140. // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn", rdo_onemealyn.label);
  1141. // }
  1142. //식욕상태 (15.05.19 - AYS 추가)
  1143. var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
  1144. if(apptstatflag != "") {
  1145. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
  1146. }
  1147. //체중변화 (15.05.19 - AYS 추가)
  1148. var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
  1149. if(bdwtchngyn != "") {
  1150. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", rdo_bdwtchngyn.label);
  1151. }
  1152. //연하곤란 (15.05.19 - AYS 추가)
  1153. var dysphagiayn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/dysphagiayn");
  1154. if(dysphagiayn != "") {
  1155. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/dysphagiayn", rdo_dysphagiayn.label);
  1156. }
  1157. /****************************** 수면상태 **************************************/
  1158. //수면장애
  1159. var slepdsordyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn");
  1160. var slepdsordtm = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordtm");
  1161. str = rdo_slepdsord.label;
  1162. if(slepdsordyn != "") {
  1163. if(slepdsordyn == "2") {
  1164. if(slepdsordtm != "") {
  1165. str += "(" + slepdsordtm + "시간/일)";
  1166. }
  1167. }
  1168. model.setValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn", str);
  1169. }
  1170. //약물복용
  1171. var dugtmedyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn");
  1172. var dugtmeddetl = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmeddetl");
  1173. str = rdo_drugtmedyn.label;
  1174. if(dugtmedyn != "") {
  1175. if(dugtmedyn == "2") {
  1176. if(dugtmeddetl != "") {
  1177. str += "(" + dugtmeddetl + ")";
  1178. }
  1179. }
  1180. model.setValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn", str);
  1181. }
  1182. /****************************** 의식상태 **************************************/
  1183. //지남력
  1184. var cscsstathuman = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman");
  1185. var cscsstattm = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm");
  1186. var cscsstatplce = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce");
  1187. if(cscsstathuman != "") {
  1188. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman", cmb_cscsstathuman.label);
  1189. }
  1190. if(cscsstattm != "") {
  1191. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm", cmb_cscsstattm.label);
  1192. }
  1193. if(cscsstatplce != "") {
  1194. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce", cmb_cscsstatplce.label);
  1195. }
  1196. //의식상태
  1197. var cscsstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat");
  1198. if(cscsstat != "") {
  1199. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat", cmb_cscsstat.label);
  1200. }
  1201. //의사소통
  1202. var communication = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication");
  1203. if( communication != "") {
  1204. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication", rdo_communication.label);
  1205. }
  1206. //정서상태
  1207. var emotstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat");;
  1208. if(emotstat != "") {
  1209. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat", cmb_emotstat.label);
  1210. }
  1211. /****************************** 월경 **************************************/
  1212. //월경
  1213. var mensyn = model.getValue(xWardRecPath + "/mensinfo/mens/mensyn");
  1214. if(mensyn != "") {
  1215. model.setValue(xWardRecPath + "/mensinfo/mens/mensyn", rdo_mensyn.label);
  1216. }
  1217. //상태
  1218. var mensstat = model.getValue(xWardRecPath + "/mensinfo/mens/mensstat");
  1219. if(mensstat != "") {
  1220. model.setValue(xWardRecPath + "/mensinfo/mens/mensstat", rdo_mensstat.label);
  1221. }
  1222. //월경통
  1223. var menspainyn = model.getValue(xWardRecPath + "/mensinfo/mens/menspainyn");
  1224. if(menspainyn != "") {
  1225. model.setValue(xWardRecPath + "/mensinfo/mens/menspainyn", rdo_menspainyn.label);
  1226. }
  1227. //월경주기 20090820
  1228. var mensday = model.getValue(xWardRecPath + "/mensinfo/mens/mensday");
  1229. var mensweek = model.getValue(xWardRecPath + "/mensinfo/mens/mensweek");
  1230. if( (getCurrentDate() >= '20090821' ) && ( !isNull(mensday) || !isNull(mensweek) )) {
  1231. model.makeValue(xWardRecPath + "/mensinfo/mens/mensdayweek", mensday+"일 " + mensweek+"일 주기");
  1232. model.setValue(xWardRecPath + "/mensinfo/mens/mensday", "");
  1233. model.setValue(xWardRecPath + "/mensinfo/mens/mensweek", "");
  1234. }
  1235. /****************************** 순환기계 **************************************/
  1236. //순환장애
  1237. var cirdsordkind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind");
  1238. var arr = new Array();
  1239. arr = chk_cycdsordkind.label.split(" ");
  1240. if(cirdsordkind != "") {
  1241. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind", arr);
  1242. }
  1243. //부종
  1244. var edema = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind");
  1245. var edemadetll = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemadetll");
  1246. str = cmb_edema.label;
  1247. if(edema != "") {
  1248. if(edema == "7") {
  1249. if(edemadetll != "") {
  1250. str = edemadetll;
  1251. }
  1252. }
  1253. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind", str);
  1254. }
  1255. //요흔
  1256. var yohnyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn");
  1257. var yohn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnddetl");
  1258. str = rdo_yohnyn.label;
  1259. if(yohnyn != "") {
  1260. if(yohnyn == "2") {
  1261. if(yohn != "") {
  1262. str = yohn;
  1263. }
  1264. }
  1265. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn", str);
  1266. }
  1267. //부착기구
  1268. var cyccateyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn");
  1269. var cyccatekind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccatekind");
  1270. var catedetl = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/catedetl");
  1271. str = rdo_cyccateyn.label;
  1272. if(cyccateyn != "") {
  1273. if(cyccateyn == "2") {
  1274. if(cyccatekind != "") {
  1275. if(cyccatekind == "3") {
  1276. if(catedetl != "") {
  1277. str += "(" + catedetl + ")";
  1278. }
  1279. } else {
  1280. str += "(" + cyccatekind + ")";
  1281. }
  1282. }
  1283. }
  1284. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn", str);
  1285. }
  1286. /****************************** 대변 **************************************/
  1287. //대변색깔
  1288. var stoolcolor = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcolor");
  1289. if(stoolcolor != "") {
  1290. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcolor", cmb_stoolcolor.label);
  1291. }
  1292. //대변종류
  1293. var stoolkind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolkind");
  1294. if(stoolkind != "") {
  1295. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolkind", cmb_stoolkind.label);
  1296. }
  1297. //변비
  1298. var constipt = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolconstipation");
  1299. if(constipt == "Y") {
  1300. model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "유");
  1301. }else {
  1302. model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "무");
  1303. }
  1304. //대변부착기구
  1305. var stoolcateyn = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcateyn");
  1306. var stoolcatekind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcatekind");
  1307. str = rdo_stoolcateyn.label;
  1308. if(stoolcateyn != "") {
  1309. if(stoolcatekind != "") {
  1310. str += "(" + stoolcatekind + ")";
  1311. }
  1312. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcateyn", str);
  1313. }
  1314. /****************************** 기타 활동 및 장애 **************************************/
  1315. //활동
  1316. var actfreeyn = model.getValue(xWardRecPath + "/actinfo/act/actfreeyn");
  1317. if(actfreeyn != "") {
  1318. model.setValue(xWardRecPath + "/actinfo/act/actfreeyn", rdo_actfreeyn.label);
  1319. }
  1320. //보조기구
  1321. var supptoolkind = model.getValue(xWardRecPath + "/actinfo/act/supptoolkind");
  1322. arr = chk_supptoolkind.label.split('▦');
  1323. if(supptoolkind != "") {
  1324. model.setValue(xWardRecPath + "/actinfo/act/supptoolkind", arr);
  1325. }
  1326. //신경계 동공
  1327. var pupilsymmetryyn = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn");
  1328. if(pupilsymmetryyn != "") {
  1329. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn", rdo_pupilsymmetryyn.label);
  1330. }
  1331. //좌
  1332. var pupilleft = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft");
  1333. if(pupilleft != "") {
  1334. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft", cmb_pupilleft.label);
  1335. }
  1336. //좌 빛반사
  1337. var pupilleftrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx");
  1338. if(pupilleftrflx != "") {
  1339. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx", cmb_pupilleftrflx.label);
  1340. }
  1341. //우
  1342. var pupilrght = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght");
  1343. if(pupilrght != "") {
  1344. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght", cmb_pupilrght.label);
  1345. }
  1346. //우 빛반사
  1347. var pupilrghtrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx");
  1348. if(pupilrghtrflx != "") {
  1349. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx", cmb_pupilrghtrflx.label);
  1350. }
  1351. //시력장애
  1352. var visdsordyn = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn");
  1353. var visdsordpos = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordpos");
  1354. var visdsordleft = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordleft");
  1355. var visdsordrght = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordrght");
  1356. var visdsordkind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordkind");
  1357. var visdsordblind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordblind");
  1358. str = rdo_visdsordyn.label;
  1359. if(visdsordyn != "") {
  1360. if(visdsordyn == "2") {
  1361. if(visdsordpos != "") {
  1362. if(visdsordleft != "" && visdsordrght != "") {
  1363. str += "(좌: " + visdsordleft + " 우: " + visdsordrght + ")";
  1364. } else if(visdsordpos == "1") {
  1365. str += "(좌: " + visdsordleft + ")";
  1366. } else if(visdsordpos == "2") {
  1367. str += "(우: " + visdsordrght + ")";
  1368. }
  1369. }
  1370. if(visdsordkind != "") {
  1371. arr = chk_visdsordkind.label.split(" ");
  1372. str += " (" + arr + ")";
  1373. }
  1374. if(visdsordblind != "") {
  1375. arr = chk_blindnesspos.label.split(" ");
  1376. str += " (" + arr + ")";
  1377. }
  1378. }
  1379. model.setValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn", str);
  1380. }
  1381. //청력장애
  1382. var heardsordyn = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn");
  1383. var heardsordpos = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordpos");
  1384. var heardsordleft = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordleft");
  1385. var heardsordrght = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordrght");
  1386. var heardsordkind = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordkind");
  1387. str = rdo_heardsordyn.label;
  1388. if(heardsordyn != "") {
  1389. if(heardsordyn == "2") {
  1390. if(heardsordpos != "") {
  1391. if(heardsordpos == "1 2" || heardsordpos == "2 1") {
  1392. if(heardsordleft != "" && heardsordrght != "") {
  1393. str += "(좌: " + heardsordleft + " 우: " + heardsordrght + ")";
  1394. } else if(heardsordleft != "" && heardsordrght == "") {
  1395. str += "(좌: " + heardsordleft + ")";
  1396. } else if(heardsordleft == "" && heardsordrght != "") {
  1397. str += "(우: " + heardsordrght + ")";
  1398. }
  1399. } else if(heardsordpos == "1") {
  1400. if(heardsordleft != "") {
  1401. str += "(좌: " + heardsordleft + ")";
  1402. }
  1403. } else if(heardsordpos == "2") {
  1404. if(heardsordrght != "") {
  1405. str += "(우: " + heardsordrght + ")";
  1406. }
  1407. }
  1408. }
  1409. if(heardsordkind != "") {
  1410. arr = heardsordkind.split(" ");
  1411. str += ", " + arr;
  1412. }
  1413. }
  1414. model.setValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn", str);
  1415. }
  1416. //치아상태
  1417. var tootstatkind = model.getValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind");
  1418. if(tootstatkind != "") {
  1419. arr = chk_tootstatkind.label.split(" ");
  1420. model.setValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind", arr);
  1421. }
  1422. }
  1423. function fMake_SignData() {
  1424. //JCI 교육요구도 추가 (20100113 김홍점)
  1425. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1426. if ( instUseYN =="Y" ){
  1427. Sign.addnode("/root/temp/signdata/edurecinfo");
  1428. }
  1429. Sign.addnode("/root/main/wardrecinfo");
  1430. Sign.addnode("/root/main/histinfo");
  1431. //가족사항 정보 생성(그리드형식)
  1432. model.removeNodeset("/root/main/famyfactinfo");
  1433. model.makeNode("/root/main/famyfactinfo");
  1434. for(var i=1; i <= getNodesetCount("/root/main/famyfact"); i++) {
  1435. if(model.getValue("/root/main/famyfact["+ i +"]/rela") != ""){
  1436. model.duplicate("/root/main/famyfactinfo", "/root/main/famyfact["+ i +"]");
  1437. }
  1438. }
  1439. Sign.addnode("/root/main/famyfactinfo");
  1440. fSetSignData();
  1441. }
  1442. //이전기록일시 변경
  1443. function fChgRecHistInfo(){
  1444. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
  1445. var bfrecpid = recpkspec[0];
  1446. var bfrecindd = recpkspec[1];
  1447. var bfreccretno = recpkspec[2];
  1448. var bfrecflag = recpkspec[3];
  1449. var bfrecinstcd = recpkspec[4];
  1450. model.removeNodeset("/root/send/req");
  1451. model.makeNode("/root/send/req");
  1452. model.makeValue("/root/send/req/pid", bfrecpid);
  1453. model.makeValue("/root/send/req/indd", bfrecindd);
  1454. model.makeValue("/root/send/req/cretno", bfreccretno);
  1455. model.makeValue("/root/send/req/instcd", bfrecinstcd);
  1456. model.makeValue("/root/send/req/recflag", bfrecflag);
  1457. //model.makeValue("/root/send/req/docucode", "0000002433");
  1458. //model.makeValue("/root/send/req/deptcd", orddeptcd);
  1459. if (bfrecflag == '10'){ //응급실입실기록지
  1460. model.resetInstanceNode("/root/main");
  1461. if(submit("TRMNW03105", false)){
  1462. /* 응급실입실기록지 중 병동간호정보조사지와 같은 item항목을 조회해줌
  1463. : 과거병력, 최근투약상태, 수술이력, 시력장애, 청력장애, 치아상태, 피부계 중 피부상태만, Allergy, 환자기본정보중 연락처/휴대폰/비상연락처(입원시동반자는 제외), 흡연력
  1464. */
  1465. //이전기록자
  1466. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/errecinfo/wardrecinfo/recpkspec"));
  1467. model.setValue("/root/main/wardrecinfo/bfrecdd", model.getValue("/root/hidden/errecinfo/wardrecinfo/bfrecdd"));
  1468. model.setValue("/root/main/wardrecinfo/bfrectm", model.getValue("/root/hidden/errecinfo/wardrecinfo/bfrectm"));
  1469. model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/errecinfo/wardrecinfo/bfrecuser"));
  1470. model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/errecinfo/wardrecinfo/recdd"));
  1471. model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/errecinfo/wardrecinfo/rectm"));
  1472. model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/errecinfo/wardrecinfo/recuser"));
  1473. //환자기본정보
  1474. model.setValue("/root/main/wardrecinfo/bdwt", model.getValue("/root/hidden/errecinfo/wardrecinfo/bdwt"));//20100608 khj 몸무게추가
  1475. model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/hidden/errecinfo/wardrecinfo/tel"));
  1476. model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/hidden/errecinfo/wardrecinfo/mphone"));
  1477. model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/hidden/errecinfo/wardrecinfo/etcphone1"));
  1478. model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/hidden/errecinfo/wardrecinfo/etcphone2"));
  1479. model.copyNode("/root/main/histinfo/pasthistinfo", "/root/hidden/errecinfo/histinfo/pasthistinfo"); //과거병력
  1480. model.copyNode("/root/main/wardrecinfo/rectmedistatinfo", "/root/hidden/errecinfo/wardrecinfo/rectmedistatinfo"); //최근투약상태
  1481. model.copyNode("/root/main/histinfo/ophistinfo", "/root/hidden/errecinfo/histinfo/ophistinfo"); //수술이력
  1482. model.copyNode("/root/main/histinfo/allghistinfo", "/root/hidden/errecinfo/histinfo/allghistinfo"); //Allergy
  1483. model.copyNode("/root/main/wardrecinfo/visdsordinfo", "/root/hidden/errecinfo/wardrecinfo/visdsordinfo"); //시력장애
  1484. model.copyNode("/root/main/wardrecinfo/heardsordinfo", "/root/hidden/errecinfo/wardrecinfo/heardsordinfo"); //청력장애
  1485. model.copyNode("/root/main/wardrecinfo/tootstatinfo", "/root/hidden/errecinfo/wardrecinfo/tootstatinfo"); //치아상태
  1486. model.copyNode("/root/main/wardrecinfo/skinsectinfo", "/root/hidden/errecinfo/wardrecinfo/skinsectinfo"); //피부계
  1487. model.setValue("/root/main/wardrecinfo/inpathcd", "02"); //응급실에서 오는 환자인 경우 [입원정보]에서 입원경로 중 "응급실" 자동 체크
  1488. //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호), 응급일 경우 정보세팅 - by 박영우 20091204
  1489. var pid;
  1490. var room;
  1491. var patnm;
  1492. var sex;
  1493. var age;
  1494. var instcd;
  1495. var orddeptcd;
  1496. var indd;
  1497. room = model.getValue("/root/temp/cond/list/roomcd");
  1498. patnm = model.getValue("/root/temp/cond/list/hngnm");
  1499. sex = model.getValue("/root/temp/cond/list/sex");
  1500. age = model.getValue("/root/temp/cond/list/age");
  1501. pid = model.getValue("/root/temp/cond/list/pid");
  1502. indd = model.getValue("/root/temp/cond/list/indd");
  1503. instcd = model.getValue("/root/temp/cond/list/instcd");
  1504. orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  1505. model.makeValue("/root/main/wardrecinfo/room", room);
  1506. model.makeValue("/root/main/wardrecinfo/patnm", patnm);
  1507. model.makeValue("/root/main/wardrecinfo/sex", sex);
  1508. model.makeValue("/root/main/wardrecinfo/age", age);
  1509. model.makeValue("/root/main/wardrecinfo/pid", pid);
  1510. }
  1511. }else{ //소아간호정보조사지
  1512. submit("TRMNW03202", false);
  1513. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  1514. }
  1515. fNotExistsNodeCreate();
  1516. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  1517. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  1518. model.refresh();
  1519. }
  1520. //노드 추가에 따른 존재하지 않는 노드생성
  1521. function fNotExistsNodeCreate(){
  1522. var smokinfoyn= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/smokinfo/smokinfoyn");
  1523. if ( smokinfoyn == null ) {
  1524. model.makeValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/smokinfoyn","");
  1525. }
  1526. var bfsmokinfoyn= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/smokinfo/bfsmokinfoyn");
  1527. if ( bfsmokinfoyn == null ) {
  1528. model.makeValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/bfsmokinfoyn","");
  1529. }
  1530. var nosmokcnstyn= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnstyn");
  1531. if ( nosmokcnstyn == null ) {
  1532. model.makeValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnstyn","");
  1533. }
  1534. var nosmokcnst= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnst");
  1535. if ( nosmokcnst == null ) {
  1536. model.makeValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnst","");
  1537. }
  1538. var nosmokcnstnm= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnstnm");
  1539. if ( nosmokcnstnm == null ) {
  1540. model.makeValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnstnm","");
  1541. }
  1542. var drunkinfoyn= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/drunkinfo/drunkinfoyn");
  1543. if ( drunkinfoyn == null ) {
  1544. model.makeValue("/root/main/wardrecinfo/childinfo/childs/drunkinfo/drunkinfoyn","");
  1545. }
  1546. var drunkinfokind= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/drunkinfo/drunkinfokind");
  1547. if ( drunkinfokind == null ) {
  1548. model.makeValue("/root/main/wardrecinfo/childinfo/childs/drunkinfo/drunkinfokind","");
  1549. }
  1550. var drunkinfoterm= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/drunkinfo/drunkinfoterm");
  1551. if ( drunkinfoterm == null ) {
  1552. model.makeValue("/root/main/wardrecinfo/childinfo/childs/drunkinfo/drunkinfoterm","");
  1553. }
  1554. // 어린이정보 - 임신주수 ('15.05.19 - AYS)
  1555. var pregnancyweek= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/birthinfo/pregnancyweek");
  1556. if ( pregnancyweek == null ) {
  1557. model.makeValue("/root/main/wardrecinfo/childinfo/childs/birthinfo/pregnancyweek","");
  1558. }
  1559. // 어린이정보 - 출생시 체중 ('15.05.19 - AYS)
  1560. var birthweight= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/birthinfo/birthweight");
  1561. if ( birthweight == null ) {
  1562. model.makeValue("/root/main/wardrecinfo/childinfo/childs/birthinfo/birthweight","");
  1563. }
  1564. // 어린이정보 - 분만형태 ('15.05.19 - AYS)
  1565. var birthtype= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/birthinfo/birthtype");
  1566. if ( birthtype == null ) {
  1567. model.makeValue("/root/main/wardrecinfo/childinfo/childs/birthinfo/birthtype","");
  1568. }
  1569. // 예방접종이력 - 예방접종확인 여부 ('15.05.19 - AYS)
  1570. var vacncheckyn= instance1.selectSingleNode("/root/main/histinfo/vacnhistinfo/vacnhist/vacncheckyn");
  1571. if ( vacncheckyn == null ) {
  1572. model.makeValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacncheckyn","");
  1573. }
  1574. // 예방접종이력 - 예방접종 기타 사유 입력 ('15.05.19 - AYS)
  1575. var vacnchecketc= instance1.selectSingleNode("/root/main/histinfo/vacnhistinfo/vacnhist/vacnchecketc");
  1576. if ( vacnchecketc == null ) {
  1577. model.makeValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnchecketc","");
  1578. }
  1579. // 수혈부작용 - 유무 ('15.05.19 - AYS)
  1580. var tnsseffcyn= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/tnsseffcinfo/tnsseffcyn");
  1581. if ( tnsseffcyn == null ) {
  1582. model.makeValue("/root/main/wardrecinfo/childinfo/childs/tnsseffcinfo/tnsseffcyn","");
  1583. }
  1584. // 수혈부작용 - 사유 ('15.05.19 - AYS)
  1585. var tnsseffcdetl= instance1.selectSingleNode("/root/main/wardrecinfo/childinfo/childs/tnsseffcinfo/tnsseffcdetl");
  1586. if ( tnsseffcdetl == null ) {
  1587. model.makeValue("/root/main/wardrecinfo/childinfo/childs/tnsseffcinfo/tnsseffcdetl","");
  1588. }
  1589. // 영양사정 - 식욕상태 ('15.05.19 - AYS)
  1590. var apptstatflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
  1591. if ( apptstatflag == null ) {
  1592. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag","");
  1593. }
  1594. // 영양사정 - 체중감소 ('15.05.19 - AYS)
  1595. var bdwtchngyn= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
  1596. if ( bdwtchngyn == null ) {
  1597. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn","");
  1598. }
  1599. // 영양사정 - 연하곤란 ('15.05.19 - AYS)
  1600. var dysphagiayn= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn");
  1601. if ( dysphagiayn == null ) {
  1602. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn","");
  1603. }
  1604. var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
  1605. if ( constipt == null ) {
  1606. model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
  1607. }
  1608. var shpaininfoflag= instance1.selectSingleNode(cmb_shpaininfoflag.attribute("ref"));
  1609. if(shpaininfoflag == null) {
  1610. model.makeValue(cmb_shpaininfoflag.attribute("ref"), "");
  1611. }
  1612. if(model.getValue(rdo_shpaininfoinclyn.attribute("ref")) == "1") {
  1613. cmb_shpaininfoflag.disabled = false;
  1614. } else {
  1615. cmb_shpaininfoflag.disabled = true;
  1616. }
  1617. }
  1618. function fCareBodyAssBlock(){
  1619. var msgblock = "";
  1620. // 통증 유무 check가 되지 않은 경우
  1621. if ( (rdo_shpaininfoinclyn != null && isNull(model.getValue(rdo_shpaininfoinclyn.attribute("ref"))) )
  1622. ){
  1623. msgblock += " [통증]";
  1624. }
  1625. // 영양사정
  1626. if( (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag") == "") ||
  1627. (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn") == "") ||
  1628. (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn") == "") )
  1629. {
  1630. msgblock += " [영양사정]";
  1631. }
  1632. // 의식상태 지남력/의식상태/의사소통/정서상태의 각 항목에 기록이 되지않은 경우
  1633. if ( (cmb_cscsstathuman != null && isNull(model.getValue(cmb_cscsstathuman.attribute("ref"))) )
  1634. || (cmb_cscsstattm != null && isNull(model.getValue(cmb_cscsstattm.attribute("ref"))) )
  1635. || (cmb_cscsstatplce != null && isNull(model.getValue(cmb_cscsstatplce.attribute("ref"))) )
  1636. || (cmb_cscsstat != null && isNull(model.getValue(cmb_cscsstat.attribute("ref"))) )
  1637. || (rdo_communication != null && isNull(model.getValue(rdo_communication.attribute("ref"))) )
  1638. || (cmb_emotstat != null && isNull(model.getValue(cmb_emotstat.attribute("ref"))) )
  1639. ){
  1640. msgblock += " [의식상태]";
  1641. }
  1642. // 소화기계 해당없음 또는 행추가하여 기록하지 않은 경우
  1643. if ( (chk_digorgninfoinclyn != null && isNull(model.getValue(chk_digorgninfoinclyn.attribute("ref")))
  1644. && grd_digorgn != null && isNull(model.getValue(grd_digorgn.attribute("nodeset")+ "[1]/symp") ) && isNull(model.getValue(grd_digorgn.attribute("nodeset")+ "[1]/cate") ) )
  1645. ){
  1646. msgblock += " [소화기계]";
  1647. }
  1648. // 비뇨기계 소변횟수/소변량/소변냄새 항목에 기록하지 않은 경우
  1649. if ( (ipt_urinetims != null && isNull(model.getValue(ipt_urinetims.attribute("ref"))) )
  1650. || (ipt_urineday != null && isNull(model.getValue(ipt_urineday.attribute("ref"))) )
  1651. || (ipt_urinevol != null && isNull(model.getValue(ipt_urinevol.attribute("ref"))) )
  1652. || (ipt_urinesmell != null && isNull(model.getValue(ipt_urinesmell.attribute("ref"))) )
  1653. ){
  1654. msgblock += " [비뇨기계]";
  1655. }
  1656. // 대변 대변횟수/마지막대변일/대변색깔/대변종류 항목에 기록하지 않은 경우
  1657. if ( (ipt_stooltims != null && isNull(model.getValue(ipt_stooltims.attribute("ref"))) )
  1658. || (ipt_stoolday != null && isNull(model.getValue(ipt_stoolday.attribute("ref"))) )
  1659. || (ipt_laststoolday != null && isNull(model.getValue(ipt_laststoolday.attribute("ref"))) )
  1660. || (cmb_stoolcolor != null && isNull(model.getValue(cmb_stoolcolor.attribute("ref"))) )
  1661. || (cmb_stoolkind != null && isNull(model.getValue(cmb_stoolkind.attribute("ref"))) )
  1662. ){
  1663. msgblock += " [대변]";
  1664. }
  1665. // 활동 활동 항목에 기록하지 않은 경우
  1666. if ( (rdo_actfreeyn != null && isNull(model.getValue(rdo_actfreeyn.attribute("ref"))) )
  1667. ){
  1668. msgblock += " [활동]";
  1669. }
  1670. // 신경계 해당없음 또는 동공 항목 중 대칭 또는 비대칭을 기록하지 않은 경우
  1671. if ( (chk_nvesysinfoinclyn != null && isNull(model.getValue(chk_nvesysinfoinclyn.attribute("ref"))) )
  1672. && (rdo_pupilsymmetryyn != null && isNull(model.getValue(rdo_pupilsymmetryyn.attribute("ref"))) )
  1673. ){
  1674. msgblock += " [신경계]";
  1675. }
  1676. // 시력장애 시력장애 항목 중 무/유 기록하지 않은 경우
  1677. if ( (rdo_visdsordyn != null && isNull(model.getValue(rdo_visdsordyn.attribute("ref"))) )
  1678. ){
  1679. msgblock += " [시력장애]";
  1680. }
  1681. // 청력장애 청력장애 항목 중 무/유 기록하지 않은 경우
  1682. if ( (rdo_heardsordyn != null && isNull(model.getValue(rdo_heardsordyn.attribute("ref"))) )
  1683. ){
  1684. msgblock += " [청력장애]";
  1685. }
  1686. // 치아상태 치아상태에 check가 되지 않은 경우
  1687. if ( (chk_tootstatkind != null && isNull(model.getValue(chk_tootstatkind.attribute("ref")).getTrim()) )
  1688. ){
  1689. msgblock += " [치아상태]";
  1690. }
  1691. return msgblock;
  1692. }
  1693. ]]>
  1694. </script>
  1695. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  1696. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  1697. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  1698. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  1699. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  1700. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  1701. <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
  1702. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  1703. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
  1704. <submission id="TRMNW03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
  1705. <submission id="TRMNW03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
  1706. <submission id="TRMNW03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
  1707. <submission id="TRMNW03204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
  1708. <submission id="TXMNW03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo" resultref="/root/hidden/rsltinfo"/>
  1709. <submission id="TRMNW03105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/errecinfo"/>
  1710. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  1711. <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
  1712. <submission id="TRMNW04802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detlgrup"/>
  1713. </model>
  1714. </xhtml:head>
  1715. <xhtml:body guideline="1,6;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1716. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1717. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:15px; ">간호초기평가(소아)</caption>
  1718. </group>
  1719. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1720. <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; "/>
  1721. <input id="ipt_bfrecdd" ref="/root/main/wardrecinfo/bfrecdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" style="left:90px; top:45px; width:100px; height:19px; "/>
  1722. <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
  1723. <caption>일반정보</caption>
  1724. <toggle case="case1" ev:event="onclick"/>
  1725. </button>
  1726. <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
  1727. <caption>신체사정</caption>
  1728. <toggle case="case2" ev:event="onclick"/>
  1729. </button>
  1730. <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
  1731. <caption>교육요구도</caption>
  1732. <toggle case="case_edurec" ev:event="onclick"/>
  1733. </button>
  1734. <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
  1735. <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
  1736. <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08010_NEW소아정보.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1737. </case>
  1738. <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1739. <import id="import2" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW07710_NEW신체사정.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1740. </case>
  1741. <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1742. <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1743. </case>
  1744. </switch>
  1745. <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
  1746. <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
  1747. <button id="btn_save" class="btn2_letter4" style="left:1062px; top:49px; width:64px; height:19px; ">
  1748. <caption>임시저장</caption>
  1749. <script type="javascript" ev:event="DOMActivate">
  1750. <![CDATA[
  1751. fPatgnrlInfo("T");
  1752. if(submit("TXMNW03201") == true) {
  1753. grd_famyfact.clearStatus();
  1754. model.setValue("/root/send/wardrecinfo", "");
  1755. messageBox("저장이", "I002");
  1756. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  1757. } else {
  1758. messageBox("저장이 실패하였습니다.", "E");
  1759. }
  1760. ]]>
  1761. </script>
  1762. </button>
  1763. <button id="button1" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
  1764. <caption>인증저장</caption>
  1765. <script type="javascript" ev:event="DOMActivate">
  1766. <![CDATA[
  1767. var msgstr = "";
  1768. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1769. //가족사항 : 관계 필수 입력
  1770. for(var i = 1 ; i < grd_famyfact.rows; i++) {
  1771. var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
  1772. if(rela == "") {
  1773. var msg1 = "[가족사항 - 관계]";
  1774. msgstr += msg1;
  1775. break;
  1776. }
  1777. }
  1778. //필수입력사항 blocking
  1779. if(model.getValue("/root/main/wardrecinfo/spo2") == "" && model.getValue("/root/main/wardrecinfo/spo2inspyn") != "Y"){
  1780. var msg2 = "[SpO2]";
  1781. if(msgstr == ""){
  1782. msgstr += msg2;
  1783. }else{
  1784. msgstr += ", " + msg2;
  1785. }
  1786. }
  1787. if(model.getValue("/root/main/wardrecinfo/infooffer") == ""){
  1788. var msg9 = "[정보제공자]";
  1789. if(msgstr == ""){
  1790. msgstr += msg9;
  1791. }else{
  1792. msgstr += ", " + msg9;
  1793. }
  1794. }
  1795. if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive1") == ""|| model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive2") == ""){
  1796. var msg10 = "[입원동기]";
  1797. if(msgstr == ""){
  1798. msgstr += msg10;
  1799. }else{
  1800. msgstr += ", " + msg10;
  1801. }
  1802. }
  1803. // '15.05.19 - 석명숙 과장님 요청으로 인한 삭제
  1804. // if(model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/smokinfoyn") == ""){
  1805. // var msg3 = "[흡연정보]";
  1806. // if(msgstr == ""){
  1807. // msgstr += msg3;
  1808. // }else{
  1809. // msgstr += ", " + msg3;
  1810. // }
  1811. // }
  1812. //
  1813. // if(model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/smokinfoyn") == "2"){
  1814. // if(model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/bfsmokinfoyn") == ""){
  1815. // var msg13 = "[입원전1개월이내 흡연여부]";
  1816. // if(msgstr == ""){
  1817. // msgstr += msg13;
  1818. // }else{
  1819. // msgstr += ", " + msg13;
  1820. // }
  1821. // }
  1822. // }
  1823. //
  1824. // if(model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnstyn") == ""){
  1825. // var msg4 = "[금연상담여부]";
  1826. // if(msgstr == ""){
  1827. // msgstr += msg4;
  1828. // }else{
  1829. // msgstr += ", " + msg4;
  1830. // }
  1831. // }else if(model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnstyn") == "1"){
  1832. // if(model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/smokinfoyn")=="4" ||
  1833. // (model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/smokinfoyn")=="2"
  1834. // &model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/bfsmokinfoyn")=="Y")){
  1835. // if(model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnst")==""
  1836. // && model.getValue("/root/main/wardrecinfo/childinfo/childs/smokinfo/nosmokcnstnm")=="") {
  1837. // var msg8 = "[금연상담여부사유]";
  1838. // if(msgstr == ""){
  1839. // msgstr += msg8;
  1840. // }else{
  1841. // msgstr += ", " + msg8;
  1842. // }
  1843. // }
  1844. // }
  1845. // }
  1846. if(model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/antibiodrugyn") == ""){
  1847. var msg5 = "[병원도착전 24시간내 항생제 투약여부]";
  1848. if(msgstr == ""){
  1849. msgstr += msg5;
  1850. }else{
  1851. msgstr += ", " + msg5;
  1852. }
  1853. }
  1854. //20090626_SMY추가
  1855. 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 : 부천성가병원
  1856. if(model.getValue("/root/main/wardrecinfo/bdht") == "" && model.getValue("/root/main/wardrecinfo/bdhtinspyn") != "Y"){
  1857. var msg6 = "[신장]";
  1858. if(msgstr == ""){
  1859. msgstr += msg6;
  1860. }else{
  1861. msgstr += ", " + msg6;
  1862. }
  1863. }
  1864. if(model.getValue("/root/main/wardrecinfo/bdwt") == "" && model.getValue("/root/main/wardrecinfo/bdwtinspyn") != "Y"){
  1865. var msg7 = "[체중]";
  1866. if(msgstr == ""){
  1867. msgstr += msg7;
  1868. }else{
  1869. msgstr += ", " + msg7;
  1870. }
  1871. }
  1872. }
  1873. // 15.05.19 - 석명숙 과장님 요청으로 인한 삭제
  1874. //------------(20110121) 경북대
  1875. // if(model.getValue("/root/main/wardrecinfo/nrs1cd") == ""){
  1876. // var msg8 = "[영양상태지표]";
  1877. // if(msgstr == ""){
  1878. // msgstr += msg8;
  1879. // }else{
  1880. // msgstr += ", " + msg8;
  1881. // }
  1882. // }
  1883. // if(model.getValue("/root/main/wardrecinfo/nrs21cd") == ""){
  1884. // var msg9 = "[임상상태지표1]";
  1885. // if(msgstr == ""){
  1886. // msgstr += msg9;
  1887. // }else{
  1888. // msgstr += ", " + msg9;
  1889. // }
  1890. // }
  1891. // if(model.getValue("/root/main/wardrecinfo/nrs22cd") == ""){
  1892. // var msg10 = "[영양상태지표2]";
  1893. // if(msgstr == ""){
  1894. // msgstr += msg10;
  1895. // }else{
  1896. // msgstr += ", " + msg10;
  1897. // }
  1898. // }
  1899. // if(model.getValue("/root/main/wardrecinfo/nrs23cd") == ""){
  1900. // var msg11 = "[영양상태지표3]";
  1901. // if(msgstr == ""){
  1902. // msgstr += msg11;
  1903. // }else{
  1904. // msgstr += ", " + msg11;
  1905. // }
  1906. // }
  1907. //------------(20110121) 경북대
  1908. //20110308 이선경(경북대) 통증여부가 '유'일때 통증관리기록이 있는지 체크
  1909. if(model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoinclyn") == "2") {
  1910. model.makeValue("/root/send/pid", model.getValue("/root/temp/cond/list/pid"));
  1911. model.makeValue("/root/send/indd", model.getValue("/root/temp/cond/list/indd"));
  1912. model.makeValue("/root/send/cretno", model.getValue("/root/temp/cond/list/cretno"));
  1913. model.makeValue("/root/send/genrdd", getCurrentDate());
  1914. model.makeValue("/root/send/genrtm", getCurrentDateTime().substring(9,13));
  1915. model.makeValue("/root/send/stdradio", "0");
  1916. model.makeValue("/root/send/req/indd", model.getValue("/root/temp/cond/list/indd"));
  1917. model.makeValue("/root/send/req/cretno", model.getValue("/root/temp/cond/list/cretno"));
  1918. submit('TRMNW04802');
  1919. if(getNodesetCount("/root/main/detlgrup/detlgruplist") == 0) {
  1920. var msg12 = "[통증관리기록]";
  1921. if(msgstr == ""){
  1922. msgstr += msg12;
  1923. }else{
  1924. msgstr += ", " + msg12;
  1925. }
  1926. }
  1927. }
  1928. if ( instUseYN =="Y"){
  1929. //var msgblock = fMNWCareBodyAssBlockForJCI();
  1930. var msgblock = fCareBodyAssBlock();
  1931. if( msgblock != ""){
  1932. msgstr += "\n" + msgblock;
  1933. }
  1934. }
  1935. if(msgstr != "" ){
  1936. messageBox(msgstr + " 은(는) ", "I003");//필수입력입니다
  1937. return;
  1938. }
  1939. fPatgnrlInfo("C");
  1940. //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
  1941. if ( instUseYN =="Y"){
  1942. model.removenode('/root/temp/signdata');
  1943. if ( !ivw_edurec.window.javascript.fSave() ){
  1944. return;
  1945. }
  1946. var xEduRecPath = '/root/temp/signdata/edurecinfo';
  1947. fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "N");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn)
  1948. }
  1949. //최초기록자
  1950. fMNWCareComFstdtSet( "04", "SAVE" );
  1951. Sign.certreload = true ;
  1952. if (Sign.signprocess() == true){
  1953. //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
  1954. // alert("인증성공" );
  1955. // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
  1956. // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
  1957. // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
  1958. // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
  1959. // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
  1960. // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
  1961. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  1962. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  1963. model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/signinfo/signno")); //20090722_SMY변경
  1964. model.makeValue("/root/send/wardrecinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
  1965. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  1966. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  1967. model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
  1968. model.makeValue("/root/send/wardrecinfo/signflag", "02");
  1969. model.makeValue("/root/send/wardrecinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
  1970. model.makeValue("/root/send/wardrecinfo/formcd", "0000002433");
  1971. model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  1972. model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
  1973. model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
  1974. model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
  1975. model.makeValue("/root/send/wardrecinfo/wardcd", model.getValue("/root/temp/cond/list/wardcd"));
  1976. model.makeValue("/root/send/wardrecinfo/roomcd", model.getValue("/root/temp/cond/list/roomcd"));
  1977. model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
  1978. if(submit("TXMNW03201") == true) {
  1979. grd_famyfact.clearStatus();
  1980. model.setValue("/root/send/wardrecinfo", "");
  1981. messageBox("저장이", "I002");
  1982. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  1983. fGetInitRecInfo(); //재조회
  1984. fInitEvent();
  1985. } else {
  1986. messageBox("저장이 실패하였습니다.", "E");
  1987. }
  1988. }
  1989. ]]>
  1990. </script>
  1991. </button>
  1992. <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:855px; top:45px; width:50px; height:19px; "/>
  1993. <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
  1994. <caption id="caption10" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
  1995. <caption id="caption1" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
  1996. <caption id="caption2" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
  1997. <caption id="caption3" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
  1998. <caption id="caption4" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
  1999. <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
  2000. <caption id="caption5" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
  2001. <caption id="caption7" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
  2002. <caption id="caption8" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
  2003. <caption id="caption9" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
  2004. </group>
  2005. <button id="button2" class="btn2_letter6" style="left:973px; top:49px; width:86px; height:19px; ">
  2006. <caption>전체기록삭제</caption>
  2007. <script type="javascript" ev:event="DOMActivate">
  2008. <![CDATA[
  2009. setCareInfoDel("TXMNW03201"); //CareCom.js
  2010. fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
  2011. ]]>
  2012. </script>
  2013. </button>
  2014. <caption id="cap_sinfodnor" class="cell_1" style="left:677px; top:18px; width:68px; height:23px; vertical-align:middle; ">정보제공자</caption>
  2015. <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
  2016. <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; "/>
  2017. <caption id="cap_recdt" class="cell_1" style="left:351px; top:18px; width:56px; height:23px; vertical-align:middle; ">기록일시</caption>
  2018. <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:601px; top:20px; width:75px; height:19px; "/>
  2019. <caption id="caption11" class="cell_1" style="left:1044px; top:18px; width:71px; height:23px; vertical-align:middle; ">최초기록자</caption>
  2020. <caption id="caption12" class="cell_1" style="left:845px; top:18px; width:80px; height:23px; vertical-align:middle; ">최초기록일시</caption>
  2021. <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:409px; top:20px; width:90px; height:19px; "/>
  2022. <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; ">
  2023. <choices>
  2024. <itemset nodeset="/root/hidden/paminfo/recinfo">
  2025. <label ref="bfrecddtm"/>
  2026. <value ref="recpkspec"/>
  2027. </itemset>
  2028. </choices>
  2029. <script type="javascript" ev:event="xforms-value-changed">
  2030. <![CDATA[
  2031. fChgRecHistInfo();
  2032. fMNWCareComFstdtSet( "04", "SRCH" );//recflag : 간호정보조사 플래그 CareCom.js 간호정보조사 최초기록일시 및 사용자 세팅
  2033. model.refresh();
  2034. ]]>
  2035. </script>
  2036. </select1>
  2037. <caption id="cap_recuser" class="cell_1" style="left:553px; top:18px; width:47px; height:23px; vertical-align:middle; ">기록자</caption>
  2038. <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:274px; top:20px; width:75px; height:19px; "/>
  2039. <caption id="cap_bfrecuser" class="cell_1" style="left:205px; top:18px; width:67px; height:23px; vertical-align:middle; ">이전기록자</caption>
  2040. <output id="output1" ref="/root/main/wardrecinfo/fstrgstdt" class="output_fix" style="left:927px; top:20px; width:115px; height:19px; "/>
  2041. <output id="output2" ref="/root/main/wardrecinfo/fstrgstrnm" class="output_fix" style="left:1116px; top:20px; width:75px; height:19px; "/>
  2042. <input id="ipt_infooffer" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:747px; top:20px; width:97px; height:19px; "/>
  2043. </group>
  2044. <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
  2045. <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  2046. <caption id="caption13" style="left:1169px; top:4px; width:26px; height:15px; ">[표]</caption>
  2047. </group>
  2048. </xhtml:body>
  2049. </xhtml:html>