SPMMO01500_처방상세수혈.xrw 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>[수혈]</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <prcp>
  11. <prcplist>
  12. <status/>
  13. <prcpstatcd/>
  14. <prcpclscd/>
  15. <prcpkindcd/>
  16. <prcpcd/>
  17. <prcpnm/>
  18. <prcpvol/>
  19. <prcpvolunitnm/>
  20. <prcpqty/>
  21. <prcpqtyunitnm/>
  22. <prcptims/>
  23. <prcpdayno/>
  24. <drugmthdspccdnm/>
  25. <prcpmixno/>
  26. <payflagcd/>
  27. <prcpdelivefact/>
  28. <hosinhosoutflag/>
  29. <prcpexecdeptcd/>
  30. <prcphopedd/>
  31. <choiordflag/>
  32. <rgstdt/>
  33. <rgstridnm/>
  34. <testrsltunit/>
  35. <testrsltcnts/>
  36. <prcpgenrflag/>
  37. <prcphistcd/>
  38. <tempprcpflag/>
  39. <prcpsetcd/>
  40. <prcpvolunitflag/>
  41. <prcpqtyunitflag/>
  42. <orgprcpqty/>
  43. <drugspd/>
  44. <drugspdunitflag/>
  45. <powdflag/>
  46. <prnprcpflag/>
  47. <prepprcpflag/>
  48. <selfprcpflag/>
  49. <selfdrugflag/>
  50. <drugpackflag/>
  51. <erprcpflag/>
  52. <precureprcpflag/>
  53. <nigtprcpflag/>
  54. <portprcpflag/>
  55. <fixprcpflag/>
  56. <anamneflag/>
  57. <fastprcpflag/>
  58. <erreadflag/>
  59. <prcpdirecflag/>
  60. <tnsuseflag/>
  61. <tnsfiltflag/>
  62. <trnptbftestflag/>
  63. <offictourhealexamflag/>
  64. <stemcellflag/>
  65. <angioflagcd/>
  66. <opansflagcd/>
  67. <ansttm/>
  68. <mealcalrcnts/>
  69. <mealprotcnts/>
  70. <mealupdtflag/>
  71. <hosinprcpresncd/>
  72. <etcprcpresncd/>
  73. <drugmthdspccd/>
  74. <issdeptcd/>
  75. <prcpauthflag/>
  76. <prcpinptflag/>
  77. <prcpsignflag/>
  78. <rateprcpflag/>
  79. <prcprefseq/>
  80. <ordreqlnkno/>
  81. <testreqlnkno/>
  82. <prcplnkdd/>
  83. <prcplnkno/>
  84. <oprsrvno/>
  85. <tootfact/>
  86. <clinccmtcnts/>
  87. <prcpessninptflag/>
  88. <grupsnglflag/>
  89. <drugrateqty/>
  90. <asttestflag/>
  91. <clincstdyflag/>
  92. <prtlno/>
  93. <clincstdycd/>
  94. <optermcd/>
  95. <prcpflag/>
  96. <hscttempprcpflag/>
  97. <inclprcpcd/>
  98. <inclprcpno/>
  99. <pampkspec/>
  100. <prcppkspec/>
  101. <calcscormastspec/>
  102. <drugmastspec/>
  103. <rateprcpspec/>
  104. <matrsetprcpspec/>
  105. <suppdeptspec/>
  106. <contprcpspec/>
  107. <etclnkspec/>
  108. <srchcondcnts/>
  109. <orgprcpnm/>
  110. <chkcol/>
  111. <hsctdelivepos/>
  112. <hsctlnkno/>
  113. <etcprcpflag/>
  114. <aftcertflag/>
  115. <aftcertdrid/>
  116. <prcpvalidd/>
  117. <insukind/>
  118. <specdrid/>
  119. <anticncrprtlno/>
  120. <anticncrdayno/>
  121. <druglnkno/>
  122. <rehbprcpcurefreqflag/>
  123. <dietprcpgenrflag/>
  124. <irpayflag/>
  125. <irflag/>
  126. <procerdietflag/>
  127. <diagtestconttestintvlflag/>
  128. <drugindependpackflag/>
  129. <diagtestconttestbasetm/>
  130. <diagtestconttestorgtims/>
  131. <ermediscmngtresncd/>
  132. <rehbprcpenddd/>
  133. <matrallsizespecid/>
  134. <rehbprcpcurepartcd/>
  135. <lowdrugresncd/>
  136. <tfdtlcd/>
  137. <dnorreqlnkno/>
  138. <subcretno/>
  139. <exptmthdfact/>
  140. <lowdrugresnetcfact/>
  141. <diagtestconttestcdspec/>
  142. <drgacptflag/>
  143. <drprcpetc1/>
  144. <drprcpetc2/>
  145. <drprcpetc3/>
  146. <drprcpetc4/>
  147. <drprcpetc5/>
  148. <drprcpetc6/>
  149. <drprcpetc7/>
  150. <drprcpetc8/>
  151. <drprcpetc9/>
  152. <drprcpetc10/>
  153. <tempcol1/>
  154. <tempcol2/>
  155. <tempcol3/>
  156. <tempcol4/>
  157. <tempcol5/>
  158. <tempcol6/>
  159. <tempcol7/>
  160. <tempcol8/>
  161. <tempcol9/>
  162. <tempcol10/>
  163. <tempcol11/>
  164. <tempcol12/>
  165. <tempcol13/>
  166. <tempcol14/>
  167. <tempcol15/>
  168. <tempcol16/>
  169. <tempcol17/>
  170. <tempcol18/>
  171. <tempcol19/>
  172. <tempcol20/>
  173. <tempcol21/>
  174. <tempcol22/>
  175. <tempcol23/>
  176. <tempcol24/>
  177. <tempcol25/>
  178. </prcplist>
  179. </prcp>
  180. </main>
  181. <init>
  182. <tnsuseflag/>
  183. <payflagcd/>
  184. <orddept>
  185. <dept/>
  186. </orddept>
  187. <irpayflag/>
  188. <prcphopeddh>00</prcphopeddh>
  189. <prcphopeddm>00</prcphopeddm>
  190. <seffectyn/>
  191. <M0330/>
  192. <drgacptflag/>
  193. </init>
  194. <dept/>
  195. <drugcalc>
  196. <prcpvol/>
  197. <prcpqty/>
  198. <prcptims/>
  199. </drugcalc>
  200. <patinfo>
  201. <patinfolist>
  202. <bloodtype>혈액형</bloodtype>
  203. <ast>AST</ast>
  204. <aborhchk>미검사 처방의뢰를 해 주십시오</aborhchk>
  205. <prcpnm>처방명</prcpnm>
  206. <rsrv>예약현황</rsrv>
  207. <deliveposs>불출가능현황</deliveposs>
  208. </patinfolist>
  209. <patinfolist>
  210. <bloodtype/>
  211. <ast/>
  212. <aborhchk/>
  213. <prcpnm/>
  214. <rsrv/>
  215. <deliveposs/>
  216. </patinfolist>
  217. </patinfo>
  218. <send>
  219. <ioflag/>
  220. <pid/>
  221. <orddd/>
  222. <cretno/>
  223. <prcpdd/>
  224. <prcpcd/>
  225. <instcd/>
  226. <ordnm/>
  227. <cond1/>
  228. <cond2/>
  229. <cond3/>
  230. <cond4/>
  231. <cond5/>
  232. <cond6/>
  233. <cond99/>
  234. </send>
  235. <result>
  236. <blodrslt1>
  237. <btyperslt/>
  238. <astrslt/>
  239. <btypeyn/>
  240. <btypecd/>
  241. <astyn/>
  242. <astcd/>
  243. </blodrslt1>
  244. <blodrslt2>
  245. <prcpcd/>
  246. <prcpnm/>
  247. <delivepossqty/>
  248. </blodrslt2>
  249. <blodrslt3>
  250. <lastreptdt/>
  251. <tclsscrnnm/>
  252. <reptrslt/>
  253. <rsltunit/>
  254. <refl/>
  255. <refh/>
  256. <pid/>
  257. <testcd/>
  258. <refrslt/>
  259. <refcolor/>
  260. </blodrslt3>
  261. <blodrslt4>
  262. <dispyn/>
  263. <genrdd/>
  264. <genrno/>
  265. <instcd/>
  266. <prcpdd/>
  267. <pid/>
  268. <orddd/>
  269. <cretno/>
  270. <prcpcd/>
  271. <adaptflag/>
  272. <adaptrsncd/>
  273. <fstrgstrid/>
  274. <fstrgstdt/>
  275. <lastupdtrid/>
  276. <lastupdtdt/>
  277. <adaptetccnts/>
  278. <adaptnrmlcnts/>
  279. <comcd/>
  280. <qestmsg/>
  281. </blodrslt4>
  282. <blodrslt5>
  283. <tnssideeffect/>
  284. </blodrslt5>
  285. <blodrslt6>
  286. <ocrtag/>
  287. <pid/>
  288. <patnm/>
  289. <ioflag/>
  290. <orddd/>
  291. <cretno/>
  292. <orddeptcd/>
  293. <orddeptnm/>
  294. <orddrid/>
  295. <orddrnm/>
  296. <formnm/>
  297. <scanyn/>
  298. <scanpagecnt/>
  299. <stat/>
  300. <statnm/>
  301. <term/>
  302. <fstrgstdt/>
  303. </blodrslt6>
  304. </result>
  305. <prcpsrch/>
  306. <prcptemp>
  307. </prcptemp>
  308. <orddept/>
  309. <temp>
  310. <send/>
  311. <patsupkind/>
  312. </temp>
  313. </root>
  314. </instance>
  315. <script type="javascript" ev:event="xforms-model-construct-done">
  316. <![CDATA[
  317. zbcfGetCodeList(new Array("M0039","M0029", "M0044", "M0330", "P0506"),new Array("/root/init/tnsuseflag","/root/init/payflagcd", "/root/init/irpayflag", "/root/init/M0330","/root/init/drgacptflag"));
  318. //원무에서 화면을 열 경우, 공통코드 조회 이외의 로직은 처리하지 않음 2008. 06. 16 오지훈
  319. var prcppopupflag = opener.javascript.getParameter("prcppopupflag");
  320. if(prcppopupflag == "PAM"){
  321. return;
  322. }
  323. document.title = document.title + "[" + model.getValue("/root/main/prcp/prcplist/prcpcd") + " : " + model.getValue("/root/main/prcp/prcplist/orgprcpnm") + "]";
  324. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "insuuseyn", "", "/root/init/orddept" , "depthngnm"); //부서코드 콤보 조회
  325. fPrcpExecDeptSrch();
  326. model.refresh();
  327. //M-SET 자처방의 경우, 검사희망일(prcphopedd) disabled설정
  328. //2008. 07. 22 오지훈
  329. var prcpsetcd = model.getValue("/root/main/prcp/prcplist/prcpsetcd");
  330. if(prcpsetcd != '-'){
  331. input2.disabled = true;
  332. }
  333. //irr 비활성화 병원별 적용(성가요청), cHc, 2009-07-21
  334. if ( opener.model.getValue("/root/initsrch/irrcheckyn/trgtcd") == "Y") {
  335. grd_prcpdetl1.isReadOnly(1, grd_prcpdetl1.colRef("irflag")) = true;
  336. }
  337. var sInstCd = getUserInfo("dutplceinstcd");
  338. if(sInstCd == "031") {
  339. cap_blodformmsg.value = "※ 입원환자는 입원기간 첫 수혈시, 수술 예상 환자는 수술전, 외래환자는 첫 수혈시와 1년마다 \n 수혈동의서를 받아야 합니다. 동의서가 없는 경우는 혈액이 불출되지 않습니다.";
  340. } else {
  341. cap_blodformmsg.value = "※ 첫 수혈시와 그 후 1년마다 수혈 동의서를 받아야 하며 동의서가 없는 경우 혈액이 불출되지 않습니다.";
  342. }
  343. model.refresh();
  344. ]]>
  345. </script>
  346. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="cdnm" resultref="cdid"/>
  347. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  348. <submission id="TRMMO04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/dept" resultref="/root/init/orddept"/>
  349. <submission id="TRMMO01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  350. <submission id="TRMMO00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpsrch"/>
  351. <submission id="TRMMO00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/orddept"/>
  352. <submission id="TXMMO14601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  353. <!-- 처방 복사 로직변경 xml 2013.07.05 by 엄영만-->
  354. <submission id="TRMMO00150" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpcopy"/>
  355. <submission id="TRMMO00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  356. <submission id="TXMMO00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/monitoringlog/reqdata" resultref="/root/monitoringlog"/>
  357. <script type="javascript" ev:event="xforms-ready">
  358. <![CDATA[
  359. var prcpcd = model.getValue ( "/root/main/prcp/prcplist/prcpcd" ); // LBT25110 코드인 경우는 응급체크 disabled 요청 혈액은행 장현식선생님 20081110 by moonsh
  360. if ( prcpcd == "LBT25110" ) {
  361. grd_prcpdetl1.colDisabled(grd_prcpdetl1.colRef("erprcpflag")) = true;
  362. }
  363. if ( prcpcd == "LBT20440" || prcpcd == "LBT20640" ) {
  364. grd_prcpdetl1.colDisabled(grd_prcpdetl1.colRef("irflag")) = true;
  365. }
  366. var prcpgenrflag = opener.model.getValue ( "/root/patflag/list/prcpgenrflag" );
  367. var prcpkindcd = model.getValue ( "/root/main/prcp/prcplist/prcpkindcd" );
  368. if ( prcpgenrflag == "O" || prcpgenrflag == "S" ) { //외래
  369. orddd = opener.model.getValue ( "/root/paminfo/list/orddd" );
  370. radio3.value = "Y"; // T/F default로 Y
  371. radio2.value = "N";
  372. radio2.disabled = true; //Prep disabled
  373. } else { //입원, 응급, DSC
  374. orddd = opener.model.getValue ( "/root/paminfo/list/indd" );
  375. if ( prcpkindcd == "70" || prcpkindcd == "90" || prcpkindcd == "95" ) {
  376. radio3.value = "Y"; // T/F default로 Y
  377. radio2.value = "N";
  378. radio2.disabled = true; //Prep disabled
  379. } else {
  380. radio3.disabled = true; // T/F disabled
  381. radio3.value = "N";
  382. radio2.value = "Y"; // Prep default로 Y
  383. }
  384. }
  385. if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
  386. model.setValue ( "/root/send/ioflag", opener.model.getValue ( "/root/patflag/list/prcpgenrflag" ));
  387. model.setValue ( "/root/send/pid" , opener.model.getValue ( "/root/paminfo/list/pid" ));
  388. model.setValue ( "/root/send/orddd" , orddd );
  389. model.setValue ( "/root/send/cretno", opener.model.getValue ( "/root/paminfo/list/cretno" ));
  390. model.setValue ( "/root/send/prcpdd", opener.model.getValue ( "/root/init/prcpdd" ));
  391. model.setValue ( "/root/send/prcpcd", model.getValue ( "/root/main/prcp/prcplist/prcpcd" ));
  392. model.setValue ( "/root/send/instcd", getUserInfo( "dutplceinstcd" ));
  393. model.setValue ( "/root/send/ordnm" , model.getValue ( "/root/main/prcp/prcplist/orgprcpnm" ));
  394. model.setValue ( "/root/send/ordnm" , model.getValue ( "/root/main/prcp/prcplist/orgprcpnm" ));
  395. submit ( "TRMMO01501", false );
  396. var nodelist = model.instance1.selectNodes("/root/result/blodrslt5");
  397. if(nodelist.length == 0){ //본원에서 처음 수혈하는 경우
  398. } else { //본원에서 수혈이력이 있는 경우
  399. //rdo_seffectyn.disabled = true;
  400. var efectflag = model.getValue("/root/result/blodrslt5[tnssideeffect!=01]/tnssideeffect");
  401. if(efectflag.length == 0){ //부작용 정보가 없는 경우
  402. model.setValue("/root/init/seffectyn", "N");
  403. }else{ //부작용 정보가 있는 경우
  404. model.setValue("/root/init/seffectyn", "Y");
  405. }
  406. }
  407. if ( model.getValue ( "/root/result/blodrslt1/btypeyn" ) == "Y" ) {
  408. var btypecd = model.getValue ( "/root/result/blodrslt1/btypecd" );
  409. var prcpbtypecd = opener.model.getValue ( "/root/main/prcp/prcplist[prcpcd='" + btypecd + "']/prcpcd" );
  410. //바탕화면에 값이 있으면 disable
  411. if ( !isNull(prcpbtypecd) ) {
  412. bool1.disabled = true;
  413. model.setValue ( "/root/result/blodrslt1/btypeyn", "N" );
  414. }
  415. } else {
  416. bool1.disabled = true;
  417. }
  418. if ( model.getValue ( "/root/result/blodrslt1/astyn" ) == "Y" ) {
  419. var astcd = model.getValue ( "/root/result/blodrslt1/astcd" );
  420. var prcpastcd = opener.model.getValue ( "/root/main/prcp/prcplist[prcpcd='" + astcd + "']/prcpcd" );
  421. //바탕화면에 값이 있으면 disable
  422. if ( !isNull(prcpastcd) ) {
  423. bool2.disabled = true;
  424. model.setValue ( "/root/result/blodrslt1/astyn", "N" );
  425. }
  426. } else {
  427. bool2.disabled = true;
  428. }
  429. // 2011.05.21 엄영만 수혈 동의서 안내문구 표시
  430. var srcBlodrslt6Nodes = model.instances(0).selectNodes( "/root/result/blodrslt6" );
  431. for ( var i= 1; i<=srcBlodrslt6Nodes.length ; i++){
  432. if(model.getValue ( "/root/result/blodrslt6[" + i + "]/scanyn" ) == "Y" && parseInt(model.getValue ( "/root/result/blodrslt6[" + i + "]/term" )) < 365) {
  433. var instcd = getUserInfo("dutplceinstcd");
  434. if(instcd != "031") { // 본원은 수혈 동의서 안내문 항상 표시 2016.05.03 엄영만
  435. cap_blodformmsg.visible = "false";
  436. }
  437. break;
  438. }
  439. }
  440. } else {
  441. bool1.disabled = true;
  442. bool2.disabled = true;
  443. }
  444. if ( model.getValue ( "/root/main/prcp/prcplist/irflag" ) == "N" ) {
  445. radio1.disabled = true;
  446. }
  447. var prepprcpflag = model.getValue("/root/main/prcp/prcplist/prepprcpflag");
  448. var tnsuseflag = model.getValue("/root/main/prcp/prcplist/tnsuseflag");
  449. if ( isNull(tnsuseflag))
  450. model.setValue ( "/root/main/prcp/prcplist/tnsuseflag", 0 );
  451. //환자리스트에서 준 외래, 입원, 응급 구분
  452. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  453. if ( prcpgenrflag == "O" ) {
  454. grd_prcpdetl1.colDisabled ( grd_prcpdetl1.colref("tnsfiltflag")) = true;
  455. }
  456. //수술예약일자, 시간 SETTING
  457. var prcphopedd = model.getValue ( "/root/main/prcp/prcplist/prcphopedd" );
  458. model.setValue ( "/root/main/prcp/prcplist/prcphopedd", prcphopedd.substring(0,8));
  459. if ( prcphopedd.length > 8 ) {
  460. model.setValue ( "/root/init/prcphopeddh", prcphopedd.substring(8,10));
  461. model.setValue ( "/root/init/prcphopeddm", prcphopedd.substring(10,12));
  462. }
  463. if ( model.getValue ( "/root/main/prcp/prcplist/prepprcpflag" ) == "N") {
  464. input2.disabled = false;
  465. input3.disabled = false;
  466. input4.disabled = false;
  467. }else{
  468. input2.disabled = true;
  469. input3.disabled = true;
  470. input4.disabled = true;
  471. }
  472. model.refresh();
  473. model.setfocus("button1");
  474. if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
  475. fChngGrdCellColor();
  476. }
  477. ]]>
  478. </script>
  479. <submission id="TRMMO15701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/temp/patsupkind"/>
  480. </model>
  481. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  482. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  483. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  484. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  485. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  486. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  487. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMO00100.js"/>
  488. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  489. <script type="javascript">
  490. <![CDATA[
  491. function fChngGrdCellColor(){
  492. for(var currow = 1; currow < datagrid2.rows; currow++){
  493. var color = model.getValue("/root/result/blodrslt3"+ "[" + currow + "]/refcolor");
  494. if (color == "-") {
  495. } else {
  496. datagrid2.rowStyle(currow, "data", "background-color") = "#" + color;
  497. }
  498. }
  499. datagrid2.refresh();
  500. }
  501. ]]>
  502. </script>
  503. </xhtml:head>
  504. <xhtml:body pagewidth="814" pageheight="520" guideline="2,507;1,797;2,186;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  505. <caption id="caption22" class="tit_2" style="left:2px; top:444px; width:82px; height:13px; ">전달사항</caption>
  506. <button id="button1" class="btn4_letter2" style="left:680px; top:482px; width:56px; height:22px; ">
  507. <caption>확인</caption>
  508. <script type="javascript" ev:event="onclick">
  509. <![CDATA[
  510. //본원 최초 수혈시, 부작용 여부 입력 2008.06.02 오지훈
  511. /*
  512. if(rdo_seffectyn.value == ""){
  513. messageBox("과거 수혈 부작용 여부를", "C002");
  514. return;
  515. }*/
  516. //수혈적응증
  517. if ( opener.model.getValue ( "/root/usge" ) == "prcp" ) {
  518. model.getValue ( "/root/main/prcp/prcplist/irpayflag" );
  519. var dispyn = model.getValue ( "/root/result/blodrslt4/dispyn" );
  520. if ( !isNull(dispyn)) {
  521. if ( dispyn == "Y" ) {
  522. var xpt = window.screenleft;
  523. var ypt = window.screenTop;
  524. var coord = getRelativeCoordinate ( xpt, ypt );
  525. var mon = coord[0];
  526. xpt = coord[1];
  527. ypt = coord[2];
  528. modal ( "SPMMO14600", mon, xpt, ypt, "prcpdetl", "/root/result/blodrslt4", "/root/result/blodrslt4", "", false );
  529. if ( getParameter ( "SPMMO14600_rtnyn" ) != "Y" ) {
  530. model.setValue ( "/root/main/prcp/prcplist/tempcol6", "D" );
  531. opener.javascript.setParameter ( "SPMMO01500_bprcpadapt", "D" );
  532. window.close();
  533. }
  534. } else {
  535. var saveNode = model.instances(0).selectNodes( "/root/result/blodrslt4" );
  536. model.setValue ( "/root/send/cond1", getNodeListCSV(saveNode));
  537. submit ( "TXMMO14601", false );
  538. }
  539. }
  540. var prcphopedd = model.getValue ( "/root/main/prcp/prcplist/prcphopedd" );
  541. var prcphopeddh = model.getValue ( "/root/init/prcphopeddh" );
  542. var prcphopeddm = model.getValue ( "/root/init/prcphopeddm" );
  543. if ( !isValidDateTime ( prcphopedd, "YYYYMMDD")) { messageBox ( "수혈예정일시가", "E016" ); return;}
  544. if ( eval(prcphopeddh) >= 24 ) {
  545. messageBox ( "수혈예정시간이", "E016" );
  546. return;
  547. }
  548. if ( eval(prcphopeddm) >= 60 ) {
  549. messageBox ( "수혈예정분이", "E016" );
  550. return;
  551. }
  552. prcphopeddh = prcphopeddh.toString().getLeftPad ( 2, "0" );
  553. prcphopeddm = prcphopeddm.toString().getLeftPad ( 2, "0" );
  554. model.setValue ( "/root/main/prcp/prcplist/prcphopedd", prcphopedd + prcphopeddh + prcphopeddm + "00" );
  555. appendChildPrcp ( "/root/main/prcp/prcplist", "/root/prcptemp" );
  556. var cnt = 0;
  557. if ( model.getValue ( "/root/result/blodrslt1/btypeyn" ) == "Y" ) {
  558. var prcpcd = model.getValue ( "/root/result/blodrslt1/btypecd" );
  559. if ( prcpcd != "-" ) {
  560. if ( !isNull(opener.model.getValue ( "/root/init/prcpdd" ))) {
  561. var prcpdd = opener.model.getValue ( "/root/init/prcpdd" );
  562. } else {
  563. var prcpdd = getCurrentDate();
  564. }
  565. fPrcpSrchCom ( prcpcd, prcpdd, opener.model.getValue ( "/root/paminfo/list/insukind"), "TRMMO00100", "-", false, "getPrcpCdSrchInfo" );
  566. model.setValue ( "/root/prcpsrch/prcplist/status", "I" );
  567. appendChildPrcp ( "/root/prcpsrch/prcplist", "/root/prcptemp", "main" );
  568. cnt++;
  569. }
  570. }
  571. if ( model.getValue ( "/root/result/blodrslt1/astyn" ) == "Y" ) {
  572. var prcpcd = model.getValue ( "/root/result/blodrslt1/astcd" );
  573. if ( prcpcd != "-" ) {
  574. if ( !isNull(opener.model.getValue ( "/root/init/prcpdd" ))) {
  575. var prcpdd = opener.model.getValue ( "/root/init/prcpdd" );
  576. } else {
  577. var prcpdd = getCurrentDate();
  578. }
  579. fPrcpSrchCom ( prcpcd, prcpdd, opener.model.getValue ( "/root/paminfo/list/insukind"), "TRMMO00100", "-", false, "getPrcpCdSrchInfo" );
  580. model.setValue ( "/root/prcpsrch/prcplist/status", "I" );
  581. appendChildPrcp ( "/root/prcpsrch/prcplist", "/root/prcptemp", "main" );
  582. cnt++;
  583. }
  584. }
  585. if ( cnt > 0 ) {
  586. addPrcp ( "child", "/root/prcptemp/prcplist", "/root/main/prcp", "Y", "status", "I", grd_prcpdetl1, "Y", "00");
  587. opener.javascript.setParameter ( "SPMMO01500_addcnt", cnt );
  588. }
  589. } else {
  590. appendChildPrcp ( "/root/main/prcp/prcplist", "/root/prcptemp" );
  591. }
  592. model.close();
  593. ]]>
  594. </script>
  595. <script type="javascript" ev:event="onkeydown">
  596. <![CDATA[
  597. if(event.keyCode == "13") {
  598. button1.dispatch("onclick");
  599. }
  600. ]]>
  601. </script>
  602. </button>
  603. <button id="button2" class="btn4_letter2" style="left:739px; top:482px; width:56px; height:22px; ">
  604. <caption>취소</caption>
  605. <script type="javascript" ev:event="onclick">
  606. <![CDATA[
  607. model.close();
  608. ]]>
  609. </script>
  610. </button>
  611. <line id="line7" class="line_1" style="x1:2px; y1:0px; x2:798px; y2:0px; "/>
  612. <datagrid id="grd_prcpdetl1" nodeset="/root/main/prcp/prcplist" caption="수량^응급^Irr^Irr^필터^Prep^T/F^사용목적^검체(용량)^급여^수혈예정일시^시행부서^DRG인정^기왕증" colsep="^" colwidth="32, 32, 26, 100, 0, 35, 35, 80, 75, 65, 136, 75, 60, 45" dataheight="23" defaultrows="12" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" selectionmode="free" style="left:2px; top:5px; width:796px; height:49px; ">
  613. <col imemode="disabled" ref="prcpqty" type="input" format="#,###" style="text-align:center; "/>
  614. <col checkvalue="Y,N" disabled="false" ref="erprcpflag" type="checkbox" style="text-align:center; "/>
  615. <col checkvalue="Y,N" ref="irflag" type="checkbox" style="text-align:left; "/>
  616. <col checkvalue="Y,N" ref="tnsfiltflag"/>
  617. <col checkvalue="Y,N" ref="tnsfiltflag" type="checkbox" visibility="hidden"/>
  618. <col/>
  619. <col/>
  620. <col class="gridcombo" ref="tnsuseflag" type="combo">
  621. <choices>
  622. <itemset nodeset="/root/init/tnsuseflag/M0039">
  623. <label ref="cdnm"/>
  624. <value ref="cdid"/>
  625. </itemset>
  626. </choices>
  627. </col>
  628. <col ref="drugmthdspccdnm"/>
  629. <col class="gridcombo" ref="payflagcd" type="combo" style="text-align:left; ">
  630. <choices>
  631. <itemset nodeset="/root/init/payflagcd/M0029">
  632. <label ref="cdnm"/>
  633. <value ref="cdid"/>
  634. </itemset>
  635. </choices>
  636. </col>
  637. <col format="yyyy-mm-dd" style="text-align:center; "/>
  638. <!--
  639. <script type="javascript" ev:event="ondblclick">
  640. <![CDATA[
  641. fPrcpHopeDd( grd_prcpdetl1, "/root/main/prcp/prcplist" , "child", "prcphopedd" );
  642. ]]>
  643. </script>
  644. </col>
  645. -->
  646. <col class="gridcombo" itemcount="30" ref="prcpexecdeptcd" type="combo">
  647. <choices>
  648. <itemset nodeset="/root/orddept/dept">
  649. <label ref="depthngnm"/>
  650. <value ref="deptcd"/>
  651. </itemset>
  652. </choices>
  653. </col>
  654. <col class="gridcombo" ref="drgacptflag" type="combo" style="text-align:center; ">
  655. <choices>
  656. <itemset nodeset="/root/init/drgacptflag/P0506">
  657. <label ref="cdnm"/>
  658. <value ref="cdid"/>
  659. </itemset>
  660. </choices>
  661. </col>
  662. <col checkvalue="Y,N" ref="anamneflag" type="checkbox"/>
  663. <script type="javascript" ev:event="onstartedit">
  664. <![CDATA[
  665. if ( grd_prcpdetl1.col == 0 ) {
  666. bfDrugCalc ( "prcpqty", grd_prcpdetl1.row );
  667. }
  668. ]]>
  669. </script>
  670. <script type="javascript" ev:event="xforms-value-changed">
  671. <![CDATA[
  672. if ( grd_prcpdetl1.col == 0 ) {
  673. DrugCalc ( "prcpqty" , grd_prcpdetl1.row);
  674. } else if ( grd_prcpdetl1.col == 2 ) {
  675. if ( model.getValue ( "/root/main/prcp/prcplist/irflag" ) == "N" ) {
  676. model.setValue ( "/root/main/prcp/prcplist/irpayflag", "N" );
  677. radio1.disabled = true;
  678. model.refresh();
  679. } else {
  680. model.setValue ( "/root/main/prcp/prcplist/irpayflag", "0" );
  681. radio1.disabled = false;
  682. model.refresh();
  683. }
  684. } else if ( grd_prcpdetl1.col == grd_prcpdetl1.colRef("anamneflag")){
  685. var prcpgenrflag = opener.model.getValue("/root/patflag/list/prcpgenrflag");
  686. var anamneflag = grd_prcpdetl1.valueMatrix(1, grd_prcpdetl1.colRef("anamneflag"));
  687. if(prcpgenrflag == "I" || prcpgenrflag == "D" || prcpgenrflag == "E"){
  688. if(anamneflag == "Y"){ //기왕증이 Y로 처리된 경우에만 보조유형선택 팝업 open
  689. var pid = opener.model.getValue("/root/paminfo/list/pid");
  690. var indd = opener.model.getValue("/root/paminfo/list/indd");
  691. var subcretno = fGetSubcretno(pid, indd, "anamneflag");
  692. model.setValue("/root/main/prcp/prcplist/subcretno", subcretno);
  693. if(subcretno == "0"){
  694. messageBox ( "환자의 부유형이 없거나 또는 선택되지 않았습니다.", "I999" );
  695. grd_prcpdetl1.valueMatrix(1, grd_prcpdetl1.colRef("anamneflag")) = "N";
  696. }
  697. }else{ //기왕증이 N로 처리된 경우에는 subcretno 0로 처리
  698. model.setValue("/root/main/prcp/prcplist/subcretno", "0");
  699. }
  700. } else {
  701. messageBox ( "외래 환자는 기왕증을 선택 할 수", "I004" );
  702. grd_prcpdetl1.valueMatrix(1, grd_prcpdetl1.colRef("anamneflag")) = "N";
  703. }
  704. } else if ( grd_prcpdetl1.col == grd_prcpdetl1.colref("drgacptflag")) {
  705. if ( model.getValue ( "/root/main/prcp/prcplist/drgacptflag" ) == "A" ) { // PCA용 약제
  706. messageBox ( "급여구분이 '본인부담'으로 변경 됩니다.", "I" );
  707. model.setValue ( "/root/main/prcp/prcplist/payflagcd", "1" );
  708. } else if ( model.getValue ( "/root/main/prcp/prcplist/drgacptflag" ) == "B" ) { // 미용성형
  709. messageBox ( "급여구분이 '비급여'로 변경 됩니다.", "I" );
  710. model.setValue ( "/root/main/prcp/prcplist/payflagcd", "2" );
  711. }
  712. }
  713. model.refresh();
  714. ]]>
  715. </script>
  716. </datagrid>
  717. <input id="input1" ref="/root/main/prcp/prcplist/prcpdelivefact" style="left:2px; top:461px; width:796px; height:19px; "/>
  718. <datagrid id="datagrid1" nodeset="/root/patinfo/patinfolist" caption="환자 검사 정보^환자 검사 정보^환자 검사 정보^환자 예약 정보^환자 예약 정보" colsep="^" colwidth="70, 70, 223, 302, 90" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:2px; top:85px; width:796px; height:71px; ">
  719. <col ref="bloodtype" style="text-align:center; "/>
  720. <col ref="ast" style="text-align:center; "/>
  721. <col ref="aborhchk" style="text-align:center; "/>
  722. <col ref="prcpnm" style="text-align:center; "/>
  723. <col ref="deliveposs" style="text-align:center; "/>
  724. </datagrid>
  725. <caption id="caption1" class="tit_2" style="left:2px; top:62px; width:82px; height:13px; ">환자정보</caption>
  726. <line id="line1" class="line_1" style="x1:2px; y1:80px; x2:798px; y2:80px; "/>
  727. <select1 id="radio1" ref="/root/main/prcp/prcplist/irpayflag" appearance="full" cols="2" overflow="visible" style="left:93px; top:31px; width:100px; height:20px; border-style:none; ">
  728. <choices>
  729. <itemset nodeset="/root/init/irpayflag/M0044">
  730. <label ref="cdnm"/>
  731. <value ref="cdid"/>
  732. </itemset>
  733. </choices>
  734. </select1>
  735. <caption id="caption2" class="tit_2" style="left:2px; top:240px; width:193px; height:13px; ">수혈처방 관련 검사 결과 조회</caption>
  736. <line id="line2" class="line_1" style="x1:2px; y1:257px; x2:798px; y2:257px; "/>
  737. <datagrid id="datagrid2" nodeset="/root/result/blodrslt3" caption="검사일시^검사명^결과^단위^+/-^Min^Max" colsep="^" colwidth="130, 234, 100, 80, 70, 70, 54" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:2px; top:262px; width:796px; height:94px; ">
  738. <col ref="lastreptdt" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  739. <col ref="tclsscrnnm"/>
  740. <col ref="reptrslt"/>
  741. <col ref="rsltunit"/>
  742. <col ref="refrslt"/>
  743. <col ref="refl"/>
  744. <col ref="refh"/>
  745. </datagrid>
  746. <caption id="caption3" ref="/root/result/blodrslt2/prcpnm" style="left:371px; top:134px; width:294px; height:21px; "/>
  747. <caption id="caption4" ref="/root/result/blodrslt2/delivepossqty" style="left:669px; top:134px; width:90px; height:20px; text-align:center; "/>
  748. <bool id="bool1" checkvalue="Y,N" ref="/root/result/blodrslt1/btypeyn" style="left:152px; top:133px; width:25px; height:20px; "/>
  749. <caption id="caption5" style="left:176px; top:133px; width:60px; height:20px; ">ABO/Rh</caption>
  750. <bool id="bool2" checkvalue="Y,N" ref="/root/result/blodrslt1/astyn" style="left:255px; top:133px; width:25px; height:20px; "/>
  751. <caption id="caption6" style="left:279px; top:133px; width:31px; height:20px; ">AST</caption>
  752. <caption id="caption7" ref="/root/result/blodrslt1/btyperslt" style="left:5px; top:133px; width:67px; height:21px; text-align:center; "/>
  753. <caption id="caption8" ref="/root/result/blodrslt1/astrslt" style="left:72px; top:133px; width:70px; height:20px; text-align:center; "/>
  754. <select1 id="radio2" ref="/root/main/prcp/prcplist/prepprcpflag" appearance="full" overflow="visible" style="left:199px; top:32px; width:20px; height:18px; border-style:none; ">
  755. <choices>
  756. <item>
  757. <label/>
  758. <value>Y</value>
  759. </item>
  760. </choices>
  761. <script type="javascript" ev:event="xforms-value-changed">
  762. <![CDATA[
  763. if ( model.getValue ( "/root/main/prcp/prcplist/prepprcpflag" ) == "Y") {
  764. model.setValue ( "/root/main/prcp/prcplist/tempprcpflag", "Y" );
  765. input2.disabled = true;
  766. input3.disabled = true;
  767. input4.disabled = true;
  768. } else {
  769. model.setValue ( "/root/main/prcp/prcplist/tempprcpflag", "N" );
  770. input2.value = getCurrentDate();
  771. input3.value = "00";
  772. input4.value = "00";
  773. input2.disabled = false;
  774. input3.disabled = false;
  775. input4.disabled = false;
  776. }
  777. ]]>
  778. </script>
  779. </select1>
  780. <select1 id="radio3" ref="/root/main/prcp/prcplist/prepprcpflag" appearance="full" overflow="visible" style="left:234px; top:32px; width:20px; height:18px; border-style:none; ">
  781. <choices>
  782. <item>
  783. <label/>
  784. <value>N</value>
  785. </item>
  786. </choices>
  787. <script type="javascript" ev:event="xforms-value-changed">
  788. <![CDATA[
  789. if ( model.getValue ( "/root/main/prcp/prcplist/prepprcpflag" ) == "Y") {
  790. model.setValue ( "/root/main/prcp/prcplist/tempprcpflag", "Y" );
  791. input2.disabled = false;
  792. input3.disabled = false;
  793. input4.disabled = false;
  794. } else {
  795. model.setValue ( "/root/main/prcp/prcplist/tempprcpflag", "N" );
  796. input2.value = getCurrentDate();
  797. input3.value = "00";
  798. input4.value = "00";
  799. input2.disabled = true;
  800. input3.disabled = true;
  801. input4.disabled = true;
  802. }
  803. ]]>
  804. </script>
  805. </select1>
  806. <button id="button4" class="icon_search" style="left:76px; top:447px; width:16px; height:16px; ">
  807. <caption/>
  808. <script type="javascript" ev:event="DOMActivate">
  809. <![CDATA[
  810. setParameter ( "SPMMB02200_cond2", "3" );
  811. fPrcpModal ( "SPMMB02200", 50, 50 );
  812. model.setValue ( "/root/main/prcp/prcplist/prcpdelivefact", getParameter ( "SPMMB02200_clinccmt" ));
  813. model.refresh();
  814. ]]>
  815. </script>
  816. </button>
  817. <input id="input2" ref="/root/main/prcp/prcplist/prcphopedd" inputtype="date" format="yyyy-mm-dd" style="left:484px; top:31px; width:86px; height:19px; "/>
  818. <input id="input3" ref="/root/init/prcphopeddh" imemode="disabled" maxlength="2" format="hh" style="left:571px; top:31px; width:22px; height:19px; text-align:center; "/>
  819. <input id="input4" ref="/root/init/prcphopeddm" imemode="disabled" maxlength="2" format="nn" style="left:595px; top:31px; width:22px; height:19px; text-align:center; "/>
  820. <button id="btn_srchexecdept" class="icon_search" style="left:679px; top:8px; width:16px; height:16px; ">
  821. <caption/>
  822. <script type="javascript" ev:event="DOMActivate">
  823. <![CDATA[
  824. modal("SPMMB02500");
  825. ]]>
  826. </script>
  827. </button>
  828. <caption id="caption9" class="tit_2" style="left:0px; top:160px; width:193px; height:14px; ">과거 수혈 부작용</caption>
  829. <datagrid id="datagrid4" nodeset="/root/result/blodrslt5" caption="수혈 부작용" colsep="^" colwidth="613" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:180px; width:794px; height:48px; ">
  830. <col disabled="true" ref="tnssideeffect" type="combo">
  831. <choices>
  832. <itemset nodeset="/root/init/M0330/M0330">
  833. <label ref="cdnm"/>
  834. <value ref="cdid"/>
  835. </itemset>
  836. </choices>
  837. </col>
  838. </datagrid>
  839. <line id="line3" class="line_1" style="x1:2px; y1:175px; x2:797px; y2:175px; "/>
  840. <caption id="caption10" class="tit_2" style="left:0px; top:370px; width:193px; height:13px; ">수혈 동의서 (최근2년)</caption>
  841. <line id="line4" class="line_1" style="x1:1px; y1:385px; x2:798px; y2:385px; "/>
  842. <datagrid id="datagrid3" nodeset="/root/result/blodrslt6" caption="상태^출력일^Scan^내원구분^진료(입원)일^진료과^진료의^서식명^OCRTAG" colsep="^" colwidth="54, 73, 38, 60, 79, 144, 62, 140, 119" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:388px; width:796px; height:53px; ">
  843. <col ref="statnm" style="text-align:center; "/>
  844. <col ref="fstrgstdt" format="yyyy-mm-dd" style="text-align:center; "/>
  845. <col ref="scanyn" style="text-align:center; "/>
  846. <col ref="ioflag" style="text-align:center; "/>
  847. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  848. <col ref="orddeptnm"/>
  849. <col ref="orddrnm" style="text-align:center; "/>
  850. <col ref="formnm"/>
  851. <col ref="ocrtag" style="text-align:center; "/>
  852. </datagrid>
  853. <caption id="cap_blodformmsg" style="left:160px; top:355px; width:637px; height:30px; font-weight:bold; color:#ff0000; vertical-align:bottom; ">※ 첫 수혈시와 그 후 1년마다 수혈 동의서를 받아야 하며 동의서가 없는 경우 혈액이 불출되지 않습니다.</caption>
  854. <button id="button10" class="btn1_letter5" style="left:10px; top:485px; width:92px; height:22px; ">
  855. <caption>수혈동의서</caption>
  856. <script type="javascript" ev:event="DOMActivate">
  857. <![CDATA[
  858. modal( "SMMRF02300" );
  859. ]]>
  860. </script>
  861. </button>
  862. </xhtml:body>
  863. </xhtml:html>