SPARC00100_의뢰환자등록.xrw 91 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>의뢰환자등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patient>
  11. <pid/>
  12. <sex/>
  13. <age/>
  14. <hngnm/>
  15. <engnm/>
  16. <rrgstno1/>
  17. <rrgstno2/>
  18. <brthdd/>
  19. <hometel/>
  20. <mpphontel/>
  21. <zipcd1/>
  22. <zipcd2/>
  23. <addr/>
  24. <detladdr/>
  25. <forgeryn/>
  26. <nati/>
  27. <psptno/>
  28. <religncd/>
  29. </patient>
  30. <reqinfo>
  31. <pid/>
  32. <coophospcd/>
  33. <coophospnm/>
  34. <orddd/>
  35. <orddeptcd/>
  36. <depthngnm/>
  37. <orddrid/>
  38. <usernm/>
  39. <emailnm/>
  40. <drnm/>
  41. <chospath/>
  42. <fsexamflag/>
  43. <cptype/>
  44. <reqtype/>
  45. <reqpath/>
  46. <replmthd/>
  47. <reqdd/>
  48. <repltype>1</repltype>
  49. <rgstdd/>
  50. <endtype/>
  51. <replflag/>
  52. <endflag/>
  53. <cc/>
  54. <rem/>
  55. <cretno/>
  56. <reqseqno/>
  57. <hospflag/>
  58. <status/>
  59. <coopdrcd/>
  60. <acptseqno/>
  61. <fromdd/>
  62. <hospgrade/>
  63. <clsmatyn/>
  64. <hosptelno/>
  65. <hospfaxno/>
  66. <fstprntdt/>
  67. <indschprntdt/>
  68. <reqaprntdt/>
  69. <reqaenddd/>
  70. <reqahospnm/>
  71. <status/>
  72. <enddd/>
  73. <reqagntype/>
  74. <staffid/>
  75. <staffnm/>
  76. <mpphontel/>
  77. <smsmsgkey/>
  78. <hieyn/>
  79. <msg/>
  80. <smsdd/>
  81. <reqpseqno/>
  82. <outrecyn/>
  83. <outcdyn/>
  84. <outcnstyn/>
  85. <outcmtyn/>
  86. </reqinfo>
  87. <patreq>
  88. <reqlist>
  89. <reqdd/>
  90. <depthngnm/>
  91. <usernm/>
  92. <coophospnm/>
  93. <drnm/>
  94. <chospath/>
  95. <fsexamflag/>
  96. <reqtype/>
  97. <cptype/>
  98. <reqpath/>
  99. <replmthd/>
  100. <orddd/>
  101. <repltype/>
  102. <reqagntype/>
  103. <rgstdd/>
  104. <endflag/>
  105. <replflag/>
  106. <endtype/>
  107. <enddd/>
  108. <cc/>
  109. <rem/>
  110. <orddrid/>
  111. <emailid/>
  112. <orddeptcd/>
  113. <coophospcd/>
  114. <emailaddr/>
  115. <coopdrcd/>
  116. <cretno/>
  117. <acptseqno/>
  118. <reqseqno/>
  119. <fromdd/>
  120. <hospgrade/>
  121. <clsmatyn/>
  122. <hosptelno/>
  123. <hospfaxno/>
  124. <fstprntdt/>
  125. <indschprntdt/>
  126. <reqaprntdt/>
  127. <reqahospnm/>
  128. <pid/>
  129. <status/>
  130. <staffid/>
  131. <staffnm/>
  132. <outrecyn/>
  133. <outcdyn/>
  134. </reqlist>
  135. <patlist>
  136. <pid/>
  137. <sex/>
  138. <age/>
  139. <hngnm/>
  140. <engnm/>
  141. <rrgstno1/>
  142. <rrgstno2/>
  143. <brthdd/>
  144. <hometel/>
  145. <mpphontel/>
  146. <zipcd1/>
  147. <zipcd2/>
  148. <addr/>
  149. <detladdr/>
  150. <forignyn/>
  151. <nati/>
  152. <psptno/>
  153. <religncd/>
  154. <orddd/>
  155. <orddeptcd/>
  156. <depthngnm/>
  157. <orddrid/>
  158. <usernm/>
  159. <cretno/>
  160. </patlist>
  161. <otptlist>
  162. <orddd/>
  163. <ordtm/>
  164. <orddeptnm/>
  165. <orddrnm/>
  166. <stat/>
  167. <fsexamflagnm/>
  168. <insukindnm/>
  169. <reqdocuyn/>
  170. <orddeptcd/>
  171. <orddrid/>
  172. <cretno/>
  173. <acptseqno/>
  174. <fsexamflagnm/>
  175. <fstacptdd/>
  176. <rsrvflag/>
  177. <pid/>
  178. </otptlist>
  179. <inptlist>
  180. <indd/>
  181. <intm/>
  182. <orddeptnm/>
  183. <atdoctnm/>
  184. <wardnm/>
  185. <roomcd/>
  186. <dschdd/>
  187. <dschtm/>
  188. <yn/>
  189. <mskind/>
  190. <orddeptcd/>
  191. <atdoctid/>
  192. <cretno/>
  193. <acptseqno/>
  194. <pid/>
  195. <wardcd/>
  196. <ordtype/>
  197. </inptlist>
  198. <acptlist>
  199. <pid/>
  200. <orddd/>
  201. <orddeptcd/>
  202. <orddrid/>
  203. <fsexamflag/>
  204. <rsrvflag/>
  205. <onestop/>
  206. <cretno/>
  207. <acptseqno/>
  208. <fstacptdd/>
  209. </acptlist>
  210. <diaglist/>
  211. </patreq>
  212. <patinfo>
  213. <patinfolist/>
  214. </patinfo>
  215. <paminfo>
  216. <list/>
  217. </paminfo>
  218. <popupendflag/>
  219. <hospinfo>
  220. <hospinfolist/>
  221. </hospinfo>
  222. <hospflag/>
  223. <listinfo>
  224. <diaglist>
  225. <diagcd/>
  226. <diaghngnm/>
  227. <diagengnm/>
  228. <orddd/>
  229. <estmexptyn/>
  230. </diaglist>
  231. <doctreqlist>
  232. <lastformrecdd/>
  233. <prntdt/>
  234. <orddeptnm/>
  235. <orddrnm/>
  236. </doctreqlist>
  237. <nursereqlist>
  238. <lastformrecdd/>
  239. <prntdt/>
  240. <orddeptnm/>
  241. <orddrnm/>
  242. </nursereqlist>
  243. <repllist>
  244. <replyn/>
  245. <reqayn/>
  246. <reqcyn/>
  247. </repllist>
  248. </listinfo>
  249. <reqexist>
  250. <exist>
  251. <existyn/>
  252. </exist>
  253. </reqexist>
  254. <userinfo>
  255. <userid/>
  256. <usernm/>
  257. </userinfo>
  258. </main>
  259. <hidden>
  260. <smsdata/>
  261. </hidden>
  262. <send>
  263. <reqdata/>
  264. <doctor/>
  265. <cond>
  266. <pid/>
  267. <orddd/>
  268. <cretno/>
  269. <acptseqno/>
  270. </cond>
  271. <savedata/>
  272. <reqcond/>
  273. <sms>
  274. <req>
  275. <pid/>
  276. <instcd/>
  277. <reqdd/>
  278. <reqseqno/>
  279. </req>
  280. <smsdata/>
  281. </sms>
  282. <search/>
  283. </send>
  284. <init>
  285. <nati>
  286. <P0353/>
  287. </nati>
  288. <religncd>
  289. <P0157/>
  290. </religncd>
  291. <dept/>
  292. <doctlist>
  293. <medispcl>
  294. <doctid/>
  295. <doctnm/>
  296. </medispcl>
  297. <atdoct>
  298. <doctid/>
  299. <doctnm/>
  300. </atdoct>
  301. </doctlist>
  302. <cptype>
  303. <A0420/>
  304. </cptype>
  305. <fsexamflag>
  306. <P0021/>
  307. </fsexamflag>
  308. <reqtype>
  309. <A0418/>
  310. </reqtype>
  311. <replmthd>
  312. <A0422/>
  313. </replmthd>
  314. <reqpath>
  315. <A0421/>
  316. </reqpath>
  317. <repltype>
  318. <A0423/>
  319. </repltype>
  320. <endflag>
  321. <A0424/>
  322. </endflag>
  323. <endtype>
  324. <A0425/>
  325. </endtype>
  326. <hospgrade>
  327. <A0429/>
  328. </hospgrade>
  329. <replinfo>
  330. <replseqno/>
  331. <fstyn/>
  332. </replinfo>
  333. <reqagntype>
  334. <A0583/>
  335. </reqagntype>
  336. <replflag>
  337. <A0636/>
  338. </replflag>
  339. <hardcd/>
  340. </init>
  341. <temp>
  342. </temp>
  343. <tmp>
  344. <reqinfo/>
  345. </tmp>
  346. <baseinfo/>
  347. </root>
  348. </instance>
  349. <submission id="TRZBP00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  350. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  351. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  352. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  353. <submission id="TRARC01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/doctor" resultref="/root/init/doctlist"/>
  354. <submission id="TRARC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/patreq"/>
  355. <submission id="TXARC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
  356. <submission id="TXARC00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sms/req" resultref="/root/temp"/>
  357. <submission id="TRARC02513" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/baseinfo"/>
  358. <script type="javascript" ev:event="xforms-ready">
  359. <![CDATA[
  360. fCmbSetting();
  361. fInit();
  362. ]]>
  363. </script>
  364. <submission id="TRARC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqcond" resultref="/root/main/listinfo"/>
  365. <submission id="TRARC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/reqexist"/>
  366. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  367. <script type="javascript" ev:event="xforms-close">
  368. <![CDATA[
  369. if ( checkOpener() ) {
  370. //var openuid = getOpenerUID();
  371. //alert(openuid);
  372. curEmrRecObj = getOpenWindow("SMARC00101"); //활성화된 진료기록 화면 object loading
  373. if (curEmrRecObj != null)
  374. {
  375. opener.javascript.fSearch();
  376. opener.model.refresh();
  377. }
  378. }
  379. ]]>
  380. </script>
  381. </model>
  382. </xhtml:head>
  383. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  384. <script src="../../../com/basiccodeweb/js/ZBC001.js" type="javascript"/>
  385. <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
  386. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  387. <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
  388. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  389. <script src="../../../ast/soclworkweb/js/AWMCommon.js" type="javascript"/>
  390. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  391. <script src="../../../com/departmentcodeweb/js/common.js" type="javascript"/>
  392. <script src="../../../com/departmentcodeweb/js/ZSD001.js" type="javascript"/>
  393. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  394. <script type="javascript" src="../../../com/shortmsgweb/js/ZMS001.js"/>
  395. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  396. <script type="javascript">
  397. <![CDATA[
  398. var gdutplceinstcd = getUserInfo("dutplceinstcd");
  399. // 콤보 초기값 셋팅
  400. function fCmbSetting()
  401. {
  402. // 진료과
  403. //var instcd = "012";
  404. var instcd = getUserInfo("dutplceinstcd");
  405. var standard_yn = "rcptuseyn";
  406. var ord_deptflag = 'D';
  407. var rslt_ref = "/root/init/dept";
  408. var sort_method = "depthngnm";
  409. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  410. sort_field = "depthngnm"
  411. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  412. fDoctSerach();
  413. // 공통코드 목록 가져오기/root/main/reqinfo
  414. zbcfGetCodeList(new Array("P0353", "P0157", "A0420", "P0021", "A0418", "A0422", "A0421", "A0423", "A0424", "A0425", "A0429","A0583","A0636"),
  415. new Array("/root/init/nati", "/root/init/religncd", "/root/init/cptype", "/root/init/fsexamflag", "/root/init/reqtype", "/root/init/replmthd", "/root/init/reqpath", "/root/init/repltype", "/root/init/endflag", "/root/init/endtype", "/root/init/hospgrade","/root/init/reqagntype", "/root/init/replflag") , true);
  416. // One Stop 유형
  417. addComboItem("cmb_cptype", "해당 없슴", "", "above");
  418. // knuh_20101228_start 의료협력부서 가져옴
  419. mmbfGetHardCodeInfo("/root/send/harddatadept", "/root/init/hardcd", 9915);
  420. }
  421. // 화면 오픈시
  422. function fInit() {
  423. mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/aformcd", 1310); //타병원
  424. mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/bformcd", 5561); //개인정보
  425. if (gdutplceinstcd == "031") {
  426. button8.attribute("visibility") = "visible";
  427. button9.attribute("visibility") = "visible";
  428. }
  429. model.removeNodeset("/root/main/patreq/reqlist");
  430. model.resetInstanceNode("/root/main/reqinfo");
  431. model.removeNodeset("/root/main/listinfo/diaglist");
  432. model.removeNodeset("/root/main/listinfo/doctreqlist");
  433. model.removeNodeset("/root/main/listinfo/nursereqlist");
  434. //상단 환자 정보 가져오기
  435. model.removeNodeset("/root/main/paminfo");
  436. model.makeNode("/root/main/paminfo");
  437. var replseqno = opener.javascript.getParameter("replseqno");
  438. var pid = opener.javascript.getParameter("pid");
  439. var fstyn = opener.javascript.getParameter("fstyn");
  440. // knuh_20101228_박성호_start
  441. var orddd = opener.javascript.getParameter("orddd");
  442. var orddeptcd = opener.javascript.getParameter("orddeptcd");
  443. var orddrid = opener.javascript.getParameter("orddrid");
  444. // knuh_20101228_end
  445. model.resetInstanceNode("/root/init/replinfo");
  446. model.setValue("/root/init/replinfo/replseqno", replseqno);
  447. model.setValue("/root/init/replinfo/fstyn", fstyn); // N인 경우만 회신서에 업데이트(의뢰건과 회신건 맵핑)
  448. //alert(pid);
  449. //alert(isNull(pid));
  450. if (isNull(pid) == false)
  451. {
  452. model.setValue("/root/main/patient/pid", pid);
  453. model.resetInstanceNode("/root/send/cond");
  454. // 환자정보, 진료내역, 의뢰내역
  455. model.setValue("/root/send/cond/pid", pid);
  456. //model.setValue("/root/send/cond/orddd", model.getValue("/root/main/paminfo/list/orddd"));
  457. //model.setValue("/root/send/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
  458. //model.setValue("/root/send/cond/acptseqno", model.getValue("/root/main/paminfo/list/acptseqno"));
  459. // 조회
  460. fSearch();
  461. // KNUH_20101228_박성호_start 원무 접수에서 open 한 경우 등록번호, 진료일자, 진료과 셋팅
  462. // 원무 등록에서 call 한 경우
  463. if (fstyn == "P")
  464. {
  465. model.setValue("/root/main/reqinfo/orddd", orddd);
  466. model.setValue("/root/main/reqinfo/orddeptcd", orddeptcd);
  467. model.setValue("/root/main/reqinfo/orddrid", orddrid);
  468. }
  469. // knuh_20101228_end
  470. }
  471. else
  472. {
  473. var node = getGlobalVariable("paminfo");
  474. setCSVToNode("/root/main/paminfo", node);
  475. //상단 정보 있는지 유무 체크
  476. if(node != "")
  477. {
  478. model.setValue("/root/send/cond/pid", model.getValue("/root/main/paminfo/list/pid"));
  479. model.setValue("/root/send/cond/orddd", model.getValue("/root/main/paminfo/list/orddd"));
  480. model.setValue("/root/send/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
  481. model.setValue("/root/send/cond/acptseqno", model.getValue("/root/main/paminfo/list/acptseqno"));
  482. //alert(model.getValue("/root/main/paminfo/list/pid"));
  483. // 조회
  484. fSearch();
  485. }
  486. }
  487. model.setFocus("ipt_pid");
  488. model.refresh();
  489. }
  490. // 조회
  491. function fSearch()
  492. {
  493. // 조회전에 조회조건을 셋팅할 것(pid, orddd, cretno, acptseqno)
  494. // 환자정보, 진료내역, 의뢰내역
  495. model.resetInstanceNode("/root/main/reqinfo");
  496. model.removeNodeset("/root/main/listinfo/diaglist");
  497. model.removeNodeset("/root/main/listinfo/doctreqlist");
  498. model.removeNodeset("/root/main/listinfo/nursereqlist");
  499. model.removenode("/root/temp/reqlistrow"); // 141002 - AYS
  500. submit("TRARC00102", false);
  501. opt_fstprntdt.disabled = true;
  502. opt_indschprntdt.disabled = true;
  503. if (model.instances(0).selectNodes("/root/main/patreq/reqlist").length > 0){
  504. fPatientSet();
  505. model.setValue("/root/main/reqinfo/status",'i');
  506. }
  507. else
  508. { // 의뢰내역이 없는경우
  509. // 환자정보 셋팅
  510. fPatientSet();
  511. // 접수정보 셋팅
  512. fAcptSet();
  513. // Default값 셋팅
  514. fDefaultSet();
  515. //등록 status설정
  516. model.setValue("/root/main/reqinfo/status",'i');
  517. }
  518. }
  519. // 환자 기본정보 setting
  520. function fPatientSet()
  521. {
  522. model.setValue("/root/main/patient/pid", model.getValue("/root/main/patreq/patlist/pid"));
  523. model.setValue("/root/main/patient/sex", model.getValue("/root/main/patreq/patlist/sex"));
  524. model.setValue("/root/main/patient/age", model.getValue("/root/main/patreq/patlist/age"));
  525. model.setValue("/root/main/patient/hngnm", model.getValue("/root/main/patreq/patlist/hngnm"));
  526. model.setValue("/root/main/patient/engnm", model.getValue("/root/main/patreq/patlist/engnm"));
  527. model.setValue("/root/main/patient/rrgstno1", model.getValue("/root/main/patreq/patlist/rrgstno1"));
  528. model.setValue("/root/main/patient/rrgstno2", model.getValue("/root/main/patreq/patlist/rrgstno2"));
  529. model.setValue("/root/main/patient/brthdd", model.getValue("/root/main/patreq/patlist/brthdd"));
  530. model.setValue("/root/main/patient/hometel", model.getValue("/root/main/patreq/patlist/hometel"));
  531. model.setValue("/root/main/patient/mpphontel", model.getValue("/root/main/patreq/patlist/mpphontel"));
  532. model.setValue("/root/main/patient/zipcd1", model.getValue("/root/main/patreq/patlist/zipcd1"));
  533. model.setValue("/root/main/patient/zipcd2", model.getValue("/root/main/patreq/patlist/zipcd2"));
  534. model.setValue("/root/main/patient/addr", model.getValue("/root/main/patreq/patlist/addr"));
  535. model.setValue("/root/main/patient/detladdr", model.getValue("/root/main/patreq/patlist/detladdr"));
  536. model.setValue("/root/main/patient/forgeryn", model.getValue("/root/main/patreq/patlist/forgeryn"));
  537. model.setValue("/root/main/patient/nati", model.getValue("/root/main/patreq/patlist/nati"));
  538. model.setValue("/root/main/patient/psptno", model.getValue("/root/main/patreq/patlist/psptno"));
  539. model.setValue("/root/main/patient/religncd", model.getValue("/root/main/patreq/patlist/religncd"));
  540. // knuh_20101228_박성호_start
  541. model.setValue("/root/main/reqinfo/pid", model.getValue("/root/main/patreq/patlist/pid"));
  542. }
  543. // 접수내역 셋팅
  544. function fAcptSet()
  545. {
  546. // 접수내역 셋팅
  547. model.setValue("/root/main/reqinfo/orddd", model.getValue("/root/main/patreq/acptlist/orddd"));
  548. model.setValue("/root/main/reqinfo/orddeptcd", model.getValue("/root/main/patreq/acptlist/orddeptcd"));
  549. model.setValue("/root/main/reqinfo/depthngnm", model.getValue("/root/main/patreq/acptlist/orddeptnm"));
  550. fDoctSerach();
  551. model.setValue("/root/main/reqinfo/orddrid", model.getValue("/root/main/patreq/acptlist/orddrid"));
  552. model.setValue("/root/main/reqinfo/usernm", model.getValue("/root/main/patreq/acptlist/orddrnm"));
  553. model.setValue("/root/main/reqinfo/cretno", model.getValue("/root/main/patreq/acptlist/cretno"));
  554. model.setValue("/root/main/reqinfo/acptseqno", model.getValue("/root/main/patreq/acptlist/acptseqno"));
  555. model.setValue("/root/main/reqinfo/fsexamflag", model.getValue("/root/main/patreq/acptlist/fsexamflag"));
  556. // knuh_20101228_박성호_start
  557. //model.setValue("/root/main/reqinfo/pid", model.getValue("/root/main/patreq/acptlist/pid"));
  558. model.setValue("/root/main/reqinfo/pid", model.getValue("/root/main/patreq/patlist/pid"));
  559. // 예약구분에 따라
  560. var rsrvflag = model.getValue("/root/main/patreq/acptlist/rsrvflag") ;
  561. if (rsrvflag == "1")
  562. {
  563. model.setValue("/root/main/reqinfo/reqpath", "1");
  564. model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/acptlist/fstacptdd"));
  565. }
  566. else if (rsrvflag == "7")
  567. {
  568. model.setValue("/root/main/reqinfo/reqpath", "3");
  569. model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/acptlist/fstacptdd"));
  570. }
  571. else{
  572. var CurrentDate = getCurrentDate();
  573. model.setValue("/root/main/reqinfo/reqdd", CurrentDate);
  574. }
  575. }
  576. // default 설정
  577. function fDefaultSet()
  578. {
  579. model.setValue("/root/main/reqinfo/chospath", "O"); // 내원경로
  580. model.setValue("/root/main/reqinfo/reqtype", "1"); // 의뢰구분(1:진료, 2:검사, 3:수술)
  581. //model.setValue("/root/main/reqinfo/reqpath", "D"); // 의뢰경로(1:전화, 2:FAX, 3:E-Hospital, 4:직접내원, 9:기타)
  582. model.setValue("/root/main/reqinfo/replflag", "Y"); // 의뢰서 동의여부(Y, N, O)
  583. //model.setValue("/root/main/reqinfo/repltype", "E"); // 회신유형(1의뢰완료예정, 2회신대상, 3회신필, 4회신불필요, 5되의뢰필)
  584. //model.setValue("/root/main/reqinfo/fsexamflag", "R"); // 초재진
  585. //model.setValue("/root/main/reqinfo/replmthd", "P"); // 회신방법
  586. //model.setValue("/root/main/reqinfo/endflag", "R"); // 완료구분
  587. //model.setValue("/root/main/reqinfo/endtype", "F"); // 완료형태
  588. var CurrentDate = getCurrentDate();
  589. // 의뢰일자 현재일자로 셋팅요청(20080715)
  590. model.setValue("/root/main/reqinfo/reqdd", CurrentDate);
  591. model.setValue("/root/main/reqinfo/rgstdd", CurrentDate);
  592. }
  593. // 진료의사 조회
  594. function fDoctSerach()
  595. {
  596. var CurrentDate = getCurrentDate();
  597. // 진료의사
  598. model.removenode("/root/send/doctor");
  599. //model.makeValue("/root/send/doctor/orddd", model.getValue("/root/send/search/fromdd"));
  600. model.makeValue("/root/send/doctor/orddd", getCurrentDate());
  601. model.makeValue("/root/send/doctor/orddeptcd", model.getValue("/root/main/reqinfo/orddeptcd"));
  602. submit("TRARC01302", false);
  603. cmb_orddrid.select(0);
  604. //model.setValue("/root/main/patient/orddrid", orddrid);
  605. }
  606. // 초기화
  607. function fAllClear()
  608. {
  609. //model.resetInstanceNode("/root/main/reqinfo");
  610. //model.removeNodeset("/root/main/reqinfo");
  611. model.removeNodeset("/root/main/patreq/reqlist");
  612. model.resetInstanceNode("/root/main/reqinfo");
  613. model.removeNodeset("/root/main/listinfo/diaglist");
  614. model.removeNodeset("/root/main/listinfo/doctreqlist");
  615. model.removeNodeset("/root/main/listinfo/nursereqlist");
  616. model.resetInstanceNode("/root/main/patient");
  617. model.removeNodeset("/root/main/patreq/otptlist");
  618. model.removeNodeset("/root/main/patreq/inptlist");
  619. opt_fstprntdt.disabled = true;
  620. opt_indschprntdt.disabled = true;
  621. //되의뢰 유형 해당무 Default
  622. cmb_reqagntype.select(2);
  623. model.setFocus("ipt_pid");
  624. model.refresh();
  625. }
  626. // 의뢰내역 클릭시 상세정보 조회
  627. function fReqClick()
  628. {
  629. if (grd_reqlist.rows<= 1) return;
  630. if (grd_reqlist.row< 1) return;
  631. if(grd_reqlist.isCell(event.target) && grd_reqlist.mouseRow >= grd_reqlist.fixedrows)
  632. {
  633. }
  634. else
  635. {
  636. return;
  637. }
  638. var row = grd_reqlist.row;
  639. model.setValue("/root/main/reqinfo/orddeptcd", model.getValue("/root/main/patreq/reqlist[" + row + "]/orddeptcd"));
  640. fDoctSerach();
  641. model.copyNode("/root/main/reqinfo", "/root/main/patreq/reqlist[" + row + "]");
  642. model.setValue("/root/main/reqinfo/status", "u");
  643. model.removeNodeset("/root/send/reqcond");
  644. model.makeValue("/root/send/reqcond/pid", model.getValue("/root/main/reqinfo/pid"));
  645. model.makeValue("/root/send/reqcond/orddd", model.getValue("/root/main/reqinfo/orddd"));
  646. model.makeValue("/root/send/reqcond/cretno", model.getValue("/root/main/reqinfo/cretno"));
  647. model.makeValue("/root/send/reqcond/acptseqno", model.getValue("/root/main/reqinfo/acptseqno"));
  648. model.makeValue("/root/send/reqcond/reqseqno", model.getValue("/root/main/reqinfo/reqseqno"));
  649. model.makeValue("/root/send/reqcond/orddeptcd", model.getValue("/root/main/reqinfo/orddeptcd"));
  650. model.makeValue("/root/send/reqcond/orddrid", model.getValue("/root/main/reqinfo/orddrid"));
  651. //입퇴원요약지 출력일자 수정가능
  652. if (model.getValue("/root/main/reqinfo/indschprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/indschprntdt") != "") {
  653. opt_indschprntdt.disabled = false;
  654. }
  655. else {
  656. opt_indschprntdt.disabled = true;
  657. }
  658. //1차회신 출력일자 수정가능
  659. if (model.getValue("/root/main/reqinfo/fstprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/fstprntdt") != "") {
  660. opt_fstprntdt.disabled = false;
  661. }
  662. else {
  663. opt_fstprntdt.disabled = true;
  664. }
  665. // reqGetListInfo
  666. if (submit("TRARC00103", false) == true)
  667. {
  668. var replyn = model.getValue("/root/main/listinfo/repllist/replyn");
  669. var reqayn = model.getValue("/root/main/listinfo/repllist/reqayn");
  670. var reqcyn = model.getValue("/root/main/listinfo/repllist/reqcyn");
  671. var repltype = model.getValue("/root/main/reqinfo/repltype");
  672. //alert("replyn : " + replyn);
  673. //alert("repltype : " + repltype);
  674. // 회신대상, 회신필
  675. if (repltype == "2" || repltype == "3")
  676. {
  677. if (replyn == "Y")
  678. {
  679. // 의뢰완료예정
  680. model.setValue("/root/main/reqinfo/endflag", "1");
  681. }
  682. else
  683. {
  684. // 회신서 요청
  685. model.setValue("/root/main/reqinfo/endflag", "3");
  686. }
  687. }
  688. // 되의뢰필
  689. else if (repltype == "5")
  690. {
  691. if (replyn == "Y")
  692. {
  693. // 의뢰완료예정
  694. model.setValue("/root/main/reqinfo/endflag", "2");
  695. }
  696. else
  697. {
  698. // 회신서 요청
  699. model.setValue("/root/main/reqinfo/endflag", "3");
  700. }
  701. }
  702. // 되의뢰
  703. if (reqayn == "Y")
  704. {
  705. model.setValue("/root/main/reqinfo/endtype", "3")
  706. }
  707. // 전원의뢰
  708. if (reqcyn == "Y")
  709. {
  710. model.setValue("/root/main/reqinfo/endtype", "2")
  711. }
  712. }
  713. model.refresh();
  714. }
  715. // 환자정보 PopUp
  716. function fPatPopUp()
  717. {
  718. modal("SPPMC02500",1,100,100);
  719. if (model.getValue("/root/main/popupendflag") == "ok")
  720. {
  721. model.resetInstanceNode("/root/send/cond");
  722. // 환자정보, 진료내역, 의뢰내역
  723. model.setValue("/root/send/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  724. //model.setValue("/root/send/cond/orddd", model.getValue("/root/main/paminfo/list/orddd"));
  725. //model.setValue("/root/send/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
  726. //model.setValue("/root/send/cond/acptseqno", model.getValue("/root/main/paminfo/list/acptseqno"));
  727. // 조회
  728. fSearch();
  729. model.setFocus("ipt_pid");
  730. model.refresh();
  731. /*
  732. model.setValue("/root/main/patient/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  733. model.setValue("/root/main/patient/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  734. model.setValue("/root/main/patient/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  735. model.setValue("/root/main/patient/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  736. model.setValue("/root/main/patient/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  737. model.setValue("/root/main/patient/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  738. model.setValue("/root/main/patient/brthdd", model.getValue("/root/main/patinfo/patinfolist/brthdd"));
  739. model.setValue("/root/main/patient/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
  740. model.setValue("/root/main/patient/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
  741. model.setValue("/root/main/patient/zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
  742. model.setValue("/root/main/patient/zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
  743. model.setValue("/root/main/patient/addr", model.getValue("/root/main/patinfo/patinfolist/addr"));
  744. model.setValue("/root/main/patient/detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
  745. model.setValue("/root/main/patient/forgeryn", model.getValue("/root/main/patinfo/patinfolist/forgeryn"));
  746. model.setValue("/root/main/patient/nati", model.getValue("/root/main/patinfo/patinfolist/nati"));
  747. model.setValue("/root/main/patient/psptno", model.getValue("/root/main/patinfo/patinfolist/psptno"));
  748. model.setValue("/root/main/patient/religncd", model.getValue("/root/main/patinfo/patinfolist/religncd"));
  749. */
  750. }
  751. model.refresh();
  752. }
  753. // 등록번호 입력후 Enter
  754. function fPatKeyDown()
  755. {
  756. if (event.keyCode == 13)
  757. {
  758. /*
  759. model.makeValue("/root/temp/srchcond",pFlag);
  760. model.makeValue("/root/temp/autoflag","Y");
  761. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
  762. */
  763. model.resetInstanceNode("/root/send/cond");
  764. // 환자정보, 진료내역, 의뢰내역
  765. model.setValue("/root/send/cond/pid", ipt_pid.currentText);
  766. //model.setValue("/root/send/cond/orddd", model.getValue("/root/main/paminfo/list/orddd"));
  767. //model.setValue("/root/send/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
  768. //model.setValue("/root/send/cond/acptseqno", model.getValue("/root/main/paminfo/list/acptseqno"));
  769. // 조회
  770. fSearch();
  771. model.setFocus("ipt_pid");
  772. model.refresh();
  773. }
  774. }
  775. // 의뢰병원 Popup
  776. function fHospPopUp()
  777. {
  778. model.setValue("/root/main/hospflag", "N");
  779. modal("SPARH00200",1,1,1);
  780. if( model.getValue("/root/main/hospflag") == "Y" )
  781. {
  782. model.setValue("/root/main/reqinfo/coophospnm", model.getValue("/root/main/hospinfo/hospinfolist/coophospnm"));
  783. model.setValue("/root/main/reqinfo/coophospcd", model.getValue("/root/main/hospinfo/hospinfolist/coophospcd"));
  784. model.setValue("/root/main/reqinfo/coopdrcd", model.getValue("/root/main/hospinfo/hospinfolist/coopdrcd"));
  785. model.setValue("/root/main/reqinfo/clsmatyn", model.getValue("/root/main/hospinfo/hospinfolist/clsmatyn"));
  786. model.setValue("/root/main/reqinfo/drnm", model.getValue("/root/main/hospinfo/hospinfolist/drnm"));
  787. model.setValue("/root/main/reqinfo/emailnm", model.getValue("/root/main/hospinfo/hospinfolist/emailnm"));
  788. model.setValue("/root/main/reqinfo/fromdd", model.getValue("/root/main/hospinfo/hospinfolist/fromdd"));
  789. model.setValue("/root/main/reqinfo/hospgrade", model.getValue("/root/main/hospinfo/hospinfolist/hospgrade"));
  790. model.setValue("/root/main/reqinfo/clsmatyn", model.getValue("/root/main/hospinfo/hospinfolist/clsmatyn"));
  791. model.setValue("/root/main/reqinfo/hosptelno", model.getValue("/root/main/hospinfo/hospinfolist/telno"));
  792. model.setValue("/root/main/reqinfo/hospfaxno", model.getValue("/root/main/hospinfo/hospinfolist/faxno"));
  793. model.setValue("/root/main/reqinfo/replmthd", model.getValue("/root/main/hospinfo/hospinfolist/replmethod"));
  794. model.setValue("/root/main/reqinfo/repltype", model.getValue("/root/main/hospinfo/hospinfolist/repltype"));
  795. model.setValue("/root/main/reqinfo/replflag", model.getValue("/root/main/hospinfo/hospinfolist/replflag"));
  796. if (gdutplceinstcd == "031") {
  797. var hospgrade = model.getValue("/root/main/reqinfo/hospgrade");
  798. if (!(hospgrade == "C2" || hospgrade == "C3" )) {
  799. model.makeValue("/root/main/reqinfo/replflag","N");
  800. model.makeValue("/root/main/reqinfo/repltype","4");
  801. }
  802. }
  803. }
  804. model.refresh();
  805. }
  806. // 진료의뢰서내역조회 팝업
  807. function fReqDocuPopup()
  808. {
  809. var pid = model.getValue("/root/main/patient/pid");
  810. //var orddeptcd = model.getValue("/root/main/reservation/orddeptcd");
  811. var hngnm = model.getValue("/root/main/patient/hngnm");
  812. var parameter = pid + "▦" + hngnm;
  813. setParameter("SMPMO01200_PARM", parameter);
  814. modal("SPPMO01200", "1", "200", "200", "SPPMO01200", "", "");
  815. }
  816. // 사용자선택 팝업
  817. function fStaffPopUp()
  818. {
  819. modal("SPMRF03200",1,100,100);
  820. }
  821. //SPMRF03200 화면의 fGetUserInfo
  822. function fGetUserInfo(userid,usernm)
  823. {
  824. model.setValue("/root/main/reqinfo/staffid", userid);
  825. model.setValue("/root/main/reqinfo/staffnm", usernm);
  826. model.setFocus("btn_staff");
  827. model.refresh();
  828. }
  829. // 저장전 필수 체크
  830. function fCheckDate()
  831. {
  832. if (model.getValue("/root/main/patient/pid") == "") {
  833. messageBox("등록번호를 ","C001");
  834. model.setFocus("ipt_pid");
  835. return false;
  836. }
  837. if (model.getValue("/root/main/reqinfo/coophospnm") == "") {
  838. messageBox("의뢰병원을 ","C001");
  839. model.setFocus("btn_hosplist");
  840. return false;
  841. }
  842. // knuh_20101228_start
  843. var dutplcecd = getUserInfo("dutplcecd");
  844. if(model.getValue("/root/init/hardcd/hardcd[hardcd='" + dutplcecd + "']/hardcd") != "" && userid != "AST")
  845. {
  846. if (model.getValue("/root/main/reqinfo/orddd") == "") {
  847. messageBox("진료일자를 ","C001");
  848. model.setFocus("opt_orddd");
  849. return false;
  850. }
  851. if (model.getValue("/root/main/reqinfo/replflag") == "") {
  852. messageBox("진료정보공개 동의여부를","C001");
  853. model.setFocus("cmb_replflag");
  854. return false;
  855. }
  856. if (model.getValue("/root/main/reqinfo/replmthd") == "") {
  857. messageBox("회신방법을 ","C001");
  858. model.setFocus("cmb_replmthd");
  859. return false;
  860. }
  861. }
  862. // knuh_20101228_end
  863. if (model.getValue("/root/main/reqinfo/rgstdd") == "") {
  864. messageBox("등록일자를 ","C001");
  865. model.setFocus("ipt_rgstdd");
  866. return false;
  867. }
  868. if (model.getValue("/root/main/reqinfo/reqdd") == "") {
  869. messageBox("의뢰일자를 ","C001");
  870. model.setFocus("ipt_reqdd");
  871. return false;
  872. }
  873. if (model.getValue("/root/main/reqinfo/reqpath") == "6" && model.getValue("/root/main/reqinfo/reqpseqno") == "") {
  874. messageBox("선택하신 의뢰경로는 반드시 의뢰번호(1차)를 입력하셔야 합니다!","I");
  875. model.setFocus("input1");
  876. return false;
  877. }
  878. if ( getUserInfo("dutplceinstcd") == "031" ) {
  879. if ( bool_outcnstyn.selected == false && bool_outcdyn.selected == false && bool_outrecyn.selected == false && bool_outcmtyn.selected == false) {
  880. messageBox("진료의뢰서,CD,기록지,소견서 중 최소 1개 이상 선택하셔야 합니다!","I");
  881. return false;
  882. }
  883. }
  884. // if (model.getValue("/root/main/reqinfo/repltype") == "") {
  885. // messageBox("회신유형을 ","C001");
  886. // model.setFocus("cmb_repltype");
  887. // return false;
  888. // }
  889. return true;
  890. }
  891. // 저장
  892. function fSave()
  893. {
  894. // 종료일자 셋팅
  895. var oldenddd = model.getValue("/root/main/reqinfo/enddd");
  896. // 의뢰일자 기준에서 등록일자 기준으로 변경
  897. if (oldenddd == "")
  898. {
  899. //var reqdd = model.getValue("/root/main/reqinfo/reqdd");
  900. //var enddd = reqdd.toDate().getAddDate(100, "D").getDateFormat();
  901. var rgstdd = model.getValue("/root/main/reqinfo/rgstdd");
  902. var enddd = rgstdd.toDate().getAddDate(100, "D").getDateFormat();
  903. model.setValue("/root/main/reqinfo/enddd", enddd);
  904. }
  905. model.removeNodeset("/root/send/savedata");
  906. model.makeNode("/root/send/savedata");
  907. model.copyNode("/root/send/savedata", "/root/main/reqinfo")
  908. model.makeValue("/root/send/savedata/replseqno", model.getValue("/root/init/replinfo/replseqno"));
  909. model.makeValue("/root/send/savedata/fstyn", model.getValue("/root/init/replinfo/fstyn"));
  910. /*
  911. var existyn = "N";
  912. if (submit("TRARC00104", false) == true)
  913. {
  914. existyn = model.getValue("/root/main/reqexist/exist/existyn");
  915. if (existyn == "Y")
  916. {
  917. var btn = messageBox("의뢰등록내역이 존재합니다. 기존 의뢰등록내역은 완료됩니다.", "Q004");
  918. if (btn == '6')
  919. {
  920. */
  921. if (submit("TXARC00101", false) == true)
  922. {
  923. messageBox("저장이", "I002");
  924. model.resetInstanceNode("/root/main/reqinfo");
  925. fSearch();
  926. }
  927. /*
  928. }
  929. }
  930. else
  931. {
  932. if (submit("TXARC00101", false) == true)
  933. {
  934. messageBox("저장이", "I002");
  935. model.resetInstanceNode("/root/main/reqinfo");
  936. fSearch();
  937. }
  938. }
  939. }
  940. */
  941. }
  942. // 삭제
  943. function fDelete()
  944. {
  945. if (grd_reqlist.rows<= 1) return;
  946. if (grd_reqlist.row< 1) return;
  947. var btn = messageBox("선택한 의뢰등록내역을", "Q001");
  948. if (btn == '6')
  949. {
  950. model.setValue("/root/main/reqinfo/status",'d');
  951. model.copyNode("/root/send/savedata","/root/main/reqinfo")
  952. if (submit("TXARC00101", false) == true)
  953. {
  954. messageBox("삭제가", "I002");
  955. model.resetInstanceNode("/root/main/reqinfo");
  956. fSearch();
  957. }
  958. }
  959. }
  960. // 외래진료내역 선택시 의뢰내역정보에 셋팅
  961. function fOutOrdSelect()
  962. {
  963. var CurrentDate = getCurrentDate();
  964. // 0:입원, 1: 외래
  965. if (switch2.selectedIndex == "1")
  966. {
  967. if (grd_outlist.row < 1) return;
  968. if (grd_outlist.rows <= 1) return;
  969. var lrow = grd_outlist.row;
  970. /*
  971. model.resetInstanceNode("/root/main/reqinfo/coophospcd");
  972. model.resetInstanceNode("/root/main/reqinfo/coophospnm");
  973. model.resetInstanceNode("/root/main/reqinfo/orddd");
  974. model.resetInstanceNode("/root/main/reqinfo/orddeptcd");
  975. model.resetInstanceNode("/root/main/reqinfo/depthngnm");
  976. model.resetInstanceNode("/root/main/reqinfo/orddrid");
  977. model.resetInstanceNode("/root/main/reqinfo/usernm");
  978. model.resetInstanceNode("/root/main/reqinfo/emailnm");
  979. model.resetInstanceNode("/root/main/reqinfo/drnm");
  980. model.resetInstanceNode("/root/main/reqinfo/chospath");
  981. model.resetInstanceNode("/root/main/reqinfo/fsexamflag");
  982. model.resetInstanceNode("/root/main/reqinfo/reqtype");
  983. model.resetInstanceNode("/root/main/reqinfo/cptype");
  984. model.resetInstanceNode("/root/main/reqinfo/reqpath");
  985. model.resetInstanceNode("/root/main/reqinfo/replmthd");
  986. model.resetInstanceNode("/root/main/reqinfo/reqdd");
  987. model.resetInstanceNode("/root/main/reqinfo/repltype");
  988. model.resetInstanceNode("/root/main/reqinfo/rgstdd");
  989. model.resetInstanceNode("/root/main/reqinfo/endflag");
  990. model.resetInstanceNode("/root/main/reqinfo/replflag");
  991. model.resetInstanceNode("/root/main/reqinfo/endtype");
  992. model.resetInstanceNode("/root/main/reqinfo/cc");
  993. model.resetInstanceNode("/root/main/reqinfo/rem");
  994. model.resetInstanceNode("/root/main/reqinfo/cretno");
  995. model.resetInstanceNode("/root/main/reqinfo/seqno");
  996. model.resetInstanceNode("/root/main/reqinfo/hospflag");
  997. model.resetInstanceNode("/root/main/reqinfo/status");
  998. model.resetInstanceNode("/root/main/reqinfo/coopdrcd");
  999. model.resetInstanceNode("/root/main/reqinfo/acptseqno");
  1000. model.resetInstanceNode("/root/main/reqinfo/fromdd");
  1001. model.resetInstanceNode("/root/main/reqinfo/hospgrade");
  1002. model.resetInstanceNode("/root/main/reqinfo/clsmatyn");
  1003. model.resetInstanceNode("/root/main/reqinfo/hosptelno");
  1004. model.resetInstanceNode("/root/main/reqinfo/hospfaxno");
  1005. */
  1006. // KNUH_20101228_박성호_start 의뢰내역에서 선택한 경우 수정으로 유지
  1007. if (model.getValue("/root/main/reqinfo/status") == "")
  1008. {
  1009. model.resetInstanceNode("/root/main/reqinfo");
  1010. }
  1011. model.setValue("/root/main/reqinfo/orddd" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddd"));
  1012. model.setValue("/root/main/reqinfo/cretno" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/cretno"));
  1013. model.setValue("/root/main/reqinfo/orddeptcd" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddeptcd"));
  1014. model.setValue("/root/main/reqinfo/depthngnm" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddeptnm"));
  1015. fDoctSerach();
  1016. model.setValue("/root/main/reqinfo/orddrid" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddrid"));
  1017. model.setValue("/root/main/reqinfo/usernm" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/orddrnm"));
  1018. model.setValue("/root/main/reqinfo/acptseqno" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/acptseqno"));
  1019. model.setValue("/root/main/reqinfo/fsexamflag" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fsexamflag"));
  1020. model.setValue("/root/main/reqinfo/pid" , model.getValue("/root/main/patreq/otptlist[" + lrow + "]/pid"));
  1021. // 내원경로
  1022. model.setValue("/root/main/reqinfo/chospath" , "O");
  1023. model.setValue("/root/main/reqinfo/reqtype" , "1"); // 의뢰구분(1:진료, 2:검사, 3:수술)
  1024. // 예약구분에 따라
  1025. // KNUH_20110108_박성호
  1026. if (model.getValue("/root/main/reqinfo/rgstdd") == "")
  1027. {
  1028. model.setValue("/root/main/reqinfo/rgstdd", CurrentDate);
  1029. var rsrvflag = model.getValue("/root/main/patreq/otptlist[" + lrow + "]/rsrvflag") ;
  1030. if (rsrvflag == "1")
  1031. {
  1032. model.setValue("/root/main/reqinfo/reqpath", "1");
  1033. model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fstacptdd"));
  1034. }
  1035. else if (rsrvflag == "7")
  1036. {
  1037. model.setValue("/root/main/reqinfo/reqpath", "3");
  1038. model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fstacptdd"));
  1039. }
  1040. else{
  1041. model.setValue("/root/main/reqinfo/reqdd", CurrentDate);
  1042. }
  1043. }
  1044. // KNUH_20101228_박성호_start 의뢰내역에서 선택한 경우 수정으로 유지
  1045. if (model.getValue("/root/main/reqinfo/status") == "")
  1046. {
  1047. model.setValue("/root/main/reqinfo/status", "i");
  1048. }
  1049. }
  1050. else
  1051. {
  1052. if (grd_inlist.row < 1) return;
  1053. if (grd_inlist.rows <= 1) return;
  1054. var lrow = grd_inlist.row;
  1055. // KNUH_20101228_박성호_start 의뢰내역에서 선택한 경우 수정으로 유지
  1056. if (model.getValue("/root/main/reqinfo/status") == "")
  1057. {
  1058. model.resetInstanceNode("/root/main/reqinfo");
  1059. }
  1060. model.setValue("/root/main/reqinfo/orddd" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/indd"));
  1061. model.setValue("/root/main/reqinfo/cretno" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/cretno"));
  1062. model.setValue("/root/main/reqinfo/orddeptcd" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/orddeptcd"));
  1063. model.setValue("/root/main/reqinfo/depthngnm" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/orddeptnm"));
  1064. fDoctSerach();
  1065. model.setValue("/root/main/reqinfo/orddrid" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/atdoctid"));
  1066. model.setValue("/root/main/reqinfo/usernm" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/atdoctnm"));
  1067. model.setValue("/root/main/reqinfo/acptseqno" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/acptseqno"));
  1068. model.setValue("/root/main/reqinfo/fsexamflag" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/fsexamflag"));
  1069. model.setValue("/root/main/reqinfo/pid" , model.getValue("/root/main/patreq/inptlist[" + lrow + "]/pid"));
  1070. model.setValue("/root/main/reqinfo/reqtype", "1"); // 의뢰구분(1:진료, 2:검사, 3:수술)
  1071. // 예약구분에 따라
  1072. var rsrvflag = model.getValue("/root/main/patreq/otptlist[" + lrow + "]/rsrvflag") ;
  1073. if (rsrvflag == "1")
  1074. {
  1075. model.setValue("/root/main/reqinfo/reqpath", "1");
  1076. model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fstacptdd"));
  1077. }
  1078. else if (rsrvflag == "7")
  1079. {
  1080. model.setValue("/root/main/reqinfo/reqpath", "3");
  1081. model.setValue("/root/main/reqinfo/reqdd", model.getValue("/root/main/patreq/otptlist[" + lrow + "]/fstacptdd"));
  1082. }
  1083. else
  1084. {
  1085. var CurrentDate = getCurrentDate();
  1086. model.setValue("/root/main/reqinfo/reqdd", CurrentDate);
  1087. }
  1088. model.setValue("/root/main/reqinfo/rgstdd" , CurrentDate);
  1089. // KNUH_20101228_박성호_start 의뢰내역에서 선택한 경우 수정으로 유지
  1090. if (model.getValue("/root/main/reqinfo/status") == "")
  1091. {
  1092. model.setValue("/root/main/reqinfo/status", "i");
  1093. }
  1094. }
  1095. }
  1096. // 엑셀 파일
  1097. function fExcel()
  1098. {
  1099. // 0:입원, 1: 외래
  1100. if (switch2.selectedIndex == "1")
  1101. {
  1102. if (grd_outlist.rows <= 1) return;
  1103. var fileName = window.fileDialog("save", ",", false, "외래진료내역 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1104. if (fileName != ""){
  1105. grd_outlist.saveExcel(fileName, "외래진료내역", false, false, "", "", false);
  1106. }
  1107. }
  1108. else
  1109. {
  1110. if (grd_inlist.rows <= 1) return;
  1111. var fileName = window.fileDialog("save", ",", false, "입원진료내역 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1112. if (fileName != ""){
  1113. grd_inlist.saveExcel(fileName, "입원진료내역", false, false, "", "", false);
  1114. }
  1115. }
  1116. }
  1117. // 통합기록조회
  1118. function fRecPopup()
  1119. {
  1120. var pid = model.getValue("/root/main/patient/pid");
  1121. setParameter("SMMRI00400_param_pid", pid);
  1122. open("SMMRI00400");
  1123. }
  1124. // OCRVIEW
  1125. function fOCRView(flag)
  1126. {
  1127. var pid = model.getValue("/root/main/patient/pid");
  1128. var formcd = "";
  1129. if ( pid =="" || isNull(pid) ) {
  1130. messageBox("등록번호가 선택되지 않았습니다","I");
  1131. return;
  1132. }
  1133. if ( flag == "A") {
  1134. formcd = model.getValue("/root/init/aformcd/hardcd/hardcd"); //타병원
  1135. }
  1136. else if ( flag == "B" ) {
  1137. formcd = model.getValue("/root/init/bformcd/hardcd/hardcd"); //개인정보
  1138. }
  1139. model.resetInstanceNode("/root/send/iemr");
  1140. model.makeValue("/root/send/iemr/pid", pid);
  1141. model.makeValue("/root/send/iemr/docucd", formcd);
  1142. if(window.children.item("imgemrviewer") == null)
  1143. {
  1144. window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  1145. }
  1146. else
  1147. {
  1148. var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  1149. window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  1150. window.children.item("imgemrviewer").modelesstopmost = true;
  1151. window.children.item("imgemrviewer").modelesstopmost = false;
  1152. }
  1153. }
  1154. // SMS 전송후 의뢰내역정보 Refresh
  1155. function fReqClickSMS(ReqlistRow)
  1156. {
  1157. if (grd_reqlist.rows<= 1) return;
  1158. var row = ReqlistRow;
  1159. if(row < 1) return; // 141002 - AYS
  1160. model.setValue("/root/main/reqinfo/orddeptcd", model.getValue("/root/main/patreq/reqlist[" + row + "]/orddeptcd"));
  1161. fDoctSerach();
  1162. model.copyNode("/root/main/reqinfo", "/root/main/patreq/reqlist[" + row + "]");
  1163. model.setValue("/root/main/reqinfo/status", "u");
  1164. model.removeNodeset("/root/send/reqcond");
  1165. model.makeValue("/root/send/reqcond/pid", model.getValue("/root/main/reqinfo/pid"));
  1166. model.makeValue("/root/send/reqcond/orddd", model.getValue("/root/main/reqinfo/orddd"));
  1167. model.makeValue("/root/send/reqcond/cretno", model.getValue("/root/main/reqinfo/cretno"));
  1168. model.makeValue("/root/send/reqcond/acptseqno", model.getValue("/root/main/reqinfo/acptseqno"));
  1169. model.makeValue("/root/send/reqcond/reqseqno", model.getValue("/root/main/reqinfo/reqseqno"));
  1170. model.makeValue("/root/send/reqcond/orddeptcd", model.getValue("/root/main/reqinfo/orddeptcd"));
  1171. model.makeValue("/root/send/reqcond/orddrid", model.getValue("/root/main/reqinfo/orddrid"));
  1172. //입퇴원요약지 출력일자 수정가능
  1173. if (model.getValue("/root/main/reqinfo/indschprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/indschprntdt") != "") {
  1174. opt_indschprntdt.disabled = false;
  1175. }
  1176. else {
  1177. opt_indschprntdt.disabled = true;
  1178. }
  1179. //1차회신 출력일자 수정가능
  1180. if (model.getValue("/root/main/reqinfo/fstprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/fstprntdt") != "") {
  1181. opt_fstprntdt.disabled = false;
  1182. }
  1183. else {
  1184. opt_fstprntdt.disabled = true;
  1185. }
  1186. // reqGetListInfo
  1187. if (submit("TRARC00103", false) == true)
  1188. {
  1189. var replyn = model.getValue("/root/main/listinfo/repllist/replyn");
  1190. var reqayn = model.getValue("/root/main/listinfo/repllist/reqayn");
  1191. var reqcyn = model.getValue("/root/main/listinfo/repllist/reqcyn");
  1192. var repltype = model.getValue("/root/main/reqinfo/repltype");
  1193. //alert("replyn : " + replyn);
  1194. //alert("repltype : " + repltype);
  1195. // 회신대상, 회신필
  1196. if (repltype == "2" || repltype == "3")
  1197. {
  1198. if (replyn == "Y")
  1199. {
  1200. // 의뢰완료예정
  1201. model.setValue("/root/main/reqinfo/endflag", "1");
  1202. }
  1203. else
  1204. {
  1205. // 회신서 요청
  1206. model.setValue("/root/main/reqinfo/endflag", "3");
  1207. }
  1208. }
  1209. // 되의뢰필
  1210. else if (repltype == "5")
  1211. {
  1212. if (replyn == "Y")
  1213. {
  1214. // 의뢰완료예정
  1215. model.setValue("/root/main/reqinfo/endflag", "2");
  1216. }
  1217. else
  1218. {
  1219. // 회신서 요청
  1220. model.setValue("/root/main/reqinfo/endflag", "3");
  1221. }
  1222. }
  1223. // 되의뢰
  1224. if (reqayn == "Y")
  1225. {
  1226. model.setValue("/root/main/reqinfo/endtype", "3")
  1227. }
  1228. // 전원의뢰
  1229. if (reqcyn == "Y")
  1230. {
  1231. model.setValue("/root/main/reqinfo/endtype", "2")
  1232. }
  1233. }
  1234. model.refresh();
  1235. }
  1236. function fHIEReferView() {
  1237. model.makeValue("/root/send/search/pid",model.getValue("/root/main/reqinfo/pid"));
  1238. model.makeValue("/root/send/search/reqseqno",model.getValue("/root/main/reqinfo/reqseqno"));
  1239. if (submit("TRARC02513")) {
  1240. var patientid = model.getValue("/root/baseinfo/baselist/patientid");
  1241. var documentuniqueid = model.getValue("/root/baseinfo/baselist/documentuniqueid");
  1242. var repositoryid = model.getValue("/root/baseinfo/baselist/repositoryid");
  1243. var entryuuid = model.getValue("/root/baseinfo/baselist/entryuuid");
  1244. }
  1245. setParameter("SPARC02820_PARAM1",patientid);
  1246. setParameter("SPARC02820_PARAM2",documentuniqueid);
  1247. setParameter("SPARC02820_PARAM3",repositoryid);
  1248. setParameter("SPARC02820_PARAM4",entryuuid);
  1249. modal("SPARC02820");
  1250. }
  1251. ]]>
  1252. </script>
  1253. <xhtml:body pagewidth="1211" pageheight="785" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1254. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  1255. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">의뢰환자 등록</caption>
  1256. </group>
  1257. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  1258. <button id="button17" class="btn4_letter3" style="left:1010px; top:5px; width:68px; height:22px; ">
  1259. <caption>초기화</caption>
  1260. <script type="javascript" ev:event="DOMActivate">
  1261. <![CDATA[
  1262. fAllClear();
  1263. ]]>
  1264. </script>
  1265. </button>
  1266. <button id="button3" class="btn4_letter2" style="left:1079px; top:5px; width:56px; height:22px; ">
  1267. <caption>삭제</caption>
  1268. <script type="javascript" ev:event="DOMActivate">
  1269. <![CDATA[
  1270. fDelete();
  1271. model.refresh();
  1272. //model.close();
  1273. ]]>
  1274. </script>
  1275. </button>
  1276. <button id="button4" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  1277. <caption>저장</caption>
  1278. <script type="javascript" ev:event="DOMActivate">
  1279. <![CDATA[
  1280. if ( !fCheckDate() ) return; //필수 저장여부 체크
  1281. fSave();
  1282. model.refresh();
  1283. //model.close();
  1284. ]]>
  1285. </script>
  1286. </button>
  1287. <button id="button19" class="btn3_letter7" style="left:0px; top:5px; width:116px; height:22px; ">
  1288. <caption>의뢰서내역조회</caption>
  1289. <script type="javascript" ev:event="DOMActivate">
  1290. <![CDATA[
  1291. fReqDocuPopup();
  1292. ]]>
  1293. </script>
  1294. </button>
  1295. <button id="button1" class="btn3_letter7" style="left:120px; top:5px; width:116px; height:22px; ">
  1296. <caption>통합기록조회</caption>
  1297. <script type="javascript" ev:event="DOMActivate">
  1298. <![CDATA[
  1299. fRecPopup();
  1300. ]]>
  1301. </script>
  1302. </button>
  1303. <button id="button12" class="btn3_letter8" style="left:235px; top:5px; width:116px; height:22px; ">
  1304. <caption>타병원진료의뢰</caption>
  1305. <script type="javascript" ev:event="DOMActivate">
  1306. <![CDATA[
  1307. fOCRView("A");
  1308. ]]>
  1309. </script>
  1310. </button>
  1311. <button id="button13" class="btn3_letter10" style="left:365px; top:5px; width:116px; height:22px; ">
  1312. <caption>개인정보이용동의서</caption>
  1313. <script type="javascript" ev:event="DOMActivate">
  1314. <![CDATA[
  1315. fOCRView("B");
  1316. ]]>
  1317. </script>
  1318. </button>
  1319. </group>
  1320. <group id="group2" scroll="auto" style="left:0px; top:20px; width:1195px; height:742px; ">
  1321. <datagrid id="grd_reqlist" nodeset="/root/main/patreq/reqlist" caption="SMSDD^의뢰일자^진료과^주치의^의뢰병원^의뢰의^내원경로^초/재진^의뢰구분^One-Stop 유형^의뢰경로^회신방법^진료일자^회신유형^되의뢰유형^등록일자^진행상태^회신서 동의여부^완료형태^완료일자^주호소^참고사항^의뢰번호^타병원기록^타병원진료의뢰서^타병원cd^타병원소견서^mpphontel^orddrid" colsep="^" colwidth="49, 80, 80, 80, 150, 80, 60, 60, 60, 95, 60, 100, 80, 80, 100, 80, 60, 100, 60, 80, 400, 200, 100, 100, 100, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:249px; width:1194px; height:96px; ">
  1322. <col ref="smsdd" visibility="hidden" style="text-align:center; "/>
  1323. <col ref="reqdd" format="yyyy-mm-dd" style="left:20px; top:23px; width:92px; height:23px; text-align:center; "/>
  1324. <col ref="depthngnm" style="text-align:center; "/>
  1325. <col ref="usernm" style="text-align:center; "/>
  1326. <col ref="coophospnm" style="text-align:center; "/>
  1327. <col ref="drnm" style="text-align:center; "/>
  1328. <col disabled="true" ref="chospath" type="combo" style="text-align:center; ">
  1329. <choices>
  1330. <item>
  1331. <label>외래</label>
  1332. <value>O</value>
  1333. </item>
  1334. <item>
  1335. <label>응급</label>
  1336. <value>E</value>
  1337. </item>
  1338. </choices>
  1339. </col>
  1340. <col disabled="true" ref="fsexamflag" type="combo" style="text-align:center; ">
  1341. <choices>
  1342. <itemset nodeset="/root/init/fsexamflag/P0021">
  1343. <label ref="cdnm"/>
  1344. <value ref="cdid"/>
  1345. </itemset>
  1346. </choices>
  1347. </col>
  1348. <col disabled="true" ref="reqtype" type="combo" style="text-align:center; ">
  1349. <choices>
  1350. <itemset nodeset="/root/init/reqtype/A0418">
  1351. <label ref="cdnm"/>
  1352. <value ref="cdid"/>
  1353. </itemset>
  1354. </choices>
  1355. </col>
  1356. <col disabled="true" ref="cptype" type="combo" style="text-align:center; ">
  1357. <choices>
  1358. <itemset nodeset="/root/init/cptype/A0420">
  1359. <label ref="cdnm"/>
  1360. <value ref="cdid"/>
  1361. </itemset>
  1362. </choices>
  1363. </col>
  1364. <col disabled="true" ref="reqpath" type="combo" style="text-align:center; ">
  1365. <choices>
  1366. <itemset nodeset="/root/init/reqpath/A0421">
  1367. <label ref="cdnm"/>
  1368. <value ref="cdid"/>
  1369. </itemset>
  1370. </choices>
  1371. </col>
  1372. <col disabled="true" ref="replmthd" type="combo" style="text-align:center; ">
  1373. <choices>
  1374. <itemset nodeset="/root/init/replmthd/A0422">
  1375. <label ref="cdnm"/>
  1376. <value ref="cdid"/>
  1377. </itemset>
  1378. </choices>
  1379. </col>
  1380. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1381. <col disabled="true" ref="repltype" type="combo" style="text-align:center; ">
  1382. <choices>
  1383. <itemset nodeset="/root/init/repltype/A0423">
  1384. <label ref="cdnm"/>
  1385. <value ref="cdid"/>
  1386. </itemset>
  1387. </choices>
  1388. </col>
  1389. <col disabled="true" ref="reqagntype" type="combo" style="text-align:center; ">
  1390. <choices>
  1391. <itemset nodeset="/root/init/reqagntype/A0583">
  1392. <label ref="cdnm"/>
  1393. <value ref="cdid"/>
  1394. </itemset>
  1395. </choices>
  1396. </col>
  1397. <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1398. <col disabled="true" ref="endflag" type="combo" visibility="hidden" style="text-align:center; ">
  1399. <choices>
  1400. <itemset nodeset="/root/init/endflag/A0424">
  1401. <label ref="cdnm"/>
  1402. <value ref="cdid"/>
  1403. </itemset>
  1404. </choices>
  1405. </col>
  1406. <col disabled="true" ref="replflag" type="combo" style="text-align:center; ">
  1407. <choices>
  1408. <itemset nodeset="/root/init/replflag/A0636">
  1409. <label ref="cdnm"/>
  1410. <value ref="cdid"/>
  1411. </itemset>
  1412. </choices>
  1413. </col>
  1414. <col disabled="true" ref="endtype" type="combo" visibility="hidden" style="text-align:center; ">
  1415. <choices>
  1416. <itemset nodeset="/root/init/endtype/A0425">
  1417. <label ref="cdnm"/>
  1418. <value ref="cdid"/>
  1419. </itemset>
  1420. </choices>
  1421. </col>
  1422. <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1423. <col ref="cc"/>
  1424. <col ref="rem"/>
  1425. <col ref="reqpseqno"/>
  1426. <col ref="outrecyn"/>
  1427. <col ref="outcnstyn"/>
  1428. <col ref="outcdyn"/>
  1429. <col ref="outcmtyn"/>
  1430. <col ref="mpphontel"/>
  1431. <col ref="orddrid" visibility="hidden"/>
  1432. <script type="javascript" ev:event="onclick">
  1433. <![CDATA[
  1434. fReqClick();
  1435. ]]>
  1436. </script>
  1437. </datagrid>
  1438. <line id="line27" class="line_2" style="x1:0px; y1:630px; x2:760px; y2:630px; "/>
  1439. <line id="line35" class="line_2" style="x1:0px; y1:729px; x2:760px; y2:729px; "/>
  1440. <line id="line43" class="line_2" style="x1:0px; y1:196px; x2:380px; y2:196px; "/>
  1441. <caption id="caption5" class="tit_2" style="left:5px; top:7px; width:111px; height:13px; ">인적사항</caption>
  1442. <line id="line44" class="line_1" style="x1:0px; y1:25px; x2:395px; y2:25px; "/>
  1443. <line id="line45" class="line_2" style="x1:0px; y1:52px; x2:380px; y2:52px; "/>
  1444. <input id="ipt_pid" ref="/root/main/patient/pid" navindex="1" maxlength="10" appearance="input" style="left:118px; top:32px; width:100px; height:19px; ">
  1445. <script type="javascript" ev:event="onkeydown">
  1446. <![CDATA[
  1447. //inputEnterKey("btn_patinfo", "DOMActivate");
  1448. fPatKeyDown();
  1449. ]]>
  1450. </script>
  1451. </input>
  1452. <line id="line46" class="line_2" style="x1:0px; y1:76px; x2:380px; y2:76px; "/>
  1453. <line id="line47" class="line_2" style="x1:0px; y1:100px; x2:380px; y2:100px; "/>
  1454. <line id="line50" class="line_2" style="x1:0px; y1:124px; x2:380px; y2:124px; "/>
  1455. <caption id="caption38" class="cell_1" style="left:0px; top:54px; width:115px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
  1456. <caption id="caption43" class="cell_1" style="left:0px; top:78px; width:115px; height:23px; vertical-align:middle; ">주민번호</caption>
  1457. <caption id="caption46" class="cell_1" style="left:0px; top:30px; width:115px; height:23px; vertical-align:middle; ">등록번호</caption>
  1458. <caption id="caption47" class="cell_1" style="left:244px; top:30px; width:65px; height:23px; vertical-align:middle; ">성별/나이</caption>
  1459. <caption id="caption48" class="cell_1" style="left:244px; top:78px; width:65px; height:23px; vertical-align:middle; ">생년월일</caption>
  1460. <caption id="caption49" class="cell_1" style="left:0px; top:102px; width:115px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
  1461. <line id="line51" class="line_2" style="x1:0px; y1:148px; x2:380px; y2:148px; "/>
  1462. <line id="line52" class="line_2" style="x1:0px; y1:172px; x2:380px; y2:172px; "/>
  1463. <caption id="caption50" class="cell_1" style="left:0px; top:174px; width:115px; height:23px; vertical-align:middle; ">외국인 여부</caption>
  1464. <select id="checkbox1" ref="/root/main/patient/forgeryn" visibility="hidden" overflow="visible" appearance="full" cellspacing="0" cols="1" style="left:73px; top:178px; width:15px; height:20px; border-style:none; ">
  1465. <choices>
  1466. <item>
  1467. <label/>
  1468. <value>Y</value>
  1469. </item>
  1470. </choices>
  1471. </select>
  1472. <caption id="caption51" class="cell_1" style="left:211px; top:174px; width:65px; height:23px; vertical-align:middle; ">여권번호</caption>
  1473. <line id="line55" class="line_1" style="x1:769px; y1:367px; x2:1192px; y2:367px; "/>
  1474. <caption id="caption52" class="tit_2" style="left:776px; top:352px; width:144px; height:13px; ">상병내역</caption>
  1475. <line id="line56" class="line_1" style="x1:0px; y1:244px; x2:1194px; y2:244px; "/>
  1476. <caption id="caption53" class="tit_2" style="left:0px; top:227px; width:144px; height:13px; ">의뢰내역</caption>
  1477. <caption id="caption54" class="cell_1" style="left:0px; top:126px; width:115px; height:23px; vertical-align:middle; ">우편번호</caption>
  1478. <caption id="caption55" class="cell_1" style="left:0px; top:150px; width:115px; height:23px; vertical-align:middle; ">주소</caption>
  1479. <caption id="caption56" class="cell_1" style="left:255px; top:449px; width:115px; height:23px; vertical-align:middle; ">진료과</caption>
  1480. <caption id="caption58" class="cell_1" style="left:510px; top:527px; width:115px; height:23px; vertical-align:middle; ">의뢰일자</caption>
  1481. <caption id="caption59" class="cell_1" style="left:255px; top:501px; width:115px; height:23px; vertical-align:middle; ">One-Stop 유형</caption>
  1482. <caption id="caption60" class="cell_1" style="left:510px; top:501px; width:115px; height:23px; vertical-align:middle; ">완료일자</caption>
  1483. <caption id="caption61" class="cell_1" style="left:0px; top:475px; width:115px; height:23px; vertical-align:middle; ">초재진구분</caption>
  1484. <caption id="caption62" class="cell_1" style="left:350px; top:371px; width:65px; height:23px; vertical-align:middle; ">의뢰 의사</caption>
  1485. <line id="line57" class="line_2" style="x1:0px; y1:395px; x2:760px; y2:395px; "/>
  1486. <caption id="caption63" class="cell_1" style="left:0px; top:371px; width:115px; height:23px; vertical-align:middle; ">의뢰 병원명</caption>
  1487. <caption id="caption64" class="cell_1" style="left:0px; top:580px; width:115px; height:24px; vertical-align:middle; ">주호소</caption>
  1488. <caption id="caption65" class="cell_1" style="left:255px; top:527px; width:115px; height:23px; vertical-align:middle; ">의뢰경로</caption>
  1489. <line id="line60" class="line_3" style="x1:0px; y1:220px; x2:1194px; y2:220px; "/>
  1490. <line id="line61" class="line_3" style="x1:0px; y1:734px; x2:1194px; y2:734px; "/>
  1491. <caption id="caption66" class="cell_1" style="left:375px; top:580px; width:130px; height:22px; vertical-align:middle; ">참고사항</caption>
  1492. <caption id="caption67" class="cell_1" style="left:0px; top:198px; width:115px; height:23px; vertical-align:middle; ">종교</caption>
  1493. <caption id="caption68" class="cell_1" style="left:0px; top:553px; width:75px; height:23px; vertical-align:middle; ">회신유형</caption>
  1494. <button id="button2" class="btn2_letter2" navindex="2" style="left:1152px; top:5px; width:42px; height:19px; ">
  1495. <caption>엑셀</caption>
  1496. <script type="javascript" ev:event="DOMActivate">
  1497. <![CDATA[
  1498. fExcel();
  1499. ]]>
  1500. </script>
  1501. </button>
  1502. <button id="button6" class="btn_sw" group="tab" selected="true" style="left:405px; top:5px; width:100px; height:22px; ">
  1503. <caption>외래 진료내역</caption>
  1504. <toggle case="case4" ev:event="onclick"/>
  1505. </button>
  1506. <button id="button7" class="btn_sw" group="tab" style="left:505px; top:5px; width:100px; height:22px; ">
  1507. <caption>입원 진료내역</caption>
  1508. <toggle case="case3" ev:event="onclick"/>
  1509. </button>
  1510. <switch id="switch2" style="left:400px; top:25px; width:795px; height:195px; ">
  1511. <case id="case3">
  1512. <line id="line62" class="line_1" style="x1:0px; y1:0px; x2:792px; y2:0px; margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; "/>
  1513. <datagrid id="grd_inlist" nodeset="/root/main/patreq/inptlist" caption="입원일자^입원시간^진료과^전문의^병동^병실^퇴원일자^퇴원시간" colsep="^" colwidth="95, 80, 140, 100, 90, 80, 95, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:4px; width:792px; height:181px; ">
  1514. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  1515. <col ref="intm" format="hh:nn" style="text-align:center; "/>
  1516. <col ref="orddeptnm"/>
  1517. <col ref="atdoctnm" style="text-align:center; "/>
  1518. <col ref="wardnm" style="text-align:center; "/>
  1519. <col ref="roomcd" style="text-align:center; "/>
  1520. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1521. <col ref="dschtm" format="hh:nn" style="text-align:center; "/>
  1522. <script type="javascript" ev:event="ondblclick">
  1523. <![CDATA[
  1524. fOutOrdSelect();
  1525. model.setValue("/root/main/reqinfo/repltype", "1"); // 회신유형 해당무
  1526. model.setValue("/root/main/reqinfo/reqagntype", "3"); //되의뢰유형 해당무
  1527. model.refresh();
  1528. ]]>
  1529. </script>
  1530. </datagrid>
  1531. </case>
  1532. <case id="case4" selected="true">
  1533. <line id="line63" class="line_1" style="x1:0px; y1:0px; x2:792px; y2:0px; margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; "/>
  1534. <datagrid id="grd_outlist" nodeset="/root/main/patreq/otptlist" caption="진료일자^진료시간^진료과^진료의^상태^초/재^예약구분^보험유형^의뢰서유무" colsep="^" colwidth="100, 80, 140, 130, 70, 80, 100, 80, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" style="left:0px; top:3px; width:793px; height:182px; ">
  1535. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1536. <col ref="ordtm" format="hh:nn" style="text-align:center; "/>
  1537. <col ref="orddeptnm"/>
  1538. <col ref="orddrnm" style="text-align:center; "/>
  1539. <col ref="stat" style="text-align:center; "/>
  1540. <col ref="fsexamflagnm" style="text-align:center; "/>
  1541. <col ref="rsrvflag"/>
  1542. <col ref="insukindnm" style="text-align:center; "/>
  1543. <col ref="reqdocuyn" visibility="hidden" style="text-align:center; "/>
  1544. <script type="javascript" ev:event="ondblclick">
  1545. <![CDATA[
  1546. fOutOrdSelect();
  1547. model.setValue("/root/main/reqinfo/repltype", "1"); // 회신유형 해당무
  1548. model.setValue("/root/main/reqinfo/reqagntype", "3"); //되의뢰유형 해당무
  1549. opt_fstprntdt.disabled = true;
  1550. opt_indschprntdt.disabled = true;
  1551. model.refresh();
  1552. ]]>
  1553. </script>
  1554. </datagrid>
  1555. </case>
  1556. </switch>
  1557. <caption id="caption69" class="cell_1" style="left:0px; top:527px; width:115px; height:23px; vertical-align:middle; ">정보공개 동의여부</caption>
  1558. <caption id="caption70" class="cell_1" style="left:0px; top:501px; width:115px; height:23px; vertical-align:middle; ">등록일자</caption>
  1559. <caption id="caption71" class="cell_1" style="left:510px; top:475px; width:115px; height:23px; vertical-align:middle; ">회신방법</caption>
  1560. <caption id="caption72" class="cell_1" style="left:255px; top:423px; width:115px; height:23px; vertical-align:middle; ">E-MAIL</caption>
  1561. <caption id="caption73" class="cell_1" style="left:255px; top:475px; width:115px; height:23px; vertical-align:middle; ">진행상태</caption>
  1562. <caption id="caption74" class="cell_1" style="left:395px; top:553px; width:75px; height:23px; vertical-align:middle; ">내원경로</caption>
  1563. <caption id="caption75" class="cell_1" style="left:572px; top:553px; width:75px; height:23px; vertical-align:middle; ">의뢰구분</caption>
  1564. <caption id="caption76" class="cell_1" style="left:0px; top:449px; width:115px; height:23px; vertical-align:middle; ">진료일자</caption>
  1565. <line id="line64" class="line_1" style="x1:769px; y1:500px; x2:1192px; y2:500px; "/>
  1566. <caption id="caption77" class="tit_2" style="left:776px; top:485px; width:144px; height:13px; ">의사회신</caption>
  1567. <caption id="caption78" class="tit_2" style="left:6px; top:635px; width:144px; height:13px; ">1차회신</caption>
  1568. <line id="line65" class="line_1" style="x1:0px; y1:650px; x2:252px; y2:650px; "/>
  1569. <caption id="caption79" class="tit_2" style="left:263px; top:635px; width:144px; height:13px; ">입퇴원요약지 회신</caption>
  1570. <line id="line66" class="line_1" style="x1:255px; y1:650px; x2:765px; y2:650px; "/>
  1571. <caption id="caption81" class="cell_1" style="left:0px; top:655px; width:115px; height:23px; vertical-align:middle; ">출력일자</caption>
  1572. <caption id="caption83" class="cell_1" style="left:255px; top:655px; width:115px; height:23px; vertical-align:middle; ">출력일자</caption>
  1573. <line id="line67" class="line_2" style="x1:0px; y1:680px; x2:365px; y2:680px; "/>
  1574. <line id="line68" class="line_1" style="x1:0px; y1:367px; x2:765px; y2:367px; "/>
  1575. <caption id="caption84" class="tit_2" style="left:0px; top:352px; width:144px; height:13px; ">의뢰내역정보</caption>
  1576. <caption id="caption85" class="cell_1" style="left:510px; top:449px; width:115px; height:23px; vertical-align:middle; ">주치의</caption>
  1577. <select1 id="cmb_sex" ref="/root/main/patient/sex" disabled="true" navindex="5" appearance="minimal" style="left:312px; top:31px; width:40px; height:19px; text-align:center; ">
  1578. <choices>
  1579. <item>
  1580. <label>남</label>
  1581. <value>M</value>
  1582. </item>
  1583. <item>
  1584. <label>여</label>
  1585. <value>F</value>
  1586. </item>
  1587. </choices>
  1588. </select1>
  1589. <output id="opt_age" ref="/root/main/patient/age" class="output_fix" appearance="output" style="left:355px; top:31px; width:40px; height:19px; text-align:right; "/>
  1590. <output id="opt_hngnm" ref="/root/main/patient/hngnm" class="output_fix" appearance="output" style="left:118px; top:55px; width:120px; height:19px; "/>
  1591. <output id="opt_engnm" ref="/root/main/patient/engnm" class="output_fix" appearance="output" style="left:244px; top:55px; width:151px; height:19px; "/>
  1592. <output id="opt_rrgstno1" ref="/root/main/patient/rrgstno1" class="output_fix" navindex="3" format="999999" autonext="false" appearance="output" style="left:118px; top:80px; width:60px; height:19px; text-align:center; "/>
  1593. <secret id="opt_rrgstno2" ref="/root/main/patient/rrgstno2" class="output_fix" format="9999999" autonext="false" appearance="secret" style="left:180px; top:80px; width:60px; height:19px; text-align:center; "/>
  1594. <output id="opt_brthdd" ref="/root/main/patient/brthdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:312px; top:79px; width:83px; height:19px; text-align:center; "/>
  1595. <output id="opt_hometel" ref="/root/main/patient/hometel" class="output_fix" appearance="output" style="left:118px; top:103px; width:123px; height:19px; "/>
  1596. <output id="opt_mpphontel" ref="/root/main/patient/mpphontel" class="output_fix" appearance="output" style="left:244px; top:103px; width:151px; height:19px; "/>
  1597. <output id="opt_zipcd1" ref="/root/main/patient/zipcd1" class="output_fix" format="###" appearance="output" style="left:118px; top:127px; width:30px; height:19px; text-align:center; "/>
  1598. <output id="opt_zipcd2" ref="/root/main/patient/zipcd2" class="output_fix" format="###" appearance="output" style="left:151px; top:127px; width:30px; height:19px; text-align:center; "/>
  1599. <output id="opt_addr" ref="/root/main/patient/addr" class="output_fix" appearance="output" style="left:186px; top:127px; width:209px; height:19px; "/>
  1600. <output id="opt_detladdr" ref="/root/main/patient/detladdr" class="output_fix" appearance="output" style="left:118px; top:151px; width:277px; height:19px; "/>
  1601. <select1 id="cmb_nati" ref="/root/main/patient/nati" class="combo_default" disabled="true" appearance="minimal" style="left:118px; top:175px; width:87px; height:19px; ">
  1602. <choices>
  1603. <itemset nodeset="/root/init/nati/P0353">
  1604. <label ref="cdnm"/>
  1605. <value ref="cdid"/>
  1606. </itemset>
  1607. </choices>
  1608. </select1>
  1609. <output id="opt_psptno" ref="/root/main/patient/psptno" class="output_fix" appearance="output" style="left:279px; top:175px; width:116px; height:19px; "/>
  1610. <select1 id="cmb_religncd" ref="/root/main/patient/religncd" class="combo_default" disabled="true" appearance="minimal" style="left:118px; top:199px; width:87px; height:19px; ">
  1611. <choices>
  1612. <itemset nodeset="/root/init/religncd/P0157">
  1613. <label ref="cdnm"/>
  1614. <value ref="cdid"/>
  1615. </itemset>
  1616. </choices>
  1617. </select1>
  1618. <button id="btn_patinfo" class="icon_search" style="left:222px; top:32px; width:16px; height:16px; ">
  1619. <caption/>
  1620. <script type="javascript" ev:event="DOMActivate">
  1621. <![CDATA[
  1622. fPatPopUp();
  1623. ]]>
  1624. </script>
  1625. </button>
  1626. <button id="btn_hosplist" class="icon_search" style="left:328px; top:374px; width:16px; height:16px; ">
  1627. <caption/>
  1628. <script type="javascript" ev:event="DOMActivate">
  1629. <![CDATA[
  1630. fHospPopUp();
  1631. ]]>
  1632. </script>
  1633. </button>
  1634. <datagrid id="grd_diaglist" nodeset="/root/main/listinfo/diaglist" autoresize="true" caption="코드^상병명[한글]^상병명[영문]^진료일자^산정특례여부" colsep="^" colwidth="78, 116, 127, 89, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:769px; top:372px; width:421px; height:103px; ">
  1635. <col ref="diagcd"/>
  1636. <col ref="diaghngnm"/>
  1637. <col ref="diagengnm"/>
  1638. <col ref="orddd" format="yyyy-mm-dd" style="left:298px; top:23px; width:91px; height:18px; text-align:center; "/>
  1639. <col ref="estmexptyn" style="text-align:center; "/>
  1640. </datagrid>
  1641. <datagrid id="grd_repllist" nodeset="/root/main/listinfo/doctreqlist" caption="회신작성일자^출력일자^진료과^진료의사" colsep="^" colwidth="90, 90, 118, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:769px; top:505px; width:423px; height:100px; ">
  1642. <col ref="lastformrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1643. <col ref="prntdt" format="yyyy-mm-dd" style="text-align:center; "/>
  1644. <col ref="orddeptnm" style="left:298px; top:23px; width:91px; height:18px; "/>
  1645. <col ref="orddrnm"/>
  1646. </datagrid>
  1647. <caption id="caption1" class="cell_1" style="left:255px; top:397px; width:115px; height:23px; vertical-align:middle; ">병원전화번호</caption>
  1648. <caption id="caption2" class="cell_1" style="left:510px; top:397px; width:115px; height:23px; vertical-align:middle; ">팩스번호</caption>
  1649. <caption id="caption3" class="cell_1" style="left:0px; top:397px; width:115px; height:23px; vertical-align:middle; ">병원구분</caption>
  1650. <select1 id="cmb_hospgrade" ref="/root/main/reqinfo/hospgrade" disabled="true" navindex="20" appearance="minimal" style="left:117px; top:399px; width:135px; height:19px; ">
  1651. <choices>
  1652. <itemset nodeset="/root/init/hospgrade/A0429">
  1653. <label ref="cdnm"/>
  1654. <value ref="cdid"/>
  1655. </itemset>
  1656. </choices>
  1657. </select1>
  1658. <caption id="caption4" class="cell_1" style="left:0px; top:705px; width:115px; height:23px; vertical-align:middle; ">되의뢰병원</caption>
  1659. <caption id="caption7" class="cell_1" style="left:375px; top:705px; width:130px; height:23px; vertical-align:middle; ">완료일자</caption>
  1660. <line id="line2" class="line_1" style="x1:769px; y1:630px; x2:1192px; y2:630px; "/>
  1661. <caption id="caption8" class="tit_2" style="left:776px; top:615px; width:144px; height:13px; ">간호사회신</caption>
  1662. <caption id="caption9" class="cell_1" style="left:0px; top:423px; width:115px; height:23px; vertical-align:middle; ">동문여부</caption>
  1663. <line id="line1" class="line_2" style="x1:0px; y1:421px; x2:760px; y2:421px; "/>
  1664. <line id="line3" class="line_2" style="x1:0px; y1:447px; x2:760px; y2:447px; "/>
  1665. <line id="line4" class="line_2" style="x1:0px; y1:473px; x2:760px; y2:473px; "/>
  1666. <line id="line5" class="line_2" style="x1:0px; y1:499px; x2:760px; y2:499px; "/>
  1667. <line id="line6" class="line_2" style="x1:0px; y1:525px; x2:760px; y2:525px; "/>
  1668. <line id="line7" class="line_2" style="x1:0px; y1:551px; x2:760px; y2:551px; "/>
  1669. <line id="line8" class="line_2" style="x1:0px; y1:577px; x2:760px; y2:577px; "/>
  1670. <line id="line9" class="line_1" style="x1:0px; y1:700px; x2:765px; y2:700px; "/>
  1671. <caption id="caption10" class="tit_2" style="left:6px; top:685px; width:144px; height:13px; ">되의뢰서</caption>
  1672. <line id="line10" class="line_2" style="x1:346px; y1:680px; x2:733px; y2:680px; "/>
  1673. <input id="opt_coophospnm" ref="/root/main/reqinfo/coophospnm" class="input_essential" disabled="true" appearance="input" style="left:117px; top:374px; width:203px; height:19px; "/>
  1674. <output id="opt_drnm" ref="/root/main/reqinfo/drnm" class="output_fix" appearance="output" style="left:417px; top:373px; width:88px; height:19px; "/>
  1675. <output id="opt_hosptelno" ref="/root/main/reqinfo/hosptelno" class="output_fix" appearance="output" style="left:372px; top:399px; width:135px; height:19px; "/>
  1676. <output id="opt_hospfaxno" ref="/root/main/reqinfo/hospfaxno" class="output_fix" appearance="output" style="left:627px; top:399px; width:135px; height:19px; "/>
  1677. <select1 id="cmb_clsmatyn" ref="/root/main/reqinfo/clsmatyn" disabled="true" navindex="20" appearance="minimal" style="left:117px; top:424px; width:135px; height:19px; ">
  1678. <choices>
  1679. <item>
  1680. <label>Y</label>
  1681. <value>Y</value>
  1682. </item>
  1683. <item>
  1684. <label>N</label>
  1685. <value>N</value>
  1686. </item>
  1687. </choices>
  1688. </select1>
  1689. <output id="opt_emailnm" ref="/root/main/reqinfo/emailnm" class="output_fix" appearance="output" style="left:372px; top:424px; width:135 px; height:19px; "/>
  1690. <input id="opt_orddd" ref="/root/main/reqinfo/orddd" class="input_essential" disabled="true" inputtype="date" style="left:117px; top:451px; width:135px; height:19px; "/>
  1691. <select1 id="cmb_orddeptcd" ref="/root/main/reqinfo/orddeptcd" class="combo_default" navindex="1" appearance="minimal" style="left:372px; top:451px; width:135px; height:19px; ">
  1692. <choices>
  1693. <itemset nodeset="/root/init/dept/dept">
  1694. <label ref="depthngnm"/>
  1695. <value ref="deptcd"/>
  1696. </itemset>
  1697. </choices>
  1698. <script type="javascript" ev:event="xforms-select">
  1699. <![CDATA[
  1700. fDoctSerach();
  1701. model.refresh();
  1702. ]]>
  1703. </script>
  1704. </select1>
  1705. <select1 id="cmb_orddrid" ref="/root/main/reqinfo/orddrid" class="combo_default" navindex="2" appearance="minimal" style="left:627px; top:451px; width:135px; height:19px; ">
  1706. <choices>
  1707. <itemset nodeset="/root/init/doctlist/medispcl/">
  1708. <label ref="doctnm"/>
  1709. <value ref="doctid"/>
  1710. </itemset>
  1711. </choices>
  1712. </select1>
  1713. <select1 id="cmb_fsexamflag" ref="/root/main/reqinfo/fsexamflag" class="combo_default" navindex="3" appearance="minimal" style="left:117px; top:477px; width:135px; height:19px; ">
  1714. <choices>
  1715. <itemset nodeset="/root/init/fsexamflag/P0021">
  1716. <label ref="cdnm"/>
  1717. <value ref="cdid"/>
  1718. </itemset>
  1719. </choices>
  1720. </select1>
  1721. <select1 id="cmb_chospath" ref="/root/main/reqinfo/chospath" class="combo_default" navindex="12" appearance="minimal" style="left:473px; top:555px; width:97px; height:19px; ">
  1722. <choices>
  1723. <item>
  1724. <label>외래</label>
  1725. <value>O</value>
  1726. </item>
  1727. <item>
  1728. <label>응급</label>
  1729. <value>E</value>
  1730. </item>
  1731. </choices>
  1732. </select1>
  1733. <select1 id="cmb_reqtype" ref="/root/main/reqinfo/reqtype" class="combo_default" navindex="13" appearance="minimal" style="left:649px; top:555px; width:111px; height:19px; ">
  1734. <choices>
  1735. <itemset nodeset="/root/init/reqtype/A0418">
  1736. <label ref="cdnm"/>
  1737. <value ref="cdid"/>
  1738. </itemset>
  1739. </choices>
  1740. </select1>
  1741. <input id="ipt_rgstdd" ref="/root/main/reqinfo/rgstdd" class="input_essential" navindex="5" inputtype="date" style="left:117px; top:502px; width:135px; height:19px; ">
  1742. <script type="javascript" ev:event="xforms-value-changed">
  1743. <![CDATA[
  1744. var rgstdd = model.getValue("/root/main/reqinfo/rgstdd");
  1745. var enddd = rgstdd.toDate().getAddDate(100, "D").getDateFormat();
  1746. model.setValue("/root/main/reqinfo/enddd", enddd);
  1747. model.refresh();
  1748. ]]>
  1749. </script>
  1750. </input>
  1751. <select1 id="cmb_reqpath" ref="/root/main/reqinfo/reqpath" class="combo_default" navindex="8" appearance="minimal" style="left:372px; top:528px; width:135px; height:19px; ">
  1752. <choices>
  1753. <itemset nodeset="/root/init/reqpath/A0421">
  1754. <label ref="cdnm"/>
  1755. <value ref="cdid"/>
  1756. </itemset>
  1757. </choices>
  1758. </select1>
  1759. <input id="ipt_reqdd" ref="/root/main/reqinfo/reqdd" class="input_essential" navindex="9" inputtype="date" style="left:627px; top:528px; width:135px; height:19px; ">
  1760. <script type="javascript" ev:event="xforms-value-changed">
  1761. <![CDATA[
  1762. /*
  1763. var reqdd = model.getValue("/root/main/reqinfo/reqdd");
  1764. var enddd = reqdd.toDate().getAddDate(100, "D").getDateFormat();
  1765. model.setValue("/root/main/reqinfo/enddd", enddd);
  1766. model.refresh();
  1767. */
  1768. ]]>
  1769. </script>
  1770. </input>
  1771. <select1 id="cmb_replflag" ref="/root/main/reqinfo/replflag" class="input_essential" navindex="7" appearance="minimal" style="left:117px; top:528px; width:135px; height:19px; ">
  1772. <choices>
  1773. <itemset nodeset="/root/init/replflag/A0636">
  1774. <label ref="cdnm"/>
  1775. <value ref="cdid"/>
  1776. </itemset>
  1777. </choices>
  1778. </select1>
  1779. <select1 id="cmb_cptype" ref="/root/main/reqinfo/cptype" class="combo_default" navindex="6" appearance="minimal" style="left:372px; top:502px; width:135px; height:19px; ">
  1780. <choices>
  1781. <itemset nodeset="/root/init/cptype/A0420">
  1782. <label ref="cdnm"/>
  1783. <value ref="cdid"/>
  1784. </itemset>
  1785. </choices>
  1786. </select1>
  1787. <select1 id="cmb_replmthd" ref="/root/main/reqinfo/replmthd" class="combo_essential" navindex="4" appearance="minimal" style="left:627px; top:477px; width:135px; height:19px; ">
  1788. <choices>
  1789. <itemset nodeset="/root/init/replmthd/A0422">
  1790. <label ref="cdnm"/>
  1791. <value ref="cdid"/>
  1792. </itemset>
  1793. </choices>
  1794. </select1>
  1795. <select1 id="cmb_repltype" ref="/root/main/reqinfo/repltype" class="combo_default" navindex="10" appearance="minimal" style="left:77px; top:555px; width:111px; height:19px; ">
  1796. <choices>
  1797. <itemset nodeset="/root/init/repltype/A0423">
  1798. <label ref="cdnm"/>
  1799. <value ref="cdid"/>
  1800. </itemset>
  1801. </choices>
  1802. </select1>
  1803. <select1 id="cmb_endflag" ref="/root/main/reqinfo/endflag" class="combo_default" disabled="true" appearance="minimal" style="left:372px; top:477px; width:135px; height:19px; ">
  1804. <choices>
  1805. <itemset nodeset="/root/init/endflag/A0424">
  1806. <label ref="cdnm"/>
  1807. <value ref="cdid"/>
  1808. </itemset>
  1809. </choices>
  1810. </select1>
  1811. <textarea id="textarea3" ref="/root/main/reqinfo/cc" navindex="14" scroll="vertical" maxlength="133" style="left:117px; top:580px; width:258px; height:24px; "/>
  1812. <textarea id="textarea4" ref="/root/main/reqinfo/rem" navindex="15" scroll="vertical" maxlength="33" style="left:510px; top:580px; width:250px; height:20px; "/>
  1813. <input id="opt_fstprntdt" ref="/root/main/reqinfo/fstprntdt" class="input_default" disabled="true" inputtype="date" style="left:117px; top:657px; width:135px; height:19px; "/>
  1814. <input id="opt_indschprntdt" ref="/root/main/reqinfo/indschprntdt" class="input_default" disabled="true" inputtype="date" style="left:372px; top:657px; width:135px; height:19px; "/>
  1815. <input id="opt_enddd" ref="/root/main/reqinfo/reqaenddd" class="input_default" disabled="true" inputtype="date" style="left:510px; top:707px; width:135px; height:19px; "/>
  1816. <output id="opt_reqcoophospnm" ref="/root/main/reqinfo/reqahospnm" class="output_fix" appearance="output" style="left:117px; top:707px; width:253px; height:19px; "/>
  1817. <datagrid id="grd_rclist" nodeset="/root/main/listinfo/nursereqlist" caption="회신작성일자^출력일자^진료과^진료의사" colsep="^" colwidth="90, 90, 118, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:769px; top:635px; width:423px; height:95px; ">
  1818. <col ref="lastformrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1819. <col ref="prntdt" format="yyyy-mm-dd" style="left:90px; top:23px; width:90px; height:23px; text-align:center; "/>
  1820. <col ref="orddeptnm" style="left:298px; top:23px; width:91px; height:18px; "/>
  1821. <col ref="orddrnm"/>
  1822. </datagrid>
  1823. <input id="ipt_enddd" ref="/root/main/reqinfo/enddd" class="input_default" disabled="true" inputtype="date" style="left:627px; top:502px; width:135px; height:19px; "/>
  1824. <select1 id="cmb_reqagntype" ref="/root/main/reqinfo/reqagntype" class="combo_default" navindex="11" appearance="minimal" style="left:282px; top:555px; width:111px; height:19px; ">
  1825. <choices>
  1826. <itemset nodeset="/root/init/reqagntype/A0583">
  1827. <label ref="cdnm"/>
  1828. <value ref="cdid"/>
  1829. </itemset>
  1830. </choices>
  1831. </select1>
  1832. <caption id="caption11" class="cell_1" style="left:190px; top:553px; width:90px; height:23px; vertical-align:middle; ">되의뢰 유형</caption>
  1833. <caption id="caption12" class="cell_1" style="left:510px; top:655px; width:115px; height:23px; vertical-align:middle; ">STAFF</caption>
  1834. <output id="opt_staffid" ref="/root/main/reqinfo/staffnm" class="output_fix" appearance="output" style="left:627px; top:657px; width:115px; height:19px; "/>
  1835. <button id="btn_staff" class="icon_search" style="left:747px; top:658px; width:16px; height:16px; ">
  1836. <caption/>
  1837. <script type="javascript" ev:event="DOMActivate">
  1838. <![CDATA[
  1839. // 출력일자가 Default 값이 아닐 경우에만 수정 || model.getValue("/root/main/reqinfo/indschprntdt") != ""
  1840. if (model.getValue("/root/main/reqinfo/indschprntdt") != "00000000000000" && model.getValue("/root/main/reqinfo/indschprntdt") != "") {
  1841. fStaffPopUp();
  1842. }
  1843. else {
  1844. messageBox("출력일자가 등록되어있지 않습니다.", "E999", "");
  1845. return false;
  1846. }
  1847. ]]>
  1848. </script>
  1849. </button>
  1850. <caption id="caption13" class="cell_1" style="left:510px; top:371px; width:115px; height:23px; vertical-align:middle; ">의뢰의사 전화번호</caption>
  1851. <output id="output1" ref="/root/main/reqinfo/mpphontel" class="output_fix" appearance="output" style="left:627px; top:374px; width:135px; height:19px; "/>
  1852. <button id="button8" class="btn2_letter5" visibility="hidden" style="left:509px; top:347px; width:75px; height:19px; ">
  1853. <caption>SMS전송</caption>
  1854. <script type="javascript" ev:event="DOMActivate">
  1855. <![CDATA[
  1856. // 140923 SMS 전송 수정 - AYS
  1857. var UserName = model.getValue("/root/main/patient/hngnm");
  1858. var SMSMessage = UserName + "님 내원하였습니다. -경북대학교병원 진료의뢰센터 드림";
  1859. model.removeNodeset("/root/hidden/smsdata");
  1860. model.makeValue("/root/hidden/smsdata/bizabbr", "EMR");
  1861. model.makeValue("/root/hidden/smsdata/replytelno", "0532005024"); // 발신자 번호
  1862. model.makeValue("/root/hidden/smsdata/rsrvyn", "0");
  1863. model.makeValue("/root/hidden/smsdata/rsrvdate", "");
  1864. model.makeValue("/root/hidden/smsdata/rsrvtime", "");
  1865. model.makeValue("/root/hidden/smsdata/recvrlist/chk", "");
  1866. model.makeValue("/root/hidden/smsdata/recvrlist/recvrnm", model.getValue("/root/main/reqinfo/drnm"));
  1867. model.makeValue("/root/hidden/smsdata/recvrlist/recvrtelno", model.getValue("/root/main/reqinfo/mpphontel"));
  1868. model.makeValue("/root/hidden/smsdata/msgcnts", SMSMessage); // 메세지
  1869. zmsfOpenSMS("/root/hidden/smsdata");
  1870. model.removeNodeset("/root/hidden/smsdata");
  1871. ]]>
  1872. </script>
  1873. </button>
  1874. <output id="opt_smsyn" ref="/root/main/reqinfo/smsmsgkey" class="output_fix" appearance="output" style="left:627px; top:425px; width:33px; height:19px; "/>
  1875. <caption id="caption14" class="cell_1" style="left:510px; top:423px; width:115px; height:23px; vertical-align:middle; ">SMS 발송</caption>
  1876. <button id="button5" class="btn2_letter7" style="left:665px; top:347px; width:97px; height:19px; ">
  1877. <caption>메시지바로전송</caption>
  1878. <script type="javascript" ev:event="DOMActivate">
  1879. <![CDATA[
  1880. // 140923 SMS 전송 수정 - AYS
  1881. // 환자 PID, 이름, 의뢰의사 휴대번호, 의뢰일자, 의뢰번호, 의뢰내역 행번호 저장
  1882. var PID = model.getValue("/root/main/patreq/patlist/pid");
  1883. var UserName = model.getValue("/root/main/patient/hngnm");
  1884. var ReqDrPhoneNo = model.getValue("/root/main/reqinfo/mpphontel");
  1885. var Reqdd = model.getValue("/root/main/reqinfo/reqdd");
  1886. var ReqseqNo = model.getValue("/root/main/reqinfo/reqseqno");
  1887. var ReqlistRow = grd_reqlist.row; // 141002 - AYS
  1888. var orddeptnm = cmb_orddeptcd.label;
  1889. var orddrnm = cmb_orddrid.label;
  1890. var replytelno = "";
  1891. var SMSMessage = "";
  1892. if(UserName == "" || UserName == null){
  1893. messageBox("의뢰환자가 조회되지", "E007");
  1894. return;
  1895. }
  1896. if(PID == "" || PID == null){
  1897. messageBox("의뢰환자가 조회되지", "E007");
  1898. return;
  1899. }
  1900. if(ReqDrPhoneNo == "" || ReqDrPhoneNo == null){
  1901. messageBox("의뢰의사 전화번호가 등록되지", "E007");
  1902. return;
  1903. }
  1904. if (gdutplceinstcd == "031") {
  1905. SMSMessage = "의뢰하신 "+UserName + "님 내원하였습니다.";
  1906. SMSMessage += "\n\n감사합니다.";
  1907. SMSMessage += "\n\n-경북대학교병원 진료의뢰센터 드림";
  1908. replytelno = "0532005024";
  1909. }
  1910. else if (gdutplceinstcd == "032") {
  1911. SMSMessage = UserName + "님 " + orddeptnm ;
  1912. SMSMessage += "\n\n진료하였습니다";
  1913. SMSMessage += "\n\n회신서는 빠른 시일 내 보내드리겠습니다.";
  1914. SMSMessage += "\n\n-칠곡경북대학교병원 진료협력센터 드림-";
  1915. replytelno = "0532003400";
  1916. }
  1917. if (group3.attribute("visibility") == "visible") {
  1918. SMSMessage = model.getValue("/root/main/reqinfo/msg");
  1919. }
  1920. var rtn = messageBox(SMSMessage+"\n\n"+"로 메시지를 전송하시겠습니까?", "Q");
  1921. if(rtn=="6") {
  1922. model.removeNode("/root/temp/reqlistrow"); /// 141002 - AYS
  1923. model.removeNodeset("/root/send/sms/req");
  1924. model.removeNodeset("/root/hidden/smsdata");
  1925. model.makeValue("/root/send/sms/req/pid", PID); // 환자 차트번호
  1926. model.makeValue("/root/send/sms/req/reqdd", Reqdd); // 의뢰일자
  1927. model.makeValue("/root/send/sms/req/reqseqno", ReqseqNo); // 의뢰일련번호
  1928. model.makeValue("/root/send/sms/req/replytelno", replytelno); // 발신자 번호
  1929. model.makeValue("/root/send/sms/req/rsrvyn", 0); // 즉시 전송
  1930. model.makeValue("/root/send/sms/req/recvrnm", model.getValue("/root/main/reqinfo/drnm")); // 수신자 이름
  1931. model.makeValue("/root/send/sms/req/recvrtelno", ReqDrPhoneNo); // 수신자 번호
  1932. model.makeValue("/root/send/sms/req/msgcnts", SMSMessage); // 메세지
  1933. if(submit("TXARC00105")) { // TXARC00105
  1934. if (model.getValue("/root/temp/succnt/cnt") > 0 && model.getValue("/root/temp/succnt/msgkey") != null) {
  1935. messageBox("메시지 전송이 ", "I002");
  1936. submit("TRARC00102");
  1937. fReqClickSMS(ReqlistRow);
  1938. }
  1939. }
  1940. }
  1941. model.removeNodeset("/root/hidden/smsdata");
  1942. model.removeNodeset("/root/send/sms/req");
  1943. group3.attribute("visibility") = "hidden";
  1944. ]]>
  1945. </script>
  1946. </button>
  1947. <button id="button9" class="btn2_letter7" visibility="hidden" style="left:411px; top:347px; width:97px; height:19px; ">
  1948. <caption>HIE의뢰서보기</caption>
  1949. <script type="javascript" ev:event="DOMActivate">
  1950. <![CDATA[
  1951. var hieyn = model.getValue("/root/main/reqinfo/hieyn");
  1952. if (hieyn != "Y" ) {
  1953. messageBox("HIE 의뢰환자가 선택되지 않았습니다","I");
  1954. return;
  1955. }
  1956. fHIEReferView();
  1957. ]]>
  1958. </script>
  1959. </button>
  1960. <group id="group3" visibility="hidden" style="left:480px; top:370px; width:280px; height:225px; ">
  1961. <button id="button10" class="btn2_letter2" style="left:225px; top:5px; width:42px; height:19px; ">
  1962. <caption>닫기</caption>
  1963. <script type="javascript" ev:event="DOMActivate">
  1964. <![CDATA[
  1965. group3.attribute("visibility") = "hidden";
  1966. ]]>
  1967. </script>
  1968. </button>
  1969. <textarea id="tar_msg" ref="/root/main/reqinfo/msg" style="left:5px; top:25px; width:265px; height:190px; "/>
  1970. </group>
  1971. <button id="button11" class="btn2_letter5" style="left:588px; top:347px; width:75px; height:19px; ">
  1972. <caption>메시지편집</caption>
  1973. <script type="javascript" ev:event="DOMActivate">
  1974. <![CDATA[
  1975. group3.attribute("visibility") = "visible";
  1976. var UserName = model.getValue("/root/main/patient/hngnm");
  1977. var orddeptnm = cmb_orddeptcd.label;
  1978. var SMSMessage = "";
  1979. if (gdutplceinstcd == "031") {
  1980. SMSMessage = "의뢰하신 "+UserName + "님 내원하였습니다.";
  1981. SMSMessage += "\n\n감사합니다.";
  1982. SMSMessage += "\n\n-경북대학교병원 진료의뢰센터 드림";
  1983. }
  1984. else if (gdutplceinstcd == "032") {
  1985. SMSMessage = UserName + "님 " + orddeptnm ;
  1986. SMSMessage += "\n\n진료하였습니다";
  1987. SMSMessage += "\n\n회신서는 빠른 시일 내 보내드리겠습니다.";
  1988. SMSMessage += "\n\n-칠곡경북대학교병원 진료협력센터 드림-";
  1989. }
  1990. model.makeValue("/root/main/reqinfo/msg",SMSMessage);
  1991. tar_msg.refresh();
  1992. ]]>
  1993. </script>
  1994. </button>
  1995. <output id="output2" ref="/root/main/reqinfo/smsdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:665px; top:425px; width:95px; height:19px; "/>
  1996. <caption id="caption15" class="cell_1" style="left:0px; top:605px; width:115px; height:24px; vertical-align:middle; ">의뢰번호(1차)</caption>
  1997. <input id="input1" ref="/root/main/reqinfo/reqpseqno" format="99999999-999999-99999" style="left:117px; top:607px; width:258px; height:20px; "/>
  1998. <caption id="caption16" class="cell_1" style="left:545px; top:604px; width:50px; height:22px; vertical-align:middle; ">기록지</caption>
  1999. <caption id="caption17" class="cell_1" style="left:480px; top:605px; width:35px; height:22px; vertical-align:middle; ">CD</caption>
  2000. <bool id="bool_outrecyn" checkvalue="Y,N" ref="/root/main/reqinfo/outrecyn" style="left:595px; top:605px; width:20px; height:20px; "/>
  2001. <bool id="bool_outcdyn" checkvalue="Y,N" ref="/root/main/reqinfo/outcdyn" style="left:513px; top:605px; width:25px; height:20px; "/>
  2002. <caption id="caption18" class="cell_1" style="left:380px; top:605px; width:70px; height:22px; vertical-align:middle; ">진료의뢰서</caption>
  2003. <caption id="caption19" class="cell_1" style="left:625px; top:604px; width:50px; height:22px; vertical-align:middle; ">소견서</caption>
  2004. <bool id="bool_outcmtyn" checkvalue="Y,N" ref="/root/main/reqinfo/outcmtyn" style="left:676px; top:605px; width:20px; height:20px; "/>
  2005. <bool id="bool_outcnstyn" checkvalue="Y,N" ref="/root/main/reqinfo/outcnstyn" style="left:448px; top:605px; width:25px; height:20px; "/>
  2006. </group>
  2007. </xhtml:body>
  2008. </xhtml:html>