SMARC01401_의뢰회송요약관리.xrw 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>의뢰.회송.진료요약관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <search>
  11. <fromdd/>
  12. <todd/>
  13. <orddeptcd/>
  14. <orddrid/>
  15. <stat>%</stat>
  16. <pid/>
  17. <hngnm/>
  18. <coophospnm/>
  19. <olddateyn/>
  20. <formcd>0000002536</formcd>
  21. <dayflag>A</dayflag>
  22. </search>
  23. <savedata/>
  24. <doctor/>
  25. <cond>
  26. <pid/>
  27. <orddd/>
  28. <cretno/>
  29. <seqno/>
  30. <formrecseq/>
  31. <orddeptcd/>
  32. <orddrid/>
  33. <oldyn/>
  34. <ssnnumber/>
  35. </cond>
  36. <adddata>outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩</adddata>
  37. <reqdocu/>
  38. <tmp/>
  39. </send>
  40. <main>
  41. <req_info>
  42. <req_pat_list>
  43. <stat/>
  44. <formrecdd/>
  45. <pid/>
  46. <hngnm/>
  47. <orddeptnm/>
  48. <orddrnm/>
  49. <orddd/>
  50. <cretno/>
  51. <acptseqno/>
  52. <seqno/>
  53. <orddeptcd/>
  54. <orddrid/>
  55. <formrecseq/>
  56. <age/>
  57. <sex/>
  58. <coophospnm/>
  59. <coophospcd/>
  60. <rsltcd/>
  61. <areacd/>
  62. <telno/>
  63. <faxno/>
  64. <resncd/>
  65. <enddd/>
  66. <reqcoophospnm/>
  67. <reqdrnm/>
  68. <reqdd/>
  69. <reqorddeptnm/>
  70. <reqorddrnm/>
  71. <reqorddd/>
  72. <reqcretno/>
  73. <reqacptseqno/>
  74. <reqseqno/>
  75. <reqflag/>
  76. <remfact/>
  77. <coopdrcd/>
  78. <fromdd/>
  79. <oldyn/>
  80. <status/>
  81. <wardnm/>
  82. <roomcd/>
  83. </req_pat_list>
  84. </req_info>
  85. <req_pat_info>
  86. <patinfo/>
  87. <basepatinfo/>
  88. </req_pat_info>
  89. <patinfo>
  90. <patinfolist/>
  91. </patinfo>
  92. <popupendflag/>
  93. <hospinfo>
  94. <hospinfolist/>
  95. </hospinfo>
  96. <hospflag/>
  97. <reqpopupflag/>
  98. <reqpopup>
  99. <reqpopuplist/>
  100. </reqpopup>
  101. <recinfo/>
  102. <sinfo/>
  103. </main>
  104. <init>
  105. <dept>
  106. </dept>
  107. <doctlist>
  108. <medispcl>
  109. <doctid/>
  110. <doctnm/>
  111. </medispcl>
  112. <atdoct>
  113. <doctid/>
  114. <doctnm/>
  115. </atdoct>
  116. </doctlist>
  117. <areacd>
  118. </areacd>
  119. <resncd>
  120. <A0437/>
  121. </resncd>
  122. <rsltcd>
  123. <A0438/>
  124. </rsltcd>
  125. <hardcd/>
  126. <mouserght>
  127. <label>개인정보동의서</label>
  128. <value>fOCRView</value>
  129. </mouserght>
  130. <mouserght>
  131. <label>발행이미지보기</label>
  132. <value>fViewimage</value>
  133. </mouserght>
  134. <resnable/>
  135. <dayflaglist>
  136. <label>발행일</label>
  137. <value>A</value>
  138. </dayflaglist>
  139. <dayflaglist>
  140. <label>완료일</label>
  141. <value>B</value>
  142. </dayflaglist>
  143. </init>
  144. <temp>
  145. <formhardcd/>
  146. </temp>
  147. </root>
  148. </instance>
  149. <script type="javascript" ev:event="xforms-ready">
  150. <![CDATA[
  151. fInit();
  152. ]]>
  153. </script>
  154. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  155. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  156. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  157. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  158. <submission id="TRMRF02001" mediatype="application/x-www-form-urlencoded" method="post"/>
  159. <submission id="TRMMR01301" mediatype="application/x-www-form-urlencoded" method="post"/>
  160. <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
  161. <submission id="TRARC01411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/req_info"/>
  162. <submission id="TRARC01412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_info"/>
  163. <submission id="TXARC01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  164. <!--<submission id="TXARC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root"/>-->
  165. <submission id="TXARC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  166. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  167. <submission id="TRARC01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_addinfo"/>
  168. <submission id="TRMRF03104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hardcdlist"/>
  169. </model>
  170. </xhtml:head>
  171. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  172. <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
  173. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  174. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  175. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  176. <script src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
  177. <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
  178. <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
  179. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  180. <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
  181. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  182. <script type="javascript" src="../../../emr/medirecweb/js/MMR02900.js"/>
  183. <!--script type="javascript" src="../../../ast/healcarecoopweb/js/SMARC01400.js"/-->
  184. <script type="javascript">
  185. <![CDATA[
  186. /**
  187. * 하드코드 조회
  188. *
  189. * @param
  190. * ref reference path
  191. * rsltref result reference path
  192. * hardcd - 하드코드
  193. */
  194. function mmbfGetHardCodeInfo(ref, rsltref, hardcd){
  195. var mmb_rsltref = "/root/hidden/mmb/hardcd";
  196. model.removeNode(mmb_rsltref);
  197. model.makeNode(mmb_rsltref);
  198. model.removeNode(ref);
  199. model.makeValue(ref + "/hardcd", hardcd);
  200. if(submit("TRMMB04103", "false", ref, mmb_rsltref)==true){
  201. model.copyNode(rsltref, mmb_rsltref); model.removeNode(mmb_rsltref);
  202. }
  203. model.refresh();
  204. }
  205. // 초기값
  206. function fInit()
  207. {
  208. mmbfGetHardCodeInfo("/root/send/formhrdcd", "/root/temp/formhardcd", 1300); // 전원의뢰팝업 사용여부
  209. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
  210. {
  211. button2.visible = true;
  212. }
  213. iviewer1.window.javascript.fInitPage(false, false, parseInt(iviewer1.attribute("height")));
  214. // 오늘 날짜로 세팅
  215. var CurrentDate = getCurrentDate();
  216. model.setValue("/root/send/search/fromdd", CurrentDate);
  217. model.setValue("/root/send/search/todd", CurrentDate);
  218. // 공통코드 목록 가져오기
  219. zbcfGetCodeList(new Array("A0439", "A0438", "A0426"), new Array("/root/init/resncd", "/root/init/rsltcd", "/root/init/areacd") , true);
  220. // 유형코드 가져오기
  221. zbcfGetKindCodeList(
  222. new Array("A0014"),
  223. new Array("A0426"),
  224. new Array("/root/init/areacd"),
  225. true,
  226. new Array(""),
  227. new Array("")
  228. );
  229. // 진료과
  230. //var instcd = "012";
  231. var instcd = getUserInfo("dutplceinstcd");
  232. //var standard_yn = "orduseyn";
  233. var standard_yn = "rcptuseyn";
  234. var ord_deptflag = 'D';
  235. var rslt_ref = "/root/init/dept";
  236. var sort_method = "depthngnm";
  237. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  238. sort_field = "depthngnm"
  239. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  240. addComboItem("cmb_orddeptcd", "", "", "above");
  241. fDoctSerach();
  242. model.removeNodeset("/root/main/req_info/req_pat_list");
  243. model.resetInstanceNode("/root/main/req_pat_info/patinfo/patinfo");
  244. model.refresh();
  245. }
  246. // 진료의사 조회
  247. function fDoctSerach()
  248. {
  249. // 진료의사
  250. model.removenode("/root/send/doctor");
  251. model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
  252. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  253. submit("TRARC01302", false);
  254. cmb_orddrid.select(0);
  255. //model.setValue("/root/main/patient/orddrid", orddrid);
  256. }
  257. // 조회전 필수 체크
  258. function fCheckDateSend()
  259. {
  260. var fromdd = model.getValue("/root/send/search/fromdd");
  261. var todd = model.getValue("/root/send/search/todd");
  262. var pid = model.getValue("/root/send/search/pid");
  263. var olddateyn = model.getValue("/root/send/search/olddateyn");
  264. if (isNull(pid) == true)
  265. {
  266. if (olddateyn != "Y")
  267. {
  268. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  269. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  270. return false;
  271. }
  272. if( getDateInterval(fromdd, todd) > 7 ){
  273. messageBox("조회가능한 최대 기간은 7일입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  274. return false;
  275. }
  276. if( getDateInterval(fromdd, todd) < 0 ){
  277. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  278. return false;
  279. }
  280. // 날짜 계산
  281. var daycnt = getDateInterval(fromdd, todd);
  282. // 1일이 아닌 경우는 조건을 타야 함
  283. if (daycnt != 0)
  284. {
  285. // 진료과 체크
  286. // if (model.getValue("/root/send/search/orddeptcd") == "")
  287. // {
  288. // messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  289. // //messageBox("진료과를 ","C002");
  290. // return false;
  291. // }
  292. if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
  293. messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  294. model.setFocus("ipt_hngnm");
  295. return false;
  296. }
  297. if (ipt_rumint.currentText.length > 0 && ipt_rumint.currentText.length < 2) {
  298. messageBox("전원의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
  299. model.setFocus("ipt_rumint");
  300. return false;
  301. }
  302. }
  303. }
  304. }
  305. return true;
  306. }
  307. //조회
  308. function fSearch()
  309. {
  310. model.resetInstanceNode("/root/main/req_pat_info/patinfo");
  311. iviewer1.src = "../../../emr/medirecweb/xrw/SMMMR00000_Empty.xrw";
  312. submit("TRARC01411", false);
  313. }
  314. // 저장전 필수 체크
  315. function fCheckDate()
  316. {
  317. if (model.getValue("/root/main/req_pat_info/basepatinfo/pid") == "") {
  318. messageBox("저장하고자 하는 환자를", "C002");
  319. return false;
  320. }
  321. var hopedd = model.getValue("/root/main/req_pat_info/patinfo/hopedd");
  322. var hopetm = model.getValue("/root/main/req_pat_info/patinfo/hopetm");
  323. if ( hopedd != "" ) {
  324. if ( hopetm == "" ) {
  325. messageBox("예약희망시분을 입력하시기 바랍니다", "C");
  326. return false;
  327. }
  328. }
  329. // if (model.getValue("/root/main/req_pat_info/patinfo/ncrsn") == "") {
  330. // messageBox("비임상적사유가 선택되지 않았습니다", "I");
  331. // return false;
  332. // }
  333. //
  334. // if (model.getValue("/root/main/req_pat_info/patinfo/crsn") == "") {
  335. // messageBox("임상적사유가 선택되지 않았습니다", "I");
  336. // return false;
  337. // }
  338. //
  339. // if (model.getValue("/root/main/req_pat_info/patinfo/reqaflag") == "") {
  340. // messageBox("회송유형 선택되지 않았습니다", "I");
  341. // return false;
  342. // }
  343. //
  344. // if (model.getValue("/root/main/req_pat_info/patinfo/enddd") == "") {
  345. // messageBox("전원의뢰완료일이 선택되지 않았습니다", "I");
  346. // return false;
  347. // }
  348. if (model.getValue("/root/main/req_pat_info/patinfo/stat") == "4") {
  349. messageBox("전송완료된 건은 저장할 수 없습니다","I");
  350. return false;
  351. }
  352. return true;
  353. }
  354. //기본값세팅
  355. function fSetDefault() {
  356. model.setValue("/root/main/req_pat_info/patinfo/reqacnfmnm",getUserInfo("usernm"));
  357. var ioflag = model.getValue("/root/main/req_info/req_pat_list[" + grd_list.row + "]/chosflag");
  358. if (ioflag == "I") {
  359. var bizflag = "I";
  360. }
  361. else {
  362. var bizflag = "O";
  363. }
  364. model.setValue("/root/main/req_pat_info/patinfo/bizflag",bizflag);
  365. model.refresh();
  366. }
  367. // 저장
  368. function fSave()
  369. {
  370. model.removeNodeset("/root/send/savedata");
  371. model.resetInstanceNode("/root/send/savedata");
  372. copyNodeset("/root/send/savedata/reqainfo","/root/main/req_pat_info/patinfo");
  373. // model.removeNodeset("/root/send/savedata/rsltlist");
  374. // model.removeNodeset("/root/send/savedata/prcplist");
  375. // model.removeNodeset("/root/send/savedata/dglist");
  376. //
  377. // if ( model.getValue("/root/send/tmp/rsltlist") != "") {
  378. // model.makeValue("/root/send/savedata/rsltlist", model.getValue("/root/send/tmp/rsltlist"));
  379. // }
  380. // if ( model.getValue("/root/send/tmp/prcplist") != "") {
  381. // model.makeValue("/root/send/savedata/prcplist", model.getValue("/root/send/tmp/prcplist"));
  382. // }
  383. // if ( model.getValue("/root/send/tmp/dglist") != "") {
  384. // model.makeValue("/root/send/savedata/dglist", model.getValue("/root/send/tmp/dglist"));
  385. // }
  386. if (submit("TXARC01403", false) == true)
  387. {
  388. fSearch();
  389. }
  390. else
  391. {
  392. messageBox("저장에", "E009");
  393. }
  394. }
  395. // 전원의뢰 환자 삭제
  396. function fReqAgnPatDelete(){
  397. if (grd_list.rows <= 1) return;
  398. if (grd_list.row < 1) return;
  399. var lrow = grd_list.row;
  400. var stat = model.getValue("/root/main/req_info/req_pat_list["+lrow+"]/stat");
  401. if(stat == "3"){
  402. messageBox("완료 상태의 데이터는 삭제할 수 없습니다.", "E999", "");
  403. return;
  404. }
  405. if(messageBox("해당 데이터를", "Q001")== "6")
  406. {
  407. //초기 정보 셋팅
  408. model.resetInstanceNode("/root/send/cond");
  409. model.setValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  410. model.setValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
  411. model.setValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  412. model.setValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
  413. model.setValue("/root/send/cond/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
  414. model.setValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  415. model.setValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  416. model.setValue("/root/send/cond/oldyn", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn"));
  417. if (submit("TRARC01402", false) == true)
  418. {
  419. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "")
  420. {
  421. model.setValue("/root/main/req_pat_info/patinfo/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  422. model.setValue("/root/main/req_pat_info/patinfo/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
  423. model.setValue("/root/main/req_pat_info/patinfo/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
  424. model.setValue("/root/main/req_pat_info/patinfo/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
  425. model.setValue("/root/main/req_pat_info/patinfo/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
  426. model.setValue("/root/main/req_pat_info/patinfo/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  427. model.setValue("/root/main/req_pat_info/patinfo/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
  428. model.setValue("/root/main/req_pat_info/patinfo/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
  429. model.setValue("/root/main/req_pat_info/patinfo/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  430. model.setValue("/root/main/req_pat_info/patinfo/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  431. model.setValue("/root/main/req_pat_info/patinfo/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
  432. model.setValue("/root/main/req_pat_info/patinfo/status", "i");
  433. }
  434. mmbfGetHardCodeInfo("/root/send/formhrdcd", "/root/temp/formhardcd", 1300); // 전원의뢰팝업 사용여부
  435. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
  436. {
  437. if (submit("TRARC01403", false) == true)
  438. {
  439. //fSetPopup();
  440. }
  441. }
  442. }
  443. model.setValue("/root/send/adddata","outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩");
  444. // 초기 정보 셋팅 완료
  445. //되의뢰/전원구분 설정(C:전원)
  446. //되의뢰완료일 설정
  447. model.setValue("/root/main/req_pat_info/patinfo/reqflag", "C");
  448. var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
  449. //되의뢰
  450. if (enddd == "")
  451. {
  452. model.setValue("/root/main/req_pat_info/patinfo/enddd", "00000000");
  453. //enddd = "00000000";
  454. }
  455. model.resetInstanceNode("/root/send/savedata");
  456. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
  457. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
  458. {
  459. var originNode = findNode(model, "/root/send/savedata");
  460. var copyNode = findNode(model, "/root/send/adddata");
  461. originNode.appendChild(copyNode);
  462. model.makeValue("/root/send/savedata/popup", "Y");
  463. }
  464. else
  465. model.makeValue("/root/send/savedata/popup", "N");
  466. model.makeValue("/root/send/savedata/delyn", "Y");
  467. if (submit("TXARC01401", false) == true)
  468. {
  469. model.removenode("/root/main/req_info/req_pat_list[" + lrow + "]");
  470. model.resetInstanceNode("/root/main/req_pat_info/patinfo");
  471. iviewer1.src = "../../../emr/medirecweb/xrw/SMMMR00000_Empty.xrw";
  472. model.refresh();
  473. grd_list.refresh();
  474. }
  475. else
  476. {
  477. messageBox("삭제에", "E009");
  478. }
  479. }
  480. }
  481. // 삭제
  482. function fDelete()
  483. {
  484. if (grd_list.rows <= 1) return;
  485. if (grd_list.row < 1) return;
  486. // 데이터 삭제시
  487. if(messageBox("해당 데이터를", "Q001")== "6")
  488. {
  489. if (isNull(cmb_confflag.value) == true)
  490. {
  491. messageBox("구분", "C001");
  492. model.setFocus("cmb_flag");
  493. return;
  494. }
  495. if (isNull(ipt_confdd.value) == true)
  496. {
  497. messageBox("등록일자를", "C001");
  498. model.setFocus("ipt_confdd");
  499. return;
  500. }
  501. model.setValue("/root/send/savedata/status", "d");
  502. if (submit("TXARC01401") == true)
  503. {
  504. fSearch();
  505. }
  506. else
  507. {
  508. messageBox("삭제에", "E009");
  509. }
  510. }
  511. else
  512. {
  513. return;
  514. }
  515. }
  516. // 병원 팝업
  517. function fHospPopup()
  518. {
  519. clearParameter("SPARH00510_RETURN_organizationoid");
  520. clearParameter("SPARH00510_RETURN_organizationid");
  521. clearParameter("SPARH00510_RETURN_organizationname");
  522. clearParameter("SPARH00510_RETURN_telecom");
  523. clearParameter("SPARH00510_RETURN_postalcode");
  524. clearParameter("SPARH00510_RETURN_address");
  525. clearParameter("SPARH00510_RETURN_departmentcode");
  526. clearParameter("SPARH00510_RETURN_departmentname");
  527. clearParameter("SPARH00510_RETURN_flag");
  528. modal("SPARH00510", 1,10, 10, "SPARH00200", "", "");
  529. model.makeValue("/root/main/req_pat_info/patinfo/organizationname", getParameter("SPARH00510_RETURN_organizationname"));
  530. model.makeValue("/root/main/req_pat_info/patinfo/organizationid", getParameter("SPARH00510_RETURN_organizationid"));
  531. model.makeValue("/root/main/req_pat_info/patinfo/departmentname", getParameter("SPARH00510_RETURN_departmentname"));
  532. model.makeValue("/root/main/req_pat_info/patinfo/departmentcode", getParameter("SPARH00510_RETURN_departmentcode"));
  533. model.makeValue("/root/main/req_pat_info/patinfo/organizationtelecom", getParameter("SPARH00510_RETURN_telecom"));
  534. model.makeValue("/root/main/req_pat_info/patinfo/organizationstreetaddress", getParameter("SPARH00510_RETURN_address"));
  535. model.refresh();
  536. }
  537. // 의뢰환자 정보 Popup
  538. function fReqPatPopup()
  539. {
  540. var pid = setParameter("pid", model.getValue("/root/main/req_pat_info/patinfo/pid")); //팝업 등록화면의 교육명에 값 가져가기
  541. if (isNull(opt_pid.value) == true)
  542. {
  543. messageBox("등록일자를", "C001");
  544. model.setFocus("opt_pid");
  545. return;
  546. }
  547. model.setValue("/root/main/reqpopupflag", "N");
  548. modal("SPARC02100", 1,10, 10, "SPARC02100", "", "");
  549. if( model.getValue("/root/main/reqpopupflag") == "Y" )
  550. {
  551. //alert(model.getValue("/root/main/reqpopupflag"));
  552. model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", model.getValue("/root/main/reqpopup/reqpopuplist/coophospnm"));
  553. model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", model.getValue("/root/main/reqpopup/reqpopuplist/drnm"));
  554. model.setValue("/root/main/req_pat_info/patinfo/reqdd", model.getValue("/root/main/reqpopup/reqpopuplist/reqdd"));
  555. model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddeptnm"));
  556. model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddrnm"));
  557. model.setValue("/root/main/req_pat_info/patinfo/reqorddd", model.getValue("/root/main/reqpopup/reqpopuplist/orddd"));
  558. model.setValue("/root/main/req_pat_info/patinfo/reqcretno", model.getValue("/root/main/reqpopup/reqpopuplist/cretno"));
  559. model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", model.getValue("/root/main/reqpopup/reqpopuplist/acptseqno"));
  560. model.setValue("/root/main/req_pat_info/patinfo/reqseqno", model.getValue("/root/main/reqpopup/reqpopuplist/seqno"));
  561. model.setValue("/root/main/req_pat_info/patinfo/reqpseqno", model.getValue("/root/main/reqpopup/reqpopuplist/reqpseqno"));
  562. model.refresh();
  563. }
  564. }
  565. function fReqAgnInfo()
  566. {
  567. if (grd_list.rows <= 0) return;
  568. if (grd_list.row < 0) return;
  569. //그리드에서 해당 환자 선택
  570. var idxRow = grd_list.row;
  571. var pid = model.getValue("/root/main/req_pat_list["+idxRow+"]/pid");
  572. var hngnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/hngnm");
  573. var orddd = model.getValue("/root/main/req_pat_list["+idxRow+"]/orddd");
  574. var deptnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/deptnm");
  575. var atdoctnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/atdoctnm");
  576. model.setValue("/root/main/req_pat_info/patinfo/pid", pid);
  577. model.setValue("/root/main/req_pat_info/patinfo/hngnm", hngnm);
  578. model.setValue("/root/main/req_pat_info/patinfo/orddd", orddd);
  579. model.setValue("/root/main/req_pat_info/patinfo/deptnm", deptnm);
  580. model.setValue("/root/main/req_pat_info/patinfo/atdoctnm", atdoctnm);
  581. model.refresh();
  582. }
  583. // 등록번호 조회 팝업
  584. function fPatPopUp()
  585. {
  586. model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
  587. model.makeValue("/root/temp/srchcond","1");
  588. model.makeValue("/root/temp/autoflag","N");
  589. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
  590. //model.resetInstanceNode("/root/main/patinfo/patinfolist");
  591. //model.resetInstanceNode("/root/send/cond");
  592. if (model.getValue("/root/main/popupendflag") == "ok")
  593. {
  594. model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  595. model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  596. }
  597. //fHistSearch();
  598. model.refresh();
  599. }
  600. // 전원의뢰 리스트 선택
  601. function fGrdClick()
  602. {
  603. if (grd_list.rows <= 1) return;
  604. if (grd_list.row < 1) return;
  605. var lrow = grd_list.row;
  606. if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
  607. {
  608. //fBiztrgtClick();
  609. }
  610. else
  611. {
  612. return;
  613. }
  614. model.resetInstanceNode("/root/send/cond");
  615. model.makeValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  616. model.makeValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
  617. model.makeValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  618. model.makeValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
  619. model.makeValue("/root/send/cond/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
  620. model.makeValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  621. model.makeValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  622. model.makeValue("/root/send/cond/oldyn", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn"));
  623. model.makeValue("/root/send/cond/ssnnumber", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/ssnnumber"));
  624. //환자기본정보 및 환자의뢰,회송,요약정보 가져오기
  625. submit("TRARC01412", false);
  626. var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
  627. if ( enddd == "" || enddd == null) {
  628. model.makeValue("/root/main/req_pat_info/patinfo/enddd",getCurrentDate());
  629. }
  630. iviewer1.src= "../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw";
  631. iviewer1.window.javascript.fInitPage(false, false, parseInt(iviewer1.attribute("height")), parseInt(iviewer1.attribute("width")));
  632. // 서식 로드
  633. var formrecseq = model.getValue("/root/send/cond/formrecseq");
  634. //alert(formrecseq);
  635. iviewer1.window.javascript.fLoadRecForm(formrecseq, false);
  636. model.setValue("/root/send/adddata","outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩");
  637. model.refresh();
  638. }
  639. // 의뢰정보 삭제
  640. function fReqDel()
  641. {
  642. /*
  643. opt_reqcoophospnm.value = "";
  644. opt_reqdrnm.value = "";
  645. opt_reqdd.value = "";
  646. opt_reqorddeptnm.value = "";
  647. opt_reqorddrnm.value = "";
  648. */
  649. var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
  650. model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", "");
  651. model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", "");
  652. model.setValue("/root/main/req_pat_info/patinfo/reqdd", "");
  653. model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", "");
  654. model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", "");
  655. model.setValue("/root/main/req_pat_info/patinfo/reqorddd", "");
  656. model.setValue("/root/main/req_pat_info/patinfo/reqcretno", "0");
  657. model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", "0");
  658. model.setValue("/root/main/req_pat_info/patinfo/reqseqno", "0");
  659. model.setValue("/root/main/req_pat_info/patinfo/reqpseqno", "");
  660. model.refresh();
  661. }
  662. // 전원의뢰 정보 삭제
  663. function fReqAgnDel()
  664. {
  665. var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
  666. model.setValue("/root/main/req_pat_info/patinfo/coophospnm", "");
  667. model.setValue("/root/main/req_pat_info/patinfo/rsltcd", "");
  668. model.setValue("/root/main/req_pat_info/patinfo/areacd", "");
  669. model.setValue("/root/main/req_pat_info/patinfo/telno", "");
  670. model.setValue("/root/main/req_pat_info/patinfo/faxno", "");
  671. model.setValue("/root/main/req_pat_info/patinfo/resncd", "");
  672. model.setValue("/root/main/req_pat_info/patinfo/enddd", "");
  673. model.setValue("/root/main/req_pat_info/patinfo/coophospcd", "");
  674. model.refresh();
  675. }
  676. // 출력
  677. function fReplcheck()
  678. {
  679. var currow = grd_list.row;
  680. var sREPLDOCULIST_PATH = "/root/main/req_pat_info/patinfo";
  681. var formrecseq = model.getValue(sREPLDOCULIST_PATH+"/formrecseq")
  682. var pid = model.getValue(sREPLDOCULIST_PATH+"/pid")
  683. if (pid == "")
  684. {
  685. messageBox("저장하고자 하는 환자를", "C002");
  686. return;
  687. }
  688. var ivwCtrl = iviewer1.window.document.controls("ivw_base");
  689. copyNodeset("/root/main/recinfo", "/root/main/recinfo", "replace", model, ivwCtrl.model); //서식지 정보 설정
  690. model.makeValue("/root/hidden/docinfo/signimge", ivwCtrl.model.getValue("/root/hidden/docinfo/signimge")); //서식서명이미지 설정
  691. setParameter("reportprintyn", "");
  692. exeReportPreview("RFM1111397", "XMLSTR");
  693. model.refresh();
  694. }
  695. /**
  696. * 단어에 특정 문자 제거
  697. *
  698. * @param
  699. * word 단어
  700. * ch 문자
  701. */
  702. function removeChar(word, ch){
  703. var temp = "";
  704. var res = "";
  705. var len = word.length
  706. for(i = 0; i < len; i++){
  707. temp = word.charAt(i);
  708. if(temp == ch){
  709. continue;
  710. }else{
  711. res += temp;
  712. }
  713. }
  714. return res;
  715. }
  716. /**
  717. * 단어에 step간격 특정 문자 삽입
  718. *
  719. * @param
  720. * word 단어
  721. * ch 문자
  722. * step 간격
  723. */
  724. function insertChar(word, ch, step){
  725. var temp = "";
  726. var res = "";
  727. var cnt = 0;
  728. var len = word.length;
  729. for(i = 0; i < len; i++){
  730. cnt++;
  731. temp = word.charAt(i);
  732. if(cnt % step == 0 && cnt != len){
  733. temp = temp + ch;
  734. }
  735. res += temp;
  736. }
  737. return res;
  738. }
  739. function fSize() {
  740. var text = button4.attribute("text") ;
  741. var pid = model.getValue("/root/main/req_pat_info/basepatinfo/pid");
  742. if (text == "확대") {
  743. button4.attribute("text") = "축소";
  744. group6.attribute("top") = 0;
  745. group6.attribute("height") = 733 ;
  746. iviewer1.attribute("height") ="705";
  747. if (pid != "" ) {
  748. iviewer1.ivw_base.attribute("height") ="703";
  749. }
  750. }
  751. else {
  752. button4.attribute("text") = "확대";
  753. group6.attribute("top") = 305;
  754. group6.attribute("height") = 428 ;
  755. iviewer1.attribute("height") ="400";
  756. if (pid != "" ) {
  757. iviewer1.ivw_base.attribute("height") ="398";
  758. }
  759. }
  760. }
  761. //개인정보동의서보기
  762. function fOCRView() {
  763. var lrow = grd_list.selectedRow(0);
  764. var pid = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid");
  765. model.makeValue("/root/send/iemr/pid", pid);
  766. model.makeValue("/root/send/iemr/docucd", "1100011224");
  767. if(window.children.item("imgemrviewer") == null)
  768. {
  769. window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  770. }
  771. else
  772. {
  773. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  774. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  775. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  776. // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  777. window.children.item("imgemrviewer").modelesstopmost = true;
  778. window.children.item("imgemrviewer").modelesstopmost = false;
  779. }
  780. }
  781. function fViewimage() {
  782. var lrow = grd_list.selectedRow(0);
  783. var pid = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid");
  784. model.makeValue("/root/send/iemr/pid", pid);
  785. model.makeValue("/root/send/iemr/docucd", "1100011397");
  786. if(window.children.item("imgemrviewer") == null)
  787. {
  788. window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  789. }
  790. else
  791. {
  792. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  793. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  794. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  795. // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  796. window.children.item("imgemrviewer").modelesstopmost = true;
  797. window.children.item("imgemrviewer").modelesstopmost = false;
  798. }
  799. }
  800. function fTrans() {
  801. model.resetInstanceNode("/root/send/savedata");
  802. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
  803. model.makeValue("/root/send/savedata/prntflag", "Y");
  804. if (submit("TXARC01403", false) == true)
  805. {
  806. fSearch();
  807. }
  808. else
  809. {
  810. messageBox("전송시 에러", "E");
  811. }
  812. }
  813. function fCnclTrans() {
  814. model.resetInstanceNode("/root/send/savedata");
  815. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
  816. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y") {
  817. var originNode = findNode(model, "/root/send/savedata");
  818. var copyNode = findNode(model, "/root/send/adddata");
  819. originNode.appendChild(copyNode);
  820. model.makeValue("/root/send/savedata/popup", "Y");
  821. }
  822. else {
  823. model.makeValue("/root/send/savedata/popup", "N");
  824. }
  825. model.makeValue("/root/send/savedata/prntflag", "N");
  826. if (submit("TXARC01401", false) == true)
  827. {
  828. fSearch();
  829. }
  830. else
  831. {
  832. messageBox("전송취소시 에러", "E");
  833. }
  834. }
  835. function fPop(){
  836. if(isDataCell()){
  837. setPopupMenu("grd_list", false, "/root/init/mouserght", "label", "value");
  838. } else {
  839. initPopupMenu();
  840. }
  841. }
  842. function fShowDetl() {
  843. model.removeNodeset("/root/send/tmp/rsltlist");
  844. model.removeNodeset("/root/send/tmp/prcplist");
  845. model.removeNodeset("/root/send/tmp/dglist");
  846. model.makeNode("/root/send/tmp/rsltlist"); // 결과정보
  847. model.makeNode("/root/send/tmp/prcplist"); // 처방정보
  848. model.makeNode("/root/send/tmp/dglist"); // 진단정보(HIE)
  849. modal("SPARC01402", "1", "0", "0" ,"SPARC01402", "/root/main/req_pat_info/patinfo", "/root/main/req_pat_info/patinfo");
  850. }
  851. function fPrintOcrConsent(flag) {
  852. // 전자동의서 모듈 호출
  853. if ( flag == "A" ) {
  854. // 공통 파라미터 세팅
  855. setParameter("SSMRC03160_param_instcd", getUserInfo("dutplceinstcd"));
  856. setParameter("SSMRC03160_param_patid", model.getValue("/root/main/req_pat_info/patinfo/pid"));
  857. setParameter("SSMRC03160_param_indate", model.getValue("/root/main/req_pat_info/patinfo/orddd"));
  858. setParameter("SSMRC03160_param_cretno", model.getValue("/root/main/req_pat_info/patinfo/cretno"));
  859. setParameter("SSMRC03160_param_class", model.getValue("/root/main/req_pat_info/patinfo/ordtype"));
  860. setParameter("SSMRC03160_param_flag", "G");
  861. setParameter("SSMRC03160_param_docucd", "1600018717");
  862. setParameter("SSMRC03160_param_cuser", getUserInfo("userid"));
  863. modal("SSMRC03160");
  864. return getParameter("SSMRC03160_param_rtnocrtag");
  865. }
  866. else if(flag == "B" ) {
  867. // 공통 파라미터 세팅
  868. setParameter("SMARH01100_param_patid", model.getValue("/root/main/req_pat_info/patinfo/pid"));
  869. setParameter("SMARH01100_param_indate", model.getValue("/root/main/req_pat_info/patinfo/orddd"));
  870. setParameter("SMARH01100_param_cretno", model.getValue("/root/main/req_pat_info/patinfo/cretno"));
  871. setParameter("SMARH01100_param_class", model.getValue("/root/main/req_pat_info/patinfo/ordtype"));
  872. setParameter("SMARH01100_param_formrecseq", model.getValue("/root/main/req_pat_info/patinfo/formrecseq"));
  873. setParameter("SMARH01100_param_flag", "G");
  874. modal("SMARH01100");
  875. }
  876. }
  877. ]]>
  878. </script>
  879. <xhtml:body pagewidth="1265" pageheight="820" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  880. <caption id="caption6" class="tit_1" style="left:0px; top:1px; width:230px; height:13px; ">의뢰.회송.진료요약관리</caption>
  881. <group id="group2" style="left:515px; top:20px; width:725px; height:740px; ">
  882. <line id="line72" class="line_1" style="x1:5px; y1:18px; x2:709px; y2:17px; "/>
  883. <caption id="caption112" class="tit_2" style="left:5px; top:1px; width:116px; height:13px; ">환자기본정보</caption>
  884. <caption id="caption96" class="cell_1" style="left:210px; top:20px; width:50px; height:23px; vertical-align:middle; ">성명</caption>
  885. <caption id="caption76" class="cell_1" style="left:5px; top:21px; width:100px; height:23px; vertical-align:middle; ">등록번호</caption>
  886. <caption id="caption77" class="cell_1" style="left:410px; top:21px; width:95px; height:23px; vertical-align:middle; ">성별/나이/HP</caption>
  887. <caption id="caption12" class="cell_1" style="left:210px; top:47px; width:50px; height:24px; vertical-align:middle; ">진료과</caption>
  888. <caption id="caption4" class="cell_1" style="left:5px; top:47px; width:100px; height:24px; vertical-align:middle; ">진료일자</caption>
  889. <caption id="caption16" class="cell_1" style="left:365px; top:47px; width:50px; height:24px; vertical-align:middle; ">주치의</caption>
  890. <line id="line44" class="line_2" style="x1:5px; y1:45px; x2:709px; y2:45px; "/>
  891. <button id="button5" class="icon_search" style="left:335px; top:105px; width:16px; height:16px; ">
  892. <caption/>
  893. <script type="javascript" ev:event="DOMActivate">
  894. <![CDATA[
  895. fHospPopup();
  896. ]]>
  897. </script>
  898. </button>
  899. <caption id="caption20" class="cell_1" style="left:5px; top:100px; width:100px; height:23px; vertical-align:middle; ">병원명/부서명</caption>
  900. <caption id="caption45" class="cell_1" style="left:5px; top:125px; width:100px; height:23px; vertical-align:middle; ">예약희망일시</caption>
  901. <caption id="caption52" class="cell_1" style="left:530px; top:100px; width:60px; height:23px; vertical-align:middle; ">전화번호</caption>
  902. <caption id="caption7" class="cell_1" style="left:5px; top:150px; width:100px; height:57px; vertical-align:middle; ">예약관련내용</caption>
  903. <caption id="caption8" class="cell_1" style="left:210px; top:277px; width:95px; height:23px; vertical-align:middle; ">전원의뢰완료일</caption>
  904. <line id="line17" class="line_3" style="x1:5px; y1:301px; x2:709px; y2:301px; "/>
  905. <line id="line6" class="line_3" style="x1:5px; y1:72px; x2:709px; y2:72px; "/>
  906. <caption id="caption21" class="tit_2" style="left:5px; top:80px; width:116px; height:13px; ">수신기관정보</caption>
  907. <line id="line9" class="line_1" style="x1:5px; y1:97px; x2:709px; y2:96px; "/>
  908. <output id="opt_pid" ref="/root/main/req_pat_info/basepatinfo/pid" class="output_fix" appearance="output" style="left:107px; top:22px; width:100px; height:19px; text-align:center; "/>
  909. <output id="opt_hngnm" ref="/root/main/req_pat_info/basepatinfo/hngnm" class="output_fix" appearance="output" style="left:262px; top:22px; width:63px; height:19px; "/>
  910. <output id="opt_age" ref="/root/main/req_pat_info/basepatinfo/age" class="output_fix" appearance="output" style="left:559px; top:22px; width:26px; height:19px; text-align:right; "/>
  911. <output id="opt_orddd" ref="/root/main/req_pat_info/patinfo/orddd" class="output_fix" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:107px; top:49px; width:100px; height:19px; text-align:center; "/>
  912. <output id="opt_orddeptnm" ref="/root/main/req_pat_info/basepatinfo/orddeptnm" class="output_fix" appearance="output" style="left:262px; top:49px; width:100px; height:19px; "/>
  913. <output id="opt_orddrnm" ref="/root/main/req_pat_info/basepatinfo/orddrnm" class="output_fix" appearance="output" style="left:417px; top:49px; width:70px; height:19px; "/>
  914. <output id="opt_coophospnm" ref="/root/main/req_pat_info/patinfo/organizationname" class="output_fix" appearance="output" style="left:107px; top:102px; width:143px; height:19px; "/>
  915. <output id="opt_telno" ref="/root/main/req_pat_info/patinfo/organizationtelecom" class="output_fix" disabled="true" appearance="output" style="left:592px; top:102px; width:118px; height:19px; "/>
  916. <input id="ipt_enddd" ref="/root/main/req_pat_info/patinfo/enddd" class="input_default" inputtype="date" style="left:307px; top:279px; width:110px; height:19px; "/>
  917. <line id="line3" class="line_2" style="x1:5px; y1:275px; x2:709px; y2:275px; "/>
  918. <output id="opt_rumint" ref="/root/main/req_pat_info/patinfo/departmentname" class="output_fix" appearance="output" style="left:355px; top:102px; width:126px; height:19px; "/>
  919. <caption id="caption29" class="cell_1" style="left:5px; top:277px; width:100px; height:23px; vertical-align:middle; ">본원담당자</caption>
  920. <input id="input2" ref="/root/main/req_pat_info/patinfo/reqacnfmnm" style="left:107px; top:279px; width:100px; height:19px; "/>
  921. <caption id="caption30" class="cell_1" style="left:275px; top:126px; width:60px; height:23px; vertical-align:middle; ">진료구분</caption>
  922. <select1 id="combo1" ref="/root/main/req_pat_info/patinfo/bizflag" appearance="minimal" style="left:337px; top:127px; width:63px; height:19px; ">
  923. <choices>
  924. <item>
  925. <label>입원</label>
  926. <value>I</value>
  927. </item>
  928. <item>
  929. <label>외래</label>
  930. <value>O</value>
  931. </item>
  932. </choices>
  933. </select1>
  934. <group id="group6" style="left:0px; top:305px; width:720px; height:428px; ">
  935. <line id="line4" class="line_1" style="x1:5px; y1:22px; x2:710px; y2:21px; "/>
  936. <iviewer id="iviewer1" src="../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw" style="left:5px; top:25px; width:705px; height:400px; border-style:sunken; "/>
  937. <button id="button11" class="btn2_letter4" style="left:48px; top:0px; width:64px; height:19px; ">
  938. <caption>상세정보</caption>
  939. <script type="javascript" ev:event="DOMActivate">
  940. <![CDATA[
  941. messageBox("업무정리 후 사용하실 수 있습니다","I");
  942. return;
  943. fShowDetl();
  944. ]]>
  945. </script>
  946. </button>
  947. <button id="button4" class="btn2_letter2" style="left:5px; top:0px; width:42px; height:19px; ">
  948. <caption>확대</caption>
  949. <script type="javascript" ev:event="DOMActivate">
  950. <![CDATA[
  951. fSize();
  952. ]]>
  953. </script>
  954. </button>
  955. </group>
  956. <caption id="caption34" class="cell_1" style="left:5px; top:210px; width:100px; height:63px; vertical-align:middle; ">사유</caption>
  957. <textarea id="input4" ref="/root/main/req_pat_info/patinfo/yeyakdesc" appearance="textarea" style="left:107px; top:149px; width:600px; height:58px; "/>
  958. <output id="output2" ref="/root/main/req_pat_info/basepatinfo/telecomnumber" class="output_fix" appearance="output" style="left:587px; top:22px; width:123px; height:19px; "/>
  959. <caption id="caption32" class="cell_1" style="left:489px; top:46px; width:67px; height:24px; vertical-align:middle; ">병동/병실</caption>
  960. <output id="output3" ref="/root/main/req_pat_info/basepatinfo/wardnm" class="output_fix" appearance="output" style="left:559px; top:49px; width:102px; height:19px; "/>
  961. <output id="output4" ref="/root/main/req_pat_info/basepatinfo/roomcd" class="output_fix" appearance="output" style="left:665px; top:49px; width:45px; height:19px; "/>
  962. <output id="output1" ref="/root/main/req_pat_info/basepatinfo/gender" class="output_fix" appearance="output" style="left:510px; top:22px; width:44px; height:19px; text-align:center; "/>
  963. <input id="input1" ref="/root/main/req_pat_info/patinfo/hopedd" class="input_default" inputtype="date" style="left:107px; top:127px; width:100px; height:19px; "/>
  964. <textarea id="input3" ref="/root/main/req_pat_info/patinfo/reasonforreferral" appearance="textarea" style="left:108px; top:209px; width:600px; height:65px; "/>
  965. <caption id="caption5" class="cell_1" style="left:327px; top:20px; width:36px; height:23px; vertical-align:middle; ">동의</caption>
  966. <output id="output5" ref="/root/main/req_pat_info/basepatinfo/consentyn" class="output_fix" appearance="output" style="left:367px; top:22px; width:39px; height:19px; "/>
  967. <input id="input5" ref="/root/main/req_pat_info/patinfo/hopetm" format="hh:nn" style="left:210px; top:127px; width:59px; height:19px; "/>
  968. <output id="output6" ref="/root/main/req_pat_info/patinfo/organizationid" class="output_fix" appearance="output" style="left:255px; top:102px; width:74px; height:19px; "/>
  969. <output id="output7" ref="/root/main/req_pat_info/patinfo/departmentcode" class="output_fix" appearance="output" style="left:484px; top:102px; width:43px; height:19px; "/>
  970. <output id="output8" ref="/root/main/req_pat_info/patinfo/organizationstreetaddress" class="output_fix" disabled="true" appearance="output" style="left:405px; top:127px; width:305px; height:19px; "/>
  971. <button id="button3" class="btn2_letter5" style="left:632px; top:75px; width:75px; height:19px; ">
  972. <caption>기본값세팅</caption>
  973. <script type="javascript" ev:event="DOMActivate">
  974. <![CDATA[
  975. fSetDefault();
  976. ]]>
  977. </script>
  978. </button>
  979. <caption id="caption9" class="cell_1" style="left:423px; top:278px; width:65px; height:23px; vertical-align:middle; ">전송시각</caption>
  980. <output id="output9" ref="/root/main/req_pat_info/patinfo/prntdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" appearance="output" style="left:491px; top:279px; width:174px; height:19px; "/>
  981. </group>
  982. <group id="group4" style="left:0px; top:20px; width:510px; height:740px; ">
  983. <datagrid id="grd_list" nodeset="/root/main/req_info/req_pat_list" caption="상태^formcd^발행^발행일^등록번호^환자명^입/외^병동명^병실^진료과^진료의사^ssnnumber^formrecseq^seqno^formcd^동의서" colsep="^" colwidth="46, 8, 48, 78, 56, 45, 50, 4, 4, 80, 69, 13, 165, 100, 74, 100" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:175px; width:505px; height:464px; ">
  984. <col disabled="true" ref="stat" type="combo">
  985. <choices>
  986. <item>
  987. <label>미해결</label>
  988. <value>1</value>
  989. </item>
  990. <item>
  991. <label>삭제</label>
  992. <value>9</value>
  993. </item>
  994. <item>
  995. <label>완료</label>
  996. <value>3</value>
  997. </item>
  998. <item>
  999. <label>전송완료</label>
  1000. <value>4</value>
  1001. </item>
  1002. </choices>
  1003. </col>
  1004. <col ref="formcd" visibility="hidden"/>
  1005. <col ref="issflag"/>
  1006. <col disabled="true" ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1007. <col ref="pid" style="text-align:center; "/>
  1008. <col ref="hngnm" style="text-align:center; "/>
  1009. <col ref="chosflag" style="text-align:center; "/>
  1010. <col ref="wardnm" visibility="hidden"/>
  1011. <col ref="roomcd" visibility="hidden"/>
  1012. <col ref="orddeptnm" style="text-align:center; "/>
  1013. <col ref="orddrnm"/>
  1014. <col ref="ssnnumber"/>
  1015. <col ref="formrecseq"/>
  1016. <col ref="seqno"/>
  1017. <col ref="formcd"/>
  1018. <col/>
  1019. <script type="javascript" ev:event="onclick">
  1020. <![CDATA[
  1021. fGrdClick();
  1022. ]]>
  1023. </script>
  1024. <script type="javascript" ev:event="onaftersort">
  1025. <![CDATA[
  1026. grd_list.gridToInstance();
  1027. ]]>
  1028. </script>
  1029. <script type="javascript" ev:event="onmousedown">
  1030. <![CDATA[
  1031. if(event.button == 3){
  1032. fPop();
  1033. }
  1034. ]]>
  1035. </script>
  1036. </datagrid>
  1037. <caption id="caption1" class="tit_2" style="left:5px; top:156px; width:152px; height:13px; ">환자 리스트</caption>
  1038. <line id="line1" class="line_1" style="x1:0px; y1:172px; x2:505px; y2:172px; "/>
  1039. <group id="grp_sea" style="left:0px; top:5px; width:505px; height:145px; vertical-align:top; ">
  1040. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:504px; height:140px; "/>
  1041. <caption id="caption3" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">조회일자 :</caption>
  1042. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:245px; top:10px; width:100px; height:19px; text-align:center; "/>
  1043. <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:360px; top:10px; width:100px; height:19px; text-align:center; "/>
  1044. <button id="btn_search" class="btn1_letter2" style="left:432px; top:115px; width:56px; height:22px; ">
  1045. <caption>조회</caption>
  1046. <script type="javascript" ev:event="DOMActivate">
  1047. <![CDATA[
  1048. //if ( !fCheckDateSend() ) return; //필수 저장여부 체크
  1049. fSearch();
  1050. model.refresh();
  1051. ]]>
  1052. </script>
  1053. </button>
  1054. <caption id="caption2" class="search_name" style="left:10px; top:62px; width:91px; height:17px; ">진료과 :</caption>
  1055. <caption id="caption10" class="search_name" style="left:285px; top:62px; width:91px; height:17px; ">담당의사 :</caption>
  1056. <caption id="caption11" class="search_name" style="left:10px; top:114px; width:91px; height:17px; ">상태구분 :</caption>
  1057. <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:125px; top:62px; width:120px; height:19px; ">
  1058. <choices>
  1059. <itemset nodeset="/root/init/dept/dept">
  1060. <label ref="depthngnm"/>
  1061. <value ref="deptcd"/>
  1062. </itemset>
  1063. </choices>
  1064. <script type="javascript" ev:event="xforms-value-changed">
  1065. <![CDATA[
  1066. fDoctSerach();
  1067. model.refresh();
  1068. ]]>
  1069. </script>
  1070. </select1>
  1071. <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:380px; top:62px; width:120px; height:19px; ">
  1072. <choices>
  1073. <itemset nodeset="/root/init/doctlist/medispcl/">
  1074. <label ref="doctnm"/>
  1075. <value ref="doctid"/>
  1076. </itemset>
  1077. </choices>
  1078. </select1>
  1079. <select1 id="rdo_stat" ref="/root/send/search/stat" appearance="full" cols="5" rows="1" overflow="visible" style="left:125px; top:115px; width:135px; height:20px; border-style:none; ">
  1080. <choices>
  1081. <item>
  1082. <label>전체</label>
  1083. <value>%</value>
  1084. </item>
  1085. <item>
  1086. <label>전송완료</label>
  1087. <value>4</value>
  1088. </item>
  1089. </choices>
  1090. </select1>
  1091. <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" maxlength="10" style="left:125px; top:35px; width:120px; height:19px; ">
  1092. <script type="javascript" ev:event="onkeydown">
  1093. <![CDATA[
  1094. if (event.keyCode == 13 && ipt_pid.currentText.length> 0)
  1095. {
  1096. inputEnterKey("btn_pat", "DOMActivate");
  1097. }
  1098. ]]>
  1099. </script>
  1100. </input>
  1101. <caption id="caption23" class="search_name" style="left:10px; top:36px; width:95px; height:17px; ">등록번호 :</caption>
  1102. <button id="btn_pat" class="icon_search" style="left:249px; top:35px; width:16px; height:16px; ">
  1103. <caption/>
  1104. <script type="javascript" ev:event="DOMActivate">
  1105. <![CDATA[
  1106. fPatPopUp();
  1107. ]]>
  1108. </script>
  1109. </button>
  1110. <input id="ipt_hngnm" ref="/root/send/search/hngnm" class="input_search" imemode="hangul" style="left:380px; top:35px; width:120px; height:19px; "/>
  1111. <caption id="caption24" class="search_name" style="left:285px; top:36px; width:80px; height:17px; ">환자명 :</caption>
  1112. <select1 id="radio1" ref="/root/send/search/formcd" appearance="full" cols="4" overflow="visible" style="left:10px; top:89px; width:440px; height:19px; border-style:none; ">
  1113. <choices>
  1114. <item>
  1115. <label>진료의뢰</label>
  1116. <value>0900005340</value>
  1117. </item>
  1118. <item>
  1119. <label>회송</label>
  1120. <value>0000002536</value>
  1121. </item>
  1122. <item>
  1123. <label>진료요약(입퇴원요약기록)</label>
  1124. <value>0000000680</value>
  1125. </item>
  1126. <item>
  1127. <label>진료요약(외래)</label>
  1128. <value>0000000002</value>
  1129. </item>
  1130. </choices>
  1131. </select1>
  1132. <select1 id="combo5" ref="/root/send/search/dayflag" appearance="minimal" style="left:125px; top:10px; width:110px; height:19px; ">
  1133. <choices>
  1134. <itemset nodeset="/root//init/dayflaglist">
  1135. <label ref="label"/>
  1136. <value ref="value"/>
  1137. </itemset>
  1138. </choices>
  1139. </select1>
  1140. <caption id="caption13" class="search_no_b" style="left:345px; top:10px; width:12px; height:17px; ">~</caption>
  1141. </group>
  1142. <textarea id="tar_remfact" ref="/root/main/req_pat_info/patinfo/remfact" imemode="hangul" maxlength="1000" style="left:0px; top:665px; width:505px; height:70px; "/>
  1143. <line id="line10" class="line_1" style="x1:0px; y1:660px; x2:505px; y2:660px; "/>
  1144. <caption id="caption27" class="tit_2" style="left:5px; top:645px; width:126px; height:13px; ">참고사항</caption>
  1145. </group>
  1146. <group id="group5" scroll="auto" style="left:0px; top:772px; width:1220px; height:33px; ">
  1147. <button id="btn_save" class="btn4_letter2" style="left:1156px; top:3px; width:56px; height:22px; ">
  1148. <caption>저장</caption>
  1149. <script type="javascript" ev:event="DOMActivate">
  1150. <![CDATA[
  1151. if ( !fCheckDate() ) return; //필수 저장여부 체크
  1152. fSave();
  1153. model.refresh();
  1154. ]]>
  1155. </script>
  1156. </button>
  1157. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:385px; top:5px; width:56px; height:22px; ">
  1158. <caption>출력</caption>
  1159. <script type="javascript" ev:event="DOMActivate">
  1160. <![CDATA[
  1161. fReplcheck();
  1162. model.refresh();
  1163. ]]>
  1164. </script>
  1165. </button>
  1166. <button id="button6" class="btn4_letter2" style="left:1097px; top:3px; width:56px; height:22px; ">
  1167. <caption>전송</caption>
  1168. <script type="javascript" ev:event="DOMActivate">
  1169. <![CDATA[
  1170. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  1171. messageBox("환자가 선택되지 않았습니다", "I");
  1172. return;
  1173. }
  1174. var stat = model.getValue("/root/main/req_pat_info/patinfo/stat");
  1175. if (!(stat == "3" || stat == "4")) {
  1176. messageBox("전송할 수 있는 상태가 아닙니다","I");
  1177. return;
  1178. }
  1179. //전송완료
  1180. if ( stat == "4" ) {
  1181. if ("6" != messageBox("전송완료상태입니다 재전송 하시겠습니까?","Q")) {
  1182. return;
  1183. }
  1184. }
  1185. fTrans();
  1186. model.refresh();
  1187. ]]>
  1188. </script>
  1189. </button>
  1190. <button id="button1" class="btn4_letter2" visibility="hidden" style="left:690px; top:5px; width:56px; height:22px; ">
  1191. <caption>동의</caption>
  1192. <script type="javascript" ev:event="DOMActivate">
  1193. <![CDATA[
  1194. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  1195. messageBox("환자가 선택되지 않았습니다", "I");
  1196. return;
  1197. }
  1198. //환자등록 및 동의여부파악
  1199. //fConsentChk();
  1200. fPrintOcrConsent("A");
  1201. //fSendConsentInfo();
  1202. model.refresh();
  1203. ]]>
  1204. </script>
  1205. </button>
  1206. <button id="button2" class="btn4_letter5" style="left:805px; top:4px; width:92px; height:22px; ">
  1207. <caption>동의.철회</caption>
  1208. <script type="javascript" ev:event="DOMActivate">
  1209. <![CDATA[
  1210. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  1211. messageBox("환자가 선택되지 않았습니다", "I");
  1212. return;
  1213. }
  1214. //환자등록 및 동의여부파악
  1215. //fConsentChk();
  1216. fPrintOcrConsent("B");
  1217. //fSendConsentInfo();
  1218. model.refresh();
  1219. ]]>
  1220. </script>
  1221. </button>
  1222. </group>
  1223. <button id="button8" class="btn2_letter4" disabled="false" visibility="hidden" style="left:520px; top:780px; width:64px; height:19px; ">
  1224. <caption>미리보기</caption>
  1225. <script type="javascript" ev:event="DOMActivate">
  1226. <![CDATA[
  1227. var currow = grd_list.row;
  1228. if(currow < 0){
  1229. return;
  1230. }
  1231. var ivwCtrl = iviewer1.window.document.controls("ivw_base");
  1232. var formcd = model.getValue("/root/main/req_info/req_pat_list["+ currow +"]/formcd");
  1233. //서식 두번째 코드가 8인 경우,
  1234. if(formcd.charAt(1)=="8")
  1235. {
  1236. formcd = formcd.substr(7, 3);
  1237. rexid = "RFM" + "80" + formcd + "00";
  1238. }
  1239. else if (formcd.charAt(0) == "1") // knuh_20110118 추가
  1240. {
  1241. var precd = formcd.substr(0, 2);
  1242. formcd = formcd.substr(5, 5);
  1243. rexid = "RFM" + precd + formcd;
  1244. }
  1245. else
  1246. {
  1247. formcd = formcd.substr(5, 5);
  1248. rexid = "RFM" + formcd + "00";
  1249. }
  1250. copyNodeset("/root/main/recinfo", "/root/main/recinfo", "replace", model, ivwCtrl.model); //서식지 정보 설정
  1251. model.makeValue("/root/hidden/docinfo/signimge", ivwCtrl.model.getValue("/root/hidden/docinfo/signimge")); //서식서명이미지 설정
  1252. fDoMakeProfPrntInfo(ivwCtrl);
  1253. exeReportPreview(rexid, "XMLSTR"); //미리보기만 가능
  1254. ]]>
  1255. </script>
  1256. </button>
  1257. <button id="button7" class="btn2_letter2" disabled="false" style="left:460px; top:660px; width:42px; height:19px; ">
  1258. <caption>저장</caption>
  1259. <script type="javascript" ev:event="DOMActivate">
  1260. <![CDATA[
  1261. if (model.getValue("/root/main/req_pat_info/basepatinfo/pid") == "") {
  1262. messageBox("저장하고자 하는 환자를", "C002");
  1263. return false;
  1264. }
  1265. fSave();
  1266. model.refresh();
  1267. ]]>
  1268. </script>
  1269. </button>
  1270. </xhtml:body>
  1271. </xhtml:html>