SMMNW01100_당일입원전과전실리스트.xrw 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792
  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>당일입원, 전과, 전실 환자 list</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <wardcd/>
  12. <orddd/>
  13. <flag>00</flag>
  14. <pid/>
  15. </cond>
  16. <inpatlist>
  17. <inpatlist>
  18. <inrmcnfmflag/>
  19. <chngdeptroomflag/>
  20. <recov/>
  21. <acptflag/>
  22. <room/>
  23. <pid/>
  24. <patnm/>
  25. <sexage/>
  26. <mealprcp/>
  27. <mealprcpcd/>
  28. <fromward/>
  29. <fromroom/>
  30. <fromdeptnm/>
  31. <fromdrnm/>
  32. <toward/>
  33. <toroom/>
  34. <todeptnm/>
  35. <todrnm/>
  36. <diagnm/>
  37. <resn/>
  38. <savetm/>
  39. <indd/>
  40. <cretno/>
  41. <seqno/>
  42. <instcd/>
  43. <careinrmdd/>
  44. <careinrmtm/>
  45. <mskind/>
  46. <histstat/>
  47. <acptflagcd/>
  48. <appflagcd/>
  49. <appdd/>
  50. <apptm/>
  51. <appid/>
  52. <pamacptdd/>
  53. <pamacpttm/>
  54. <pamacptid/>
  55. <prestwardcd/>
  56. <prestroomcd/>
  57. <prestroomgrde/>
  58. <prestroomtype/>
  59. <prestcentcd/>
  60. <prestsuporddeptcd/>
  61. <prestorddeptcd/>
  62. <prestmedispclid/>
  63. <prestatdoctid/>
  64. <chngwardcd/>
  65. <chngroomcd/>
  66. <chngroomgrde/>
  67. <chngroomtype/>
  68. <oxyyn/>
  69. <suctyn/>
  70. <chngcentcd/>
  71. <chngsuporddeptcd/>
  72. <chngorddeptcd/>
  73. <chngmedispclid/>
  74. <chngatdoctid/>
  75. <specordyn/>
  76. <enddd/>
  77. <endid/>
  78. <prestremcd/>
  79. <chngprestrem/>
  80. <fstrgstrid/>
  81. <fstrgstdt/>
  82. <lastupdtrid/>
  83. <lastupdtdt/>
  84. <prcpyn/>
  85. <calcscorcd/>
  86. <chngyn/>
  87. <clacdd/>
  88. <calctm/>
  89. <deptcd/>
  90. <deptnm/>
  91. <userid/>
  92. <usernm/>
  93. <curdd/>
  94. <curtm/>
  95. <orddeptcd/>
  96. <ordflag/>
  97. <inpath/>
  98. <ordtype/>
  99. <medispclphonno/>
  100. <tocntctel/>
  101. </inpatlist>
  102. </inpatlist>
  103. <baseinfo/>
  104. <rtninfo>
  105. <rtnmsg>
  106. <resultflag/>
  107. </rtnmsg>
  108. <patinfolist>
  109. <pid/>
  110. <patnm/>
  111. <sexage/>
  112. </patinfolist>
  113. </rtninfo>
  114. <menuitems>
  115. <gnrlmenu>
  116. <item>
  117. <name>환자이름표출력</name>
  118. <func>fOpenNamePrint</func>
  119. </item>
  120. <item>
  121. <name>입실취소</name>
  122. <func>fCancelinRmdd</func>
  123. </item>
  124. <item>
  125. <name>-</name>
  126. <func/>
  127. </item>
  128. <item>
  129. <name>입원교육확인서(병동)</name>
  130. <func>fOpenInEdOcrPrint1</func>
  131. </item>
  132. <item>
  133. <name>입원교육확인서(신생아)</name>
  134. <func>fOpenInEdOcrPrint2</func>
  135. </item>
  136. <item>
  137. <name>입원교육확인서(분만실)</name>
  138. <func>fOpenInEdOcrPrint3</func>
  139. </item>
  140. <item>
  141. <name>입원교육확인서(BMT)</name>
  142. <func>fOpenInEdOcrPrint4</func>
  143. </item>
  144. <item>
  145. <name>입원교육확인서(병동)_전자동의서</name>
  146. <func>fOpenInEdOcrPrint1Elec</func>
  147. </item>
  148. <item>
  149. <name>입원교육확인서(신생아)_전자동의서</name>
  150. <func>fOpenInEdOcrPrint2Elec</func>
  151. </item>
  152. <item>
  153. <name>입원교육확인서(분만실)_전자동의서</name>
  154. <func>fOpenInEdOcrPrint3Elec</func>
  155. </item>
  156. <item>
  157. <name>입원교육확인서(BMT)_전자동의서</name>
  158. <func>fOpenInEdOcrPrint4Elec</func>
  159. </item>
  160. <item>
  161. <name>CP환자 입원계획표</name>
  162. <func>fOpenCpInPlan</func>
  163. </item>
  164. </gnrlmenu>
  165. </menuitems>
  166. <method/>
  167. <cpinfo>
  168. <termcd>
  169. <cdid/>
  170. <supcdid/>
  171. </termcd>
  172. </cpinfo>
  173. <attfileinfo/>
  174. </main>
  175. <send>
  176. <req/>
  177. </send>
  178. <init>
  179. <dept>
  180. <depthngnm/>
  181. <deptcd/>
  182. </dept>
  183. </init>
  184. <hidden>
  185. </hidden>
  186. <temp>
  187. <specordininfo/>
  188. <mdruginfo/>
  189. </temp>
  190. <tmp>
  191. <req/>
  192. </tmp>
  193. </root>
  194. </instance>
  195. <script type="javascript" ev:event="xforms-ready">
  196. <![CDATA[
  197. //메뉴에서 사용할 경우 사용자의 병동으로 세팅
  198. var instcd = getUserInfo("dutplceinstcd");
  199. var standard_yn = "orduseyn";
  200. var ord_deptflag = 'W';
  201. var rslt_ref = "/root/init";
  202. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  203. cmb_wardlist.refresh();
  204. // 간호하드코딩 테이블 조회_20090416(ByJA)
  205. // 간호하드코딩 테이블 조회 추가 20100714 안도영
  206. var pCode = "'210', '070', 'T49','204'"; // 조회할 CdGrupID 코드정보
  207. // '210' => 식사처방,수가코드 정보
  208. // '070' => 입실체크시 식사처방 필요없는 부서코드 정보
  209. var pDate = getCurrentDate(); // 조회기준일자
  210. fGetNursHardCdInfo(pCode, pDate);
  211. fGetMealCalCdInfo(); // 식사처방 하드코딩 수정 관련 함수 (간호공통테이블 사용) 20100715 안도영
  212. if (checkOpener() && !isNull(opener.javascript.getParameter("SMMNW01100_PARAM1")) ) {
  213. var param = opener.javascript.getParameter("SMMNW01100_PARAM1") + "^";
  214. var orddd = getArrayData (param, 0, 0, "^", "▩");
  215. var wardcd = getArrayData (param, 0, 1, "^", "▩");
  216. model.setValue("/root/main/cond/wardcd",wardcd);
  217. model.setValue("/root/main/cond/orddd", orddd);
  218. } else {
  219. var wardcd = getUserInfo("dutplcecd");
  220. var orddd = getCurrentDate();
  221. model.setValue("/root/main/cond/wardcd",wardcd);
  222. model.setValue("/root/main/cond/orddd", orddd);
  223. cmb_wardlist.disabled = false;
  224. }
  225. // 708 출력기능 요청에 따른 출력 버튼 추가(708 병동 간호사일 경우만) - 141126 AYS
  226. var sDutplcdcd = model.getValue("/root/code/codeinfo/codelist[cdgrupid = '204']/cdid");
  227. //alert("sDutplcdcd : " + sDutplcdcd);
  228. if (sDutplcdcd == getUserInfo("dutplcecd") || getUserInfo("userid") == "ENR" ) {
  229. btn_prt.visible = true;
  230. img1.attribute("left") = 926;
  231. }
  232. fGetPatList();
  233. ]]>
  234. </script>
  235. <script type="javascript">
  236. <![CDATA[
  237. function fGetPatList() {
  238. model.removenode("/root/send");
  239. model.makeValue("/root/send/req/wardcd", model.getValue("/root/main/cond/wardcd"));
  240. model.makeValue("/root/send/req/orddd" , model.getValue("/root/main/cond/orddd"));
  241. model.makeValue("/root/send/req/pid" , model.getValue("/root/main/cond/pid"));
  242. submit("TRMNW01102");
  243. grd_patList.colHidden(grd_patList.colRef("mealprcpcd")) = true;
  244. fSetMealNm();
  245. fSetCellStyle();
  246. fReadOnlyCtrl();
  247. fEnableCtrl();
  248. grd_patList.frozenCols = grd_patList.colRef("patnm");
  249. model.setFocus("ipt_barcodepid"); // 환자팔찌바코드입력창으로 포커스설정
  250. }
  251. function fCalcNextDate() {
  252. var dt = getCurrentDate();
  253. dt = dt.toDate("YYYYMMDD");
  254. dt = dt.getAddDate(1, "D");
  255. dt = dt.getDateFormat("YYYYMMDD");
  256. return dt;
  257. }
  258. function fSetMealNm() {
  259. var mealprcpcdCol = grd_patList.colRef("mealprcpcd");
  260. for(var i = grd_patList.fixedRows; i < grd_patList.rows; i++) {
  261. //Q9140002( NPO(1) ) , Q1011001( 일반 )
  262. //if(grd_patList.valueMatrix(i, mealprcpcdCol) != "Q9140002" && grd_patList.valueMatrix(i, mealprcpcdCol) != "Q1011001") {
  263. //grd_patList.valueMatrix(i, mealprcpcdCol) = grd_patList.valueMatrix(i, grd_patList.colRef("mealprcp"));
  264. // } else {
  265. // continue;
  266. // }
  267. }
  268. }
  269. function fSetCellStyle() {
  270. var col = grd_patList.colRef("fromward");
  271. for(var i = 0; i < grd_patList.rows; i++) {
  272. if(model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/fromward") == "OPD") {
  273. grd_patList.cellStyle("color", i, col, i, col) = "0000FF"
  274. }
  275. }
  276. grd_patList.rebuild();
  277. }
  278. function fReadOnlyCtrl() {
  279. grd_patList.isReadOnly(1,1, grd_patList.rows-1, grd_patList.cols-1) = true;
  280. }
  281. // 입실확인 체크박스 제어
  282. function fEnableCtrl() {
  283. for(var i = grd_patList.fixedRows; i < grd_patList.rows; i++) {
  284. var value = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/chngdeptroomflag");
  285. var acptflagcd = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/acptflagcd");
  286. var histstat = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/histstat");
  287. var seqno = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/seqno");
  288. var appflagcd = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/appflagcd");
  289. // 입원
  290. if(value == "01") {
  291. grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true; // 입실대상자는 입실체크를 체크박스로 하지 않고 등록번호를 입력하거나 환자팔찌를 바코드를 이용하여 체크 할 수 있다. 따라서 체크박스 비활성화.
  292. if(model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/prcpyn") == "Y" || appflagcd == "3" ){
  293. grd_patList.isreadonly(i, grd_patList.colRef("mealprcp")) = true; // 이미식사처방존재 할 경우 식사처방 콤보 비활성화
  294. }else{
  295. grd_patList.isreadonly(i, grd_patList.colRef("mealprcp")) = false;
  296. }
  297. //2008-08-26 특수주사실(암센터주사실, BMT주사실) 입실시 식이 입력 불가
  298. //2008-09-23 신생아, 신생아중환자실 입실시 식이 입력 불가
  299. if( !isNull(cmb_wardlist.value) && !isNull(model.getValue("/root/code/codeinfo/codelist[cdgrupid = '070' and cdid = '"+ cmb_wardlist.value +"']/cdid")) ){
  300. grd_patList.isreadonly(i, grd_patList.colRef("mealprcp")) = true;
  301. }
  302. //***** 입실대상환자의 체크박스는 무조건 비활성화 -> 바코드 또는 환자번호로만 입실확인 할 수 있도록 변경_20080730 *****/ /
  303. // //** 이미 입실확인 한 경우 _20080729추가 **//
  304. // /*
  305. // if(model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/inrmcnfmflag") == "U" ) {
  306. // grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
  307. // }else{
  308. // grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = false;
  309. // }
  310. // */
  311. //
  312. // grd_patList.isReadOnly(i, grd_patList.colRef("inrmcnfmflag"), i, grd_patList.colRef("inrmcnfmflag")) = false;
  313. //
  314. // if(grd_patList.valueMatrix(i, grd_patList.colRef("mealprcp") == "개인금식" && grd_patList.valueMatrix(i, grd_patList.colRef("mealprcpcd") = "Q9140002"))) {
  315. // grd_patList.isReadOnly(i, grd_patList.colRef("mealprcp"), i, grd_patList.colRef("mealprcp")) = false;
  316. // } else {
  317. // grd_patList.isReadOnly(i, grd_patList.colRef("mealprcp"), i, grd_patList.colRef("mealprcp")) = true;
  318. // }
  319. //
  320. // if(histstat == "C" && seqno == "1") {
  321. // grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
  322. // }
  323. //
  324. // //** 입원경로가 응급실인 경우 (inpath:'2','7') 체크박스 비활성화_20080710추가 **//
  325. // var inpath = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/inpath");
  326. // if(inpath=='2' || inpath=='7'){
  327. // grd_patList.isReadOnly(i, grd_patList.colRef("inrmcnfmflag"), i, grd_patList.colRef("inrmcnfmflag")) = true;
  328. // }else{
  329. // grd_patList.isReadOnly(i, grd_patList.colRef("inrmcnfmflag"), i, grd_patList.colRef("inrmcnfmflag")) = false;
  330. // }
  331. } else if(value == "02") {
  332. grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
  333. } else if(value == "03" && acptflagcd == "2") {
  334. grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = false;
  335. } else {
  336. grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
  337. grd_patList.isreadonly(i, grd_patList.colRef("mealprcp")) = true;
  338. }
  339. grd_patList.isreadonly(i, grd_patList.colRef("transyn")) = false;
  340. }
  341. }
  342. function fMDrugCheck(vPid, vIndd, vCretno) {
  343. model.removenode("/root/tmp");
  344. model.makeValue("/root/tmp/req/pid" , vPid);
  345. model.makeValue("/root/tmp/req/indd" , vIndd);
  346. model.makeValue("/root/tmp/req/cretno", vCretno);
  347. submit("TRMNW01105");
  348. var mdrugcount = model.getValue("/root/temp/mdruginfo/mdruginfo/mdrugcount");
  349. var chkno = 1;
  350. if(mdrugcount > 0){
  351. var rtnval = messageBox("미처리된 마약 및 향정약이 "+mdrugcount+"건 있습니다.\n※부서확인, 반납, 반환, 투약기록 처리가 완료되어야 합니다.\n그대로 진행하시겠습니까?", "Q");
  352. if(rtnval != "6"){ // no
  353. chkno = 0 ;
  354. }
  355. }
  356. return chkno;
  357. }
  358. // 입실전과전실저장
  359. function fSaveInPatList(saveflag){
  360. var nextdd = fCalcNextDate();
  361. var data = getGridUpdateData(grd_patList);
  362. if(data == "") {
  363. messageBox("변경된 내역이", "I004");
  364. return;
  365. }
  366. var calcdd;
  367. var calctm;
  368. var careinrmdd;
  369. var careinrmtm;
  370. //변경된 항목을 체크한다.
  371. for(var i = 0 ; i < grd_patList.rows;i++) {
  372. var pid = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") ;
  373. var indd = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/indd") ;
  374. var cretno = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/cretno") ;
  375. var cpyn = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/cpyn") ;
  376. var cpgno = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/cpgno") ;
  377. var orddeptcd = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/orddeptcd") ;
  378. var medispclid = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngmedispclid") ;
  379. var patnm = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/patnm");
  380. var room = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/room");
  381. var sexage = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/sexage");
  382. if ( saveflag == "CR"
  383. && ( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") == "01"
  384. || ( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/inrmcnfmflag") == "N" && model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") != "01" ) )
  385. ) {
  386. grd_patList.rowStatus(i) = 0;
  387. }else if( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/inrmcnfmflag") == "U" && model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") == "03" ){
  388. var chkno = fMDrugCheck(pid, indd, cretno);
  389. if(chkno == 0){
  390. return ;
  391. }
  392. }
  393. if(grd_patList.rowStatus(i) == 2) { //로우의 상태가 update상태일 경우.(당일입원환자중에.
  394. grd_patList.valueMatrix(i, grd_patList.colRef("deptcd")) = getUserInfo("dutplcecd");
  395. grd_patList.valueMatrix(i, grd_patList.colRef("deptnm")) = getUserInfo("dutplcenm");
  396. grd_patList.valueMatrix(i, grd_patList.colRef("userid")) = getUserId();
  397. grd_patList.valueMatrix(i, grd_patList.colRef("usernm")) = getUserName();
  398. grd_patList.valueMatrix(i, grd_patList.colRef("curdd")) = getCurrentDate();
  399. grd_patList.valueMatrix(i, grd_patList.colRef("curtm")) = getCurrentTime().substr(0,4);
  400. calcdd = grd_patList.valueMatrix(i, grd_patList.colRef("calcdd"));
  401. calctm = grd_patList.valueMatrix(i, grd_patList.colRef("calctm"));
  402. careinrmdd = grd_patList.valueMatrix(i, grd_patList.colRef("careinrmdd"));
  403. careinrmtm = grd_patList.valueMatrix(i, grd_patList.colRef("careinrmtm"));
  404. if(calcdd == "00000000" && calctm == "0000") {
  405. if(careinrmdd == "-" && careinrmtm == "-") {
  406. grd_patList.valueMatrix(i, grd_patList.colRef("ordflag")) = "01";
  407. } else {
  408. }
  409. } else {
  410. if (careinrmdd == calcdd && careinrmtm == calctm) {
  411. grd_patList.valueMatrix(i, grd_patList.colRef("ordflag")) = "02";
  412. } else {
  413. grd_patList.valueMatrix(i, grd_patList.colRef("ordflag")) = "01";
  414. }
  415. }
  416. }
  417. }
  418. data = getGridUpdateData(grd_patList);
  419. model.makeValue("/root/send/reqdata/tdayinpatlist", data);
  420. model.removenode("/root/main/rtninfo");
  421. if(submit("TXMNW01101") == true){
  422. //** 입원전 검사처방중 미시행건이 있을 경우 Blocking_20080801(ByJA) **//
  423. // 결과구분 (1: 입원전 검사처방 없음, 2 : 입원전 검사처방중 미시행건이 있음, 3 : dump 처리)_exeInBeforePrcpDumpd의 return값
  424. // 20080804 간호사교육으로 임시로 주석처리함.
  425. /*if(model.getValue("/root/main/rtninfo/rtnmsg/resultflag") == "2") {
  426. messageBox( model.getValue("/root/main/rtninfo/patinfolist/pid") + " "
  427. + model.getValue("/root/main/rtninfo/patinfolist/patnm") + " "
  428. + model.getValue("/root/main/rtninfo/patinfolist/sexage")
  429. + "\n입원전 검사실에서 미액팅된 검사가 존재합니다.\n입원전 검사실에 확인하십시오!! ", "E");
  430. }else{
  431. model.makeValue("/root/send/req/wardcd", model.getValue("/root/main/cond/wardcd"));
  432. model.makeValue("/root/send/req/orddd", model.getValue("/root/main/cond/orddd"));
  433. model.dispatch("xforms-ready");
  434. messageBox( model.getValue("/root/main/rtninfo/patinfolist/pid") +" "
  435. + model.getValue("/root/main/rtninfo/patinfolist/patnm") +" "
  436. + model.getValue("/root/main/rtninfo/patinfolist/sexage")
  437. , "I", "입실등록되었습니다."); // [ 등록번호 / 환자명 / S/A]
  438. }*/
  439. //입원전 검사 미액팅건 존재하여도 입실 되도록 처리 (WardCareMngtImpl : 1106)
  440. var sMessage = "";
  441. sMessage = model.getValue("/root/main/rtninfo/patinfolist/pid") + " "
  442. + model.getValue("/root/main/rtninfo/patinfolist/patnm") + " "
  443. + model.getValue("/root/main/rtninfo/patinfolist/sexage") + " "
  444. + "입실등록되었습니다." ;
  445. if(model.getValue("/root/main/rtninfo/rtnmsg/resultflag") == "2") {
  446. sMessage += "\n\n입원전 검사실에서 미액팅된 검사가 존재합니다.\n입원전 검사실에 확인하십시오!!";
  447. }
  448. messageBox(sMessage, "I");
  449. } else{
  450. model.makeValue("/root/send/req/wardcd", model.getValue("/root/main/cond/wardcd"));
  451. model.makeValue("/root/send/req/orddd", model.getValue("/root/main/cond/orddd"));
  452. model.dispatch("xforms-ready");
  453. }
  454. // CP 대상일 경우 간호기록이랑 연결한다.
  455. if (cpyn == "Y") {
  456. model.makeValue("/root/temp/cpinfo/pid", pid);
  457. model.makeValue("/root/temp/cpinfo/indd", indd);
  458. model.makeValue("/root/temp/cpinfo/cretno", cretno);
  459. model.makeValue("/root/temp/cpinfo/orddeptcd", orddeptcd);
  460. model.makeValue("/root/temp/cpinfo/medispclid", medispclid);
  461. model.makeValue("/root/temp/cpinfo/patnm", patnm);
  462. model.makeValue("/root/temp/cpinfo/room", room);
  463. model.makeValue("/root/temp/cpinfo/sexage", sexage);
  464. if (cpgno == 0) {
  465. messageBox("CP 대상환자입니다. 해당하는 CP를 선택해주세요.", "I999");
  466. if (submit("TRMNW01106")) {
  467. group3.visible = true;
  468. } else{
  469. fSetNrCpRecord(cpgno);
  470. }
  471. }
  472. // var rtnval = messageBox("CP 대상환자입니다. 해당 CP에 구성되어있는 [입원 간호기록]을 진행하시겠습니까?", "Q999");
  473. //
  474. // if(rtnval == "6"){ // yes
  475. // model.makeValue("/root/temp/cpinfo/pid", pid);
  476. // model.makeValue("/root/temp/cpinfo/indd", indd);
  477. // model.makeValue("/root/temp/cpinfo/cretno", cretno);
  478. // model.makeValue("/root/temp/cpinfo/orddeptcd", orddeptcd);
  479. // model.makeValue("/root/temp/cpinfo/medispclid", medispclid);
  480. // model.makeValue("/root/temp/cpinfo/patnm", patnm);
  481. // model.makeValue("/root/temp/cpinfo/room", room);
  482. // model.makeValue("/root/temp/cpinfo/sexage", sexage);
  483. //
  484. // if (cpgno == 0 || cpgno == null) {
  485. // if (submit("TRMNW01106")) {
  486. // group3.visible = true;
  487. // }
  488. // } else {
  489. // fSetNrCpRecord(cpgno);
  490. // }
  491. // }
  492. }
  493. fGetPatList();
  494. }
  495. function fSetNrCpRecord(cpCpgno) {
  496. if (cpCpgno < 1) {
  497. return;
  498. }
  499. var cpPid = model.getValue("/root/temp/cpinfo/pid");
  500. var cpIndd = model.getValue("/root/temp/cpinfo/indd");
  501. var cpCretno = model.getValue("/root/temp/cpinfo/cretno");
  502. var cpPatnm = model.getValue("/root/temp/cpinfo/patnm");
  503. var cpRoom = model.getValue("/root/temp/cpinfo/room");
  504. var cpSexage = model.getValue("/root/temp/cpinfo/sexage");
  505. var cpOrddeptcd = model.getValue("/root/temp/cpinfo/orddeptcd");
  506. var cpMedispclid = model.getValue("/root/temp/cpinfo/medispclid");
  507. model.makeValue("/root/temp/cpinfo/cpgno", cpCpgno);
  508. model.makeValue("/root/temp/cpinfo/cdgrupid", "CP1"); //CP번호와 간호기록 그룹ID 넘기기
  509. if (submit("TRMNW01107")) {
  510. var cpOrigincd = model.getValue("/root/main/cpinfo/termcd/cdid");
  511. var cpSupcdid = model.getValue("/root/main/cpinfo/termcd/supcdid");
  512. if (cpOrigincd == null || cpOrigincd == "") {
  513. } else {
  514. // 저장내역 확인
  515. model.removenode("root/send/recinfo");
  516. model.makeValue("root/send/recinfo/pid", cpPid);
  517. model.makeValue("root/send/recinfo/indd",cpIndd);
  518. model.makeValue("root/send/recinfo/cretno", cpCretno);
  519. model.makeValue("root/send/recinfo/origincd", cpOrigincd);
  520. if (submit("TRMNR02902")) {
  521. var recyn = model.getValue("/root/temp/recinfo/recyn");
  522. if (recyn != "Y") {
  523. var rtnval = messageBox("CP 대상환자입니다. 해당 CP에 구성되어있는 [입원 간호기록]을 진행하시겠습니까?", "Q999");
  524. if (rtnval == "6") {
  525. //기록 화면으로 연결
  526. setParameter("pid", cpPid);
  527. setParameter("indd", cpIndd);
  528. setParameter("cretno", cpCretno);
  529. setParameter("patnm", cpPatnm);
  530. setParameter("room", cpRoom);
  531. setParameter("sexage", cpSexage);
  532. setParameter("orddeptcd", cpOrddeptcd);
  533. setParameter("medispclid", cpMedispclid);
  534. setParameter("cdid", cpOrigincd);
  535. setParameter("supcdid", cpSupcdid);
  536. modal("SMMNR02900", 1, 0, 0 ,"", "", "");
  537. }
  538. }
  539. }
  540. }
  541. }
  542. }
  543. function fCheckSpclOrd(idx) {
  544. //20090928 JHP 선택진료신청 서명여부 및 기 서명건 관련하여 입원등록일과 동일한지 체크
  545. // 1. 입원일자(오늘)에 해당하는 선택진료서명여부 확인
  546. // 1-1 있으면 - 그냥 넘어간다.
  547. // 1-2 없으면 - 선택신청서명창 띄운다.
  548. // 2. 서명창 띄워서 리스트를 보여주는데 입원건에 해당하는선택신청정보는 제외하고 선택정보에 해당하는 입원건이 없는것만 보여준다.
  549. // 3. 해당리스트를 보고 알맞은게 없으면 선택신청을 띄운다.
  550. // 넘길값들 인스턴스에 담기
  551. var s_pid = grd_patList.valueMatrix(idx, grd_patList.colRef("pid"));
  552. var s_ordtype = "I";
  553. var s_orddd = grd_patList.valueMatrix(idx, grd_patList.colRef("indd"));
  554. var s_orddeptcd = grd_patList.valueMatrix(idx, grd_patList.colRef("orddeptcd"));
  555. var s_orddrid = grd_patList.valueMatrix(idx, grd_patList.colRef("chngmedispclid"));
  556. var s_fromdd = grd_patList.valueMatrix(idx, grd_patList.colRef("indd"));
  557. var s_hngnm = grd_patList.valueMatrix(idx, grd_patList.colRef("patnm"));
  558. var s_rrgstno1 = grd_patList.valueMatrix(idx, grd_patList.colRef("rrgstno1"));
  559. var s_rrgstno2 = grd_patList.valueMatrix(idx, grd_patList.colRef("rrgstno2"));
  560. var s_specordyn = grd_patList.valueMatrix(idx, grd_patList.colRef("specordyn"));
  561. var sOrddeptcdMsg = grd_patList.valueMatrix(idx, grd_patList.colRef("orddeptnm"));
  562. var sOrddridMsg = grd_patList.valueMatrix(idx, grd_patList.colRef("todrnm"));
  563. model.makeValue("/root/send/data26/pid", s_pid); // pid
  564. model.makeValue("/root/send/data26/ordtype", "I"); // ordtype
  565. model.makeValue("/root/send/data26/indd", s_orddd);// orddd
  566. model.makeValue("/root/send/data26/orddd", s_orddd);// orddd
  567. model.makeValue("/root/send/data26/orddeptcd", s_orddeptcd); // orddeptcd
  568. model.makeValue("/root/send/data26/orddrid", s_orddrid); // orddrid
  569. model.makeValue("/root/send/data26/medispclid", s_orddrid); // orddrid
  570. submit("TRPMI00406");
  571. if (model.getValue("/root/tempchk/specapp/rgstyn") == "N") {
  572. var sMsg = "[" + sOrddeptcdMsg + "]" + "[" + sOrddridMsg + "]";
  573. if(s_specordyn == "Y") {
  574. if( messageBox(sMsg + " 선택진료 등록이 되어 있지 않습니다. 등록하시겠습니까?", "Q999", "") == 6 ){
  575. fCallSpecPopUp(s_pid,s_ordtype,s_orddd,s_orddeptcd,s_orddrid,s_fromdd,s_hngnm,s_rrgstno1,s_rrgstno2);
  576. }
  577. } else {
  578. if( messageBox(sMsg + " 진료지원 위임이 되어 있지 않습니다. 위임하시겠습니까?", "Q999", "") == 6 ){
  579. fCallSpecPopUp(s_pid,s_ordtype,s_orddd,s_orddeptcd,s_orddrid,s_fromdd,s_hngnm,s_rrgstno1,s_rrgstno2);
  580. }
  581. }
  582. }
  583. }
  584. var premealprcp = "";
  585. var premealprcpcd = "";
  586. // 등록번호 입력 시 자동으로 입실저장(환자팔찌)_20080731(ByJA)
  587. function fAutoSaveInRm(){
  588. var count = 0;
  589. if ( isNull(ipt_barcodepid.value) && isNull(ipt_saveinrm.value) && isNull(model.getValue("/root/main/cond/pid")) ){
  590. messageBox("등록번호는 ","I003");
  591. return;
  592. }
  593. for(var i = 1; i <= grd_patList.rows; i++) {
  594. // 입실전과전실대상자 리스트에 환자정보 있는 경우
  595. if( ( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_barcodepid.value || model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_saveinrm.value )
  596. && model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") == "01" ) { // 입실대상환자만
  597. premealprcp = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/mealprcp"); // 수정한 식사처방정보
  598. premealprcpcd = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/mealprcpcd");
  599. }
  600. }
  601. fGetPatList(); // 당일입원전과전실리스트조회
  602. for(var i = 1; i <= grd_patList.rows; i++) {
  603. // 입실전과전실대상자 리스트에 환자정보 있는 경우
  604. if( ( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_barcodepid.value || model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_saveinrm.value )
  605. && model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") == "01"
  606. && count == 0) { // 입실대상환자만
  607. // 이미 입실 한 경우
  608. if(model.getValue("/root/main/inpatlist/inpatlist["+i+"]/careinrmdd") != "-") {
  609. messageBox( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") +" "
  610. + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/patnm")+" "
  611. + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/sexage")
  612. , "E", "이미 입실등록된 환자입니다.."); // [ 등록번호 / 환자명 / S/A]
  613. }
  614. // 입실저장
  615. else {
  616. if(model.getValue("/root/main/inpatlist/inpatlist["+i+"]/appflagcd") == "3") {
  617. model.setValue("/root/main/cond/pid", "");
  618. ipt_barcodepid.refresh();
  619. ipt_saveinrm.refresh();
  620. messageBox( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") +" "
  621. + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/patnm")+" "
  622. + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/sexage")
  623. , "E", "입실등록 처리를 할 수 없습니다."); // [ 등록번호 / 환자명 / S/A]
  624. return;
  625. }
  626. if (premealprcp != "") {
  627. grd_patList.valueMatrix(i,grd_patList.colRef("mealprcp")) = premealprcp; // 수정한 식사처방정보
  628. grd_patList.valueMatrix(i,grd_patList.colRef("mealprcpcd")) = premealprcpcd;
  629. }
  630. grd_patList.valueMatrix(i,grd_patList.colRef("inrmcnfmflag")) = "U"; // 입실확인 Check Box에 표시
  631. grd_patList.rowStatus(i) = "2"; // 해당 Row Update Date로 설정
  632. fCheckSpclOrd(i);
  633. //fGetRsrvPrcp(); // 외래예약처방 선택 및 저장 화면 호출_20090508추가(ByJA)
  634. fSaveInPatList("IN"); // 입실전과전실저장
  635. }
  636. count ++;
  637. }
  638. } //for end
  639. // 입실대상자가 아닌 경우
  640. if (count < 1) {
  641. if(grd_patList.rows>1){
  642. for(var i=1; i<grd_patList.rows;i++) {
  643. if(model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_barcodepid.value && count <1) {
  644. messageBox( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") +" "
  645. + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/patnm")+" "
  646. + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/sexage")
  647. , "E", "해당병동 입원대상자가 아닙니다."); // [ 등록번호 / 환자명 / S/A]
  648. count++;
  649. }
  650. }
  651. } else{
  652. model.removenode("/root/send");
  653. model.removenode("/root/main/rtninfo");
  654. model.makeValue("/root/send/req/pid", model.getValue("/root/main/cond/pid"));
  655. submit("TRMNW01104"); // 환자정보조회
  656. messageBox( model.getValue("/root/main/rtninfo/patinfolist/pid") +" "
  657. + model.getValue("/root/main/rtninfo/patinfolist/patnm")+" "
  658. + model.getValue("/root/main/rtninfo/patinfolist/sexage")
  659. , "E", "해당병동 입원대상자가 아닙니다.\n(병동 및 업무일자를 확인하십시오.)"); // [ 등록번호 / 환자명 / S/A]
  660. }
  661. }
  662. model.makeValue("/root/main/cond/pid","");
  663. fGetPatList(); // 당일입원전과전실리스트조회
  664. }
  665. var mealCdArr = new Array(); // 처방-수가 코드 매핑을 위한 배열 전역 변수
  666. var calCdArr = new Array();
  667. // [식사처방 하드코딩 수정] 식사처방코드, 수가코드 간호공통테이블에서 조회 20100714 안도영
  668. function fGetMealCalCdInfo(){
  669. var mealCopyPath = "/root/temp/mealcodeinfo"; // 처방 노드 복사 경로
  670. var calCopyPath = "/root/temp/calcodeinfo"; // 수가 노드 복사 경로
  671. var initPath = "/root/code/codeinfo";
  672. var mealCnt = 0;
  673. var calCnt = 0;
  674. /*
  675. ※ supcdid 규칙
  676. - 첫째자리 : 처방('M') / 수가('C') 구분
  677. - 둘째자리 : 개인금식('1') / 일반밥('2') 구분
  678. - 첫째자리로 노드셋을 분리하며, 둘째자리 순서로 나열
  679. ex) M1(처방코드-개인금식), M2(처방코드-일반밥)
  680. C1(수가코드-개인금식), C2(수가코드-일반밥)
  681. */
  682. // 식사코드 (처방,수가)관련 노드리스트 가져오기
  683. var nodelist_main = instance1.selectNodes(initPath + "/codelist"+ "[cdgrupid = '210']");
  684. // 처방과 수가 코드 분류 작업
  685. for(var i=0; i<nodelist_main.length; i++){
  686. var node = nodelist_main.nextNode();
  687. var nodelist_sub = node.selectNodes(initPath + "/codelist" + "[cdgrupid = '210']/supcdid");
  688. //alert(nodelist_sub.item(i).value.substring(0,1));
  689. // supcdid의 앞자리
  690. if("M" == nodelist_sub.item(i).value.substring(0,1)){ // 처방코드
  691. model.makeNode(mealCopyPath + "/codelist[" + (mealCnt+1) + "]");
  692. model.copyNode(mealCopyPath + "/codelist[" + (mealCnt+1) + "]", node);
  693. mealCnt++;
  694. }else if("C" == nodelist_sub.item(i).value.substring(0,1)){ // 수가코드
  695. model.makeNode(calCopyPath + "/codelist[" + (calCnt+1) + "]");
  696. model.copyNode(calCopyPath + "/codelist[" + (calCnt+1) + "]", node);
  697. calCnt++;
  698. }
  699. }
  700. // 20100728 백업 안도영
  701. /*
  702. for(i=0; i < getNodesetCount(initPath + "/codelist" + "[cdgrupid = '210']" ); i++){ // 처방코드와 수가코드의 노드셋 분리
  703. var tmpStr = model.getValue(initPath + "/codelist" + "[cdgrupid = '210'/supcdid");
  704. alert(tmpStr);
  705. if("M" == tmpStr.substring(0,1)){ // supcdid의 앞자리
  706. model.makeNode(mealCopyPath + "/codelist[" + (mealCnt+1) + "]");
  707. model.copyNode(mealCopyPath + "/codelist[" + (mealCnt+1) + "]", initPath + "/codelist" + "[cdgrupid = '210' and (i+1)]");
  708. mealCnt++;
  709. }
  710. else if("C" == tmpStr.substring(0,1)){
  711. model.makeNode(calCopyPath + "/codelist[" + (calCnt+1) + "]");
  712. model.copyNode(calCopyPath + "/codelist[" + (calCnt+1) + "]", initPath + "/codelist[" + (i+1)+ "]");
  713. calCnt++;
  714. }
  715. }
  716. */
  717. // supcdid 뒷자리 구분을 통해 처방-수가코드 맵핑
  718. var tmpStr_meal = "";
  719. var tmpStr_cal = "";
  720. for(i=1; i<=mealCnt; i++){
  721. var tmpStr_meal = model.getValue(mealCopyPath + "/codelist[" + i+ "]/supcdid");
  722. var tmpStr_cal = model.getValue(calCopyPath + "/codelist[" + i+ "]/supcdid");
  723. if(i == tmpStr_meal.substring(1,1) == tmpStr_cal.substring(1,1)){ // supcdid의 뒷자리
  724. mealCdArr[i-1] = model.getValue(mealCopyPath + "/codelist[" + i+ "]/cdid");
  725. calCdArr[i-1] = model.getValue(calCopyPath + "/codelist[" + i+ "]/cdid");
  726. }
  727. }
  728. }
  729. // 외래예약처방 선택 및 저장 화면 호출_20090508추가(ByJA)
  730. /*
  731. function fGetRsrvPrcp(){
  732. // 외래예약처방정보 조회
  733. model.removeNodeset("/root/send");
  734. model.makeValue ( "/root/send/cond1", model.getValue("/root/main/cond/pid"));
  735. model.makeValue ( "/root/send/cond2", getUserInfo("dutplceinstcd"));
  736. model.makeValue ( "/root/send/cond3", getCurrentDate());
  737. submit ( "TRMMO00129", false );
  738. // 외래예약처방정보 존재시 외래예약처방 저장화면 호출
  739. var srcNodeList = model.instances(0).selectNodes ("/root/result/prcplist");
  740. if ( srcNodeList.length > 0 ) {
  741. setParameter ( "SPMMO18200_pid" , model.getValue("/root/main/cond/pid"));
  742. setParameter ( "SPMMO18200_orddd" , model.getValue("/root/main/inpatlist/inpatlist/indd"));
  743. setParameter ( "SPMMO18200_cretno", model.getValue("/root/main/inpatlist/inpatlist/cretno"));
  744. setParameter ( "SPMMO18200_prcpdd" , getCurrentDate());
  745. setParameter ( "SPMMO18200_prcpinptflag", "00"); // 임시로 09임. 추후 번호배정되어 수정해야함.
  746. setParameter ( "SPMMO18200_ioflag", "I");
  747. setParameter ( "SPMMO18200_prcpkindcd", "00");
  748. setParameter ( "SPMMO18200_prcpsignflag", "1"); // 필요시 적용_처방서명구분(0:인증안됨, 1:의사가 후인증, 2:인증완료(default))
  749. setParameter ( "SPMMO18200_aftcertflag", "12"); // 필요시 적용_후인증여부
  750. setParameter ( "SPMMO18200_aftcertdrid", model.getValue("/root/main/inpatlist/inpatlist/chngmedispclid")); // 필요시 적용_후인증의사ID chngmedispclid
  751. //setParameter ( "SPMMO18200_prcpstatcd", "000"); //필요시 적용
  752. //setParameter ( "SPMMO18200_oprsrvno", "0"); //필요시 적용
  753. //setParameter ( "SPMMO18200_prcpauthflag", "0"); //필요시 적용
  754. var xpt = window.screenleft + 200;
  755. var ypt = window.screenTop + 100;
  756. var coord = getRelativeCoordinate ( xpt, ypt );
  757. var mon = coord[0];
  758. xpt = coord[1];
  759. ypt = coord[2];
  760. modal ( "SPMMO18200", mon, xpt, ypt, "SPMMO01000", "/root/result", "/root/result", "", false ); // 외래예약처방 저장화면 호출
  761. clearParameter ( "SPMMO18200_pid" );
  762. clearParameter ( "SPMMO18200_orddd" );
  763. clearParameter ( "SPMMO18200_cretno" );
  764. clearParameter ( "SPMMO18200_prcpdd" );
  765. clearParameter ( "SPMMO18200_prcpinptflag" );
  766. clearParameter ( "SPMMO18200_ioflag" );
  767. clearParameter ( "SPMMO18200_prcpkindcd" );
  768. clearParameter ( "SPMMO18200_prcpsignflag" );
  769. clearParameter ( "SPMMO18200_aftcertflag" );
  770. clearParameter ( "SPMMO18200_aftcertdrid" );
  771. }
  772. }
  773. */
  774. // 환자 이름표 출력
  775. function fOpenNamePrint(){
  776. group1.visible = true;
  777. }
  778. function fOpenInEdOcrPrint1(){
  779. fOpenInEdOcrPrint('01', 'N'); // 병동
  780. }
  781. function fOpenInEdOcrPrint2(){
  782. fOpenInEdOcrPrint('02', 'N'); // 신생아
  783. }
  784. function fOpenInEdOcrPrint3(){
  785. fOpenInEdOcrPrint('03', 'N'); // 분만실
  786. }
  787. function fOpenInEdOcrPrint4(){
  788. fOpenInEdOcrPrint('04', 'N'); // BMT
  789. }
  790. function fOpenInEdOcrPrint1Elec(){
  791. fOpenInEdOcrPrint('01', 'Y'); // 병동
  792. }
  793. function fOpenInEdOcrPrint2Elec(){
  794. fOpenInEdOcrPrint('02', 'Y'); // 신생아
  795. }
  796. function fOpenInEdOcrPrint3Elec(){
  797. fOpenInEdOcrPrint('03', 'Y'); // 분만실
  798. }
  799. function fOpenInEdOcrPrint4Elec(){
  800. fOpenInEdOcrPrint('04', 'Y'); // BMT
  801. }
  802. function fOpenInEdOcrPrint(code, elecflag){
  803. var formcd = "";
  804. var left = event.screenX;
  805. var top = event.screenY;
  806. var row = grd_patList.row;
  807. if(code=="01"){
  808. formcd = "0000001769";
  809. }else if(code=="02"){
  810. formcd = "0900006117";
  811. }else if(code=="03"){
  812. formcd = "0000001770";
  813. }else if(code=="04"){
  814. formcd = "0000001771";
  815. }
  816. if (row >= 1) {
  817. if( model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/chngdeptroomflag") != "04"){
  818. var pPid = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/pid");
  819. var pIndd = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/indd");
  820. var pCretno = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/cretno");
  821. var pOrdtype = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/ordtype");
  822. var pInstcd = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/instcd");
  823. if (elecflag == "Y") {
  824. fElecPrint(pPid, pCretno, pIndd, pInstcd, formcd, "", "G") ;
  825. } else {
  826. setParameter("formcd",formcd);
  827. setParameter("pid", pPid);
  828. setParameter("orddd", pIndd);
  829. setParameter("cretno", pCretno);
  830. setParameter("ordtype", pOrdtype);
  831. open("SSMRF03700",1,left,top);
  832. }
  833. }else{
  834. messageBox("-전실은 입원교육확인서 출력이 불가합니다.", "I");
  835. return;
  836. }
  837. }
  838. }
  839. //정보호출
  840. function fGetPatName() {
  841. var row = grd_patList.row;
  842. if (row >= 1) {
  843. var pid = model.getValue("/root/main/inpatlist/inpatlist["+row+"]/pid");
  844. var wardcd = model.getValue("/root/main/cond/wardcd");
  845. model.removenode("/root/send");
  846. model.makeValue("/root/send/patnameinfo/pid", pid);
  847. model.makeValue("/root/send/patnameinfo/wardcd", wardcd);
  848. submit("TRMNW00210");
  849. model.removeNodeset("/root/send");
  850. model.makeNode("/root/send/temp2");
  851. model.makeNode("/root/send/temp2/patnamelist");
  852. model.makeNode("/root/send/temp2/patnamelist/method");
  853. model.copyNode("/root/send/temp2/patnamelist", "/root/main/temp2/patnamelist");
  854. model.makeNode("/root/send/temp2/patnamelist/method");
  855. model.setValue("/root/send/temp2/patnamelist/method", model.getValue("/root/main/method"));
  856. if( model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/chngdeptroomflag") != "04" ){
  857. if(model.getValue("/root/main/temp2/patnamelist/prtkind") == "NEW"){
  858. //exeReportPreview("RPMNW00211", "XMLSTR"); //환자이름표출력 NEW
  859. exeReportPreview("RPMNW00211", "XMLSTR", "","","true","","","","","true"); //환자이름표출력 NEW
  860. }else if(model.getValue("/root/main/temp2/patnamelist/prtkind") == "CNEW"){
  861. //exeReportPreview("RPMNW00213", "XMLSTR"); //환자이름표출력 칠곡NEW
  862. exeReportPreview("RPMNW00213", "XMLSTR", "","","true","","","","","true"); //환자이름표출력 칠곡NEW
  863. }else{
  864. //exeReportPreview("RPMNW00210", "XMLSTR"); //환자이름표출력 OLD
  865. exeReportPreview("RPMNW00210", "XMLSTR", "","","true","","","","","true"); //환자이름표출력 OLD
  866. }
  867. }else{
  868. messageBox("-전실은 이름표 출력이 불가합니다.", "I");
  869. return;
  870. }
  871. //exeReportPreview("RPMNR06302", "XMLSTR", "/root/main/prtinfo", "", "true", "", "", "", "", "", "", "grp_report"); //미리보기 없이 출력
  872. }
  873. }
  874. function fShowPopupMenu(gridID, menuPath) {
  875. var gridObj = document.controls.item(gridID);
  876. if(event.button == 3) {
  877. if(gridObj.isCell(event.target) && gridObj.mouseRow >= gridObj.fixedrows){
  878. window.setPopupMenu(true, menuPath, "name", "func", false);
  879. }else{
  880. window.setPopupMenu(false);
  881. }
  882. }
  883. }
  884. function fCancelinRmdd () {
  885. var row = grd_patList.row;
  886. var chngdeptroomflag = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/chngdeptroomflag");
  887. var inrmcnfmflag = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/inrmcnfmflag");
  888. var pid = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/pid");
  889. var indd = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/indd");
  890. var cretno = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/cretno");
  891. model.removenode("/root/tmp/ordreq");
  892. model.makeValue("/root/tmp/ordreq/pid" , pid);
  893. model.makeValue("/root/tmp/ordreq/indd" , indd);
  894. model.makeValue("/root/tmp/ordreq/cretno", cretno);
  895. if (chngdeptroomflag == "01" && inrmcnfmflag == "U") {
  896. // 처방 점검
  897. submit("TRMNW01108");
  898. var dumpcnt = model.getValue("/root/temp/orderinfo/orderinfo/dumpcnt");
  899. var ordercnt = model.getValue("/root/temp/orderinfo/orderinfo/ordercnt");
  900. var rtnordcnt = model.getValue("/root/temp/orderinfo/orderinfo/rtnordcnt");
  901. var dietcnt = model.getValue("/root/temp/orderinfo/orderinfo/dietcnt");
  902. var dietcntok = model.getValue("/root/temp/orderinfo/orderinfo/dietcntok");
  903. if (dumpcnt > 0) {
  904. messageBox("승계된 처방내역이 있으므로 입실취소가 불가합니다.", "I999");
  905. return;
  906. }
  907. if (ordercnt > 0) {
  908. messageBox("처방내역이 있으므로 입실취소가 불가합니다.", "I999");
  909. return;
  910. }
  911. if (rtnordcnt > 0) {
  912. messageBox("반환요청 상태의 처방내역이 있으므로 입실취소가 불가합니다.", "I999");
  913. return;
  914. }
  915. if (dietcnt > 0) {
  916. messageBox("진행된 식사처방 내역이 있으므로 입실취소가 불가합니다.", "I999");
  917. return;
  918. }
  919. model.removenode("/root/send/deldietinfo");
  920. model.makeValue("/root/send/deldietinfo/pid", pid);
  921. model.makeValue("/root/send/deldietinfo/indd", indd);
  922. model.makeValue("/root/send/deldietinfo/cretno", cretno);
  923. // 식이 정리
  924. if (dietcntok > 0) {
  925. messageBox( dietcntok + "건의 식사처방 내역이 있습니다. 입실취소와 동시에 삭제됩니다.", "I999");
  926. model.removenode("/root/send/deldietinfo");
  927. model.makeValue("/root/send/deldietinfo/pid", pid);
  928. model.makeValue("/root/send/deldietinfo/indd", indd);
  929. model.makeValue("/root/send/deldietinfo/cretno", cretno);
  930. if ( submit("TXMNW01102") ) {
  931. } else {
  932. messageBox( "식사처방 삭제 중 문제가 발생하여 입실취소를 진행할 수 없습니다.", "I999");
  933. return
  934. }
  935. }
  936. // inpt 수정
  937. if (submit("TXMNW01103")) {
  938. messageBox("입실취소가 처리되었습니다.", "I999");
  939. fGetPatList();
  940. }
  941. } else {
  942. messageBox("입실저장된 입원환자에 대해서만 입실취소가 가능합니다.", "I999");
  943. return;
  944. }
  945. }
  946. function fOpenCpInPlan(){
  947. group4.visible = true;
  948. var row = grd_patList.row;
  949. if (row >= 1) {
  950. var cpgno = model.getValue("/root/main/inpatlist/inpatlist["+row+"]/cpgno");
  951. var cpghistseq = model.getValue("/root/main/inpatlist/inpatlist["+row+"]/cpghistseq");
  952. }
  953. model.makeValue("/root/send/req/cpgno", cpgno );
  954. model.makeValue("/root/send/req/cpghistseq", cpghistseq );
  955. submit("TRMNW01109");
  956. }
  957. //FPT 서버에 저장한 파일을 다운로드 한다.
  958. function fDownLoadFile( idx ){
  959. model.makeNode("/root/temp1/attachfile/filedata");
  960. var filepath = model.getValue("/root/main/attfileinfo/attach["+idx+"]/file");
  961. var filenm = model.getValue("/root/main/attfileinfo/attach["+idx+"]/attfilenm");
  962. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  963. if (localfile != "") {
  964. model.download(getActionURL("TRMQP00605")+"&filepath="+filepath,localfile);
  965. var rtn = messageBox("파일을", "Q004");
  966. if( rtn == 6 ) {
  967. window.exec(localfile);
  968. }
  969. }
  970. }
  971. // 출력 141114 - AYS 추가
  972. function fExecPrint(){
  973. model.removenode("/root/send/printdata");
  974. model.makeNode ("/root/send/printdata/inpatlist");
  975. model.copynode ("/root/send/printdata/inpatlist", "/root/main/inpatlist"); // 리스트copy
  976. exeReportPreview("RPMNW01100", "XMLSTR", "/root/send/printdata", "", "true" , "", "", "", "", "true");
  977. }
  978. ]]>
  979. </script>
  980. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  981. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  982. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  983. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  984. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  985. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  986. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  987. <!-- 전자동의서 관련 2013.03.15 KJS -->
  988. <script type="javascript" src="../../../emr/wardcareweb/js/SMMNW03.js"/>
  989. <!-- 주석처리 20100715 안도영
  990. submission id="TRMNW01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqcmb" resultref="/root/init/mealprcp"/
  991. -->
  992. <submission id="TRMNW01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/inpatlist"/>
  993. <submission id="TRMNW01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/init"/>
  994. <submission id="TRMNW01104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/patinfolist"/>
  995. <submission id="TRMNW01105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tmp/req" resultref="/root/temp/mdruginfo"/>
  996. <submission id="TRMNW01106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cpinfo" resultref="/root/main/cpinfo"/>
  997. <submission id="TRMNW01107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cpinfo" resultref="/root/main/cpinfo"/>
  998. <submission id="TRMNW01109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/attfileinfo"/>
  999. <submission id="TXMNW01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata/tdayinpatlist" resultref="/root/main/patinfolist"/>
  1000. <submission id="TRMQP00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/temp1/attachfile"/>
  1001. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init"/>
  1002. <submission id="TXPMI01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/senddata" resultref="/root/hidden/flag/rcv_flag"/>
  1003. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  1004. <submission id="TRPMI00406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data26" resultref="/root/tempchk"/>
  1005. <submission id="TRMNW00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/temp2"/>
  1006. <submission id="TRMNR02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recinfo" replace="instance" resultref="/root/temp/recinfo"/>
  1007. <submission id="TRMNR02903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recinfo" replace="instance" resultref="/root/temp/cpinfo"/>
  1008. <!-- 식사처방 정리 2013.03.15 KJS -->
  1009. <submission id="TRMNW01108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tmp/ordreq" resultref="/root/temp/orderinfo"/>
  1010. <submission id="TXMNW01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deldietinfo" resultref="/root/rtninfo/result"/>
  1011. <submission id="TXMNW01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deldietinfo" resultref="/root/rtninfo/result"/>
  1012. <!--
  1013. <submission id="TRMMO00129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcplist"/>
  1014. -->
  1015. </model>
  1016. </xhtml:head>
  1017. <xhtml:body pagewidth="1092" pageheight="650" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1018. <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:5px; width:1076px; height:640px; font-family:굴림; ">
  1019. <group id="group2" style="left:0px; top:25px; width:1071px; height:60px; vertical-align:top; ">
  1020. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1071px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  1021. <button id="btn_srchhdpatinfo" class="btn1_letter2" style="left:911px; top:19px; width:56px; height:22px; ">
  1022. <caption>조회</caption>
  1023. <script type="javascript" ev:event="DOMActivate">
  1024. <![CDATA[
  1025. fGetPatList(); // 당일입원전과전실리스트조회
  1026. ]]>
  1027. </script>
  1028. </button>
  1029. <line id="line3" class="line_4" style="x1:890px; y1:14px; x2:890px; y2:46px; border-color:#ffe4bb; border-left-style:solid; "/>
  1030. <input id="ipt_orddd" ref="/root/main/cond/orddd" class="input_s_essential" disabled="true" inputtype="date" style="left:339px; top:8px; width:100px; height:19px; "/>
  1031. <select1 id="radio1" ref="/root/main/cond/flag" appearance="full" cellspacing="10" cols="5" overflow="visible" style="left:575px; top:25px; width:270px; height:13px; border-style:none; ">
  1032. <choices>
  1033. <item>
  1034. <label>전체</label>
  1035. <value>00</value>
  1036. </item>
  1037. <item>
  1038. <label>입원</label>
  1039. <value>01</value>
  1040. </item>
  1041. <item>
  1042. <label>전과</label>
  1043. <value>02</value>
  1044. </item>
  1045. <item>
  1046. <label>+전실</label>
  1047. <value>03</value>
  1048. </item>
  1049. <item>
  1050. <label>-전실</label>
  1051. <value>04</value>
  1052. </item>
  1053. </choices>
  1054. <script type="javascript" ev:event="xforms-value-changed">
  1055. <![CDATA[
  1056. var flagVal = model.getValue("/root/main/cond/flag");
  1057. if(flagVal == "00") {
  1058. grd_patList.nodeset = "/root/main/inpatlist/inpatlist";
  1059. fEnableCtrl();
  1060. } else {
  1061. grd_patList.nodeset = "/root/main/inpatlist/inpatlist[chngdeptroomflag ='" + flagVal + "']";
  1062. if(flagVal =="01") {
  1063. grd_patList.colDisabled(grd_patList.colRef("inrmcnfmflag")) = true;
  1064. } else if(flagVal =="03") {
  1065. for(var i = grd_patList.fixedRows ; i <= grd_patList.rows - grd_patList.fixedRows; i++) {
  1066. if(grd_patList.valueMatrix(i, grd_patList.colRef("acptflagcd")) == "2") {
  1067. grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = false;
  1068. } else {
  1069. grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
  1070. }
  1071. }
  1072. }
  1073. else {
  1074. grd_patList.colDisabled(grd_patList.colRef("inrmcnfmflag")) = true;
  1075. }
  1076. }
  1077. ]]>
  1078. </script>
  1079. </select1>
  1080. <button id="btn_sav" class="btn4_letter4" style="left:970px; top:19px; width:80px; height:22px; ">
  1081. <caption>전실저장</caption>
  1082. <script type="javascript" ev:event="DOMActivate">
  1083. <![CDATA[
  1084. //20090730 khj 입실 및 전실저장도 당일에만 저장가능.
  1085. if(model.getValue("/root/main/cond/orddd") ==getCurrentDate()) {
  1086. fSaveInPatList("CR"); // 입실전과전실저장
  1087. } else {
  1088. messageBox("당일 전실환자에 대해서만 전실저장이", "I006","\n업무일자를 확인하십시오.");
  1089. }
  1090. ]]>
  1091. </script>
  1092. </button>
  1093. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:69px; height:17px; ">병동 :</caption>
  1094. <caption id="caption5" class="search_name" style="left:250px; top:9px; width:86px; height:17px; ">업무일자 :</caption>
  1095. <select1 id="cmb_wardlist" ref="/root/main/cond/wardcd" class="combo_search" disabled="true" appearance="minimal" style="left:79px; top:8px; width:134px; height:19px; ">
  1096. <choices>
  1097. <itemset nodeset="/root/init/dept">
  1098. <label ref="depthngnm"/>
  1099. <value ref="deptcd"/>
  1100. </itemset>
  1101. </choices>
  1102. <script type="javascript" ev:event="xforms-value-changed">
  1103. <![CDATA[
  1104. fGetPatList();
  1105. ]]>
  1106. </script>
  1107. </select1>
  1108. <caption id="caption2" class="search_name" style="left:15px; top:34px; width:86px; height:17px; ">환자팔찌 :</caption>
  1109. <caption id="caption3" class="search_name" style="left:250px; top:34px; width:89px; height:17px; ">등록번호 :</caption>
  1110. <input id="ipt_barcodepid" ref="/root/main/cond/pid" class="inputbutton" inputtype="button" maxlength="10" style="left:104px; top:33px; width:110px; height:19px; ">
  1111. <script type="javascript" ev:event="xforms-value-changed">
  1112. <![CDATA[
  1113. //** 바코드로 등록번호 입력시 자동 입실체크 로직 구현_20080731(ByJA) **//
  1114. // if((ipt_barcodepid.value).length >= '5'){
  1115. // fAutoSaveInRm() ; // 등록번호 입력 시 자동으로 입실저장(환자팔찌)_20080731(ByJA)
  1116. // }
  1117. ]]>
  1118. </script>
  1119. <script type="javascript" ev:event="onkeyup">
  1120. <![CDATA[
  1121. inputEnterKey("btn_saveinrm", "DOMActivate");
  1122. // if(event.keyCode == '13'){
  1123. // fAutoSaveInRm() ; // 등록번호 입력 시 자동으로 입실저장(환자팔찌)_20080731(ByJA)
  1124. // }
  1125. ]]>
  1126. </script>
  1127. </input>
  1128. <input id="ipt_saveinrm" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:340px; top:33px; width:100px; height:19px; ">
  1129. <script type="javascript" ev:event="onkeyup">
  1130. <![CDATA[
  1131. inputEnterKey("btn_saveinrm", "DOMActivate");
  1132. ]]>
  1133. </script>
  1134. </input>
  1135. <button id="btn_saveinrm" class="btn4_letter4" style="left:443px; top:32px; width:80px; height:22px; ">
  1136. <caption>입실저장</caption>
  1137. <script type="javascript" ev:event="DOMActivate">
  1138. <![CDATA[
  1139. //2008-08-27 length 체크 로직 삭제
  1140. //if((ipt_saveinrm.value).length >= '5'){
  1141. var aaa = getCurrentDate();//sonic
  1142. if(model.getValue("/root/main/cond/orddd") ==getCurrentDate()) {
  1143. fAutoSaveInRm() ; // 등록번호 입력 시 자동으로 입실저장(환자팔찌)_20080731(ByJA)
  1144. } else {
  1145. messageBox("당일 입원환자에 대해서만 입실저장이", "I006","\n업무일자를 확인하십시오.");
  1146. }
  1147. //}else{
  1148. //messageBox("등록번호를 정확히 입력", "I008");
  1149. //model.setFocus("ipt_saveinrm");
  1150. //}
  1151. ]]>
  1152. </script>
  1153. </button>
  1154. </group>
  1155. <!--(20101206) 경북대
  1156. <datagrid id="grd_patList" nodeset="/root/main/inpatlist/inpatlist" class="datagrid2" caption="입실&#xA;확인^구분^회복^승인^현재&#xA;병실^등록번호^환자명^S/A^식사처방^식사처방코드^From^From^From^From^To^To^To^To^진단명^사유^저장시간^prestbedcd^chngbedcd^주치의^주치의전화번호^진료의전화^병동전화^유저ID^유저명^부서코드^부서명^현재일자^현재일시^입원일자^생성번호^시퀀스번호^기관코드^입실확인일자^입실확인시간^처방존재여부^식사처방변경여부^수가코드^응급입실일자^응급일실시간^부서코드^부서명^유저ID^유저명^현재일자^현재시간^진료구분^내일일자^부서코드^caption1^caption2^caption3" colsep="^" colwidth="32, 40, 0, 30, 45, 55, 60, 44, 100, 0, 70, 45, 47, 60, 70, 45, 47, 60, 150, 149, 60, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:116px; width:1071px; height:524px; ">
  1157. -->
  1158. <datagrid id="grd_patList" nodeset="/root/main/inpatlist/inpatlist" class="datagrid2" caption="입실&#xA;확인^전동작성완료^구분^회복^승인^현재&#xA;병실^현재&#xA;병상^등록번호^환자명^전동&#xA;기록^S/A^식사처방^식사처방코드^From^From^From^From^From^To^To^To^To^To^진단명^사유^저장시간^prestbedcd^chngbedcd^rrgstno1^rrgstno2^orddeptnm^담당의^담당의전화번호^전문의전화^병동전화^유저ID^유저명^부서코드^부서명^현재일자^현재일시^입원일자^생성번호^시퀀스번호^기관코드^입실확인일자^입실확인시간^처방존재여부^식사처방변경여부^수가코드^응급입실일자^응급일실시간^부서코드^부서명^유저ID^유저명^현재일자^현재시간^진료구분^내일일자^부서코드^caption1^caption2^caption3" colsep="^" colwidth="32, 38, 40, 0, 30, 45, 50, 55, 60, 40, 44, 70, 0, 70, 45, 0, 47, 60, 70, 45, 0, 47, 60, 122, 149, 60, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:115px; width:1071px; height:509px; ">
  1159. <!--(20101206) 경북대 -->
  1160. <col checkvalue="U,N" disabled="true" ref="inrmcnfmflag" type="checkbox">
  1161. <script type="javascript" ev:event="xforms-value-changed">
  1162. <![CDATA[
  1163. // 입실취소기능 삭제_20080729(ByJA)
  1164. /*
  1165. var inrmcnfmflag = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/inrmcnfmflag");
  1166. var chngdeptroomflag = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/chngdeptroomflag");
  1167. if(inrmcnfmflag == "N" && chngdeptroomflag == "01") {
  1168. var rtn = messageBox("입실확인을 정말로 취소하시겠습니까?", "Q");
  1169. if(rtn == "6") {
  1170. model.setValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/inrmcnfmflag", "N");
  1171. } else {
  1172. model.setValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/inrmcnfmflag", "U");
  1173. }
  1174. }
  1175. */
  1176. ]]>
  1177. </script>
  1178. </col>
  1179. <col ref="transyn_in" visibility="hidden"/>
  1180. <col disabled="true" ref="chngdeptroomflag" type="combo">
  1181. <choices>
  1182. <item>
  1183. <label>입원</label>
  1184. <value>01</value>
  1185. </item>
  1186. <item>
  1187. <label>전과</label>
  1188. <value>02</value>
  1189. </item>
  1190. <item>
  1191. <label>+전실</label>
  1192. <value>03</value>
  1193. </item>
  1194. <item>
  1195. <label>-전실</label>
  1196. <value>04</value>
  1197. </item>
  1198. </choices>
  1199. </col>
  1200. <col ref="recov" type="combo">
  1201. <choices>
  1202. <item>
  1203. <label>Y</label>
  1204. <value>01</value>
  1205. </item>
  1206. <item>
  1207. <label/>
  1208. <value>02</value>
  1209. </item>
  1210. </choices>
  1211. </col>
  1212. <col ref="acptflag"/>
  1213. <col ref="room"/>
  1214. <col ref="bedcd"/>
  1215. <col ref="pid"/>
  1216. <col ref="patnm"/>
  1217. <col editable="false" ref="transyn" type="inputbutton" style="text-align:center; "/>
  1218. <col ref="sexage"/>
  1219. <col disabled="true" editmode="input" ref="mealprcp" type="combo" style="left:354px; top:32px; width:100px; height:23px; ">
  1220. <choices>
  1221. <itemset nodeset="/root/temp/mealcodeinfo/codelist">
  1222. <label ref="cdnm"/>
  1223. <value ref="cdid"/>
  1224. </itemset>
  1225. </choices>
  1226. </col>
  1227. <col ref="mealprcpcd"/>
  1228. <col ref="fromward"/>
  1229. <col ref="fromroom"/>
  1230. <!-- 20101213_KNUH_Start 전실할병상코드 -->
  1231. <col ref="frombedcd"/>
  1232. <col ref="fromdeptnm"/>
  1233. <col ref="fromdrnm"/>
  1234. <col ref="toward"/>
  1235. <col ref="toroom"/>
  1236. <!-- 20101213_KNUH_Start 전실할병상코드 -->
  1237. <col ref="tobedcd"/>
  1238. <col ref="todeptnm"/>
  1239. <col ref="todrnm"/>
  1240. <col ref="diagnm"/>
  1241. <col ref="resn"/>
  1242. <col ref="savetm" format="hh:nn"/>
  1243. <col ref="prestbedcd" visibility="hidden"/>
  1244. <col ref="chngbedcd" visibility="hidden"/>
  1245. <col ref="rrgstno1" visibility="hidden"/>
  1246. <col ref="rrgstno2" visibility="hidden"/>
  1247. <col ref="orddeptnm" visibility="hidden"/>
  1248. <col ref="toatdoctnm"/>
  1249. <col ref="atdoctidphonno"/>
  1250. <col ref="medispclphonno"/>
  1251. <col ref="tocntctel"/>
  1252. <col ref="indd"/>
  1253. <col ref="cretno"/>
  1254. <col ref="seqno"/>
  1255. <col ref="instcd"/>
  1256. <col ref="careinrmdd"/>
  1257. <col ref="careinrmtm"/>
  1258. <col ref="mskind"/>
  1259. <col ref="histstat"/>
  1260. <col ref="acptflagcd"/>
  1261. <col ref="appflagcd"/>
  1262. <col ref="appdd"/>
  1263. <col ref="apptm"/>
  1264. <col ref="appid"/>
  1265. <col ref="pamacptdd"/>
  1266. <col ref="pamacpttm"/>
  1267. <col ref="pamacptid"/>
  1268. <col ref="prestwardcd"/>
  1269. <col ref="prestroomcd"/>
  1270. <col ref="prestroomgrde"/>
  1271. <col ref="prestroomtype"/>
  1272. <col ref="prestcentcd"/>
  1273. <col ref="prestsuporddeptcd"/>
  1274. <col ref="prestorddeptcd"/>
  1275. <col ref="prestmedispclid"/>
  1276. <col ref="prestatdoctid"/>
  1277. <col ref="chngwardcd"/>
  1278. <col ref="chngroomcd"/>
  1279. <col ref="chngroomgrde"/>
  1280. <col ref="chngroomtype"/>
  1281. <col ref="oxyyn"/>
  1282. <col ref="suctyn"/>
  1283. <col ref="chngcentcd"/>
  1284. <col ref="chngsuporddeptcd"/>
  1285. <col ref="chngorddeptcd"/>
  1286. <col ref="chngmedispclid"/>
  1287. <col ref="chngatdoctid"/>
  1288. <col ref="specordyn"/>
  1289. <col ref="enddd"/>
  1290. <col ref="endid"/>
  1291. <col ref="prestremcd"/>
  1292. <col ref="chngprestrem"/>
  1293. <col ref="fstrgstrid"/>
  1294. <col ref="fstrgstdt"/>
  1295. <col ref="lastupdtrid"/>
  1296. <col ref="lastupdtdt"/>
  1297. <col ref="prcpyn"/>
  1298. <col ref="calcscorcd"/>
  1299. <col ref="chngyn"/>
  1300. <col ref="clacdd"/>
  1301. <col ref="calctm"/>
  1302. <col ref="deptcd"/>
  1303. <col ref="deptnm"/>
  1304. <col ref="userid"/>
  1305. <col ref="usernm"/>
  1306. <col ref="curdd"/>
  1307. <col ref="curtm"/>
  1308. <col ref="orddeptcd"/>
  1309. <col ref="ordflag"/>
  1310. <col ref="inpath"/>
  1311. <col ref="ordtype"/>
  1312. <col ref="ordtype"/>
  1313. <col ref="curtm"/>
  1314. <col ref="ordflag"/>
  1315. <col ref="nextdd"/>
  1316. <col ref="orddeptcd"/>
  1317. <col/>
  1318. <col/>
  1319. <col/>
  1320. <script type="javascript" ev:event="xforms-value-changed">
  1321. <![CDATA[
  1322. // 하드코딩 수정 20100715 안도영
  1323. var mealCopyPath = "/root/temp/mealcodeinfo"; // 식사 처방 코드 경로
  1324. var calCopyPath = "/root/temp/calcodeinfo"; // 식사 수가 코드 경로
  1325. if(grd_patList.col == grd_patList.colRef("mealprcp")) { // 해당 처방에 맵핑된 수가코드 넣기
  1326. for(i=0; i<mealCdArr.length; i++){
  1327. if(model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/mealprcp") == mealCdArr[i]) {
  1328. grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("calcscorcd")) = calCdArr[i];
  1329. //alert("mealCdArr[i] : " + mealCdArr[i] + " / " + "calCdArr[i] : " + calCdArr[i]);
  1330. }
  1331. }
  1332. grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("chngyn")) = "Y";
  1333. grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("mealprcpcd")) = grd_patList.ValueMatrix(grd_patList.row, grd_patList.colRef("mealprcp"));
  1334. }
  1335. //하드코딩 백업 20100715 안도영
  1336. /*
  1337. if(grd_patList.col == grd_patList.colRef("mealprcp")) {
  1338. if(model.getValue("/root/main/inpatlist/inpatlist/mealprcp") == "Q9140002") {
  1339. grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("calcscorcd")) = "Q90002"
  1340. } else if(model.getValue("/root/main/inpatlist/inpatlist/mealprcp") == "Q1011001") {
  1341. grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("calcscorcd")) = "Q1Y1111G"
  1342. }
  1343. grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("chngyn")) = "Y";
  1344. grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("mealprcpcd")) = grd_patList.ValueMatrix(grd_patList.row, grd_patList.colRef("mealprcp"));
  1345. }
  1346. */
  1347. ]]>
  1348. </script>
  1349. <script type="javascript" ev:event="ondblclick">
  1350. <![CDATA[
  1351. var iRow = grd_patList.row;
  1352. var pidRow = grd_patList.col;
  1353. if(grd_patList.isCell(event.target) && grd_patList.mouseRow >= grd_patList.fixedrows){
  1354. if(grd_patList.valueMatrix(iRow, grd_patList.colRef("acptflag")) == "완료" && (grd_patList.valueMatrix(iRow, grd_patList.colRef("chngdeptroomflag"))== "03" || grd_patList.valueMatrix(iRow, grd_patList.colRef("chngdeptroomflag"))== "04")) {
  1355. setParameter("SPMNW12400_PARAM1", model.getValue("/root/main/inpatlist/inpatlist[" +iRow + "]/pid"));
  1356. setParameter("SPMNW12400_PARAM2", model.getValue("/root/main/inpatlist/inpatlist[" +iRow + "]/indd")); // 추가_20081229(ByJA)
  1357. modal("SPMNW12400");
  1358. }
  1359. }
  1360. ]]>
  1361. </script>
  1362. <script type="javascript" ev:event="onbuttonclick">
  1363. <![CDATA[
  1364. var col = grd_patList.col;
  1365. var transyn = grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("transyn"));
  1366. var pid = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("pid")) ;
  1367. var indd = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("indd")) ;
  1368. var cretno = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("cretno")) ;
  1369. var instcd = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("instcd")) ;
  1370. var appdd = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("appdd")) ;
  1371. var apptm = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("apptm")) ;
  1372. if(col == grd_patList.colRef("transyn")) {
  1373. if(transyn == "Y") {
  1374. setParameter("SMMNW01301_PID" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("pid")) );
  1375. setParameter("SMMNW01301_INDD" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("indd")) );
  1376. setParameter("SMMNW01301_CRETNO" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("cretno"))) ;
  1377. setParameter("SMMNW01301_APPDD" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("appdd")) );
  1378. setParameter("SMMNW01301_APPTM" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("apptm")) );
  1379. setParameter("SMMNW01301_INSTCD" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("instcd"))) ;
  1380. setParameter("SMMNW01301_PARAM" , "SMMNW01100") ;
  1381. open("SMMNW01301");
  1382. } else {
  1383. messageBox("기록된 전동기록지가 존재하지않습니다.", "E");
  1384. return;
  1385. }
  1386. }
  1387. ]]>
  1388. </script>
  1389. <script type="javascript" ev:event="onmousedown">
  1390. <![CDATA[
  1391. if( grd_patList.valueMatrix(grd_patList.mouseRow, grd_patList.mouseCol) != "")
  1392. {
  1393. fShowPopupMenu("grd_patList","/root/main/menuitems/gnrlmenu/item");
  1394. }
  1395. ]]>
  1396. </script>
  1397. <script type="javascript" ev:event="DOMFocusOut">
  1398. <![CDATA[
  1399. initPopupMenu();
  1400. ]]>
  1401. </script>
  1402. <script type="javascript" ev:event="onclick">
  1403. <![CDATA[
  1404. var col = grd_patList.col;
  1405. var inrmcnfmflag = grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("inrmcnfmflag"));
  1406. var transyn_in = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("transyn_in")) ;
  1407. if(col == grd_patList.colRef("inrmcnfmflag")) {
  1408. if(inrmcnfmflag == "U"){
  1409. if(transyn_in != null && transyn_in != "" && transyn_in=="N+"){
  1410. messageBox("전동기록지 인수자정보가 누락되어 전실저장이 불가능 합니다.", "I");
  1411. grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("inrmcnfmflag"))='N';
  1412. }
  1413. }
  1414. }
  1415. ]]>
  1416. </script>
  1417. </datagrid>
  1418. <caption id="caption4" class="tit_2" style="left:5px; top:6px; width:200px; height:13px; ">당일입원, 전과, 전실 환자 list</caption>
  1419. <line id="line2" class="line_1" style="x1:0px; y1:112px; x2:1071px; y2:112px; "/>
  1420. <caption id="caption6" style="left:7px; top:91px; width:450px; height:17px; font-weight:bolder; color:#0000ff; ">※ 전실(완료) 환자 더블 클릭시 약품인계내역을 확인 할 수 있습니다.</caption>
  1421. <img id="img1" visibility="hidden" src="../../../emr/commonweb/images/icon_btn.gif" style="left:985px; top:5px; width:15px; height:15px; background-stretch:stretch; ">
  1422. <script type="javascript" ev:event="onmousemove">
  1423. <![CDATA[
  1424. cap_key.visible =true;
  1425. ]]>
  1426. </script>
  1427. <script type="javascript" ev:event="onmouseout">
  1428. <![CDATA[
  1429. cap_key.visible =false;
  1430. ]]>
  1431. </script>
  1432. </img>
  1433. <caption id="caption7" style="left:1047px; top:625px; width:26px; height:14px; ">[표]</caption>
  1434. <output id="output1" ref="/root/temp/mdruginfo/mdruginfo/mdrugcount" visibility="hidden" style="left:1030px; top:90px; width:30px; height:20px; "/>
  1435. <group id="group3" visibility="hidden" style="left:350px; top:300px; width:455px; height:205px; background-color:#ccffcc; ">
  1436. <datagrid id="grd_cplist" nodeset="/root/main/cpinfo/cplist" caption="진료과^CP명칭^CP No." colsep="^" colwidth="170, 160, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:15px; top:35px; width:430px; height:135px; ">
  1437. <col ref="inorddeptnm"/>
  1438. <col ref="cpgnm"/>
  1439. <col ref="cpgno"/>
  1440. <script type="javascript" ev:event="ondblclick">
  1441. <![CDATA[
  1442. var row = grd_cplist.row;
  1443. if ( row > 0 && row <= grd_cplist.rows) {
  1444. cpgno = model.getValue("/root/main/cpinfo/cplist[" + grd_cplist.row +"]/cpgno");
  1445. fSetNrCpRecord(cpgno);
  1446. group3.visible = false;
  1447. }
  1448. ]]>
  1449. </script>
  1450. </datagrid>
  1451. <caption id="caption9" class="tit_2" style="left:15px; top:10px; width:275px; height:13px; ">해당하는 CP를 선택하십시오.</caption>
  1452. <button id="button4" class="btn5_letter2" navindex="22" style="left:400px; top:175px; width:42px; height:19px; ">
  1453. <caption>취소</caption>
  1454. <script type="javascript" ev:event="DOMActivate">
  1455. <![CDATA[
  1456. group3.visible = false;
  1457. ]]>
  1458. </script>
  1459. </button>
  1460. </group>
  1461. <group id="group4" visibility="hidden" style="left:290px; top:300px; width:455px; height:155px; background-color:#ffff99; ">
  1462. <caption id="caption10" class="tit_2" style="left:15px; top:10px; width:275px; height:13px; font-family:굴림체; ">CP환자 입원계획표</caption>
  1463. <datagrid id="grd_attfile" nodeset="/root/main/attfileinfo/attach" caption="파일명^경로^caption1" colsep="^" colwidth="386, 100, 30" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:15px; top:25px; width:430px; height:100px; ">
  1464. <col ref="attfilenm" style="left:20px; top:23px; width:4zz31px; height:23px; "/>
  1465. <col ref="file" visibility="hidden"/>
  1466. <col ref="check" type="checkbox" visibility="hidden"/>
  1467. </datagrid>
  1468. <button id="button3" class="btn5_letter4" navindex="22" style="left:335px; top:130px; width:64px; height:19px; ">
  1469. <caption>다운로드</caption>
  1470. <script type="javascript" ev:event="DOMActivate">
  1471. <![CDATA[
  1472. //저장한 파일을 다운로드한다.
  1473. var attLength = instance1.selectNodes("/root/main/attfileinfo/attach").length;
  1474. var iRow = 0;
  1475. if( attLength <= 0 ){
  1476. iRow = 0;
  1477. var msg = messageBox("다운로드 할 파일이", "E014");
  1478. return;
  1479. }else{
  1480. if( grd_attfile.row > 0 ){
  1481. iRow = grd_attfile.row;
  1482. }else{
  1483. if( attLength == 1 ) iRow = 1;
  1484. }
  1485. }
  1486. if( iRow == 0 ) {
  1487. var msg = messageBox("다운로드 할 파일을", "C002");
  1488. return;
  1489. } else {
  1490. fDownLoadFile( iRow );
  1491. }
  1492. group4.visible = false;
  1493. ]]>
  1494. </script>
  1495. </button>
  1496. <button id="button5" class="btn5_letter2" navindex="22" style="left:400px; top:130px; width:42px; height:19px; ">
  1497. <caption>취소</caption>
  1498. <script type="javascript" ev:event="DOMActivate">
  1499. <![CDATA[
  1500. group4.visible = false;
  1501. ]]>
  1502. </script>
  1503. </button>
  1504. </group>
  1505. <button id="button6" class="btn4_letter3" style="left:1004px; top:3px; width:68px; height:22px; ">
  1506. <caption>도움말</caption>
  1507. <script type="javascript" ev:event="DOMActivate">
  1508. <![CDATA[
  1509. var scrnid = getScreenID();
  1510. fGetHelpList(scrnid);
  1511. ]]>
  1512. </script>
  1513. </button>
  1514. <button id="btn_prt" class="btn1_letter2" visibility="hidden" style="left:945px; top:3px; width:56px; height:22px; ">
  1515. <caption>출력</caption>
  1516. <script type="javascript" ev:event="DOMActivate">
  1517. <![CDATA[
  1518. fExecPrint(); // 출력
  1519. ]]>
  1520. </script>
  1521. </button>
  1522. <caption id="cap_key" class="text_essential" visibility="hidden" appearance="caption" style="left:135px; top:175px; width:840px; height:114px; text-align:left; ">
  1523. <![CDATA[1. 입실은 환자팔찌의 바코드를 리더기로 입력하거나 등록번호를 직접 입력 후 저장한다.
  1524. 2. 전실은 환자를 선택하여 전실저장한다.
  1525. 3. 입실, 전실저장시 환자의 담당의에게 SMS로 정보가 전달된다.
  1526. 4. 응급의료센터, 통원수술센터, 암센터주사실, BMT주사실을 통한 입원의 경우 퇴실정리시점에 자동 입실저장된다.
  1527. : 응급의료센터(병원별 추가부서 존재 : 통원수술센터, 암센터주사실, BMT주사실 등)를 통한 입원의 경우 퇴실정리시점에 자동 입실저장된다.
  1528. 5. 입실저장시 식사처방 마감시간에 맞춰 개인금식과 일반밥을 선택하여 발행할 수 있고 저녁마감시간 이후 입실시 당일 식사처방은 발행되지 않는다.
  1529. 6. 입실저장 이후 타부서로 처방이 전달된다.
  1530. ]]>
  1531. </caption>
  1532. </group>
  1533. <group id="group1" visibility="hidden" style="left:290px; top:235px; width:470px; height:50px; font-family:굴림; background-color:#87CEFA; ">
  1534. <caption id="caption8" class="tit_2" style="left:0px; top:5px; width:275px; height:13px; ">환자의 이동방법을 선택하십시오.</caption>
  1535. <button id="button1" class="btn5_letter2" navindex="22" style="left:375px; top:25px; width:42px; height:19px; ">
  1536. <caption>확인</caption>
  1537. <script type="javascript" ev:event="DOMActivate">
  1538. <![CDATA[
  1539. fGetPatName();
  1540. group1.visible = false;
  1541. ]]>
  1542. </script>
  1543. </button>
  1544. <button id="button2" class="btn5_letter2" navindex="22" style="left:420px; top:25px; width:42px; height:19px; ">
  1545. <caption>취소</caption>
  1546. <script type="javascript" ev:event="DOMActivate">
  1547. <![CDATA[
  1548. group1.visible = false;
  1549. ]]>
  1550. </script>
  1551. </button>
  1552. <select1 id="radio3" ref="/root/main/method" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:20px; top:26px; width:345px; height:19px; border-style:none; ">
  1553. <choices>
  1554. <item>
  1555. <label>걸어서(Foot)</label>
  1556. <value>Foot</value>
  1557. </item>
  1558. <item>
  1559. <label>휠체어이용(Wheel)</label>
  1560. <value>Wheel</value>
  1561. </item>
  1562. <item>
  1563. <label>침대차이용(Car)</label>
  1564. <value>Car</value>
  1565. </item>
  1566. </choices>
  1567. </select1>
  1568. </group>
  1569. </xhtml:body>
  1570. </xhtml:html>