SMARC01400_전원의뢰관리.xrw 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042
  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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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. </cond>
  35. <adddata>outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩</adddata>
  36. <reqdocu/>
  37. <hiratrans/>
  38. <hieconsent>
  39. <hieconsentyn/>
  40. </hieconsent>
  41. </send>
  42. <main>
  43. <req_info>
  44. <req_pat_list>
  45. <stat/>
  46. <formrecdd/>
  47. <pid/>
  48. <hngnm/>
  49. <orddeptnm/>
  50. <orddrnm/>
  51. <orddd/>
  52. <cretno/>
  53. <acptseqno/>
  54. <seqno/>
  55. <orddeptcd/>
  56. <orddrid/>
  57. <formrecseq/>
  58. <age/>
  59. <sex/>
  60. <coophospnm/>
  61. <coophospcd/>
  62. <rsltcd/>
  63. <areacd/>
  64. <telno/>
  65. <faxno/>
  66. <resncd/>
  67. <enddd/>
  68. <reqcoophospnm/>
  69. <reqdrnm/>
  70. <reqdd/>
  71. <reqorddeptnm/>
  72. <reqorddrnm/>
  73. <reqorddd/>
  74. <reqcretno/>
  75. <reqacptseqno/>
  76. <reqseqno/>
  77. <reqflag/>
  78. <remfact/>
  79. <coopdrcd/>
  80. <fromdd/>
  81. <oldyn/>
  82. <status/>
  83. <wardnm/>
  84. <roomcd/>
  85. </req_pat_list>
  86. </req_info>
  87. <req_pat_info>
  88. <patinfo>
  89. <stat/>
  90. <formrecdd/>
  91. <pid/>
  92. <hngnm/>
  93. <orddeptnm/>
  94. <orddrnm/>
  95. <orddd/>
  96. <cretno/>
  97. <acptseqno/>
  98. <seqno/>
  99. <orddeptcd/>
  100. <orddrid/>
  101. <formrecseq/>
  102. <age/>
  103. <sex/>
  104. <coophospnm/>
  105. <coophospcd/>
  106. <coopdrcd/>
  107. <drnm/>
  108. <fromdd/>
  109. <rsltcd/>
  110. <areacd/>
  111. <telno/>
  112. <faxno/>
  113. <resncd/>
  114. <enddd/>
  115. <reqcoophospnm/>
  116. <reqdrnm/>
  117. <reqdd/>
  118. <reqorddeptnm/>
  119. <reqorddrnm/>
  120. <reqorddd/>
  121. <reqcretno/>
  122. <reqacptseqno/>
  123. <reqseqno/>
  124. <reqflag/>
  125. <remfact/>
  126. <status/>
  127. <rumint/>
  128. <aprvflag/>
  129. <reqpseqno/>
  130. <reqacnfmnm/>
  131. <trnscnfmnm/>
  132. <reqaseqno/>
  133. <bizflag/>
  134. <reqaflag/>
  135. <crsn/>
  136. <ncrsn/>
  137. <ncrsnetc/>
  138. <stat/>
  139. <hp/>
  140. <roomcd/>
  141. <wardnm/>
  142. <referdd/>
  143. <hopedschdd/>
  144. <fcontact/>
  145. <drcnfmyn/>
  146. <cdchk/>
  147. <recordchk/>
  148. <resultchk/>
  149. <dschdd/>
  150. <transhosp1/>
  151. <transhosp2/>
  152. <transhosp3/>
  153. <addr/>
  154. <hieyn/>
  155. <hirahospnm/>
  156. <hiratelno/>
  157. <hiraaddr/>
  158. <disphospnm/>
  159. <disptelno/>
  160. <dispaddr/>
  161. </patinfo>
  162. </req_pat_info>
  163. <patinfo>
  164. <patinfolist/>
  165. </patinfo>
  166. <popupendflag/>
  167. <hospinfo>
  168. <hospinfolist/>
  169. </hospinfo>
  170. <hospflag/>
  171. <reqpopupflag/>
  172. <reqpopup>
  173. <reqpopuplist/>
  174. </reqpopup>
  175. <recinfo/>
  176. <sinfo/>
  177. <hirainfo>
  178. <reqsdbkno>3710001718030600012</reqsdbkno>
  179. <ssn>4202011143615</ssn>
  180. <name>박찬규</name>
  181. <telno>01035552853</telno>
  182. <drnm>김성국</drnm>
  183. <lcsno>29134</lcsno>
  184. <sndyadmcd>37100017</sndyadmcd>
  185. <sndyadmnm>경북대학교병원</sndyadmnm>
  186. <rcvyadmscd>37200542</rcvyadmscd>
  187. <rcvyadmsnm>청도대남병원</rcvyadmsnm>
  188. <snddeptcd>01</snddeptcd>
  189. <snddeptnm>소화기내과</snddeptnm>
  190. <snddeptdtlcd>01</snddeptdtlcd>
  191. <snddeptdtlnm>소화기내과</snddeptdtlnm>
  192. <sickcd>C1699</sickcd>
  193. <sickkornm>위암 NOS, 상세불명</sickkornm>
  194. <sickeditnm>위암 NOS, 상세불명</sickeditnm>
  195. <vsttp>01</vsttp>
  196. <sdbktp>03</sdbktp>
  197. <diagsdbkclirs>02</diagsdbkclirs>
  198. <diagsdbknonclirs>02</diagsdbknonclirs>
  199. <diagsdbknonclirstxt>비임상 사유 기타</diagsdbknonclirstxt>
  200. <patstatdiagopintxt>환자 상태 및 진료 소견</patstatdiagopintxt>
  201. </hirainfo>
  202. </main>
  203. <init>
  204. <dept>
  205. </dept>
  206. <doctlist>
  207. <medispcl>
  208. <doctid/>
  209. <doctnm/>
  210. </medispcl>
  211. <atdoct>
  212. <doctid/>
  213. <doctnm/>
  214. </atdoct>
  215. </doctlist>
  216. <areacd>
  217. </areacd>
  218. <resncd>
  219. <A0437/>
  220. </resncd>
  221. <rsltcd>
  222. <A0438/>
  223. </rsltcd>
  224. <hardcd/>
  225. <mouserght>
  226. <label>개인정보동의서</label>
  227. <value>fOCRView</value>
  228. </mouserght>
  229. <mouserght>
  230. <label>발행이미지보기</label>
  231. <value>fViewimage</value>
  232. </mouserght>
  233. <resnable/>
  234. <dayflaglist>
  235. <label>작성일</label>
  236. <value>A</value>
  237. </dayflaglist>
  238. <dayflaglist>
  239. <label>완료일</label>
  240. <value>B</value>
  241. </dayflaglist>
  242. <consentinfo/>
  243. </init>
  244. <temp>
  245. <formhardcd/>
  246. <formhardcd_6009/>
  247. </temp>
  248. </root>
  249. </instance>
  250. <script type="javascript" ev:event="xforms-ready">
  251. <![CDATA[
  252. fInit();
  253. ]]>
  254. </script>
  255. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  256. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  257. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  258. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  259. <submission id="TRMRF02001" mediatype="application/x-www-form-urlencoded" method="post"/>
  260. <submission id="TRMMR01301" mediatype="application/x-www-form-urlencoded" method="post"/>
  261. <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
  262. <submission id="TRARC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/req_info"/>
  263. <submission id="TRARC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_info"/>
  264. <submission id="TXARC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  265. <!--<submission id="TXARC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root"/>-->
  266. <submission id="TXARC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  267. <submission id="TRARC01405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/hirareq" resultref="/root/main/hirainfo"/>
  268. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  269. <submission id="TRARC01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/req_pat_addinfo"/>
  270. <submission id="TRMRF03104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hardcdlist"/>
  271. <submission id="TXARC01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/hieconsent"/>
  272. <submission id="TRARC01416" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/consentinfo"/>
  273. </model>
  274. </xhtml:head>
  275. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  276. <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
  277. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  278. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  279. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  280. <script src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
  281. <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
  282. <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
  283. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  284. <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
  285. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  286. <script type="javascript" src="../../../emr/medirecweb/js/MMR02900.js"/>
  287. <!--script type="javascript" src="../../../ast/healcarecoopweb/js/SMARC01400.js"/-->
  288. <script type="javascript">
  289. <![CDATA[
  290. /**
  291. * 하드코드 조회
  292. *
  293. * @param
  294. * ref reference path
  295. * rsltref result reference path
  296. * hardcd - 하드코드
  297. */
  298. function mmbfGetHardCodeInfo(ref, rsltref, hardcd){
  299. var mmb_rsltref = "/root/hidden/mmb/hardcd";
  300. model.removeNode(mmb_rsltref);
  301. model.makeNode(mmb_rsltref);
  302. model.removeNode(ref);
  303. model.makeValue(ref + "/hardcd", hardcd);
  304. if(submit("TRMMB04103", "false", ref, mmb_rsltref)==true){
  305. model.copyNode(rsltref, mmb_rsltref); model.removeNode(mmb_rsltref);
  306. }
  307. model.refresh();
  308. }
  309. // 초기값
  310. function fInit()
  311. {
  312. mmbfGetHardCodeInfo("/root/send/formhrdcd", "/root/temp/formhardcd", 1300); // 전원의뢰팝업 사용여부
  313. //mmbfGetHardCodeInfo("/root/send/formhrdcd_6009", "/root/temp/formhardcd_6009", 6009); // HIE동의체크 사용여부
  314. //HIE 동의여부 가져오기
  315. submit("TRARC01416", false);
  316. // HIE 동의여부에 따른 체크박스 배경 지정
  317. var hieconsentyn = model.getValue("/root/init/consentinfo/hieconsent/hieconsentyn");
  318. if(isNull(hieconsentyn) || hieconsentyn != "Y"){
  319. chk_hieconsent.attribute("background-color") = "yellow";
  320. }else{
  321. chk_hieconsent.attribute("background-color") = "white";
  322. }
  323. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
  324. {
  325. button2.visible = true;
  326. }
  327. iviewer1.window.javascript.fInitPage(false, false, parseInt(iviewer1.attribute("height")));
  328. // 오늘 날짜로 세팅
  329. var CurrentDate = getCurrentDate();
  330. model.setValue("/root/send/search/fromdd", CurrentDate);
  331. model.setValue("/root/send/search/todd", CurrentDate);
  332. // 공통코드 목록 가져오기
  333. zbcfGetCodeList(new Array("A0439", "A0438", "A0426"), new Array("/root/init/resncd", "/root/init/rsltcd", "/root/init/areacd") , true);
  334. // 유형코드 가져오기
  335. zbcfGetKindCodeList(
  336. new Array("A0014"),
  337. new Array("A0426"),
  338. new Array("/root/init/areacd"),
  339. true,
  340. new Array(""),
  341. new Array("")
  342. );
  343. // 진료과
  344. //var instcd = "012";
  345. var instcd = getUserInfo("dutplceinstcd");
  346. //var standard_yn = "orduseyn";
  347. var standard_yn = "rcptuseyn";
  348. var ord_deptflag = 'D';
  349. var rslt_ref = "/root/init/dept";
  350. var sort_method = "depthngnm";
  351. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  352. sort_field = "depthngnm"
  353. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  354. addComboItem("cmb_orddeptcd", "", "", "above");
  355. fDoctSerach();
  356. model.removeNodeset("/root/main/req_info/req_pat_list");
  357. model.resetInstanceNode("/root/main/req_pat_info/patinfo/patinfo");
  358. model.refresh();
  359. }
  360. // 진료의사 조회
  361. function fDoctSerach()
  362. {
  363. // 진료의사
  364. model.removenode("/root/send/doctor");
  365. model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
  366. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/send/search/orddeptcd"));
  367. submit("TRARC01302", false);
  368. cmb_orddrid.select(0);
  369. //model.setValue("/root/main/patient/orddrid", orddrid);
  370. }
  371. // 조회전 필수 체크
  372. function fCheckDateSend()
  373. {
  374. var fromdd = model.getValue("/root/send/search/fromdd");
  375. var todd = model.getValue("/root/send/search/todd");
  376. var pid = model.getValue("/root/send/search/pid");
  377. var olddateyn = model.getValue("/root/send/search/olddateyn");
  378. if (isNull(pid) == true)
  379. {
  380. if (olddateyn != "Y")
  381. {
  382. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  383. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  384. return false;
  385. }
  386. if( getDateInterval(fromdd, todd) > 7 ){
  387. messageBox("조회가능한 최대 기간은 7일입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  388. return false;
  389. }
  390. if( getDateInterval(fromdd, todd) < 0 ){
  391. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  392. return false;
  393. }
  394. // 날짜 계산
  395. var daycnt = getDateInterval(fromdd, todd);
  396. // 1일이 아닌 경우는 조건을 타야 함
  397. if (daycnt != 0)
  398. {
  399. // 진료과 체크
  400. // if (model.getValue("/root/send/search/orddeptcd") == "")
  401. // {
  402. // messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  403. // //messageBox("진료과를 ","C002");
  404. // return false;
  405. // }
  406. if (ipt_hngnm.currentText.length > 0 && ipt_hngnm.currentText.length < 2) {
  407. messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  408. model.setFocus("ipt_hngnm");
  409. return false;
  410. }
  411. if (ipt_rumint.currentText.length > 0 && ipt_rumint.currentText.length < 2) {
  412. messageBox("전원의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
  413. model.setFocus("ipt_rumint");
  414. return false;
  415. }
  416. }
  417. }
  418. }
  419. return true;
  420. }
  421. //조회(전원의뢰내역)
  422. function fSearch()
  423. {
  424. model.resetInstanceNode("/root/main/req_pat_info/patinfo");
  425. iviewer1.src = "../../../emr/medirecweb/xrw/SMMMR00000_Empty.xrw";
  426. //var formcd = "0000001539";
  427. //iviewer1.window.javascript.fLoadNewForm(formcd);
  428. // getReqPatList
  429. if (submit("TRARC01401", false) == true)
  430. {
  431. //var formrecseq = 0;
  432. //iviewer1.object1.RemoveAll();
  433. //iviewer1.window.javascript.fLoadRecForm(formrecseq);
  434. //iviewer1.window.javascirpt.fLoadNewForm();
  435. //model.refresh();
  436. }
  437. else
  438. {
  439. messageBox("조회를", "E009");
  440. }
  441. }
  442. // 저장전 필수 체크
  443. function fCheckDate()
  444. {
  445. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  446. messageBox("저장하고자 하는 환자를", "C002");
  447. return false;
  448. }
  449. // if (model.getValue("/root/main/req_pat_info/patinfo/ncrsn") == "") {
  450. // messageBox("비임상적사유가 선택되지 않았습니다", "I");
  451. // return false;
  452. // }
  453. //
  454. // if (model.getValue("/root/main/req_pat_info/patinfo/crsn") == "") {
  455. // messageBox("임상적사유가 선택되지 않았습니다", "I");
  456. // return false;
  457. // }
  458. //
  459. // if (model.getValue("/root/main/req_pat_info/patinfo/reqaflag") == "") {
  460. // messageBox("회송유형 선택되지 않았습니다", "I");
  461. // return false;
  462. // }
  463. //
  464. // if (model.getValue("/root/main/req_pat_info/patinfo/enddd") == "") {
  465. // messageBox("전원의뢰완료일이 선택되지 않았습니다", "I");
  466. // return false;
  467. // }
  468. if (model.getValue("/root/main/req_pat_info/patinfo/stat") == "4") {
  469. messageBox("전송완료된 건은 저장할 수 없습니다","I");
  470. return false;
  471. }
  472. return true;
  473. }
  474. // 저장
  475. function fSave()
  476. {
  477. model.setValue("/root/main/req_pat_info/patinfo/reqflag", "C");
  478. var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
  479. if (enddd == "")
  480. {
  481. model.setValue("/root/main/req_pat_info/patinfo/enddd", "00000000");
  482. }
  483. model.resetInstanceNode("/root/send/savedata");
  484. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
  485. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
  486. {
  487. var originNode = findNode(model, "/root/send/savedata");
  488. var copyNode = findNode(model, "/root/send/adddata");
  489. originNode.appendChild(copyNode);
  490. model.makeValue("/root/send/savedata/popup", "Y");
  491. }
  492. else
  493. model.makeValue("/root/send/savedata/popup", "N");
  494. if (submit("TXARC01401", false) == true)
  495. {
  496. //var formcd = "0000001539";
  497. //iviewer1.window.javascript.fLoadNewForm(formcd);
  498. fSearch();
  499. }
  500. else
  501. {
  502. messageBox("저장에", "E009");
  503. }
  504. }
  505. // 전원의뢰 환자 삭제
  506. function fReqAgnPatDelete(){
  507. if (grd_list.rows <= 1) return;
  508. if (grd_list.row < 1) return;
  509. var lrow = grd_list.row;
  510. var stat = model.getValue("/root/main/req_info/req_pat_list["+lrow+"]/stat");
  511. if(stat == "3"){
  512. messageBox("완료 상태의 데이터는 삭제할 수 없습니다.", "E999", "");
  513. return;
  514. }
  515. if(messageBox("해당 데이터를", "Q001")== "6")
  516. {
  517. //초기 정보 셋팅
  518. model.resetInstanceNode("/root/send/cond");
  519. model.setValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  520. model.setValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
  521. model.setValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  522. model.setValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
  523. model.setValue("/root/send/cond/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
  524. model.setValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  525. model.setValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  526. model.setValue("/root/send/cond/oldyn", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn"));
  527. if (submit("TRARC01402", false) == true)
  528. {
  529. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "")
  530. {
  531. model.setValue("/root/main/req_pat_info/patinfo/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  532. model.setValue("/root/main/req_pat_info/patinfo/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
  533. model.setValue("/root/main/req_pat_info/patinfo/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
  534. model.setValue("/root/main/req_pat_info/patinfo/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
  535. model.setValue("/root/main/req_pat_info/patinfo/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
  536. model.setValue("/root/main/req_pat_info/patinfo/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  537. model.setValue("/root/main/req_pat_info/patinfo/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
  538. model.setValue("/root/main/req_pat_info/patinfo/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
  539. model.setValue("/root/main/req_pat_info/patinfo/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  540. model.setValue("/root/main/req_pat_info/patinfo/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  541. model.setValue("/root/main/req_pat_info/patinfo/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
  542. model.setValue("/root/main/req_pat_info/patinfo/status", "i");
  543. }
  544. mmbfGetHardCodeInfo("/root/send/formhrdcd", "/root/temp/formhardcd", 1300); // 전원의뢰팝업 사용여부
  545. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
  546. {
  547. if (submit("TRARC01403", false) == true)
  548. {
  549. //fSetPopup();
  550. }
  551. }
  552. }
  553. model.setValue("/root/send/adddata","outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩");
  554. // 초기 정보 셋팅 완료
  555. //되의뢰/전원구분 설정(C:전원)
  556. //되의뢰완료일 설정
  557. model.setValue("/root/main/req_pat_info/patinfo/reqflag", "C");
  558. var enddd = model.getValue("/root/main/req_pat_info/patinfo/enddd");
  559. //되의뢰
  560. if (enddd == "")
  561. {
  562. model.setValue("/root/main/req_pat_info/patinfo/enddd", "00000000");
  563. //enddd = "00000000";
  564. }
  565. model.resetInstanceNode("/root/send/savedata");
  566. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
  567. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
  568. {
  569. var originNode = findNode(model, "/root/send/savedata");
  570. var copyNode = findNode(model, "/root/send/adddata");
  571. originNode.appendChild(copyNode);
  572. model.makeValue("/root/send/savedata/popup", "Y");
  573. }
  574. else
  575. model.makeValue("/root/send/savedata/popup", "N");
  576. model.makeValue("/root/send/savedata/delyn", "Y");
  577. if (submit("TXARC01401", false) == true)
  578. {
  579. model.removenode("/root/main/req_info/req_pat_list[" + lrow + "]");
  580. model.resetInstanceNode("/root/main/req_pat_info/patinfo");
  581. iviewer1.src = "../../../emr/medirecweb/xrw/SMMMR00000_Empty.xrw";
  582. model.refresh();
  583. grd_list.refresh();
  584. }
  585. else
  586. {
  587. messageBox("삭제에", "E009");
  588. }
  589. }
  590. }
  591. // 삭제
  592. function fDelete()
  593. {
  594. if (grd_list.rows <= 1) return;
  595. if (grd_list.row < 1) return;
  596. // 데이터 삭제시
  597. if(messageBox("해당 데이터를", "Q001")== "6")
  598. {
  599. if (isNull(cmb_confflag.value) == true)
  600. {
  601. messageBox("구분", "C001");
  602. model.setFocus("cmb_flag");
  603. return;
  604. }
  605. if (isNull(ipt_confdd.value) == true)
  606. {
  607. messageBox("등록일자를", "C001");
  608. model.setFocus("ipt_confdd");
  609. return;
  610. }
  611. model.setValue("/root/send/savedata/status", "d");
  612. if (submit("TXARC01401") == true)
  613. {
  614. fSearch();
  615. }
  616. else
  617. {
  618. messageBox("삭제에", "E009");
  619. }
  620. }
  621. else
  622. {
  623. return;
  624. }
  625. }
  626. // 병원 팝업
  627. function fHospPopup()
  628. {
  629. model.setValue("/root/main/hospflag", "N");
  630. //modal("SPARH00200",1,1,1);
  631. // 심평원연계 병원조회 팝업창
  632. modal("SPARH01200", 1,10, 10, "SPARH01200", "", "");
  633. var hospflag = model.getValue("/root/main/hospflag");
  634. if( hospflag == "H" ) // 심평원연계 병원조회이면
  635. {
  636. var hospnm = model.getValue("/root/main/hospinfo/hospinfolist/coophospnm");
  637. var hospcd = model.getValue("/root/main/hospinfo/hospinfolist/coophospcd");
  638. var telno = model.getValue("/root/main/hospinfo/hospinfolist/telno");
  639. var addr = model.getValue("/root/main/hospinfo/hospinfolist/addr");
  640. model.setValue("/root/main/req_pat_info/patinfo/disphospnm", hospnm);
  641. model.setValue("/root/main/req_pat_info/patinfo/coophospcd", hospcd);
  642. model.setValue("/root/main/req_pat_info/patinfo/disptelno", telno);
  643. model.setValue("/root/main/req_pat_info/patinfo/dispaddr", addr);
  644. model.setValue("/root/main/req_pat_info/patinfo/hirahospnm", hospnm);
  645. model.setValue("/root/main/req_pat_info/patinfo/hiratelno", telno);
  646. model.setValue("/root/main/req_pat_info/patinfo/hiraaddr", addr);
  647. }else if ( hospflag == "Y" ) // 병원내부DB 병원조회이면
  648. {
  649. var hospnm = model.getValue("/root/main/hospinfo/hospinfolist/coophospnm");
  650. var hospcd = model.getValue("/root/main/hospinfo/hospinfolist/coophospcd");
  651. var telno = model.getValue("/root/main/hospinfo/hospinfolist/telno");
  652. var addr = model.getValue("/root/main/hospinfo/hospinfolist/addr");
  653. model.setValue("/root/main/req_pat_info/patinfo/disphospnm", hospnm);
  654. model.setValue("/root/main/req_pat_info/patinfo/disptelno", telno);
  655. model.setValue("/root/main/req_pat_info/patinfo/dispaddr", addr);
  656. model.setValue("/root/main/req_pat_info/patinfo/coophospnm", hospnm);
  657. model.setValue("/root/main/req_pat_info/patinfo/coophospcd", hospcd);
  658. model.setValue("/root/main/req_pat_info/patinfo/areacd", model.getValue("/root/main/hospinfo/hospinfolist/areacd"));
  659. model.setValue("/root/main/req_pat_info/patinfo/telno", telno);
  660. model.setValue("/root/main/req_pat_info/patinfo/faxno", model.getValue("/root/main/hospinfo/hospinfolist/faxno"));
  661. model.setValue("/root/main/req_pat_info/patinfo/drnm", model.getValue("/root/main/hospinfo/hospinfolist/drnm"));
  662. model.setValue("/root/main/req_pat_info/patinfo/coopdrcd", model.getValue("/root/main/hospinfo/hospinfolist/coopdrcd"));
  663. model.setValue("/root/main/req_pat_info/patinfo/fromdd", model.getValue("/root/main/hospinfo/hospinfolist/fromdd"));
  664. model.setValue("/root/main/req_pat_info/patinfo/dispaddr", model.getValue("/root/main/hospinfo/hospinfolist/detladdr1"));
  665. }
  666. // 심평원연계에서인지 병원내부DB에서 가져온 정보인지 판단 위해 전송 시 APP로 전달
  667. model.makeValue("/root/main/req_pat_info/patinfo/hospflag", hospflag );
  668. model.refresh();
  669. }
  670. // 의뢰환자 정보 Popup
  671. function fReqPatPopup()
  672. {
  673. var pid = setParameter("pid", model.getValue("/root/main/req_pat_info/patinfo/pid")); //팝업 등록화면의 교육명에 값 가져가기
  674. if (isNull(opt_pid.value) == true)
  675. {
  676. messageBox("등록일자를", "C001");
  677. model.setFocus("opt_pid");
  678. return;
  679. }
  680. model.setValue("/root/main/reqpopupflag", "N");
  681. modal("SPARC02100", 1,10, 10, "SPARC02100", "", "");
  682. if( model.getValue("/root/main/reqpopupflag") == "Y" )
  683. {
  684. //alert(model.getValue("/root/main/reqpopupflag"));
  685. model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", model.getValue("/root/main/reqpopup/reqpopuplist/coophospnm"));
  686. model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", model.getValue("/root/main/reqpopup/reqpopuplist/drnm"));
  687. model.setValue("/root/main/req_pat_info/patinfo/reqdd", model.getValue("/root/main/reqpopup/reqpopuplist/reqdd"));
  688. model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddeptnm"));
  689. model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", model.getValue("/root/main/reqpopup/reqpopuplist/orddrnm"));
  690. model.setValue("/root/main/req_pat_info/patinfo/reqorddd", model.getValue("/root/main/reqpopup/reqpopuplist/orddd"));
  691. model.setValue("/root/main/req_pat_info/patinfo/reqcretno", model.getValue("/root/main/reqpopup/reqpopuplist/cretno"));
  692. model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", model.getValue("/root/main/reqpopup/reqpopuplist/acptseqno"));
  693. model.setValue("/root/main/req_pat_info/patinfo/reqseqno", model.getValue("/root/main/reqpopup/reqpopuplist/seqno"));
  694. model.setValue("/root/main/req_pat_info/patinfo/reqpseqno", model.getValue("/root/main/reqpopup/reqpopuplist/reqpseqno"));
  695. model.refresh();
  696. }
  697. }
  698. function fReqAgnInfo()
  699. {
  700. if (grd_list.rows <= 0) return;
  701. if (grd_list.row < 0) return;
  702. //그리드에서 해당 환자 선택
  703. var idxRow = grd_list.row;
  704. var pid = model.getValue("/root/main/req_pat_list["+idxRow+"]/pid");
  705. var hngnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/hngnm");
  706. var orddd = model.getValue("/root/main/req_pat_list["+idxRow+"]/orddd");
  707. var deptnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/deptnm");
  708. var atdoctnm = model.getValue("/root/main/req_pat_list["+idxRow+"]/atdoctnm");
  709. model.setValue("/root/main/req_pat_info/patinfo/pid", pid);
  710. model.setValue("/root/main/req_pat_info/patinfo/hngnm", hngnm);
  711. model.setValue("/root/main/req_pat_info/patinfo/orddd", orddd);
  712. model.setValue("/root/main/req_pat_info/patinfo/deptnm", deptnm);
  713. model.setValue("/root/main/req_pat_info/patinfo/atdoctnm", atdoctnm);
  714. model.refresh();
  715. }
  716. // 등록번호 조회 팝업
  717. function fPatPopUp()
  718. {
  719. model.makeValue("/root/temp/pid", model.getValue("/root/send/search/pid"));
  720. model.makeValue("/root/temp/srchcond","1");
  721. model.makeValue("/root/temp/autoflag","N");
  722. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
  723. //model.resetInstanceNode("/root/main/patinfo/patinfolist");
  724. //model.resetInstanceNode("/root/send/cond");
  725. if (model.getValue("/root/main/popupendflag") == "ok")
  726. {
  727. model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  728. model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  729. }
  730. //fHistSearch();
  731. model.refresh();
  732. }
  733. // 전원의뢰 리스트 선택
  734. function fGrdClick()
  735. {
  736. //debugger;
  737. if (grd_list.rows <= 1) return;
  738. if (grd_list.row < 1) return;
  739. var lrow = grd_list.row;
  740. if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
  741. {
  742. //fBiztrgtClick();
  743. }
  744. else
  745. {
  746. return;
  747. }
  748. /*
  749. model.copyNode("/root/main/req_pat_info/patinfo", "/root/main/req_info/req_pat_list[" + lrow + "]");
  750. //model.setValue("/root/main/req_pat_into/reqflag", "A");
  751. */
  752. model.resetInstanceNode("/root/send/cond");
  753. model.setValue("/root/send/cond/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  754. model.setValue("/root/send/cond/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
  755. model.setValue("/root/send/cond/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  756. model.setValue("/root/send/cond/seqno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/seqno"));
  757. model.setValue("/root/send/cond/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
  758. model.setValue("/root/send/cond/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  759. model.setValue("/root/send/cond/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  760. model.setValue("/root/send/cond/oldyn", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn"));
  761. if (submit("TRARC01402", false) == true)
  762. {
  763. model.setValue("/root/main/req_pat_info/patinfo/wardnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/wardnm"));
  764. model.setValue("/root/main/req_pat_info/patinfo/roomcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/roomcd"));
  765. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "")
  766. {
  767. model.setValue("/root/main/req_pat_info/patinfo/pid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid"));
  768. model.setValue("/root/main/req_pat_info/patinfo/hngnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/hngnm"));
  769. model.setValue("/root/main/req_pat_info/patinfo/sex", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/sex"));
  770. model.setValue("/root/main/req_pat_info/patinfo/age", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/age"));
  771. model.setValue("/root/main/req_pat_info/patinfo/orddd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddd"));
  772. model.setValue("/root/main/req_pat_info/patinfo/cretno", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/cretno"));
  773. model.setValue("/root/main/req_pat_info/patinfo/orddeptnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptnm"));
  774. model.setValue("/root/main/req_pat_info/patinfo/orddrnm", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrnm"));
  775. model.setValue("/root/main/req_pat_info/patinfo/orddeptcd", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddeptcd"));
  776. model.setValue("/root/main/req_pat_info/patinfo/orddrid", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/orddrid"));
  777. model.setValue("/root/main/req_pat_info/patinfo/formrecseq", model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formrecseq"));
  778. model.setValue("/root/main/req_pat_info/patinfo/status", "i");
  779. }
  780. mmbfGetHardCodeInfo("/root/send/formhrdcd", "/root/temp/formhardcd", 1300); // 전원의뢰팝업 사용여부
  781. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y")
  782. {
  783. if (submit("TRARC01403", false) == true)
  784. {
  785. //fSetPopup();
  786. }
  787. }
  788. }
  789. var oldyn = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/oldyn");
  790. // if (oldyn != "Y")
  791. // {
  792. iviewer1.src= "../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw";
  793. iviewer1.window.javascript.fInitPage(false, false, parseInt(iviewer1.attribute("height")), parseInt(iviewer1.attribute("width")));
  794. // 서식 로드
  795. var formrecseq = model.getValue("/root/send/cond/formrecseq");
  796. //alert(formrecseq);
  797. iviewer1.window.javascript.fLoadRecForm(formrecseq, false);
  798. //}
  799. model.setValue("/root/send/adddata","outflag▦outreqcd▦outreqflag▦outreqnm▦remcnts▩");
  800. model.refresh();
  801. }
  802. // 의뢰정보 삭제
  803. function fReqDel()
  804. {
  805. /*
  806. opt_reqcoophospnm.value = "";
  807. opt_reqdrnm.value = "";
  808. opt_reqdd.value = "";
  809. opt_reqorddeptnm.value = "";
  810. opt_reqorddrnm.value = "";
  811. */
  812. var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
  813. model.setValue("/root/main/req_pat_info/patinfo/reqcoophospnm", "");
  814. model.setValue("/root/main/req_pat_info/patinfo/reqdrnm", "");
  815. model.setValue("/root/main/req_pat_info/patinfo/reqdd", "");
  816. model.setValue("/root/main/req_pat_info/patinfo/reqorddeptnm", "");
  817. model.setValue("/root/main/req_pat_info/patinfo/reqorddrnm", "");
  818. model.setValue("/root/main/req_pat_info/patinfo/reqorddd", "");
  819. model.setValue("/root/main/req_pat_info/patinfo/reqcretno", "0");
  820. model.setValue("/root/main/req_pat_info/patinfo/reqacptseqno", "0");
  821. model.setValue("/root/main/req_pat_info/patinfo/reqseqno", "0");
  822. model.setValue("/root/main/req_pat_info/patinfo/reqpseqno", "");
  823. model.refresh();
  824. }
  825. // 전원의뢰 정보 삭제
  826. function fReqAgnDel()
  827. {
  828. var stat = model.getValue("/root/main/req_info/req_pat_list[" +grd_list.row + "]/stat");
  829. model.setValue("/root/main/req_pat_info/patinfo/coophospnm", "");
  830. model.setValue("/root/main/req_pat_info/patinfo/rsltcd", "");
  831. model.setValue("/root/main/req_pat_info/patinfo/areacd", "");
  832. model.setValue("/root/main/req_pat_info/patinfo/telno", "");
  833. model.setValue("/root/main/req_pat_info/patinfo/faxno", "");
  834. model.setValue("/root/main/req_pat_info/patinfo/resncd", "");
  835. model.setValue("/root/main/req_pat_info/patinfo/enddd", "");
  836. model.setValue("/root/main/req_pat_info/patinfo/coophospcd", "");
  837. model.refresh();
  838. }
  839. // 출력
  840. function fReplcheck()
  841. {
  842. var currow = grd_list.row;
  843. var sREPLDOCULIST_PATH = "/root/main/req_pat_info/patinfo";
  844. var formrecseq = model.getValue(sREPLDOCULIST_PATH+"/formrecseq")
  845. var pid = model.getValue(sREPLDOCULIST_PATH+"/pid")
  846. if (pid == "")
  847. {
  848. messageBox("저장하고자 하는 환자를", "C002");
  849. return;
  850. }
  851. var ivwCtrl = iviewer1.window.document.controls("ivw_base");
  852. copyNodeset("/root/main/recinfo", "/root/main/recinfo", "replace", model, ivwCtrl.model); //서식지 정보 설정
  853. model.makeValue("/root/hidden/docinfo/signimge", ivwCtrl.model.getValue("/root/hidden/docinfo/signimge")); //서식서명이미지 설정
  854. setParameter("reportprintyn", "");
  855. exeReportPreview("RFM1111397", "XMLSTR");
  856. model.refresh();
  857. }
  858. /**
  859. * 단어에 특정 문자 제거
  860. *
  861. * @param
  862. * word 단어
  863. * ch 문자
  864. */
  865. function removeChar(word, ch){
  866. var temp = "";
  867. var res = "";
  868. var len = word.length
  869. for(i = 0; i < len; i++){
  870. temp = word.charAt(i);
  871. if(temp == ch){
  872. continue;
  873. }else{
  874. res += temp;
  875. }
  876. }
  877. return res;
  878. }
  879. /**
  880. * 단어에 step간격 특정 문자 삽입
  881. *
  882. * @param
  883. * word 단어
  884. * ch 문자
  885. * step 간격
  886. */
  887. function insertChar(word, ch, step){
  888. var temp = "";
  889. var res = "";
  890. var cnt = 0;
  891. var len = word.length;
  892. for(i = 0; i < len; i++){
  893. cnt++;
  894. temp = word.charAt(i);
  895. if(cnt % step == 0 && cnt != len){
  896. temp = temp + ch;
  897. }
  898. res += temp;
  899. }
  900. return res;
  901. }
  902. function fSize() {
  903. var text = button4.attribute("text") ;
  904. var pid = model.getValue("/root/main/req_pat_info/patinfo/pid");
  905. if (text == "확대") {
  906. button4.attribute("text") = "축소";
  907. group6.attribute("top") = 0;
  908. group6.attribute("height") = 733 ;
  909. iviewer1.attribute("height") ="705";
  910. if (pid != "" ) {
  911. iviewer1.ivw_base.attribute("height") ="703";
  912. }
  913. }
  914. else {
  915. button4.attribute("text") = "확대";
  916. group6.attribute("top") = 305;
  917. group6.attribute("height") = 428 ;
  918. iviewer1.attribute("height") ="400";
  919. if (pid != "" ) {
  920. iviewer1.ivw_base.attribute("height") ="398";
  921. }
  922. }
  923. }
  924. //개인정보동의서보기
  925. function fOCRView() {
  926. var lrow = grd_list.selectedRow(0);
  927. var pid = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid");
  928. model.makeValue("/root/send/iemr/pid", pid);
  929. model.makeValue("/root/send/iemr/docucd", "1100011224");
  930. if(window.children.item("imgemrviewer") == null)
  931. {
  932. window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  933. }
  934. else
  935. {
  936. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  937. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  938. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  939. // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  940. window.children.item("imgemrviewer").modelesstopmost = true;
  941. window.children.item("imgemrviewer").modelesstopmost = false;
  942. }
  943. }
  944. function fViewimage() {
  945. var lrow = grd_list.selectedRow(0);
  946. var pid = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/pid");
  947. var docucd = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/formcd");
  948. model.makeValue("/root/send/iemr/pid", pid);
  949. model.makeValue("/root/send/iemr/docucd", docucd);
  950. if(window.children.item("imgemrviewer") == null)
  951. {
  952. window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  953. }
  954. else
  955. {
  956. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  957. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  958. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  959. // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  960. window.children.item("imgemrviewer").modelesstopmost = true;
  961. window.children.item("imgemrviewer").modelesstopmost = false;
  962. }
  963. }
  964. function fSetDefault() {
  965. model.setValue("/root/main/req_pat_info/patinfo/reqacnfmnm",getUserInfo("usernm"));
  966. model.setValue("/root/main/req_pat_info/patinfo/aprvflag","Y");
  967. var ioflag = model.getValue("/root/main/req_info/req_pat_list[" + grd_list.row + "]/chosflag");
  968. if (ioflag == "I") {
  969. var bizflag = "01";
  970. }
  971. else {
  972. var bizflag = "02";
  973. }
  974. model.setValue("/root/main/req_pat_info/patinfo/bizflag",bizflag);
  975. model.refresh();
  976. }
  977. function fTrans() {
  978. model.resetInstanceNode("/root/send/savedata");
  979. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
  980. //var reqaseqno = model.getValue("/root/hirainfo/reqsdbkno");
  981. model.makeValue("/root/send/savedata/prntflag", "Y");
  982. if (submit("TXARC01401") == false) {
  983. messageBox("전송시 에러", "E");
  984. return;
  985. }
  986. fSearch();
  987. }
  988. function fCnclTrans() {
  989. model.resetInstanceNode("/root/send/savedata");
  990. model.copyNode("/root/send/savedata","/root/main/req_pat_info/patinfo");
  991. if(model.getValue("/root/temp/formhardcd/hardcd/hardcd") == "Y") {
  992. var originNode = findNode(model, "/root/send/savedata");
  993. var copyNode = findNode(model, "/root/send/adddata");
  994. originNode.appendChild(copyNode);
  995. model.makeValue("/root/send/savedata/popup", "Y");
  996. }
  997. else {
  998. model.makeValue("/root/send/savedata/popup", "N");
  999. }
  1000. model.makeValue("/root/send/savedata/prntflag", "N");
  1001. if (submit("TXARC01401", false) == true)
  1002. {
  1003. fSearch();
  1004. }
  1005. else
  1006. {
  1007. messageBox("전송취소시 에러", "E");
  1008. }
  1009. }
  1010. function fPop(){
  1011. if(isDataCell()){
  1012. setPopupMenu("grd_list", false, "/root/init/mouserght", "label", "value");
  1013. } else {
  1014. initPopupMenu();
  1015. }
  1016. }
  1017. // 심평원 자동 회송 프로그램
  1018. function fHira_Trans(){
  1019. var lib;
  1020. try{
  1021. lib = new ActiveXObject("Hira.Di.Com.Service.Library.ServiceLibrary");
  1022. }catch(e){
  1023. messageBox("진료의뢰회송 중계포털 Agent 다운받아 설치 후 이용바랍니다.\n( https://di.hira.or.kr/rsweb/index.do )","E999");
  1024. return ;
  1025. }
  1026. model.removeNodeset("/root/main/hirainfo");
  1027. var lrow = grd_list.row;
  1028. var pid = model.getValue("/root/main/req_pat_info/patinfo/pid");
  1029. var formrecseq = model.getValue("/root/main/req_info/req_pat_list[" + lrow+ "]/formrecseq")
  1030. model.makeValue("/root/send/hirareq/pid",pid);
  1031. model.makeValue("/root/send/hirareq/formrecseq",formrecseq);
  1032. if (submit("TRARC01405",false) == false) {
  1033. return false;
  1034. }
  1035. var HIRA_PATH = "/root/main/hirainfo/";
  1036. var reqsdbkno = model.getValue(HIRA_PATH + "reqsdbkno");
  1037. var ssn = model.getValue(HIRA_PATH + "ssn");
  1038. var name = model.getValue(HIRA_PATH + "name");
  1039. var telno = model.getValue(HIRA_PATH + "telno");
  1040. var drnm = model.getValue(HIRA_PATH + "drnm");
  1041. var lcsno = model.getValue(HIRA_PATH + "lcsno");
  1042. var sndyadmcd = model.getValue(HIRA_PATH + "sndyadmcd");
  1043. var sndyadmnm = model.getValue(HIRA_PATH + "sndyadmnm");
  1044. var rcvyadmscd = model.getValue(HIRA_PATH + "rcvyadmscd");
  1045. var rcvyadmsnm = model.getValue(HIRA_PATH + "rcvyadmsnm");
  1046. var snddeptcd = model.getValue(HIRA_PATH + "snddeptcd");
  1047. var snddeptnm = model.getValue(HIRA_PATH + "snddeptnm");
  1048. var snddeptdtlcd = model.getValue(HIRA_PATH + "snddeptdtlcd");
  1049. var snddeptdtlnm = model.getValue(HIRA_PATH + "snddeptdtlnm");
  1050. var sickcd = model.getValue(HIRA_PATH + "sickcd");
  1051. var sickkornm = model.getValue(HIRA_PATH + "sickkornm");
  1052. var sickeditnm = model.getValue(HIRA_PATH + "sickeditnm");
  1053. var vsttp = parseInt(model.getValue(HIRA_PATH + "vsttp"));
  1054. var sdbktp = parseInt(model.getValue(HIRA_PATH + "sdbktp"));
  1055. var diagsdbkclirs = parseInt(model.getValue(HIRA_PATH + "diagsdbkclirs"));
  1056. var diagsdbknonclirs = parseInt(model.getValue(HIRA_PATH + "diagsdbknonclirs"));
  1057. var diagsdbknonclirstxt = model.getValue(HIRA_PATH + "diagsdbknonclirstxt");
  1058. var patstatdiagopintxt = model.getValue(HIRA_PATH + "patstatdiagopintxt"); //"환자 상태 및 진료 소견";
  1059. if(isNull(reqsdbkno)){
  1060. messageBox("[심평원전송실패] 심평원에 전송할 데이터가 존재하지 않습니다.","I");
  1061. return false;
  1062. }
  1063. // if (rcvyadmscd == "" || isNull(rcvyadmscd)) {
  1064. // messageBox("전원기관 요양기관 기호가 없습니다","I");
  1065. // return;
  1066. // }
  1067. //
  1068. // if (lcsno == "" || isNull(lcsno)) {
  1069. // messageBox("의사 면허번호가 없습니다","I");
  1070. // return false;
  1071. // }
  1072. // 회송서 개체 생성
  1073. var sdbk = new ActiveXObject("Hira.Di.Com.Model.Sdbk");
  1074. sdbk.reqSdbkNo = reqsdbkno;
  1075. sdbk.VstTp = vsttp; // 진료구분(01:입원,02:외래)
  1076. sdbk.SdbkTp = sdbktp; // 유형구분(01:외래되의뢰,02:외래회송,03:입원회송)
  1077. sdbk.DiagSdbkCliRs = diagsdbkclirs; // 임상적사유(01:수술후 관리필요,02:수술이외의 치료 후 관리(복약,관리 등 포함) 필요)
  1078. sdbk.DiagSdbkNonCliRs = diagsdbknonclirs; // 비임상적사유(01:환자수용 불가(입원실/의료진 부족 등),02:환자 또는 가족의 요청,03:기타)
  1079. if(diagsdbknonclirs == 3){
  1080. sdbk.DiagSdbkNonCliRsTxt = diagsdbknonclirstxt;
  1081. }
  1082. sdbk.PatStatDiagOpinTxt = patstatdiagopintxt;
  1083. // 환자정보
  1084. var ptnt = new ActiveXObject("Hira.Di.Com.Model.Ptnt");
  1085. ptnt.ssn = ssn;
  1086. ptnt.Name = name;
  1087. ptnt.TelNo = telno;
  1088. sdbk.Ptnt = ptnt;
  1089. // 담당의사 정보
  1090. var chrgDr = new ActiveXObject("Hira.Di.Com.Model.ChrgDr");
  1091. chrgDr.DrNm = drnm;
  1092. chrgDr.LcsNo = lcsno;
  1093. sdbk.ChrgDr = chrgDr;
  1094. // 송신요양기관 정보
  1095. var sndYadm = new ActiveXObject("Hira.Di.Com.Model.Yadm");
  1096. sndYadm.code = sndyadmcd;
  1097. sndYadm.Name = sndyadmnm;
  1098. sdbk.SndYadm = sndYadm;
  1099. // 수신요양기관 정보
  1100. var rcvYadm1 = new ActiveXObject("Hira.Di.Com.Model.Yadm");
  1101. //if(!isNull(rcvyadmscd)){
  1102. rcvYadm1.Code = rcvyadmscd;
  1103. rcvYadm1.Name = rcvyadmsnm;
  1104. sdbk.AddRcvYadm(rcvYadm1);
  1105. //}
  1106. // 진료과목
  1107. var sndDept = new ActiveXObject("Hira.Di.Com.Model.Dept");
  1108. sndDept.code = snddeptcd;
  1109. sndDept.Name = snddeptnm;
  1110. sdbk.SndDept = sndDept;
  1111. // 내과상세진료과목
  1112. var sndDeptDtl = new ActiveXObject("Hira.Di.Com.Model.Dept");
  1113. if(!isNull(snddeptdtlcd)){
  1114. sndDeptDtl.code = snddeptdtlcd;
  1115. sndDeptDtl.Name = snddeptdtlnm;
  1116. sdbk.SndDeptDtl = sndDeptDtl;
  1117. }
  1118. // 상병
  1119. var sick = new ActiveXObject("Hira.Di.Com.Model.Sick");
  1120. sick.code = sickcd;
  1121. sick.korNm = sickkornm;
  1122. sick.EditNm = sickeditnm;
  1123. sdbk.Sick = sick;
  1124. var res = lib.CreSdbk(sndyadmcd, sdbk);
  1125. if (!res.success) {
  1126. messageBox( "심평원 진료의뢰회송 연계 프로그램에 조건 오류가 발생했습니다.\n\n" + res.ErrCd + ": " + res.ErrMsg + "\n\n조건 수정 후 전송 바랍니다.", "E999");
  1127. return false;
  1128. }
  1129. return true;
  1130. }
  1131. ]]>
  1132. </script>
  1133. <xhtml:body pagewidth="1265" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1134. <group id="group1" style="left:0px; top:0px; width:1245px; height:13px; ">
  1135. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">전원의뢰관리</caption>
  1136. </group>
  1137. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1245px; height:744px; ">
  1138. <group id="group2" style="left:515px; top:5px; width:725px; height:735px; ">
  1139. <line id="line72" class="line_1" style="x1:5px; y1:18px; x2:709px; y2:17px; "/>
  1140. <caption id="caption112" class="tit_2" style="left:5px; top:1px; width:116px; height:13px; ">환자기본정보</caption>
  1141. <caption id="caption96" class="cell_1" style="left:145px; top:20px; width:35px; height:23px; vertical-align:middle; ">성명</caption>
  1142. <caption id="caption76" class="cell_1" style="left:5px; top:21px; width:65px; height:23px; vertical-align:middle; ">등록번호</caption>
  1143. <caption id="caption77" class="cell_1" style="left:410px; top:21px; width:95px; height:23px; vertical-align:middle; ">성별/나이/HP</caption>
  1144. <caption id="caption12" class="cell_1" style="left:210px; top:47px; width:50px; height:24px; vertical-align:middle; ">진료과</caption>
  1145. <caption id="caption4" class="cell_1" style="left:5px; top:47px; width:100px; height:24px; vertical-align:middle; ">진료일자</caption>
  1146. <caption id="caption16" class="cell_1" style="left:365px; top:47px; width:50px; height:24px; vertical-align:middle; ">주치의</caption>
  1147. <line id="line44" class="line_2" style="x1:5px; y1:45px; x2:709px; y2:45px; "/>
  1148. <line id="line47" class="line_2" style="x1:5px; y1:199px; x2:709px; y2:199px; "/>
  1149. <line id="line2" class="line_2" style="x1:5px; y1:224px; x2:709px; y2:224px; "/>
  1150. <button id="button5" class="icon_search" style="left:272px; top:180px; width:16px; height:16px; ">
  1151. <caption/>
  1152. <script type="javascript" ev:event="DOMActivate">
  1153. <![CDATA[
  1154. fHospPopup();
  1155. ]]>
  1156. </script>
  1157. </button>
  1158. <caption id="caption20" class="cell_1" style="left:5px; top:175px; width:100; height:23px; vertical-align:middle; ">전원의뢰병원명</caption>
  1159. <caption id="caption45" class="cell_1" style="left:5px; top:200px; width:100px; height:23px; vertical-align:middle; ">회송번호</caption>
  1160. <caption id="caption52" class="cell_1" style="left:290px; top:175px; width:65px; height:23px; vertical-align:middle; ">주소/전화</caption>
  1161. <caption id="caption7" class="cell_1" style="left:5px; top:226px; width:100px; height:23px; vertical-align:middle; ">비임상적사유</caption>
  1162. <caption id="caption8" class="cell_1" style="left:410px; top:277px; width:95px; height:23px; vertical-align:middle; ">전원의뢰완료일</caption>
  1163. <line id="line17" class="line_3" style="x1:5px; y1:301px; x2:709px; y2:301px; "/>
  1164. <line id="line5" class="line_1" style="x1:5px; y1:95px; x2:709px; y2:94px; "/>
  1165. <caption id="caption13" class="tit_2" style="left:5px; top:78px; width:116px; height:13px; ">의뢰정보</caption>
  1166. <line id="line6" class="line_3" style="x1:5px; y1:72px; x2:709px; y2:72px; "/>
  1167. <caption id="caption14" class="cell_1" style="left:5px; top:98px; width:100px; height:24px; vertical-align:middle; ">의뢰병원</caption>
  1168. <caption id="caption15" class="cell_1" style="left:545px; top:98px; width:60px; height:24px; vertical-align:middle; ">의뢰의사</caption>
  1169. <caption id="caption17" class="cell_1" style="left:5px; top:124px; width:100px; height:24px; vertical-align:middle; ">진료과</caption>
  1170. <caption id="caption18" class="cell_1" style="left:335px; top:97px; width:60px; height:24px; vertical-align:middle; ">의뢰일자</caption>
  1171. <caption id="caption19" class="cell_1" style="left:207px; top:124px; width:50px; height:24px; vertical-align:middle; ">주치의</caption>
  1172. <button id="button1" class="icon_search" style="left:308px; top:100px; width:16px; height:16px; ">
  1173. <caption/>
  1174. <script type="javascript" ev:event="DOMActivate">
  1175. <![CDATA[
  1176. fReqPatPopup();
  1177. ]]>
  1178. </script>
  1179. </button>
  1180. <line id="line7" class="line_3" style="x1:5px; y1:149px; x2:710px; y2:149px; "/>
  1181. <line id="line8" class="line_2" style="x1:0px; y1:122px; x2:705px; y2:122px; "/>
  1182. <caption id="caption21" class="tit_2" style="left:5px; top:155px; width:116px; height:13px; ">전원의뢰정보</caption>
  1183. <line id="line9" class="line_1" style="x1:5px; y1:172px; x2:709px; y2:171px; "/>
  1184. <output id="opt_pid" ref="/root/main/req_pat_info/patinfo/pid" class="output_fix" appearance="output" style="left:74px; top:22px; width:68px; height:19px; text-align:center; "/>
  1185. <output id="opt_hngnm" ref="/root/main/req_pat_info/patinfo/hngnm" class="output_fix" appearance="output" style="left:182px; top:22px; width:71px; height:19px; "/>
  1186. <select1 id="cmb_sex" ref="/root/main/req_pat_info/patinfo/sex" disabled="true" appearance="minimal" style="left:507px; top:22px; width:50; height:19px; ">
  1187. <choices>
  1188. <item>
  1189. <label>남</label>
  1190. <value>M</value>
  1191. </item>
  1192. <item>
  1193. <label>여</label>
  1194. <value>F</value>
  1195. </item>
  1196. </choices>
  1197. </select1>
  1198. <output id="opt_age" ref="/root/main/req_pat_info/patinfo/age" class="output_fix" appearance="output" style="left:559px; top:22px; width:26px; height:19px; text-align:right; "/>
  1199. <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; "/>
  1200. <output id="opt_orddeptnm" ref="/root/main/req_pat_info/patinfo/orddeptnm" class="output_fix" appearance="output" style="left:262px; top:49px; width:100px; height:19px; "/>
  1201. <output id="opt_orddrnm" ref="/root/main/req_pat_info/patinfo/orddrnm" class="output_fix" appearance="output" style="left:417px; top:49px; width:70px; height:19px; "/>
  1202. <output id="opt_reqcoophospnm" ref="/root/main/req_pat_info/patinfo/reqcoophospnm" class="output_fix" inputtype="date" appearance="output" style="left:107px; top:100px; width:193px; height:19px; "/>
  1203. <output id="opt_reqdrnm" ref="/root/main/req_pat_info/patinfo/reqdrnm" class="output_fix" appearance="output" style="left:607px; top:100px; width:103px; height:19px; "/>
  1204. <output id="opt_reqdd" ref="/root/main/req_pat_info/patinfo/reqdd" class="output_fix" format="yyyy-mm-dd" inputtype="date" appearance="output" style="left:397px; top:99px; width:143px; height:19px; text-align:center; "/>
  1205. <output id="opt_reqorddeptnm" ref="/root/main/req_pat_info/patinfo/reqorddeptnm" class="output_fix" appearance="output" style="left:107px; top:126px; width:98px; height:19px; "/>
  1206. <output id="opt_reqorddrnm" ref="/root/main/req_pat_info/patinfo/reqorddrnm" class="output_fix" appearance="output" style="left:260px; top:126px; width:72px; height:19px; "/>
  1207. <output id="opt_coophospnm" ref="/root/main/req_pat_info/patinfo/disphospnm" class="output_fix" appearance="output" style="left:107px; top:177px; width:163px; height:19px; "/>
  1208. <output id="opt_telno" ref="/root/main/req_pat_info/patinfo/disptelno" class="output_fix" disabled="true" appearance="output" style="left:624px; top:177px; width:85px; height:19px; "/>
  1209. <select1 id="cmb_resncd" ref="/root/main/req_pat_info/patinfo/resncd" visibility="hidden" appearance="minimal" style="left:600px; top:150px; width:15px; height:19px; ">
  1210. <choices>
  1211. <itemset nodeset="/root/init/resncd/A0439">
  1212. <label ref="cdnm"/>
  1213. <value ref="cdid"/>
  1214. </itemset>
  1215. </choices>
  1216. </select1>
  1217. <input id="ipt_enddd" ref="/root/main/req_pat_info/patinfo/enddd" class="input_default" inputtype="date" style="left:507px; top:279px; width:110px; height:19px; "/>
  1218. <caption id="caption22" class="cell_1" style="left:538px; top:200px; width:60px; height:23px; vertical-align:middle; ">의뢰결과</caption>
  1219. <select1 id="cmb_rsltcd" ref="/root/main/req_pat_info/patinfo/rsltcd" appearance="minimal" style="left:600px; top:202px; width:110px; height:19px; ">
  1220. <choices>
  1221. <itemset nodeset="/root/init/rsltcd/A0438">
  1222. <label ref="cdnm"/>
  1223. <value ref="cdid"/>
  1224. </itemset>
  1225. </choices>
  1226. </select1>
  1227. <button id="btn_reqdel" class="btn2_letter3" style="left:658px; top:73px; width:53px; height:19px; ">
  1228. <caption>초기화</caption>
  1229. <script type="javascript" ev:event="DOMActivate">
  1230. <![CDATA[
  1231. fReqDel();
  1232. ]]>
  1233. </script>
  1234. </button>
  1235. <line id="line3" class="line_2" style="x1:5px; y1:275px; x2:709px; y2:275px; "/>
  1236. <select1 id="cmb_replflag" ref="/root/main/req_pat_info/patinfo/aprvflag" class="input" appearance="minimal" style="left:107px; top:279px; width:98px; height:19px; ">
  1237. <choices>
  1238. <item>
  1239. <label>예</label>
  1240. <value>Y</value>
  1241. </item>
  1242. <item>
  1243. <label>아니오</label>
  1244. <value>N</value>
  1245. </item>
  1246. <item>
  1247. <label>누락</label>
  1248. <value>O</value>
  1249. </item>
  1250. </choices>
  1251. </select1>
  1252. <caption id="caption69" class="cell_1" style="left:5px; top:277px; width:100px; height:23px; vertical-align:middle; ">동의여부</caption>
  1253. <output id="output1" ref="/root/main/req_pat_info/patinfo/reqpseqno" class="output_fix" appearance="output" style="left:397px; top:127px; width:313px; height:19px; "/>
  1254. <caption id="caption28" class="cell_1" style="left:335px; top:125px; width:60px; height:24px; vertical-align:middle; ">의뢰번호</caption>
  1255. <caption id="caption29" class="cell_1" style="left:210px; top:275px; width:95px; height:23px; vertical-align:middle; ">본원담당자</caption>
  1256. <input id="input1" ref="/root/main/req_pat_info/patinfo/trnscnfmnm" style="left:617px; top:254px; width:93px; height:19px; "/>
  1257. <input id="input2" ref="/root/main/req_pat_info/patinfo/reqacnfmnm" style="left:307px; top:279px; width:100px; height:19px; "/>
  1258. <input id="input3" ref="/root/main/req_pat_info/patinfo/reqaseqno" format="99999999-999999-99999" appearance="output" style="left:107px; top:202px; width:163px; height:19px; "/>
  1259. <line id="line11" class="line_2" style="x1:5px; y1:250px; x2:709px; y2:250px; "/>
  1260. <caption id="caption30" class="cell_1" style="left:380px; top:201px; width:60px; height:23px; vertical-align:middle; ">진료구분</caption>
  1261. <select1 id="combo1" ref="/root/main/req_pat_info/patinfo/bizflag" appearance="minimal" style="left:442px; top:202px; width:93px; height:19px; ">
  1262. <choices>
  1263. <item>
  1264. <label>입원</label>
  1265. <value>01</value>
  1266. </item>
  1267. <item>
  1268. <label>외래</label>
  1269. <value>02</value>
  1270. </item>
  1271. </choices>
  1272. </select1>
  1273. <caption id="caption31" class="cell_1" style="left:380px; top:253px; width:65px; height:23px; vertical-align:middle; ">회송유형</caption>
  1274. <select1 id="combo2" ref="/root/main/req_pat_info/patinfo/reqaflag" appearance="minimal" style="left:447px; top:254px; width:100px; height:19px; ">
  1275. <choices>
  1276. <item>
  1277. <label>외래되의뢰</label>
  1278. <value>01</value>
  1279. </item>
  1280. <item>
  1281. <label>외래회송</label>
  1282. <value>02</value>
  1283. </item>
  1284. <item>
  1285. <label>입원회송</label>
  1286. <value>03</value>
  1287. </item>
  1288. </choices>
  1289. </select1>
  1290. <group id="group6" style="left:0px; top:305px; width:720px; height:428px; ">
  1291. <button id="button2" class="btn2_letter8" visibility="hidden" style="left:603px; top:0px; width:108px; height:19px; ">
  1292. <caption>타병원체크리스트</caption>
  1293. <script type="javascript" ev:event="DOMActivate">
  1294. <![CDATA[
  1295. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  1296. messageBox("환자를", "C002");
  1297. return false;
  1298. }
  1299. modal("SPARC02900",1 ,50, 50);
  1300. ]]>
  1301. </script>
  1302. </button>
  1303. <caption id="caption9" class="tit_2" style="left:5px; top:3px; width:98px; height:13px; ">전원의뢰서</caption>
  1304. <line id="line4" class="line_1" style="x1:5px; y1:22px; x2:710px; y2:21px; "/>
  1305. <iviewer id="iviewer1" src="../../../emr/medirecweb/xrw/SSMMR01100_서식로더.xrw" style="left:5px; top:25px; width:705px; height:400px; border-style:sunken; "/>
  1306. <button id="button4" class="btn2_letter2" style="left:105px; top:0px; width:42px; height:19px; ">
  1307. <caption>확대</caption>
  1308. <script type="javascript" ev:event="DOMActivate">
  1309. <![CDATA[
  1310. fSize();
  1311. ]]>
  1312. </script>
  1313. </button>
  1314. </group>
  1315. <caption id="caption33" class="cell_1" style="left:549px; top:253px; width:66px; height:23px; vertical-align:middle; ">확인자</caption>
  1316. <caption id="caption34" class="cell_1" style="left:5px; top:252px; width:100px; height:23px; vertical-align:middle; ">임상사유</caption>
  1317. <select1 id="combo3" ref="/root/main/req_pat_info/patinfo/ncrsn" appearance="minimal" style="left:107px; top:227px; width:268px; height:19px; ">
  1318. <choices>
  1319. <item>
  1320. <label>01.환자수용불가(입원실/의료진 부족등)</label>
  1321. <value>01</value>
  1322. </item>
  1323. <item>
  1324. <label>02.환자 또는 가족의 요청</label>
  1325. <value>02</value>
  1326. </item>
  1327. <item>
  1328. <label>03.기타</label>
  1329. <value>03</value>
  1330. </item>
  1331. </choices>
  1332. </select1>
  1333. <select1 id="combo4" ref="/root/main/req_pat_info/patinfo/crsn" appearance="minimal" style="left:107px; top:254px; width:270px; height:19px; ">
  1334. <choices>
  1335. <item>
  1336. <label>01.수술후 관리 필요</label>
  1337. <value>01</value>
  1338. </item>
  1339. <item>
  1340. <label>02.수술이외의 치료 후 관리(복약,관리 등 포함)필요</label>
  1341. <value>02</value>
  1342. </item>
  1343. </choices>
  1344. </select1>
  1345. <input id="input4" ref="/root/main/req_pat_info/patinfo/ncrsnetc" style="left:380px; top:227px; width:330px; height:19px; "/>
  1346. <input id="input5" ref="/root/main/req_pat_info/patinfo/stat" visibility="hidden" style="left:540px; top:150px; width:50px; height:19px; "/>
  1347. <output id="output2" ref="/root/main/req_pat_info/patinfo/hp" class="output_fix" appearance="output" style="left:587px; top:22px; width:123px; height:19px; "/>
  1348. <button id="button9" class="btn2_letter5" style="left:635px; top:150px; width:75px; height:19px; ">
  1349. <caption>기본값세팅</caption>
  1350. <script type="javascript" ev:event="DOMActivate">
  1351. <![CDATA[
  1352. fSetDefault();
  1353. ]]>
  1354. </script>
  1355. </button>
  1356. <caption id="caption32" class="cell_1" style="left:489px; top:46px; width:67px; height:24px; vertical-align:middle; ">병동/병실</caption>
  1357. <output id="output3" ref="/root/main/req_pat_info/patinfo/wardnm" class="output_fix" appearance="output" style="left:559px; top:49px; width:102px; height:19px; "/>
  1358. <output id="output4" ref="/root/main/req_pat_info/patinfo/roomcd" class="output_fix" appearance="output" style="left:665px; top:49px; width:45px; height:19px; "/>
  1359. <caption id="caption42" class="cell_1" style="left:258px; top:20px; width:46px; height:23px; vertical-align:middle; ">퇴원일</caption>
  1360. <output id="output5" ref="/root/main/req_pat_info/patinfo/dschdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:307px; top:22px; width:96px; height:19px; "/>
  1361. <output id="output6" ref="/root/main/req_pat_info/patinfo/dispaddr" class="output_fix" disabled="true" appearance="output" style="left:357px; top:177px; width:266px; height:19px; "/>
  1362. </group>
  1363. <group id="group4" style="left:0px; top:0px; width:510px; height:740px; ">
  1364. <datagrid id="grd_list" nodeset="/root/main/req_info/req_pat_list" caption="상태^formcd^작성일^등록번호^환자명^발행^처방^유형^차^보훈^청구^개인^무료사본^회송번호^seqno^formrecseq^formcd^입/외^병동명^병실^진료과^작성과^진료의사" colsep="^" colwidth="46, 8, 78, 56, 45, 40, 43, 37, 27, 39, 38, 39, 61, 166, 51, 100, 100, 50, 100, 100, 80, 80, 69" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:181px; width:505px; height:386px; ">
  1365. <col disabled="true" ref="stat" type="combo">
  1366. <choices>
  1367. <item>
  1368. <label>미해결</label>
  1369. <value>1</value>
  1370. </item>
  1371. <item>
  1372. <label>삭제</label>
  1373. <value>9</value>
  1374. </item>
  1375. <item>
  1376. <label>완료</label>
  1377. <value>3</value>
  1378. </item>
  1379. <item>
  1380. <label>전송완료</label>
  1381. <value>4</value>
  1382. </item>
  1383. </choices>
  1384. </col>
  1385. <col ref="formcd" visibility="hidden"/>
  1386. <col disabled="true" ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1387. <col ref="pid" style="text-align:center; "/>
  1388. <col ref="hngnm" style="text-align:center; "/>
  1389. <col ref="issflag"/>
  1390. <col ref="prcpcds"/>
  1391. <col ref="insukind" style="color:#000000; "/>
  1392. <col ref="chayn" style="font-weight:bold; color:#ff0000; text-align:center; "/>
  1393. <col ref="boyn" style="font-weight:bold; color:#ff0000; text-align:center; "/>
  1394. <col ref="chungyn" visibility="visible" style="text-align:center; "/>
  1395. <col ref="pyn" style="text-align:left; "/>
  1396. <col ref="saboncnt" style="text-align:left; "/>
  1397. <col ref="reqaseqno" format="99999999-999999-99999"/>
  1398. <col ref="seqno" visibility="hidden"/>
  1399. <col ref="formrecseq" visibility="hidden"/>
  1400. <col ref="formcd"/>
  1401. <col ref="chosflag" style="text-align:center; "/>
  1402. <col ref="wardnm"/>
  1403. <col ref="roomcd"/>
  1404. <col ref="orddeptnm" style="text-align:center; "/>
  1405. <col ref="formrecdeptnm" style="text-align:center; "/>
  1406. <col ref="orddrnm"/>
  1407. <script type="javascript" ev:event="onclick">
  1408. <![CDATA[
  1409. fGrdClick();
  1410. ]]>
  1411. </script>
  1412. <script type="javascript" ev:event="onaftersort">
  1413. <![CDATA[
  1414. grd_list.gridToInstance();
  1415. ]]>
  1416. </script>
  1417. <script type="javascript" ev:event="onmousedown">
  1418. <![CDATA[
  1419. if(event.button == 3){
  1420. fPop();
  1421. }
  1422. ]]>
  1423. </script>
  1424. </datagrid>
  1425. <caption id="caption1" class="tit_2" style="left:5px; top:161px; width:152px; height:15px; ">의뢰환자 리스트</caption>
  1426. <line id="line1" class="line_1" style="x1:0px; y1:176px; x2:505px; y2:176px; "/>
  1427. <group id="grp_sea" style="left:0px; top:5px; width:505px; height:145px; vertical-align:top; ">
  1428. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:504px; height:140px; "/>
  1429. <caption id="caption3" class="search_name" style="left:10px; top:10px; width:91px; height:17px; ">조회기간 :</caption>
  1430. <caption id="caption5" class="search_no_b" style="left:345px; top:10px; width:12px; height:17px; ">~</caption>
  1431. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:240px; top:10px; width:100px; height:19px; text-align:center; "/>
  1432. <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; "/>
  1433. <button id="btn_search" class="btn1_letter2" style="left:432px; top:115px; width:56px; height:22px; ">
  1434. <caption>조회</caption>
  1435. <script type="javascript" ev:event="DOMActivate">
  1436. <![CDATA[
  1437. if ( !fCheckDateSend() ) return; //필수 저장여부 체크
  1438. fSearch();
  1439. model.refresh();
  1440. ]]>
  1441. </script>
  1442. </button>
  1443. <caption id="caption2" class="search_name" style="left:10px; top:62px; width:91px; height:17px; ">진료과 :</caption>
  1444. <caption id="caption10" class="search_name" style="left:285px; top:62px; width:91px; height:17px; ">담당의사 :</caption>
  1445. <caption id="caption11" class="search_name" style="left:10px; top:114px; width:91px; height:17px; ">상태구분 :</caption>
  1446. <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:125px; top:62px; width:120px; height:19px; ">
  1447. <choices>
  1448. <itemset nodeset="/root/init/dept/dept">
  1449. <label ref="depthngnm"/>
  1450. <value ref="deptcd"/>
  1451. </itemset>
  1452. </choices>
  1453. <script type="javascript" ev:event="xforms-value-changed">
  1454. <![CDATA[
  1455. fDoctSerach();
  1456. model.refresh();
  1457. ]]>
  1458. </script>
  1459. </select1>
  1460. <select1 id="cmb_orddrid" ref="/root/send/search/orddrid" class="combo_search" appearance="minimal" style="left:380px; top:62px; width:120px; height:19px; ">
  1461. <choices>
  1462. <itemset nodeset="/root/init/doctlist/medispcl/">
  1463. <label ref="doctnm"/>
  1464. <value ref="doctid"/>
  1465. </itemset>
  1466. </choices>
  1467. </select1>
  1468. <select1 id="rdo_stat" ref="/root/send/search/stat" appearance="full" cols="5" rows="1" overflow="visible" style="left:125px; top:115px; width:280px; height:20px; border-style:none; ">
  1469. <choices>
  1470. <item>
  1471. <label>전체</label>
  1472. <value>%</value>
  1473. </item>
  1474. <item>
  1475. <label>미해결</label>
  1476. <value>1</value>
  1477. </item>
  1478. <item>
  1479. <label>삭제</label>
  1480. <value>9</value>
  1481. </item>
  1482. <item>
  1483. <label>완료</label>
  1484. <value>3</value>
  1485. </item>
  1486. <item>
  1487. <label>전송완료</label>
  1488. <value>4</value>
  1489. </item>
  1490. </choices>
  1491. </select1>
  1492. <input id="ipt_pid" ref="/root/send/search/pid" class="input_search" maxlength="10" style="left:125px; top:35px; width:120px; height:19px; ">
  1493. <script type="javascript" ev:event="onkeydown">
  1494. <![CDATA[
  1495. if (event.keyCode == 13 && ipt_pid.currentText.length> 0)
  1496. {
  1497. inputEnterKey("btn_pat", "DOMActivate");
  1498. }
  1499. ]]>
  1500. </script>
  1501. </input>
  1502. <caption id="caption23" class="search_name" style="left:10px; top:36px; width:95px; height:17px; ">등록번호 :</caption>
  1503. <button id="btn_pat" class="icon_search" style="left:249px; top:35px; width:16px; height:16px; ">
  1504. <caption/>
  1505. <script type="javascript" ev:event="DOMActivate">
  1506. <![CDATA[
  1507. fPatPopUp();
  1508. ]]>
  1509. </script>
  1510. </button>
  1511. <input id="ipt_hngnm" ref="/root/send/search/hngnm" class="input_search" imemode="hangul" style="left:380px; top:35px; width:120px; height:19px; "/>
  1512. <caption id="caption24" class="search_name" style="left:285px; top:36px; width:80px; height:17px; ">환자명 :</caption>
  1513. <caption id="caption25" class="search_name" style="left:10px; top:88px; width:126px; height:17px; ">전원의뢰병원 :</caption>
  1514. <input id="ipt_rumint" ref="/root/send/search/coophospnm" class="input_search" imemode="hangul" style="left:125px; top:88px; width:120px; height:19px; "/>
  1515. <select1 id="combo5" ref="/root/send/search/dayflag" appearance="minimal" style="left:125px; top:10px; width:110px; height:19px; ">
  1516. <choices>
  1517. <itemset nodeset="/root/init/dayflaglist">
  1518. <label ref="label"/>
  1519. <value ref="value"/>
  1520. </itemset>
  1521. </choices>
  1522. </select1>
  1523. <select1 id="combo6" ref="/root/send/search/formcd" appearance="minimal" style="left:260px; top:88px; width:175px; height:19px; ">
  1524. <choices>
  1525. <item>
  1526. <label>전원의뢰</label>
  1527. <value>0000002536</value>
  1528. </item>
  1529. <item>
  1530. <label>진료의뢰</label>
  1531. <value>0900005340</value>
  1532. </item>
  1533. <item>
  1534. <label>응급환자진료의뢰서</label>
  1535. <value>1600018117</value>
  1536. </item>
  1537. <item>
  1538. <label>의료급여의뢰서</label>
  1539. <value>1600017534</value>
  1540. </item>
  1541. <item>
  1542. <label>의료급여회송서</label>
  1543. <value>1400015254</value>
  1544. </item>
  1545. </choices>
  1546. </select1>
  1547. </group>
  1548. <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; "/>
  1549. <line id="line10" class="line_1" style="x1:0px; y1:570px; x2:505px; y2:570px; "/>
  1550. <button id="button3" class="btn2_letter2" style="left:445px; top:155px; width:42px; height:19px; ">
  1551. <caption>삭제</caption>
  1552. <script type="javascript" ev:event="DOMActivate">
  1553. <![CDATA[
  1554. fReqAgnPatDelete();
  1555. model.refresh();
  1556. ]]>
  1557. </script>
  1558. </button>
  1559. <input id="input6" ref="/root/main/req_pat_info/patinfo/referdd" class="input_default" inputtype="date" style="left:78px; top:575px; width:100px; height:19px; "/>
  1560. <input id="input7" ref="/root/main/req_pat_info/patinfo/fcontact" style="left:93px; top:599px; width:410px; height:19px; "/>
  1561. <caption id="caption35" class="cell_1" style="left:0px; top:575px; width:75px; height:20px; ">전원의뢰일</caption>
  1562. <caption id="caption36" class="cell_1" style="left:185px; top:575px; width:70px; height:20px; ">퇴원예정일</caption>
  1563. <caption id="caption37" class="cell_1" style="left:0px; top:599px; width:90px; height:20px; ">보호자 연락처</caption>
  1564. <caption id="caption38" class="cell_1" style="left:0px; top:622px; width:100px; height:20px; ">주치의확인여부</caption>
  1565. <input id="input8" ref="/root/main/req_pat_info/patinfo/hopedschdd" class="input_default" inputtype="date" style="left:260px; top:575px; width:100px; height:19px; "/>
  1566. <bool id="bool1" checkvalue="Y,N" ref="/root/main/req_pat_info/patinfo/drcnfmyn" style="left:99px; top:620px; width:24px; height:21px; "/>
  1567. <caption id="caption27" class="cell_1" style="left:129px; top:622px; width:50px; height:20px; ">cd체크</caption>
  1568. <caption id="caption39" class="cell_1" style="left:315px; top:622px; width:75px; height:20px; ">결과지체크</caption>
  1569. <caption id="caption40" class="cell_1" style="left:210px; top:622px; width:67px; height:20px; ">기록물체크</caption>
  1570. <bool id="bool2" checkvalue="Y,N" ref="/root/main/req_pat_info/patinfo/cdchk" style="left:180px; top:620px; width:24px; height:21px; "/>
  1571. <bool id="bool3" checkvalue="Y,N" ref="/root/main/req_pat_info/patinfo/recordchk" style="left:280px; top:620px; width:24px; height:21px; "/>
  1572. <bool id="bool4" checkvalue="Y,N" ref="/root/main/req_pat_info/patinfo/resultchk" style="left:390px; top:620px; width:24px; height:21px; "/>
  1573. <caption id="caption41" class="cell_1" style="left:0px; top:645px; width:63px; height:20px; ">전원병원</caption>
  1574. <button id="button10" class="btn2_letter2" disabled="false" style="left:460px; top:575px; width:42px; height:19px; ">
  1575. <caption>저장</caption>
  1576. <script type="javascript" ev:event="DOMActivate">
  1577. <![CDATA[
  1578. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  1579. messageBox("저장하고자 하는 환자를", "C002");
  1580. return false;
  1581. }
  1582. fSave();
  1583. model.refresh();
  1584. ]]>
  1585. </script>
  1586. </button>
  1587. <input id="input9" ref="/root/main/req_pat_info/patinfo/transhosp1" style="left:65px; top:645px; width:140px; height:19px; "/>
  1588. <input id="input10" ref="/root/main/req_pat_info/patinfo/transhosp2" style="left:212px; top:645px; width:140px; height:19px; "/>
  1589. <input id="input11" ref="/root/main/req_pat_info/patinfo/transhosp3" style="left:359px; top:645px; width:143px; height:19px; "/>
  1590. </group>
  1591. </group>
  1592. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1245px; height:27px; ">
  1593. <button id="btn_save" class="btn4_letter2" style="left:1171px; top:3px; width:56px; height:22px; ">
  1594. <caption>저장</caption>
  1595. <script type="javascript" ev:event="DOMActivate">
  1596. <![CDATA[
  1597. if ( !fCheckDate() ) return; //필수 저장여부 체크
  1598. fSave();
  1599. model.refresh();
  1600. ]]>
  1601. </script>
  1602. </button>
  1603. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:385px; top:5px; width:56px; height:22px; ">
  1604. <caption>출력</caption>
  1605. <script type="javascript" ev:event="DOMActivate">
  1606. <![CDATA[
  1607. fReplcheck();
  1608. model.refresh();
  1609. ]]>
  1610. </script>
  1611. </button>
  1612. <button id="button6" class="btn4_letter2" style="left:1112px; top:3px; width:56px; height:22px; ">
  1613. <caption>전송</caption>
  1614. <script type="javascript" ev:event="DOMActivate">
  1615. <![CDATA[
  1616. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  1617. messageBox("환자가 선택되지 않았습니다", "I");
  1618. return;
  1619. }
  1620. var stat = model.getValue("/root/main/req_pat_info/patinfo/stat");
  1621. var lrow = grd_list.row;
  1622. var chayn = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/chayn");
  1623. if (chayn == "Y") {
  1624. messageBox("차상위 환자는 전송할 수 없습니다","I");
  1625. return;
  1626. }
  1627. var boyn = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/boyn");
  1628. if (boyn == "Y") {
  1629. messageBox("보훈 환자는 전송할 수 없습니다","I");
  1630. return;
  1631. }
  1632. var insukind = model.getValue("/root/main/req_info/req_pat_list[" + lrow + "]/insukind");
  1633. if (insukind != "건보") {
  1634. messageBox("건보 유형 환자 이외는 전송할 수 없습니다","I");
  1635. return;
  1636. }
  1637. if (!(stat == "3" || stat == "4")) {
  1638. messageBox("전송할 수 있는 상태가 아닙니다","I");
  1639. return;
  1640. }
  1641. if (model.getValue("/root/main/req_pat_info/patinfo/disphospnm") == "") {
  1642. messageBox("전원의뢰병원이 선택되지 않았습니다", "I");
  1643. return false;
  1644. }
  1645. if (model.getValue("/root/main/req_pat_info/patinfo/ncrsn") == "") {
  1646. messageBox("비임상적사유가 선택되지 않았습니다", "I");
  1647. return false;
  1648. }
  1649. if (model.getValue("/root/main/req_pat_info/patinfo/ncrsn") == "") {
  1650. messageBox("비임상적사유가 선택되지 않았습니다", "I");
  1651. return false;
  1652. }
  1653. if (model.getValue("/root/main/req_pat_info/patinfo/crsn") == "") {
  1654. messageBox("임상적사유가 선택되지 않았습니다", "I");
  1655. return false;
  1656. }
  1657. if (model.getValue("/root/main/req_pat_info/patinfo/reqaflag") == "") {
  1658. messageBox("회송유형 선택되지 않았습니다", "I");
  1659. return false;
  1660. }
  1661. if (model.getValue("/root/main/req_pat_info/patinfo/enddd") == "") {
  1662. messageBox("전원의뢰완료일이 선택되지 않았습니다", "I");
  1663. return false;
  1664. }
  1665. //if (bool5.value == "Y") {
  1666. var hiratrans = model.getValue("/root/send/hiratrans");
  1667. if (hiratrans == "Y") {
  1668. if ("6" != messageBox("심평원 연계하여 자동전송하시겠습니까?","Q") ) {
  1669. return false;
  1670. }
  1671. if(fHira_Trans() == false) {
  1672. return false;
  1673. }
  1674. }
  1675. // 심평원 연계 성공 시 이후 트랜잭션 수행
  1676. fTrans();
  1677. model.refresh();
  1678. ]]>
  1679. </script>
  1680. </button>
  1681. <button id="button7" class="btn4_letter4" style="left:595px; top:3px; width:80px; height:22px; ">
  1682. <caption>전송취소</caption>
  1683. <script type="javascript" ev:event="DOMActivate">
  1684. <![CDATA[
  1685. if (model.getValue("/root/main/req_pat_info/patinfo/pid") == "") {
  1686. messageBox("환자가 선택되지 않았습니다", "I");
  1687. return;
  1688. }
  1689. var stat = model.getValue("/root/main/req_pat_info/patinfo/stat");
  1690. if (stat != "4") {
  1691. messageBox("전송취소 할 수 있는 상태가 아닙니다","I");
  1692. return;
  1693. }
  1694. if ( "6" != messageBox("전송취소 하시겠습니까","Q") ) {
  1695. return;
  1696. }
  1697. fCnclTrans();
  1698. model.refresh();
  1699. ]]>
  1700. </script>
  1701. </button>
  1702. <select id="chk_hirayn" ref="/root/send/hiratrans" overflow="visible" appearance="full" style="left:1005px; top:5px; width:85px; height:20px; border-style:none; ">
  1703. <choices>
  1704. <item>
  1705. <label>심평원전송</label>
  1706. <value>Y</value>
  1707. </item>
  1708. </choices>
  1709. </select>
  1710. <select id="chk_hieconsent" ref="/root/init/consentinfo/hieconsent/hieconsentyn" overflow="visible" appearance="full" style="left:685px; top:5px; width:105px; height:20px; border-style:none; ">
  1711. <choices>
  1712. <item>
  1713. <label>HIE동의체크</label>
  1714. <value>Y</value>
  1715. </item>
  1716. </choices>
  1717. <script type="javascript" ev:event="xforms-value-changed">
  1718. <![CDATA[
  1719. //var hardcd = model.getValue("/root/temp/formhardcd_6009/hardcd/hardcd");
  1720. var hardcd = chk_hieconsent.value;
  1721. var hieconsentyn;
  1722. if(!isNull(hardcd) && hardcd == "Y"){
  1723. chk_hieconsent.attribute("background-color") = "white";
  1724. hieconsentyn = "Y";
  1725. model.setValue("/root/send/hieconsent/hieconsentyn",hieconsentyn);
  1726. submit("TXARC01404");
  1727. }else{
  1728. var rtn = messageBox("HIE동의체크 해제 시 원무재증명 창구 재로그인이 필요합니다.\n\n", "Q003");
  1729. if(rtn != 6){
  1730. chk_hieconsent.value = "Y";
  1731. return;
  1732. }
  1733. chk_hieconsent.attribute("background-color") = "yellow";
  1734. hieconsentyn = "N";
  1735. model.setValue("/root/send/hieconsent/hieconsentyn",hieconsentyn);
  1736. submit("TXARC01404");
  1737. }
  1738. model.refresh();
  1739. ]]>
  1740. </script>
  1741. </select>
  1742. </group>
  1743. <button id="button8" class="btn2_letter4" disabled="false" visibility="visible" style="left:520px; top:760px; width:64px; height:19px; ">
  1744. <caption>미리보기</caption>
  1745. <script type="javascript" ev:event="DOMActivate">
  1746. <![CDATA[
  1747. var currow = grd_list.row;
  1748. if(currow < 0){
  1749. return;
  1750. }
  1751. var ivwCtrl = iviewer1.window.document.controls("ivw_base");
  1752. var formcd = model.getValue("/root/main/req_info/req_pat_list["+ currow +"]/formcd");
  1753. //서식 두번째 코드가 8인 경우,
  1754. if(formcd.charAt(1)=="8")
  1755. {
  1756. formcd = formcd.substr(7, 3);
  1757. rexid = "RFM" + "80" + formcd + "00";
  1758. }
  1759. else if (formcd.charAt(0) == "1") // knuh_20110118 추가
  1760. {
  1761. var precd = formcd.substr(0, 2);
  1762. formcd = formcd.substr(5, 5);
  1763. rexid = "RFM" + precd + formcd;
  1764. }
  1765. else
  1766. {
  1767. formcd = formcd.substr(5, 5);
  1768. rexid = "RFM" + formcd + "00";
  1769. }
  1770. copyNodeset("/root/main/recinfo", "/root/main/recinfo", "replace", model, ivwCtrl.model); //서식지 정보 설정
  1771. model.makeValue("/root/hidden/docinfo/signimge", ivwCtrl.model.getValue("/root/hidden/docinfo/signimge")); //서식서명이미지 설정
  1772. fDoMakeProfPrntInfo(ivwCtrl);
  1773. exeReportPreview(rexid, "XMLSTR"); //미리보기만 가능
  1774. ]]>
  1775. </script>
  1776. </button>
  1777. </xhtml:body>
  1778. </xhtml:html>