SMMND00300_투석간호정보조사.xrw 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>투석간호정보조사</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <wardrecinfo>
  11. <bfrecddtm/>
  12. <bfrecdd/>
  13. <bfrecuser/>
  14. <bfrectm/>
  15. <recdd/>
  16. <rectm/>
  17. <recuser/>
  18. <infooffer/>
  19. <patinfo/>
  20. <signno/>
  21. <room/>
  22. <patnm/>
  23. <sex/>
  24. <age/>
  25. <pid/>
  26. </wardrecinfo>
  27. </main>
  28. <send>
  29. <req/>
  30. <patgnrlinfo/>
  31. <wardrecinfo/>
  32. <bodyases/>
  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. </init>
  66. <hidden>
  67. <paminfo/>
  68. <histinfo/>
  69. <bodyases>
  70. <mfmdstatinfo/>
  71. <shpaininfo/>
  72. <resorgninfo/>
  73. <digorgninfo/>
  74. <nvesysinfo/>
  75. <info/>
  76. </bodyases>
  77. </hidden>
  78. <signinfo>
  79. <signno/>
  80. </signinfo>
  81. <codeinfo/>
  82. </root>
  83. </instance>
  84. <script type="javascript" ev:event="xforms-ready">
  85. <![CDATA[
  86. fGetCmbList();
  87. fInit();
  88. fGetInitRecInfo();
  89. fInitEvent();
  90. model.refresh();
  91. ]]>
  92. </script>
  93. <script type="javascript">
  94. <![CDATA[
  95. var status = "select";
  96. var allgInsYN = "Y";
  97. function fGetCmbList() {
  98. fGetNursHardCdInfo("'077','172','177'", getCurrentDate()); //CareCom.js172 교육요구도 사용여부 김홍점
  99. zbcfGetCodeList( new Array ( "M0068" //직업
  100. ,"M0069" //교육정도
  101. ,"M0070" //종교
  102. ,"M0071" //결혼상태
  103. ,"M0151" //결혼상태
  104. ,"M0072" //관계
  105. ,"M0073" //부위
  106. ,"M0376" //혈액형
  107. ,"M0075" //의식상태
  108. ,"M0079" //원인질환
  109. ,"P0008" //보험유형 //,"M0080" //의료보장
  110. ,"M0081" //경제상태
  111. ,"M0082" //투석경력종류
  112. ,"M0083" //혈관종류
  113. ,"M0084" //유형
  114. ,"M0088" //생존여부
  115. ,"M0090" //알러지
  116. ,"M0091" //흡연량
  117. ,"M0092" //음주종류
  118. ,"M0093" //기호식품
  119. ,"M0098" //동반자
  120. ,"M0100" //지남력
  121. ,"M0102" //요흔
  122. ,"M0103" //부착기구
  123. ,"M0104" //소변색깔
  124. ,"M0105" //소변증상
  125. ,"M0106" //대변색깔
  126. ,"M0107" //대변종류
  127. ,"M0109" //동공빛반사여부
  128. ,"M0110" //동공수치
  129. ,"M0411" //영적요구
  130. ,"M0210" //입원방법
  131. ,"M0375" //체온부위
  132. ,"M0368" //가족병력내역
  133. ,"M0532" //과거병력내역_20090406_SMY추가
  134. )
  135. , new Array ( "/root/init/mlist" //직업
  136. ,"/root/init/mlist" //교육정도
  137. ,"/root/init/mlist" //종교
  138. ,"/root/init/mlist" //결혼상태
  139. ,"/root/init/mlist" //결혼상태
  140. ,"/root/init/mlist" //관계
  141. ,"/root/init/mlist" //부위
  142. ,"/root/init/mlist" //혈액형
  143. ,"/root/init/mlist" //의식상태
  144. ,"/root/init/mlist" //원인질환
  145. ,"/root/init/mlist" //보험유형
  146. ,"/root/init/mlist" //경제상태
  147. ,"/root/init/mlist" //투석경력종류
  148. ,"/root/init/mlist" //혈관종류
  149. ,"/root/init/mlist" //유형
  150. ,"/root/init/mlist" //생존여부
  151. ,"/root/init/mlist" //알러지
  152. ,"/root/init/mlist" //흡연량
  153. ,"/root/init/mlist" //음주종류
  154. ,"/root/init/mlist" //기호식품
  155. ,"/root/init/mlist" //동반자
  156. ,"/root/init/mlist" //지남력
  157. ,"/root/init/mlist" //요흔
  158. ,"/root/init/mlist" //부착기구
  159. ,"/root/init/mlist" //소변색깔
  160. ,"/root/init/mlist" //소변증상
  161. ,"/root/init/mlist" //대변색깔
  162. ,"/root/init/mlist" //대변종류
  163. ,"/root/init/mlist" //동공빛반사여부
  164. ,"/root/init/mlist" //동공수치
  165. ,"/root/init/mlist" //영적요구
  166. ,"/root/init/mlist" //입원방법
  167. ,"/root/init/mlist" //체온부위
  168. ,"/root/init/mlist" //가족병력내역
  169. ,"/root/init/mlist" //과거병력내역
  170. )
  171. );
  172. model.refresh();
  173. }
  174. function fInitEvent() {
  175. fInitEventDialInfo();
  176. fInitEventHistInfo();
  177. }
  178. //화면 로딩시
  179. function fInit(){
  180. model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
  181. model.makeValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1");
  182. model.makeValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1");
  183. model.makeValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1");
  184. model.makeValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1");
  185. model.makeValue("/root/hidden/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
  186. model.makeValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1");
  187. model.makeValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
  188. model.makeValue("/root/main/histinfo/smokinfo/smok/smokinclyn", "1");
  189. model.makeValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn", "1");
  190. model.makeValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1");
  191. model.makeValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "1");
  192. model.makeNode("/root/temp/cond/list");
  193. getPatientInfoDetails("/root/temp/cond/list");
  194. //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
  195. var pid;
  196. var room;
  197. var patnm;
  198. var sex;
  199. var age;
  200. var instcd;
  201. var orddeptcd;
  202. var indd;
  203. var ioflag = model.getValue("/root/temp/cond/list/ioflag");
  204. if(ioflag == "O") {
  205. indd = model.getValue("/root/temp/cond/list/orddd");
  206. } else {
  207. indd = model.getValue("/root/temp/cond/list/indd");
  208. }
  209. room = model.getValue("/root/temp/cond/list/roomcd");
  210. patnm = model.getValue("/root/temp/cond/list/hngnm");
  211. sex = model.getValue("/root/temp/cond/list/sex");
  212. age = model.getValue("/root/temp/cond/list/age");
  213. pid = model.getValue("/root/temp/cond/list/pid");
  214. instcd = model.getValue("/root/temp/cond/list/instcd");
  215. orddetpcd = model.getValue("/root/temp/cond/list/orddeptcd");
  216. cretno = model.getValue("/root/temp/cond/list/cretno");
  217. ioflag = model.getValue("/root/temp/cond/list/ioflag");
  218. model.makeValue("/root/main/wardrecinfo/room", room);
  219. model.makeValue("/root/main/wardrecinfo/patnm", patnm);
  220. model.makeValue("/root/main/wardrecinfo/sex", sex);
  221. model.makeValue("/root/main/wardrecinfo/age", age);
  222. model.makeValue("/root/main/wardrecinfo/pid", pid);
  223. var scrnid =getScreenID();
  224. var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
  225. +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
  226. fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
  227. model.refresh();
  228. }
  229. //간호정보조사지 조회
  230. function fGetInitRecInfo() {
  231. var pid = model.getValue("/root/temp/cond/list/pid");
  232. var indd = model.getValue("/root/temp/cond/list/indd");
  233. var instcd = model.getValue("/root/temp/cond/list/instcd");
  234. var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  235. var ioflag = model.getValue("/root/temp/cond/list/ioflag");
  236. if(ioflag == "O") {
  237. indd = model.getValue("/root/temp/cond/list/orddd");
  238. } else {
  239. indd = model.getValue("/root/temp/cond/list/indd");
  240. }
  241. var cretno = model.getValue("/root/temp/cond/list/cretno");
  242. // var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  243. var instUseYN =""; //20100510 김홍점 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
  244. //웹용 인자값 셋팅
  245. model.makeValue("/root/send/req/pid", pid);
  246. model.makeValue("/root/send/req/indd", indd);
  247. model.makeValue("/root/send/req/instcd", instcd);
  248. model.makeValue("/root/send/req/recflag", "08");
  249. model.makeValue("/root/send/req/docucode", "0000002437");
  250. model.makeValue("/root/send/req/deptcd", orddeptcd);
  251. if(pid == "") {
  252. messageBox("환자를 선택하지 ", "E007");
  253. window.close();
  254. } else {
  255. if(instUseYN == "Y"){
  256. btn_edurec.visible = true;
  257. grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px;" ;
  258. setParameter("SPMRJ00300_pid", pid);
  259. setParameter("SPMRJ00300_orddd", indd);
  260. setParameter("SPMRJ00300_cretno", cretno);
  261. ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw";
  262. ivw_edurec.group2.visible = false;
  263. }else{
  264. grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
  265. btn_edurec.visible = false;
  266. }
  267. submit("TRMND00301", "false");
  268. var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
  269. if(exeflag == 'U') {
  270. submit("TRMND00302", "false");
  271. //인증번호set_20090722_SMY
  272. model.setValue("/root/signinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
  273. var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
  274. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  275. //마지막 기록일시 셋팅
  276. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '08' and indd = '" + indd + "']/recpkspec"));
  277. model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '08' and indd = '" + indd + "']/bfrecuser"));
  278. } else {
  279. //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
  280. if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
  281. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
  282. fChgRecHistInfo();
  283. }else{
  284. submit("TRMND00304", "false");
  285. var exist = model.getValue("/root/hidden/cominfo/histinfo/existyn");
  286. var existfamyinfo = model.getValue("/root/hidden/cominfo/famyinfo/existfamyinfo");
  287. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
  288. //가족사항 연동부분
  289. model.removeNodeset("/root/main/famyfact");
  290. if(getNodesetCount("/root/hidden/cominfo/famyfact") > 0){
  291. for(var i=1; i <= getNodesetCount("/root/hidden/cominfo/famyfact"); i++) {
  292. if(model.getValue("/root/hidden/cominfo/famyfact["+ i +"]/rela") != ""){
  293. model.duplicate("/root/main", "/root/hidden/cominfo/famyfact["+ i +"]");
  294. }
  295. }
  296. }
  297. if(exist == "N") {
  298. model.copyNode("/root/main/histinfo", "/root/hidden/histinfo");
  299. model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
  300. model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
  301. model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
  302. model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
  303. model.setValue("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
  304. model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
  305. model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
  306. model.setValue("/root/main/histinfo/smokinfo/smok/smokinclyn", "");
  307. model.setValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn", "");
  308. model.setValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "");
  309. model.setValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "");
  310. } else {
  311. model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
  312. }
  313. model.setValue("/root/main/wardrecinfo/religncd", model.getValue("/root/hidden/paminfo/paminfo/religncd"));
  314. model.setValue("/root/main/wardrecinfo/baptnm", model.getValue("/root/hidden/paminfo/paminfo/baptnm"));
  315. model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/hidden/paminfo/paminfo/tel"));
  316. model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/hidden/paminfo/paminfo/mphone"));
  317. model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/hidden/paminfo/paminfo/etcphone1"));
  318. model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/hidden/paminfo/paminfo/etcphone2"));
  319. //기록일시 정보를 쿼리에서 가져옴
  320. model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
  321. model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
  322. model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
  323. model.refresh();
  324. }
  325. }
  326. fNotExistsNodeCreate(); //존재하지 않는 노드생성
  327. //가계도 연동부분.
  328. if(existfamyinfo == "Y") {
  329. model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
  330. opt_existyn.refresh();
  331. }
  332. }
  333. status = "select";
  334. if(grd_allghist.rows > 1) {
  335. for(var i = 0; i < grd_allghist.cols; i++) {
  336. if(grd_allghist.valueMatrix(1, i) != "") {
  337. allgInsYN = "N";
  338. }
  339. }
  340. }
  341. model.refresh();
  342. }
  343. //노드 추가에 따른 존재하지 않는 노드생성
  344. function fNotExistsNodeCreate(){
  345. var spo2= instance1.selectSingleNode("/root/main/wardrecinfo/spo2");
  346. if ( spo2 == null ) {
  347. model.makeValue("/root/main/wardrecinfo/spo2","");
  348. }
  349. }
  350. function fGetXmlToStr(xPath) {
  351. var str = instance1.selectNodesXml(xPath);
  352. return str;
  353. }
  354. function fChkInclYN() {
  355. //병력 XML
  356. var pasthistyn = model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn");
  357. var famyhistyn = model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn");
  358. var inhistyn = model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn");
  359. var ophistyn = model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn");
  360. var rectmedistatyn = model.getValue("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn");
  361. var allhistinclyn = model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn");
  362. var vacnhistinclyn = model.getValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn");
  363. var smokinclyn = model.getValue("/root/main/histinfo/smokinfo/smok/smokinclyn");
  364. var drunkinclyn = model.getValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn");
  365. var gustofoodinclyn = model.getValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn");
  366. var tnsseffcinfoyn = model.getValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn");
  367. //병력
  368. if(pasthistyn == "1") {
  369. model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/hidden/histinfo/pasthistinfo/pasthist"));
  370. } else {
  371. model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/main/histinfo/pasthistinfo/pasthist"));
  372. }
  373. if(famyhistyn == "1") {
  374. model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/hidden/histinfo/famyhistinfo/famyhist"));
  375. } else {
  376. model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/main/histinfo/famyhistinfo/famyhist"));
  377. }
  378. if(inhistyn == "1") {
  379. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/hidden/histinfo/inhistinfo/inhist"));
  380. } else {
  381. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
  382. }
  383. if(ophistyn == "1") {
  384. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/hidden/histinfo/ophistinfo/ophist"));
  385. } else {
  386. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
  387. }
  388. if(rectmedistatyn == "1") {
  389. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/hidden/histinfo/rectmedistatinfo/rectmedistat"));
  390. } else {
  391. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/histinfo/rectmedistatinfo/rectmedistat"));
  392. }
  393. if(allhistinclyn == "1") {
  394. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/hidden/histinfo/allghistinfo/allghist"));
  395. } else {
  396. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
  397. }
  398. //다른 기록지에서 저장한 이력을 조회하여 저장한다.
  399. model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
  400. //병력의 흡연정보, 음주정보. 기호식품, 수혈부작용 내용은 이력테이블(hsif)에 저장하였으나, 요구사항 변경으로 인하여 일반정보테이블(pgif)의 기호정보에 저장한다.
  401. model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
  402. model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
  403. model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
  404. model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
  405. /*
  406. if(vacnhistinclyn == "1") {
  407. model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/hidden/histinfo/vacnhistinfo/vacnhist"));
  408. } else {
  409. model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
  410. }
  411. if(smokinclyn == "1") {
  412. model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/hidden/histinfo/smokinfo/smok"));
  413. } else {
  414. model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
  415. }
  416. if(drunkinclyn == "1") {
  417. model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
  418. } else {
  419. model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
  420. }
  421. if(gustofoodinclyn == "1") {
  422. model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
  423. } else {
  424. model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
  425. }
  426. if(tnsseffcinfoyn == "1") {
  427. model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
  428. }else {
  429. model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
  430. }
  431. */
  432. }
  433. function fPatgnrlInfo(certFlag) {
  434. var userid = getUserId();
  435. model.removeNodeset("/root/send/wardinfo");
  436. //일반정보
  437. model.makeValue("/root/send/wardrecinfo/basebdinfoinclyn", model.getValue("/root/main/wardrecinfo/basebdinfoinclyn"));
  438. model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
  439. model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
  440. model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
  441. model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
  442. model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
  443. model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
  444. model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
  445. model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
  446. model.makeValue("/root/send/wardrecinfo/bdbtype", model.getValue("/root/main/wardrecinfo/bdbtype"));
  447. model.makeValue("/root/send/wardrecinfo/bdbtyperh", model.getValue("/root/main/wardrecinfo/bdbtyperh"));
  448. model.makeValue("/root/send/wardrecinfo/jobcd", model.getValue("/root/main/wardrecinfo/jobcd"));
  449. model.makeValue("/root/send/wardrecinfo/jobnm", model.getValue("/root/main/wardrecinfo/jobnm"));
  450. model.makeValue("/root/send/wardrecinfo/educgrdecd", model.getValue("/root/main/wardrecinfo/educgrdecd"));
  451. model.makeValue("/root/send/wardrecinfo/educgrdenm", model.getValue("/root/main/wardrecinfo/educgrdenm"));
  452. model.makeValue("/root/send/wardrecinfo/religncd", model.getValue("/root/main/wardrecinfo/religncd"));
  453. model.makeValue("/root/send/wardrecinfo/relignnm", model.getValue("/root/main/wardrecinfo/relignnm"));
  454. model.makeValue("/root/send/wardrecinfo/marystatcd", model.getValue("/root/main/wardrecinfo/marystatcd"));
  455. model.makeValue("/root/send/wardrecinfo/marystatnm", model.getValue("/root/main/wardrecinfo/marystatnm"));
  456. model.makeValue("/root/send/wardrecinfo/baptnm", model.getValue("/root/main/wardrecinfo/baptnm"));
  457. model.makeValue("/root/send/wardrecinfo/famytree", fGetXmlToStr("/root/main/wardrecinfo/famytree/existyn"));
  458. model.makeValue("/root/send/wardrecinfo/spo", model.getValue("/root/main/wardrecinfo/spo2"));
  459. model.makeValue("/root/send/wardrecinfo/relignreq", model.getValue("/root/main/wardrecinfo/relignreq"));
  460. model.makeValue("/root/send/wardrecinfo/tel", model.getValue("/root/main/wardrecinfo/tel"));
  461. model.makeValue("/root/send/wardrecinfo/mphone", model.getValue("/root/main/wardrecinfo/mphone"));
  462. model.makeValue("/root/send/wardrecinfo/etcphone1", model.getValue("/root/main/wardrecinfo/etcphone1"));
  463. model.makeValue("/root/send/wardrecinfo/etcphone2", model.getValue("/root/main/wardrecinfo/etcphone2"));
  464. //투석정보
  465. model.makeValue("/root/send/wardrecinfo/viralmarker", model.getValue("/root/main/wardrecinfo/viralmarker"));
  466. model.makeValue("/root/send/wardrecinfo/fstdialdd", model.getValue("/root/main/wardrecinfo/fstdialdd"));
  467. model.makeValue("/root/send/wardrecinfo/fstdialkind", model.getValue("/root/main/wardrecinfo/fstdialkind"));
  468. model.makeValue("/root/send/wardrecinfo/roomhospdialdd", model.getValue("/root/main/wardrecinfo/roomhospdialdd"));
  469. model.makeValue("/root/send/wardrecinfo/chosdd", model.getValue("/root/main/wardrecinfo/chosdd"));
  470. model.makeValue("/root/send/wardrecinfo/reqhosp", model.getValue("/root/main/wardrecinfo/reqhosp"));
  471. model.makeValue("/root/send/wardrecinfo/bodyases", fGetXmlToStr("/root/main/wardrecinfo/bodyases/bodyases"));
  472. model.makeValue("/root/send/wardrecinfo/dialcomninfoetc", fGetXmlToStr("/root/main/wardrecinfo/dialcomninfoetc/dialcomn"));
  473. model.makeValue("/root/send/wardrecinfo/dialcarer", fGetXmlToStr("/root/main/wardrecinfo/dialcarer/dialcarer"));
  474. model.makeValue("/root/send/wardrecinfo/trans", fGetXmlToStr("/root/main/wardrecinfo/trans/trans"));
  475. model.makeValue("/root/send/wardrecinfo/selfcareinfo", fGetXmlToStr("/root/main/wardrecinfo/selfcareinfo/selfcare"));
  476. model.makeValue("/root/send/wardrecinfo/rgstdialinfo", fGetXmlToStr("/root/main/wardrecinfo/rgstdialinfo/rgstdial"));
  477. model.makeValue("/root/send/wardrecinfo/progrec", fGetXmlToStr("/root/main/wardrecinfo/progrec/progrec"));
  478. //가족사항(가족연락처table)
  479. var updtdata = getGridUpdateData(grd_famyfact);
  480. model.makeValue("/root/send/wardrecinfo/famyfact", updtdata);
  481. //병력
  482. fChkInclYN();
  483. //기호정보
  484. model.makeValue("/root/send/wardrecinfo/gustoinfo", fGetXmlToStr("/root/main/wardrecinfo/gustoinfo/gusto"));
  485. //알러지
  486. if(grd_allghist.rows > 1) {
  487. if(allgInsYN == "Y") {
  488. grd_allghist.addStatus(1, "insert");
  489. }
  490. }
  491. model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
  492. var ioflag = model.getValue("/root/temp/cond/list/ioflag");
  493. //웹 테스트
  494. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  495. if(ioflag == "O") {
  496. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/orddd"));
  497. } else {
  498. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  499. }
  500. model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
  501. model.makeValue("/root/send/wardrecinfo/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  502. model.makeValue("/root/send/wardrecinfo/recflag", "08");
  503. model.makeValue("/root/send/wardrecinfo/docucode", "0000002437");
  504. model.makeValue("/root/send/wardrecinfo/userid", userid);
  505. model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
  506. //수행구분(I, U에 따른 입력, 수정을위한 구분)
  507. model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
  508. //가계도
  509. if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
  510. model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
  511. } else {
  512. model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
  513. }
  514. model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
  515. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  516. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  517. model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
  518. }
  519. function fSetSignData() {
  520. var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
  521. var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
  522. var xFamyPath = Sign.XPATH_SIGNINFO + "/famyfactinfo";
  523. /****************************** 환자기본정보 **************************************/
  524. //직업
  525. var jobcd = model.getValue(xWardRecPath + "/jobcd");
  526. if(jobcd != "") {
  527. if(jobcd == "10") {
  528. if(model.getValue(xWardRecPath + "/jobnm") == "") {
  529. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  530. } else {
  531. model.setValue(xWardRecPath + "/jobcd", model.getValue(xWardRecPath + "/jobnm"));
  532. }
  533. } else {
  534. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  535. }
  536. }
  537. //교육정도
  538. var educgrde = model.getValue(xWardRecPath + "/educgrdecd");
  539. if(educgrde != "") {
  540. if(educgrde == "15") {
  541. if(model.getValue(xWardRecPath + "/educgrdenm") != "") {
  542. model.setValue(xWardRecPath + "/educgrdecd", model.getValue(xWardRecPath + "/educgrdenm"));
  543. } else {
  544. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  545. }
  546. } else {
  547. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  548. }
  549. }
  550. //종교
  551. var relign = model.getValue(xWardRecPath + "/religncd");
  552. if(relign != "") {
  553. if(relign == "01") {
  554. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  555. if(model.getValue(xWardRecPath + "/baptnm") != "") {
  556. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/religncd") + "(" + model.getValue(xWardRecPath + "/baptnm") + ")");
  557. }
  558. } else if( relign == "09") {
  559. if(model.getValue(xWardRecPath + "/relignnm") == "") {
  560. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  561. } else {
  562. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/relignnm"));
  563. }
  564. } else {
  565. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  566. }
  567. }
  568. //영적요구
  569. var relignreq = model.getValue(xWardRecPath + "/relignreq");
  570. if (relignreq != ""){
  571. model.setValue(xWardRecPath + "/relignreq", cmb_relignreq.label);
  572. }
  573. //결혼상태
  574. var marystat = model.getValue(xWardRecPath + "/marystatcd");
  575. if(marystat != "") {
  576. if(marystat == "06") {
  577. if(model.getValue(xWardRecPath + "/marystatnm") != "") {
  578. model.setValue(xWardRecPath + "/marystatcd", model.getValue(xWardRecPath + "/marystatnm"));
  579. } else {
  580. model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
  581. }
  582. } else {
  583. model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
  584. }
  585. }
  586. /****************************** 가족사항 **************************************/
  587. //가족사항 관계
  588. var rows = grd_famyfact.rows;
  589. var rela;
  590. for(var i = 1 ; i < rows; i++) {
  591. rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
  592. if(rela != "") {
  593. model.setValue(xFamyPath + "/famyfact[" + i + "]/rela", grd_famyfact.labelMatrix(i, grd_famyfact.colRef("rela")));
  594. }
  595. }
  596. /****************************** 기본 신체정보 **************************************/
  597. //혈액형
  598. var bdbtype = model.getValue(xWardRecPath + "/bdbtype");
  599. if(bdbtype != "") {
  600. model.setValue(xWardRecPath + "/bdbtype", cmb_bdbtype.label);
  601. }
  602. //체온
  603. var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
  604. if(bdtppart != "") {
  605. model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
  606. }
  607. /****************************** 신체사정 **************************************/
  608. //의식상태
  609. var soulstat = model.getValue(xWardRecPath + "/bodyases/bodyases/soulstat");
  610. if(soulstat != "") {
  611. model.setValue(xWardRecPath + "/bodyases/bodyases/soulstat", cmb_soulstat.label);
  612. }
  613. //의사소통
  614. var comustat = model.getValue(xWardRecPath + "/bodyases/bodyases/comustat");
  615. if(comustat != "") {
  616. model.setValue(xWardRecPath + "/bodyases/bodyases/comustat", rdo_comustat.label);
  617. }
  618. //정서상태
  619. var emotstat = model.getValue(xWardRecPath + "/bodyases/bodyases/emotstat");
  620. var emotstatnm = model.getValue(xWardRecPath + "/bodyases/bodyases/emotstatnm");
  621. str = cmb_emotstat.label;
  622. if(emotstat != "") {
  623. if(emotstat == "07") {
  624. if(emotstatnm != "") {
  625. str += "(" + emotstatnm + ")";
  626. }
  627. }
  628. model.setValue(xWardRecPath + "/bodyases/bodyases/emotstat", str);
  629. }
  630. /****************************** Viral Marker 초기사정(Positive check) **************************************/
  631. //Viral Marker 초기사정(Positive check)
  632. var viralmarker = model.getValue(xWardRecPath + "/viralmarker");
  633. if(viralmarker != "") {
  634. arr = chk_viralmarker.label.split(" ");
  635. model.setValue(xWardRecPath + "/viralmarker", arr);
  636. }
  637. /****************************** 투석공통정보 **************************************/
  638. //최초투석유형
  639. var fstdialkind = model.getValue(xWardRecPath + "/fstdialkind");
  640. if(fstdialkind != "") {
  641. model.setValue(xWardRecPath + "/fstdialkind", cmb_fstdialkind.label);
  642. }
  643. //원인질환
  644. var cassickkind = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/cassickkind");
  645. var cassick = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/cassick");
  646. str = cmb_cassickkind.label;
  647. if(cassickkind != "") {
  648. if(cassickkind == "08") {
  649. if(cassick != "") {
  650. str += "(" + cassick + ")";
  651. }
  652. }
  653. model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/cassickkind", str);
  654. }
  655. //신부전
  656. var kidnfaluryn = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/kidnfaluryn");
  657. if(kidnfaluryn != "") {
  658. model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/kidnfaluryn", rdo_kidnfaluryn.label);
  659. }
  660. //의료보장
  661. var medigrant = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/medigrant");
  662. if(medigrant != "") {
  663. model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/medigrant", cmb_medigrant.label);
  664. }
  665. //보건소혜택
  666. var healcntrprofitkind = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/healcntrprofitkind");
  667. var healcntrprofit = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/healcntrprofit");
  668. str = cmb_healcntrprofitkind.label;
  669. if(healcntrprofitkind != "") {
  670. if(healcntrprofitkind == "2") {
  671. if(healcntrprofit != "") {
  672. str += "(" + healcntrprofit + ")";
  673. }
  674. }
  675. model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/healcntrprofitkind", str);
  676. }
  677. //경제상태
  678. var economystat = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/economystat");
  679. if(economystat != "") {
  680. model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/economystat", cmb_economystat.label);
  681. }
  682. /****************************** 투석경력 **************************************/
  683. //투석경력 투석유형
  684. var rows = grd_dialcare.rows;
  685. var dialkind;
  686. for(var i = 1 ; i < rows; i++) {
  687. dialkind = model.getValue(xWardRecPath + "/dialcarer/dialcarer/dialcarer[" + i + "]/dialkind");
  688. if(dialkind != "") {
  689. model.setValue(xWardRecPath + "/dialcarer/dialcarer/dialcarer[" + i + "]/dialkind", grd_dialcare.labelMatrix(i, grd_dialcare.colRef("dialkind")));
  690. }
  691. }
  692. /****************************** 신이식 **************************************/
  693. //신이식
  694. var selfstat = model.getValue(xWardRecPath + "/trans/trans/selfstat");
  695. var selfstatcnt = "";
  696. var selfstat_arr = "";
  697. if(selfstat != ""){
  698. selfstatcnt = rdo_selfstat.label;
  699. }
  700. if(selfstat == "01") {
  701. selfstatcnt = selfstatcnt;
  702. }else if(selfstat == "02") {
  703. if(model.getValue(xWardRecPath + "/trans/trans/impsiresn") != ""){
  704. selfstatcnt = selfstatcnt + " (사유 : " + model.getValue(xWardRecPath + "/trans/trans/impsiresn") + ")";
  705. }
  706. }else if(selfstat == "03") {
  707. selfstat_arr = chk_possresn.label.split("▦");
  708. if(model.getValue(xWardRecPath + "/trans/trans/possresnetc") != ""){
  709. selfstatcnt = selfstatcnt + " (" + selfstat_arr + ":" + model.getValue(xWardRecPath + "/trans/trans/possresnetc") + ")";
  710. }else{
  711. selfstatcnt = selfstatcnt + " (" +selfstat_arr + ")";
  712. }
  713. }
  714. model.setValue(xWardRecPath + "/trans/trans/selfstat", selfstatcnt);
  715. /****************************** 자가간호 **************************************/
  716. //자가간호 가능여부
  717. var selfcareyn = model.getValue(xWardRecPath + "/selfcareinfo/selfcare/selfcareyn");
  718. if(selfcareyn != "") {
  719. model.setValue(xWardRecPath + "/selfcareinfo/selfcare/selfcareyn", rdo_selfcareyn.label);
  720. }
  721. /****************************** 등록시 투석정보 **************************************/
  722. //등록시 투석종류
  723. var dialkind = model.getValue(xWardRecPath + "/rgstdialinfo/rgstdial/dialkind");
  724. if(dialkind != "") {
  725. model.setValue(xWardRecPath + "/rgstdialinfo/rgstdial/dialkind", rdo_dialkind.label);
  726. }
  727. //혈관종류
  728. var veslkind = model.getValue(xWardRecPath + "/rgstdialinfo/rgstdial/veslkind");
  729. if(veslkind != "") {
  730. model.setValue(xWardRecPath + "/rgstdialinfo/rgstdial/veslkind", cmb_veslkind.label);
  731. }
  732. //유형
  733. var vesltype = model.getValue(xWardRecPath + "/rgstdialinfo/rgstdial/vesltype");
  734. if(vesltype != "") {
  735. model.setValue(xWardRecPath + "/rgstdialinfo/rgstdial/vesltype", cmb_vesltype.label);
  736. }
  737. /****************************** 병력 **************************************/
  738. //과거병력
  739. var rows = grd_pasthist.rows;
  740. var histspec;
  741. for(var i = 1 ; i < rows; i++) {
  742. histspec = model.getValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec");
  743. if(histspec != "") {
  744. model.setValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec", grd_pasthist.labelMatrix(i, grd_pasthist.colRef("histspec")));
  745. }
  746. }
  747. //가족병력
  748. var famyrel;
  749. var existyn;
  750. rows = grd_famyhist.rows;
  751. for(var i = 1 ; i < rows; i++) {
  752. famyrel = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel");
  753. existyn = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn");
  754. histspec = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec");
  755. if(famyrel != "") {
  756. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("famyrel")));
  757. }
  758. if(existyn != "") {
  759. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("existyn")));
  760. }
  761. if(histspec != "") {
  762. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("histspec")));
  763. }
  764. }
  765. //allergy구분
  766. rows = grd_allghist.rows;
  767. var flag;
  768. for(var i = 1 ; i < rows; i++) {
  769. flag = model.getValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag");
  770. if(flag != "") {
  771. model.setValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag", grd_allghist.labelMatrix(i, grd_allghist.colRef("flag")));
  772. }
  773. }
  774. /****************************** 기호정보 **************************************/
  775. //흡연정보
  776. var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
  777. var smokinfocnt = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfocnt");
  778. if(smokinfoyn != "") {
  779. if(smokinfoyn == "2" && smokinfocnt != ""){
  780. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + smokinfocnt + ")");
  781. }else{
  782. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
  783. }
  784. }
  785. //음주정보
  786. var drunkinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn");
  787. if(drunkinfoyn != "") {
  788. if(drunkinfoyn == "2") {
  789. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") != "") {
  790. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
  791. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") + " "
  792. + model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  793. }else{
  794. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind"));
  795. }
  796. } else {
  797. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
  798. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  799. }else{
  800. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  801. }
  802. }
  803. } else {
  804. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  805. }
  806. }
  807. //기호식품
  808. var gustofoodyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn");
  809. if(gustofoodyn != "") {
  810. if(gustofoodyn == "2") {
  811. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl") != "") {
  812. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl"));
  813. } else {
  814. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
  815. }
  816. } else {
  817. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
  818. }
  819. }
  820. //수혈부작용
  821. var tnsseffcyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn");
  822. if(tnsseffcyn != "") {
  823. if(tnsseffcyn == "2") {
  824. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl") != "") {
  825. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl"));
  826. } else {
  827. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
  828. }
  829. } else {
  830. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
  831. }
  832. }
  833. /*
  834. //흡연정보 양(갑/일)
  835. rows = grd_smokinfo.rows;
  836. var dosetoday;
  837. for(var i = 1 ; i < rows; i++) {
  838. dosetoday = model.getValue(xHistPath + "/histinfo/smokinfo/smok/smok[" + i + "]/dosetoday");
  839. if(dosetoday != "") {
  840. model.setValue(xHistPath + "/histinfo/smokinfo/smok/smok[" + i + "]/dosetoday", grd_smokinfo.labelMatrix(i, grd_smokinfo.colRef("dosetoday")));
  841. }
  842. }
  843. //음주정보 종류
  844. rows = grd_drunkinfo.rows;
  845. var kind;
  846. for(var i = 1 ; i < rows; i++) {
  847. kind = model.getValue(xHistPath + "/histinfo/drunkinfo/drunk/drunkinfo[" + i + "]/kind");
  848. if(kind != "") {
  849. model.setValue(xHistPath + "/histinfo/drunkinfo/drunk/drunkinfo[" + i + "]/dosetoday", grd_drunkinfo.labelMatrix(i, grd_drunkinfo.colRef("kind")));
  850. }
  851. }
  852. //기호식품종류
  853. rows = grd_gustofood.rows;
  854. for(var i = 1 ; i < rows; i++) {
  855. kind = model.getValue(xHistPath + "/histinfo/gustofoodinfo/gustofood/gustofood[" + i + "]/kind");
  856. if(kind != "") {
  857. model.setValue(xHistPath + "/histinfo/gustofoodinfo/gustofood/gustofood[" + i + "]/kind", grd_gustofood.labelMatrix(i, grd_gustofood.colRef("kind")));
  858. }
  859. }
  860. //수혈부작용
  861. var tnsyn = model.getValue(xHistPath + "/tnsseffcinfo/tnsseffc/tnsseffc/tnsyn");
  862. var tnsdetl = model.getValue(xHistPath + "/tnsseffcinfo/tnsseffc/tnsseffc/tnsdetl");
  863. str = rdo_tnsseffcyn.label;
  864. if(tnsyn != "") {
  865. if(tnsyn == "2") {
  866. if(tnsdetl != "") {
  867. str += "(" + tnsdetl + ")";
  868. }
  869. }
  870. model.setValue(xHistPath + "/tnsseffcinfo/tnsseffc/tnsseffc/tnsyn", str);
  871. }
  872. */
  873. }
  874. function fMake_SignData() {
  875. //JCI 교육요구도 추가 (20100113 김홍점)
  876. //var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  877. var instUseYN="";//20100510 김홍점 외래 공통 교육요구도 개발에 따라 사용안함. 소경화itc요청
  878. if ( instUseYN =="Y" ){
  879. Sign.addnode("/root/temp/signdata/edurecinfo");
  880. }
  881. Sign.addnode("/root/main/wardrecinfo");
  882. Sign.addnode("/root/main/histinfo");
  883. //가족사항 정보 생성(그리드형식)
  884. model.removeNodeset("/root/main/famyfactinfo");
  885. model.makeNode("/root/main/famyfactinfo");
  886. for(var i=1; i <= getNodesetCount("/root/main/famyfact"); i++) {
  887. if(model.getValue("/root/main/famyfact["+ i +"]/rela") != ""){
  888. model.duplicate("/root/main/famyfactinfo", "/root/main/famyfact["+ i +"]");
  889. }
  890. }
  891. Sign.addnode("/root/main/famyfactinfo");
  892. fSetSignData();
  893. }
  894. //이전기록일시 변경
  895. function fChgRecHistInfo(){
  896. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
  897. var bfrecpid = recpkspec[0];
  898. var bfrecindd = recpkspec[1];
  899. var bfreccretno = recpkspec[2];
  900. var bfrecflag = recpkspec[3];
  901. var bfrecinstcd = recpkspec[4];
  902. model.removeNodeset("/root/send/req");
  903. model.makeNode("/root/send/req");
  904. model.makeValue("/root/send/req/pid", bfrecpid);
  905. model.makeValue("/root/send/req/indd", bfrecindd);
  906. model.makeValue("/root/send/req/cretno", bfreccretno);
  907. model.makeValue("/root/send/req/instcd", bfrecinstcd);
  908. model.makeValue("/root/send/req/recflag", bfrecflag);
  909. //model.makeValue("/root/send/req/docucode", "0000002437");
  910. //model.makeValue("/root/send/req/deptcd", orddeptcd);
  911. submit("TRMND00302", false);
  912. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  913. model.refresh();
  914. }
  915. ]]>
  916. </script>
  917. <submission id="TRMND00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
  918. <submission id="TRMND00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
  919. <submission id="TRMND00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
  920. <submission id="TRMND00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
  921. <submission id="TXMND00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo"/>
  922. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  923. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
  924. <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
  925. </model>
  926. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  927. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  928. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  929. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  930. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  931. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  932. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  933. </xhtml:head>
  934. <xhtml:body guideline="1,6;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  935. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  936. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">투석간호정보조사</caption>
  937. </group>
  938. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  939. <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; "/>
  940. <input id="ipt_bfrecdd" ref="/root/main/wardrecinfo/bfrecdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" style="left:83px; top:45px; width:100px; height:19px; "/>
  941. <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
  942. <caption>투석정보</caption>
  943. <toggle case="case1" ev:event="onclick"/>
  944. </button>
  945. <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
  946. <caption>병력</caption>
  947. <toggle case="case2" ev:event="onclick"/>
  948. </button>
  949. <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
  950. <caption>교육요구도</caption>
  951. <toggle case="case_edurec" ev:event="onclick"/>
  952. </button>
  953. <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
  954. <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
  955. <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08400_투석정보.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  956. </case>
  957. <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  958. <import id="import4" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08800_병력.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  959. </case>
  960. <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  961. <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
  962. </case>
  963. </switch>
  964. <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
  965. <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
  966. <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
  967. <caption id="cap_bfrecuser" class="cell_1" style="left:239px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록자</caption>
  968. <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:322px; top:20px; width:98px; height:19px; "/>
  969. <caption id="cap_recdt" class="cell_1" style="left:424px; top:18px; width:80px; height:23px; vertical-align:middle; ">기록일시</caption>
  970. <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:507px; top:20px; width:100px; height:19px; "/>
  971. <input id="ipt_rectm" ref="/root/main/wardrecinfo/rectm" class="input_default" format="hh:nn" validateformat="true" style="left:610px; top:20px; width:50px; height:19px; "/>
  972. <caption id="cap_recuser" class="cell_1" style="left:663px; top:18px; width:80px; height:23px; vertical-align:middle; ">기록자</caption>
  973. <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:746px; top:20px; width:98px; height:19px; "/>
  974. <caption id="cap_infodnor" class="cell_1" style="left:847px; top:18px; width:80px; height:23px; vertical-align:middle; ">정보제공자</caption>
  975. <input id="ipt_infodnor" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:930px; top:20px; width:100px; height:19px; "/>
  976. <button id="btn_save" class="btn2_letter4" visibility="hidden" style="left:1062px; top:49px; width:64px; height:19px; ">
  977. <caption>임시저장</caption>
  978. <script type="javascript" ev:event="DOMActivate">
  979. <![CDATA[
  980. fPatgnrlInfo("T");
  981. if(submit("TXMND00301") == true) {
  982. grd_famyfact.clearStatus();
  983. model.setValue("/root/send/wardrecinfo", "");
  984. messageBox("저장이 ", "I001");
  985. } else {
  986. messageBox("저장에 실패하였습니다", "E");
  987. }
  988. ]]>
  989. </script>
  990. </button>
  991. <button id="button2" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
  992. <caption>인증저장</caption>
  993. <script type="javascript" ev:event="DOMActivate">
  994. <![CDATA[
  995. //var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  996. var instUseYN =""; //20100510 김홍점 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
  997. //가족사항 : 관계 필수 입력
  998. for(var i = 1 ; i < grd_famyfact.rows; i++) {
  999. var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
  1000. if(rela == "") {
  1001. messageBox("[가족사항 - 관계]는 필수 입력사항입니다.", "I");
  1002. return;
  1003. }
  1004. }
  1005. fPatgnrlInfo("C");
  1006. //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
  1007. if ( instUseYN =="Y"){
  1008. model.removenode('/root/temp/signdata');
  1009. if ( !ivw_edurec.window.javascript.fSave() ){
  1010. return;
  1011. }
  1012. var xEduRecPath = '/root/temp/signdata/edurecinfo';
  1013. fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "Y");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn 'Y' 이어야 퇴원교육요구도가 안보임.)
  1014. }
  1015. Sign.certreload = true ;
  1016. if (Sign.signprocess() == true){
  1017. //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
  1018. // alert("인증성공" );
  1019. // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
  1020. // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
  1021. // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
  1022. // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
  1023. // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
  1024. // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
  1025. var ioflag = model.getValue("/root/temp/cond/list/ioflag");
  1026. if(ioflag == "O") {
  1027. indd = model.getValue("/root/temp/cond/list/orddd");
  1028. } else {
  1029. indd = model.getValue("/root/temp/cond/list/indd");
  1030. }
  1031. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  1032. model.makeValue("/root/send/wardrecinfo/indd", indd);
  1033. model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/signinfo/signno")); //20090722_SMY변경
  1034. model.makeValue("/root/send/wardrecinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
  1035. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  1036. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  1037. model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
  1038. model.makeValue("/root/send/wardrecinfo/signflag", "02");
  1039. model.makeValue("/root/send/wardrecinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
  1040. model.makeValue("/root/send/wardrecinfo/formcd", "0000002437");
  1041. model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  1042. model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
  1043. model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
  1044. model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
  1045. model.makeValue("/root/send/wardrecinfo/wardcd", model.getValue("/root/temp/cond/list/wardcd"));
  1046. model.makeValue("/root/send/wardrecinfo/roomcd", model.getValue("/root/temp/cond/list/roomcd"));
  1047. model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
  1048. if(submit("TXMND00301") == true) {
  1049. grd_famyfact.clearStatus();
  1050. model.setValue("/root/send/wardrecinfo", "");
  1051. messageBox("저장이 ", "I001");
  1052. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  1053. fGetInitRecInfo(); //재조회
  1054. fInitEvent();
  1055. } else {
  1056. messageBox("저장에 실패하였습니다", "E");
  1057. }
  1058. }
  1059. ]]>
  1060. </script>
  1061. </button>
  1062. <select1 id="cmb_bfrecddtm" ref="/root/main/wardrecinfo/bfrecddtm" class="combo_default" navindex="16" appearance="minimal" style="left:83px; top:20px; width:155px; height:19px; ">
  1063. <choices>
  1064. <itemset nodeset="/root/hidden/paminfo/recinfo">
  1065. <label ref="bfrecddtm"/>
  1066. <value ref="recpkspec"/>
  1067. </itemset>
  1068. </choices>
  1069. <script type="javascript" ev:event="xforms-value-changed">
  1070. <![CDATA[
  1071. fChgRecHistInfo();
  1072. ]]>
  1073. </script>
  1074. </select1>
  1075. <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
  1076. <caption id="caption10" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
  1077. <caption id="caption1" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
  1078. <caption id="caption2" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
  1079. <caption id="caption3" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
  1080. <caption id="caption4" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
  1081. <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
  1082. <caption id="caption5" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
  1083. <caption id="caption7" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
  1084. <caption id="caption8" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
  1085. <caption id="caption9" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
  1086. </group>
  1087. <button id="button1" class="btn2_letter6" style="left:1040px; top:49px; width:86px; height:19px; ">
  1088. <caption>전체기록삭제</caption>
  1089. <script type="javascript" ev:event="DOMActivate">
  1090. <![CDATA[
  1091. setCareInfoDel("TXMND00301"); //CareCom.js
  1092. ]]>
  1093. </script>
  1094. </button>
  1095. </group>
  1096. <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
  1097. <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1098. </group>
  1099. </xhtml:body>
  1100. </xhtml:html>