SMADC00900_TDM자문회신등록.xrw 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>TDM자문회신</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <baseinfo>
  11. <patinfolist>
  12. <pid/>
  13. <orddd/>
  14. <wardcd/>
  15. <roomcd/>
  16. <cnstdeptnm/>
  17. <cnstdeptcd/>
  18. <hngnm/>
  19. <sna/>
  20. <bcoldt/>
  21. <cnstdd/>
  22. <cnstdrnm/>
  23. <cnstdrid/>
  24. <cretno/>
  25. <orddeptcd/>
  26. <orddrid/>
  27. <prcpgenrflag/>
  28. <title1/>
  29. <title2/>
  30. <title3/>
  31. <title4/>
  32. <lowtitle1/>
  33. <lowtitle2/>
  34. <lowtitle3/>
  35. </patinfolist>
  36. <diaginfolist>
  37. <diagcd/>
  38. <diagno/>
  39. <bun/>
  40. <ro/>
  41. <kadr/>
  42. <who/>
  43. <diagengnm/>
  44. </diaginfolist>
  45. <baseinfolist>
  46. <ht/>
  47. <wt/>
  48. <scrval/>
  49. <ccrval/>
  50. <albuminval/>
  51. <sikcnm/>
  52. </baseinfolist>
  53. <tdminfolist>
  54. <testcd/>
  55. <formrecseq/>
  56. <cnstdrugnm/>
  57. <repldt/>
  58. <replusernm/>
  59. <cnstresn/>
  60. <remark/>
  61. <trghbcoldd/>
  62. <trghbcoltm/>
  63. <peakbcoldd/>
  64. <peakbcoltm/>
  65. <trghblodconcen/>
  66. <trghblodconcenref/>
  67. <peakblodconcen/>
  68. <peakblodconcenref/>
  69. <t12val/>
  70. <vdval/>
  71. <kmval/>
  72. <vmaxval/>
  73. <clval/>
  74. <analymthdcnts/>
  75. <tjudgrslt/>
  76. <pjudgrslt/>
  77. <cnstcnts/>
  78. <prestregmcnts/>
  79. <recmregmcnts/>
  80. <cmt/>
  81. <recmcnts/>
  82. <rgstseqno/>
  83. <statflag/>
  84. <rgstid/>
  85. <rgstnm/>
  86. <rgstdd/>
  87. <rgsttm/>
  88. <cnstcnts20/>
  89. <replyn/>
  90. <workflag/>
  91. </tdminfolist>
  92. <tdminfolist2>
  93. <testcd/>
  94. <cnstdrugnm/>
  95. <cnstresn/>
  96. <remark/>
  97. <cnstseqno/>
  98. </tdminfolist2>
  99. </baseinfo>
  100. <tdminfo>
  101. <tdminfolist>
  102. <t12val/>
  103. <vdval/>
  104. <kmval/>
  105. <vmaxval/>
  106. <clval/>
  107. <trgh/>
  108. <peak/>
  109. <blodconcen/>
  110. </tdminfolist>
  111. <tdminfolist2>
  112. <trgh/>
  113. </tdminfolist2>
  114. <tdminfolist3>
  115. <peak/>
  116. </tdminfolist3>
  117. </tdminfo>
  118. <patreqlistinfo>
  119. <reqlist>
  120. <cnstseqno/>
  121. <stat/>
  122. <reqdd/>
  123. <repldd/>
  124. <replpharmst/>
  125. <reqdrug/>
  126. <pid/>
  127. <hngnm/>
  128. <cretno/>
  129. <orddeptcd/>
  130. <prcpgenrflag/>
  131. <formcd/>
  132. <wardnm/>
  133. <agesex/>
  134. <rrgstno/>
  135. <patstat/>
  136. <diagcd/>
  137. <orddd/>
  138. <inhospday/>
  139. <result/>
  140. <reqdeptnm/>
  141. <requsernm/>
  142. <reqresn/>
  143. <reqcomment/>
  144. <bcolldt/>
  145. <spcacptdt/>
  146. <formrecseq/>
  147. <reqdeptcd/>
  148. <requserid/>
  149. <cnstcnts1/>
  150. <prcpno/>
  151. <prcpcd/>
  152. <drugcd/>
  153. <rgstseqno/>
  154. </reqlist>
  155. </patreqlistinfo>
  156. </main>
  157. <send>
  158. <pid/>
  159. <testcd/>
  160. <data/>
  161. <cnstseqno/>
  162. <rgstseqno/>
  163. <formrecseq/>
  164. <cretno/>
  165. <orddd/>
  166. <prcpgenrflag/>
  167. <reqdd/>
  168. <userinfo>
  169. <userid/>
  170. </userinfo>
  171. <formcd/>
  172. <srchinfo/>
  173. <data>
  174. <careplan>
  175. <tdmdata>
  176. <pid/>
  177. <rgstseqno/>
  178. <replyn/>
  179. <workflag/>
  180. <problemcareplan/>
  181. <jcirgstdd/>
  182. <jcirgsttm/>
  183. </tdmdata>
  184. </careplan>
  185. </data>
  186. </send>
  187. <init>
  188. <through>
  189. <label/>
  190. <value/>
  191. </through>
  192. <peak>
  193. <label/>
  194. <value/>
  195. </peak>
  196. <jcilist>
  197. <careplanlist/>
  198. </jcilist>
  199. </init>
  200. <hidden>
  201. <ret>
  202. <rgstseqno/>
  203. <formrecseq/>
  204. <cnstseqno/>
  205. </ret>
  206. <formrecseq/>
  207. <cnststatinfo>
  208. <cnststat/>
  209. </cnststatinfo>
  210. <prntinfo/>
  211. <userinfo/>
  212. <replinfo>
  213. <replcnts/>
  214. </replinfo>
  215. </hidden>
  216. <temp>
  217. <cnstinfo/>
  218. <patinfolist/>
  219. <replform>
  220. <replcnts/>
  221. <sel/>
  222. <formflag/>
  223. </replform>
  224. <popupdata>
  225. <repltype/>
  226. <receivedata>/root/main/baseinfo/tdminfolist/replid</receivedata>
  227. <receivedatargst/>
  228. </popupdata>
  229. <formdata>
  230. <replinfo/>
  231. </formdata>
  232. </temp>
  233. <combosend>
  234. <srchinfo>
  235. <startreqdd/>
  236. <endreqdd/>
  237. <startrepldd/>
  238. <endrepldd/>
  239. <formcd>-</formcd>
  240. <recvyn/>
  241. <ioflag>-</ioflag>
  242. <reqdeptcd/>
  243. <reqwardcd/>
  244. <reqpid/>
  245. <srchflag>1</srchflag>
  246. </srchinfo>
  247. </combosend>
  248. <combo>
  249. <reqlist/>
  250. </combo>
  251. </root>
  252. </instance>
  253. <submission id="TRADB00001"/>
  254. <submission id="TRADC00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baseinfo"/>
  255. <submission id="TRADC00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tdminfo"/>
  256. <submission id="TXADC00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/baseinfo/tdminfolist" replace="instance" resultref="/root/hidden/ret"/>
  257. <submission id="TXADC00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/baseinfo/tdminfolist" replace="instance" resultref="/root/hidden"/>
  258. <submission id="TXADC00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/baseinfo/tdminfolist" replace="instance" resultref="/root/hidden"/>
  259. <submission id="TRADC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/combosend/srchinfo" replace="instance" resultref="/root/combo/reqlist"/>
  260. <submission id="TRADC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patreqlistinfo/reqlist"/>
  261. <submission id="TRADC62201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/temp/formdata"/>
  262. <submission id="TRADC62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  263. <submission id="TXADC00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/signdata" replace="instance" resultref="/root/hidden"/>
  264. <submission id="TRADC02609" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/hidden/userinfo"/>
  265. <submission id="TXANC00357" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/careplan" resultref="/root/hidden/msglist"/>
  266. <submission id="TXADC00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/careplan/tdmdata" replace="instance" resultref="/root/hidden"/>
  267. <script type="javascript" ev:event="xforms-ready">
  268. <![CDATA[
  269. //2010-01-05 CarePlan 병원별로 적용여부 Check
  270. pharmacyGetCodeList( new Array("JCI1"), new Array("/root/init/jcilist/careplanlist") );
  271. if ( model.getValue ("/root/init/jcilist/careplanlist/JCI1[2]/cdid") == "Y" ) {
  272. btn_emr_careplan.visible = true; //EMR [CarePlan] 버튼 활성화
  273. btn_careplan.visible = true; //TDM [CarePlan전송] 버튼 활성화
  274. }
  275. var pid = model.getValue("/root/temp/cnstinfo/pid");
  276. if ( pid != "") {
  277. // model.setValue("/root/main/baseinfo/patinfolist/pid",pid);
  278. // model.refresh();
  279. //조회버튼
  280. model.setValue("/root/send/cnstseqno", model.getValue("/root/temp/cnstinfo/cnstseqno"));
  281. model.setValue("/root/send/formrecseq", model.getValue("/root/temp/cnstinfo/formrecseq"));
  282. model.setValue("/root/send/pid", model.getValue("/root/temp/cnstinfo/pid"));
  283. model.setValue("/root/send/cretno", model.getValue("/root/temp/cnstinfo/cretno"));
  284. model.setValue("/root/send/orddd", model.getValue("/root/temp/cnstinfo/orddd"));
  285. model.setValue("/root/send/prcpgenrflag", model.getValue("/root/temp/cnstinfo/prcpgenrflag"));
  286. model.setValue("/root/send/rgstseqno", model.getValue("/root/temp/cnstinfo/rgstseqno"));
  287. model.setValue("/root/send/reqdd", model.getValue("/root/temp/cnstinfo/cnstdd")); //2008-10-01 마이그레이션 환자정보조회
  288. // model.setValue("/root/send/pid",model.getValue("/root/main/baseinfo/patinfolist/pid"));
  289. // model.setValue("/root/send/rgstseqno",rgstseqno);
  290. submit("TRADC00901");
  291. // 미의뢰회신 전역변수 변경
  292. // 의뢰시 발생되는 formrecseq 존재여부 체크
  293. if(model.getValue("/root/temp/cnstinfo/formrecseq") == ""){
  294. gv_consult = "NR";
  295. fCretCnstinfo();
  296. }
  297. model.setValue("/root/combosend/srchinfo/formcd", "0000000769");
  298. model.setValue("/root/combosend/srchinfo/reqpid", pid);
  299. model.setValue("/root/combosend/srchinfo/startreqdd", "19000101");
  300. model.setValue("/root/combosend/srchinfo/endreqdd", "99991231");
  301. fCnstResn(); //의뢰이유를 코드명으로 나열하기
  302. btn_cnst.dispatch("DOMActivate");
  303. //회신상태
  304. if(model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z" ) {
  305. btn_save.disabled = true;
  306. btn_repl.disabled = true;
  307. btn_del.disabled = true;
  308. btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
  309. btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
  310. }
  311. //저장상태
  312. else {
  313. btn_save.disabled = false;
  314. btn_repl.disabled = false;
  315. btn_del.disabled = false;
  316. btn_replno.disabled = false; //2010-01-21 [미회신]버튼 활성화 - 회신가 아닌경우는 비활성화
  317. btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
  318. }
  319. submit("TRADC00102");
  320. combo1.value = model.getValue("/root/send/formrecseq");
  321. //2010-01-18 등록번호별 의뢰정보 가져오기
  322. model.setValue("/root/send/formcd","0000000769") //TDM formcd
  323. submit("TRADC00103");
  324. if(model.getValue("/root/temp/cnstinfo/btnreplflag") == "Y") {
  325. // 20100118_laboru_회신확정 상태일때 회신버튼 비활성화 위해서
  326. btn_repl.disabled = true;
  327. btn_replno.disabled = true; //2010-01-21 [미회신=회신제외]버튼 비활성화
  328. btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 (활성화)
  329. }
  330. if(model.getValue("/root/temp/cnstinfo/pidchkflag") == "Y") {
  331. // 20100119_laboru_약사 이외의 사용자인 경우
  332. btn_save.disabled = true;
  333. btn_repl.disabled = true;
  334. btn_del.disabled = true;
  335. btn_replno.disabled = true; //2010-01-21 [미회신=회신제외]버튼 비활성화
  336. btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 (비활성화)
  337. }
  338. }
  339. ]]>
  340. </script>
  341. <script type="javascript">
  342. <![CDATA[
  343. // 의뢰 회신/ 미의뢰회신 여부를 구분
  344. // 의뢰회신 : R, 미의뢰회신 : NR
  345. // default : R (의뢰회신)
  346. var gv_consult = "R";
  347. var cnstseqno = ""; // ast 의뢰번호
  348. var cnstkind = "7";
  349. var formrecseq = ""; // emr 서식기록번호 : 의뢰/미의뢰 구분
  350. var orddd = "";
  351. var cretno = "";
  352. var chosflag = "";
  353. var cnstflag = "3"; // 컨설트구분 (1:진료의뢰, 3:타과의뢰)
  354. var formcd = "0000000769";
  355. var cnststat = "";
  356. var eryn = "N" // 응급여부
  357. var reqdeptcd = "";
  358. var requserid = "";
  359. var reqdd = "";
  360. var reqhm = "";
  361. var prcpno = model.getValue("/root/temp/cnstinfo/prcpno");
  362. var prcpcd = model.getValue("/root/temp/cnstinfo/prcpcd");
  363. //의뢰이유를 코드명으로 나열하기
  364. function fCnstResn() {
  365. var cnstresn = model.getValue("/root/main/baseinfo/tdminfolist2/cnstresn");
  366. var temp = "";
  367. if ( cnstresn != "" ) {
  368. for ( i = 0; i < cnstresn.length; i+=2 ) {
  369. if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="1") {
  370. temp = temp + "적정용량 확인, "
  371. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="2") {
  372. temp = temp + "독성의심, "
  373. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="3") {
  374. temp = temp + "기대이하의 약효, "
  375. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="4") {
  376. temp = temp + "상호작용약물 추가/중단, "
  377. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="5") {
  378. temp = temp + "입원시 초기 농도 확인, "
  379. } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="6") {
  380. temp = temp + "중단 후 감소된 농도확인, "
  381. }
  382. }
  383. model.setValue("/root/main/baseinfo/tdminfolist2/cnstresn", temp.substr(0, temp.length-2));
  384. opt_cnstresn.refresh();
  385. }
  386. }
  387. function fSave(){
  388. model.makeNode("/root/main/baseinfo/tdminfolist/pid");
  389. model.setValue("/root/main/baseinfo/tdminfolist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  390. model.makeNode("/root/main/baseinfo/tdminfolist/ht");
  391. model.setValue("/root/main/baseinfo/tdminfolist/ht", model.getValue("/root/main/baseinfo/baseinfolist/ht"));
  392. model.makeNode("/root/main/baseinfo/tdminfolist/wt");
  393. model.setValue("/root/main/baseinfo/tdminfolist/wt", model.getValue("/root/main/baseinfo/baseinfolist/wt"));
  394. model.makeNode("/root/main/baseinfo/tdminfolist/scrval");
  395. model.setValue("/root/main/baseinfo/tdminfolist/scrval", model.getValue("/root/main/baseinfo/baseinfolist/scrval"));
  396. model.makeNode("/root/main/baseinfo/tdminfolist/ccrval");
  397. model.setValue("/root/main/baseinfo/tdminfolist/ccrval", model.getValue("/root/main/baseinfo/baseinfolist/ccrval"));
  398. model.makeNode("/root/main/baseinfo/tdminfolist/albuminval");
  399. model.setValue("/root/main/baseinfo/tdminfolist/albuminval", model.getValue("/root/main/baseinfo/baseinfolist/albuminval"));
  400. model.makeNode("/root/main/baseinfo/tdminfolist/sikcnm");
  401. model.setValue("/root/main/baseinfo/tdminfolist/sikcnm", model.getValue("/root/main/baseinfo/baseinfolist/sikcnm"));
  402. model.setValue("/root/main/baseinfo/tdminfolist/formrecseq", model.getValue("/root/send/formrecseq"));
  403. model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
  404. model.makeValue("/root/main/baseinfo/tdminfolist/cnststat", "21"); //회신임시
  405. model.makeValue("/root/main/baseinfo/tdminfolist/cnstcnts20", ""); //2010-01-21 adchcnstinfo - cnstcnsts20 미회신여부 등록(Y = 미회신)
  406. // fSetCnstinfo미의뢰 회신시 adchcnstinfo에 데이터를 생성하기 위한 변수들을 설정한다.
  407. if(gv_consult == "NR"){
  408. fSetCnstinfo();
  409. }
  410. if (submit("TXADC00901")) {
  411. // 미의뢰 회신후 생성된 rgstseqno와 cnstseqno를 조회조건으로 설정
  412. if ( model.getValue("/root/send/rgstseqno") == "" ) {
  413. model.setValue("/root/send/rgstseqno", model.getValue("/root/hidden/ret/rgstseqno"));
  414. }
  415. if(model.getValue("/root/send/cnstseqno") == ""){
  416. model.setValue("/root/send/cnstseqno", model.getValue("/root/hidden/ret/cnstseqno"));
  417. }
  418. btn_sea.dispatch("DOMActivate");
  419. return true;
  420. }else return false;
  421. }
  422. // 미의뢰 회신 - 조회된 환자정보 변수 설정
  423. function fCretCnstinfo(){
  424. orddd = model.getValue("/root/main/baseinfo/patinfolist/orddd");
  425. cretno = model.getValue("/root/main/baseinfo/patinfolist/cretno");
  426. chosflag = model.getValue("/root/main/baseinfo/patinfolist/prcpgenrflag");
  427. reqdeptcd = model.getValue("/root/main/baseinfo/patinfolist/cnstdeptcd");
  428. requserid = model.getValue("/root/main/baseinfo/patinfolist/cnstdrid");
  429. }
  430. // 미의뢰 회신 - mmrchcnstinfo, adchcnstinfo 테이블 정보생성
  431. function fSetCnstinfo(){
  432. model.makeValue("/root/main/baseinfo/tdminfolist/cnstkind", cnstkind);
  433. model.makeValue("/root/main/baseinfo/tdminfolist/orddd", orddd);
  434. model.makeValue("/root/main/baseinfo/tdminfolist/cretno",cretno);
  435. model.makeValue("/root/main/baseinfo/tdminfolist/chosflag", chosflag);
  436. model.makeValue("/root/main/baseinfo/tdminfolist/cnstflag", cnstflag);
  437. model.makeValue("/root/main/baseinfo/tdminfolist/formcd", formcd);
  438. model.makeValue("/root/main/baseinfo/tdminfolist/eryn", eryn);
  439. model.makeValue("/root/main/baseinfo/tdminfolist/reqdeptcd", reqdeptcd);
  440. model.makeValue("/root/main/baseinfo/tdminfolist/requserid", requserid);
  441. model.makeValue("/root/main/baseinfo/tdminfolist/reqdd", reqdd);
  442. model.makeValue("/root/main/baseinfo/tdminfolist/reqhm", reqhm);
  443. model.makeValue("/root/main/baseinfo/tdminfolist/prcpno", prcpno);
  444. model.makeValue("/root/main/baseinfo/tdminfolist/prcpcd", prcpcd);
  445. }
  446. //2010-01-11 저장시에는 회신내용 미리보기 화면 조회하기
  447. // tmpcnststat = 상태 (21: 저장(회신임시) 22:회신 00:미회신 버튼 )
  448. function fCretReplCnts(tmpcnststat){
  449. // 의뢰내역
  450. var title = "\n임상약동학 (TDM)" + "\n\n";
  451. var cnsttitle = "[의뢰내용]";
  452. var Citem1 = "\n 의뢰의사 : " + opt_cnstdrid.label;
  453. var Citem2 = "\n 의뢰약물 : " + ipt_testcd.label;
  454. var Citem3 = "\n 의뢰이유 : " + opt_cnstresn.label + "\n";
  455. var Citem = cnsttitle + Citem1 + Citem2 + Citem3;
  456. // 회신내역
  457. if (tmpcnststat == "00") { //2010-01-21 미회신일경우는 [회신내용]만 적용한다
  458. var repltitle = "\n[회신제외 내용]\n";
  459. var Ritem1 = "";
  460. var Ritem2 = "";
  461. var Ritem3 = "";
  462. var Ritem4 = "";
  463. var Ritem5 = "";
  464. var Ritem6 = "";
  465. var Ritem7 = "";
  466. var Ritem8 = "";
  467. var Ritem9 = "";
  468. var Ritem10 = "";
  469. var Ritem11 = "";
  470. var Ritem12 = "";
  471. var Ritem13 = "";
  472. var Ritem14 = "";
  473. var Ritem15 = "";
  474. if (tar_recmcnts.label != "" ) {
  475. Ritem15 += "\n" ;
  476. Ritem15 += fSortWord(" ",tar_recmcnts.label,50);
  477. }
  478. }else{ //2010-01-21 미회신일는 [회신내용]만 적용한다
  479. //2010-01-12 입력한 내용이 없을 경우 그 항목이 아예 안 보이게 처리한다. - 송헌정약사 요청
  480. var repltitle = "\n[회신내용]";
  481. var Ritem1 = "\n 채혈시간 : "
  482. if (ipt_trghbcoldd.label != "" ) {
  483. Ritem1 += "Trough - " + ipt_trghbcoldd.label + " " + ipt_trghbcoltm.label + " "
  484. }
  485. if (ipt_peakbcoldd.label != "" ) {
  486. Ritem1 += "Peak - " + ipt_peakbcoldd.label + " " + ipt_peakbcoltm.label;
  487. }
  488. var Ritem2 = "\n 혈중농도 : ";
  489. var Ritem3 = "";
  490. if (ipt_trghblodconcen.label != "" ) { //혈중농도 - Trough
  491. Ritem3 += "\n Trough - " + ipt_trghblodconcen.label + " (Ref) "
  492. if (cmb_trghblodconcenref.label != "" ) {
  493. Ritem3 += cmb_trghblodconcenref.label + " " + caption35.text;
  494. }
  495. }
  496. var Ritem4 = "";
  497. if (ipt_peakblodconcen.label != "" ) { //혈중농도 - Peak
  498. Ritem4 += "\n peak - " + ipt_peakblodconcen.label + " (Ref) "
  499. if (cmb_peakblodconcenref.label != "" ) {
  500. Ritem4 += cmb_peakblodconcenref.label + " " + caption37.text;
  501. }
  502. }
  503. var Ritem5 = "\n PK Parameters : "
  504. if (ipt_t12va.label != "" ) { //PK Parameters - T1/2
  505. Ritem5 += "\n T1/2 " + ipt_t12va.label + " " + caption46.text
  506. }
  507. if (ipt_vdval.label != "" ) { //PK Parameters - Vd
  508. Ritem5 += " Vd " + ipt_vdval.label + " " + caption47.text;
  509. }
  510. var Ritem6 = "";
  511. if (ipt_kmval.label != "" ) { //PK Parameters - Km
  512. Ritem6 = "\n Km " + ipt_kmval.label + " " + caption48.text
  513. }
  514. if (ipt_vmaxval.label != "" ) { //PK Parameters - Vmax
  515. Ritem6 += " Vmax " + ipt_vmaxval.label + " " + caption49.text;
  516. }
  517. var Ritem7 = "";
  518. if (ipt_clval.label != "" ) { //PK Parameters - CL
  519. Ritem7 += "\n CL " + ipt_clval.label + " " + caption50.text
  520. }
  521. var Ritem8 = "";
  522. if (cmb_analymthdcnts.label != "" ) {
  523. Ritem8 += "\n 분석방법 : " + cmb_analymthdcnts.label;
  524. }
  525. var Ritem9 = "";
  526. if (cmb_tjudgrslt.label != "" ) {
  527. Ritem9 += "\n 판정결과(T) : " + cmb_tjudgrslt.label;
  528. }
  529. var Ritem10 = "";
  530. if (cmb_pjudgrslt.label != "" ) {
  531. Ritem10 += "\n 판정결과(P) : " + cmb_pjudgrslt.label;
  532. }
  533. var Ritem11 = "";
  534. if (cmb_cnstcnts.label != "" ) {
  535. Ritem11 += "\n 자문내용 : " + cmb_cnstcnts.label;
  536. }
  537. var Ritem12 = "";
  538. if (tar_prestregmcnts.label != "" ) {
  539. Ritem12 += "\n 현재 Regimen : " + tar_prestregmcnts.label;
  540. }
  541. var Ritem13 = "";
  542. if (tar_recmregmcnts.label != "" ) {
  543. Ritem13 += "\n 추천 Regimen : " + tar_recmregmcnts.label;
  544. }
  545. var Ritem14 = "";
  546. if (tar_cmt.label != "" ) {
  547. Ritem14 += "\n 참고사항 : " + tar_cmt.label;
  548. }
  549. var Ritem15 = "";
  550. if (tar_recmcnts.label != "" ) {
  551. Ritem15 += "\n\n\n Recommendation : " + "\n" ; //2010-02-19 Recommendation 직전 2 line 띄우기
  552. Ritem15 += fSortWord(" ",tar_recmcnts.label,50);
  553. //Ritem15 += tar_recmcnts.label;
  554. }
  555. }
  556. var Replinfo = "";
  557. if ((tmpcnststat == "22") ||(tmpcnststat == "00")){ //회신일경우 - 회신자 표시 //2010-01-21 미회신일경우도 추가
  558. var Replinfo = "\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : " + getUserName() ;
  559. }
  560. var Ritem = repltitle + Ritem1 + Ritem2 + Ritem3 + Ritem4 + Ritem5 + Ritem6 + Ritem7 + Ritem8
  561. + Ritem9 + Ritem10 + Ritem11 + Ritem12 + Ritem13 + Ritem14 + Ritem15;
  562. var replcnts = title + Citem + Ritem + Replinfo;
  563. return replcnts;
  564. }
  565. /*
  566. @ 문단 정렬 (들여쓰기)
  567. fSrotWord
  568. - tab : tab 길이
  569. - word : 정렬하고자 하는 문장
  570. - maxlength : 문장최대길이
  571. - tabyn : 들여쓰기 여부
  572. */
  573. function fSortWord(tab, word, maxlength,tabyn){
  574. // 1.엔터 구분자로 분리
  575. var wordRow = word.split("\n");
  576. var returnStr = "";
  577. if(maxlength == "" || maxlength == null) maxlength = "70";
  578. if(tabyn == "" || tabyn == null) tabyn = "Y";
  579. for(var i = 0; i < wordRow.length; i++){
  580. // 2. 해당 row가 null이면 다음 row로 넘어감
  581. //if(wordRow[i] == "") continue; //2010-01-18 직접 입력한 \n있을경우는 \n 처리되도록.
  582. var tempStr = "";
  583. var index = "0";
  584. var breakflag = true;
  585. while(breakflag){
  586. // 3-1. 해당 row가 최대 글자수를 넘었을 때
  587. if((wordRow[i].length > maxlength) && (wordRow[i]!= "")){
  588. var tmprow = wordRow[i].substr(0,maxlength);
  589. var nextIndex = "";
  590. /*
  591. 4. 단어 완성 (최대글자수에서 우측의 공백을 조사하여 index설정)
  592. - 우측에 공백이 존재할땐 최대길이만큼 문자열을 자름
  593. - 우측에 공백이 존재하지 않을땐 이전의 공백까지 문자열을 자름
  594. */
  595. if(wordRow[i].substr(maxlength,1) != "") {
  596. nextIndex = getSearchStringRight(tmprow, " ");
  597. if(nextIndex <= 0) { // 공백이 존재 하지 않을때 최대길이만큼 문자열을 자름
  598. nextIndex = maxlength;
  599. }
  600. }else{
  601. nextIndex = maxlength;
  602. }
  603. var row = wordRow[i].substr(0,nextIndex); //2010-01-19 처음시작의 빈칸 입력된 경우 빈칸도 표시 되도록 처리(변경전:var row = wordRow[i].substr(0,nextIndex).getTrim();)
  604. wordRow[i] = wordRow[i].substr(nextIndex, wordRow[i].length);
  605. if(tempStr != "") tempStr += "\n";
  606. if(tabyn == "Y") tempStr += tab;
  607. tempStr += row;
  608. // 3-2. 해당 row가 최대 글자수를 넘지 않았을때 (종료)
  609. }else{
  610. if(tempStr != "" && wordRow[i]!= "") tempStr += "\n";
  611. if(tabyn == "Y") tempStr += tab;
  612. tempStr += wordRow[i]; //2010-01-19 처음시작의 빈칸 입력된 경우 빈칸도 표시 되도록 처리(변경전:tempStr += wordRow[i].getTrim();)
  613. breakflag = false;
  614. }
  615. }
  616. if(returnStr != "") returnStr += "\n";
  617. returnStr += tempStr;
  618. }
  619. return(returnStr);
  620. }
  621. /*
  622. * Care Plan 관련 ENR 데이터 전송
  623. */
  624. function sendENRCAREPLANData() {
  625. var problem = "";
  626. if (model.getValue(" /root/main/baseinfo/tdminfolist2/testcd") !="") {
  627. problem = "TDM 대상약물 : " + model.getValue(" /root/main/baseinfo/tdminfolist2/testcd");
  628. }
  629. var careplan = "";
  630. if (tar_recmregmcnts.label != "" ) {
  631. careplan += "추천 Regimen : " + tar_recmregmcnts.label + "\n";
  632. }
  633. if (tar_cmt.label != "" ) {
  634. careplan += "참고사항 : " + tar_cmt.label+ "\n";
  635. }
  636. if (careplan !="") {
  637. careplan += "(자세한사항은 Consult관리- 임상약동학의뢰(TDM) 회신내용을 참고하십시오.)" ;
  638. }
  639. // Care Plan 전송 필수 데이터 체크
  640. if(!checkENRCAREPLANData(problem,careplan)) {
  641. return false;
  642. }
  643. var sendCheck = "N";
  644. var sColSep = "▦";
  645. var sRowSep = "▩";
  646. // 그리드 헤더값 생성
  647. var rCSV = "m▦instcd▦careplanseq▦pid▦orddd▦cretno▦workflag▦problem▦careplan▦rgstdd▦rgsttm";
  648. var m = "";
  649. var instcd = "";
  650. var careplanseq = "";
  651. var pid = "";
  652. var orddd = "";
  653. var cretno = "";
  654. var workflag = "";
  655. var rgstdd = "";
  656. var rgsttm = "";
  657. var problemcareplan = "";
  658. m = "i";
  659. instcd = getUserInfo("dutplceinstcd");
  660. pid = model.getValue("/root/main/baseinfo/patinfolist/pid");
  661. orddd = model.getValue("/root/main/baseinfo/patinfolist/orddd");
  662. cretno = model.getValue("/root/main/baseinfo/patinfolist/cretno");
  663. workflag = "999";
  664. rgstdd = getCurrentDate();
  665. rgsttm = getCurrentTime();
  666. rCSV += sRowSep +
  667. m + sColSep +
  668. instcd + sColSep +
  669. careplanseq + sColSep +
  670. pid + sColSep +
  671. orddd + sColSep +
  672. cretno + sColSep +
  673. workflag + sColSep +
  674. problem + sColSep +
  675. careplan + sColSep +
  676. rgstdd + sColSep +
  677. rgsttm;
  678. // Care Plan 관련 전송 데이터 세팅
  679. model.makeValue("/root/send/data/careplan/listdata", rCSV);
  680. if(submit("TXANC00357")) { //EMR 데이타 전송 처리
  681. // TDM 데이타 저장
  682. model.makeValue ("/root/send/data/careplan/tdmdata/pid" ,pid) //등록번호
  683. model.makeValue ("/root/send/data/careplan/tdmdata/formcd" ,"0000000769") //FormCD
  684. model.makeValue ("/root/send/data/careplan/tdmdata/rgstseqno" ,model.getValue("/root/main/baseinfo/tdminfolist/rgstseqno")) //저장순번
  685. model.makeValue ("/root/send/data/careplan/tdmdata/replyn" ,"Y") //전송여부
  686. model.makeValue ("/root/send/data/careplan/tdmdata/workflag" ,workflag) //작업구분
  687. model.makeValue ("/root/send/data/careplan/tdmdata/problemcareplan" ,problem + sColSep+careplan) //CarePlan 내용
  688. model.makeValue ("/root/send/data/careplan/tdmdata/jcirgstdd" ,rgstdd) //전송일자
  689. model.makeValue ("/root/send/data/careplan/tdmdata/jcirgsttm" ,rgsttm) //전송시간
  690. if (submit("TXADC00905")) { //TDM 데이타 저장
  691. messageBox("정상적으로 [CarePlan 전송]이 ", "I002");
  692. model.makeValue ("root/main/baseinfo/tdminfolist/replyn" ,"Y") //전송여부
  693. //
  694. return true;
  695. }
  696. } else {
  697. messageBox("Care Plan 전송 처리 오류!! 확인", "I008");
  698. return false;
  699. }
  700. }
  701. /*
  702. * Care Plan 전송 필수 데이터 체크
  703. */
  704. function checkENRCAREPLANData(problem,careplan) {
  705. var instcd = "";
  706. var careplanseq = "";
  707. var pid = "";
  708. var orddd = "";
  709. var cretno = "";
  710. var workflag = "";
  711. var rgstdd = "";
  712. var rgsttm = "";
  713. // 데이터 세팅
  714. pid = model.getValue("/root/main/baseinfo/patinfolist/pid");
  715. orddd = model.getValue("/root/main/baseinfo/patinfolist/orddd");
  716. cretno = model.getValue("/root/main/baseinfo/patinfolist/cretno");
  717. workflag = "999";
  718. rgstdd = getCurrentDate();
  719. rgsttm = getCurrentTime();
  720. rgsttm = getCurrentTime();
  721. // Care Plan 전송 필수 데이터 체크
  722. if( pid == "" || orddd == "" || cretno == "" ||
  723. workflag == "" || problem == "" || careplan == "" || rgstdd == "" ||
  724. rgsttm == "") {
  725. messageBox("Care Plan 전송 항목인 'problem', 'careplan' 은", "I003");
  726. return false;
  727. }
  728. return true;
  729. }
  730. ]]>
  731. </script>
  732. </model>
  733. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  734. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  735. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  736. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  737. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  738. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  739. <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
  740. <script type="javascript" src="../../../ast/commonweb/js/SignSave.js"/>
  741. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  742. <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SPADC62200.js"/>
  743. <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
  744. </xhtml:head>
  745. <xhtml:body guideline="1,1195;2,760;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  746. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">TDM자문회신등록</caption>
  747. <group id="group4" scroll="auto" style="left:0px; top:14px; width:1195px; height:27px; ">
  748. <line id="line70" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  749. <button id="button1" class="btn4_letter3" visibility="hidden" style="left:645px; top:0px; width:68px; height:22px; ">
  750. <caption>초기화</caption>
  751. </button>
  752. <button id="button12" class="btn4_letter6" visibility="hidden" style="left:715px; top:0px; width:104px; height:22px; ">
  753. <caption>회신결과입력</caption>
  754. </button>
  755. <button id="button13" class="btn3_letter6" style="left:270px; top:3px; width:104px; height:22px; ">
  756. <caption>통합결과조회</caption>
  757. <script type="javascript" ev:event="DOMActivate">
  758. <![CDATA[
  759. open("SMAER00800 ","","","","","/root/main/baseinfo/patinfolist/pid","/root/send/data/singdata/srchpid");
  760. ]]>
  761. </script>
  762. </button>
  763. <button id="button14" class="btn3_letter6" style="left:376px; top:3px; width:104px; height:22px; ">
  764. <caption>투약기록조회</caption>
  765. <script type="javascript" ev:event="DOMActivate">
  766. <![CDATA[
  767. open("SMMNR04500");
  768. ]]>
  769. </script>
  770. </button>
  771. <button id="button15" class="btn3_letter4" style="left:82px; top:3px; width:80px; height:22px; ">
  772. <caption>약력조회</caption>
  773. <script type="javascript" ev:event="DOMActivate">
  774. <![CDATA[
  775. open("SMADB10100",0,0,0,"SMADB10100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
  776. ]]>
  777. </script>
  778. </button>
  779. <button id="button16" class="btn3_letter4" style="left:0px; top:3px; width:80px; height:22px; ">
  780. <caption>처방조회</caption>
  781. <script type="javascript" ev:event="DOMActivate">
  782. <![CDATA[
  783. //--emr/prcpmngtweb/xrw/SPMMO14900_처방조회.xrw
  784. setParameter ("SPMMO14900_pid" , model.getValue("/root/main/baseinfo/patinfolist/pid")); //등록번호
  785. setParameter ("SPMMO14900_hngnm" , model.getValue("/root/main/baseinfo/patinfolist/hngnm")); //성명
  786. open("SPMMO14900");
  787. ]]>
  788. </script>
  789. </button>
  790. <button id="btn_save" class="btn4_letter2" navindex="31" style="left:956px; top:3px; width:56px; height:22px; ">
  791. <caption>저장</caption>
  792. <script type="javascript" ev:event="DOMActivate">
  793. <![CDATA[
  794. if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
  795. if(submit("TRADC62202")){
  796. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  797. if(cnststat == "04"){
  798. messageBox("[취소] 더이상 수정하실 수","I004");
  799. }else if (cnststat == "30"){
  800. messageBox("[회신확정] 더이상 수정하실 수","I004");
  801. }else{
  802. var sel = messageBox("저장","S001");
  803. if(sel == 6){
  804. //fSave(); //2010-01-11 저장자ID 저장하기
  805. var replcnts= fCretReplCnts("21"); //회신내역 발생 - 상태 (21 = 저장)
  806. if ( replcnts == ""){
  807. messageBox("회신내역을 확인하시기 바랍니다","I");
  808. return false;
  809. }else{
  810. var sel = fSendReplForm(replcnts,"TDM");
  811. if(sel == "cfm"){
  812. //저장
  813. model.setValue("/root/temp/popupdata/repltype" , "tdmS"); //2010-01-11 tdmS 코드 추가 - 저장자ID 저장하기
  814. var rgstid = model.getValue("/root/main/baseinfo/tdminfolist/rgstid");
  815. if ((rgstid == "-") || ( rgstid =="")) model.setValue("/root/main/baseinfo/tdminfolist/rgstid", getUserId());
  816. model.makeValue("/root/temp/popupdata/rgstid" , model.getValue("/root/main/baseinfo/tdminfolist/rgstid")); //2010-01-11 저장자ID
  817. model.setValue("/root/temp/popupdata/receivedatargst" , "");
  818. modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
  819. if(model.getValue("/root/temp/popupdata/receivedatargst") == "") { //저장자 저장하지 않음
  820. model.setValue("/root/main/baseinfo/tdminfolist/rgstid" , "-");
  821. model.setValue("/root/main/baseinfo/tdminfolist/rgstdd" , "99991231"); // 저장일자
  822. model.setValue("/root/main/baseinfo/tdminfolist/rgsttm" , "235959"); // 저장시간
  823. }else{
  824. model.setValue("/root/main/baseinfo/tdminfolist/rgstdd" , getCurrentDate()); // 저장일자
  825. model.setValue("/root/main/baseinfo/tdminfolist/rgsttm" , getCurrentTime()); // 저장시간
  826. fSave();
  827. }
  828. }
  829. }
  830. }
  831. }
  832. }
  833. }else {
  834. messageBox("등록번호는 필수입력","I009");
  835. return false;
  836. }
  837. ]]>
  838. </script>
  839. </button>
  840. <button id="btn_repl" class="btn4_letter2" navindex="32" style="left:1016px; top:3px; width:56px; height:22px; ">
  841. <caption>회신</caption>
  842. <script type="javascript" ev:event="DOMActivate">
  843. <![CDATA[
  844. if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
  845. if(submit("TRADC62202")){
  846. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  847. if(cnststat == "04"){
  848. messageBox("[취소] 더이상 수정하실 수","I004");
  849. return ;
  850. }else if (cnststat == "30"){
  851. messageBox("[회신확정] 더이상 수정하실 수","I004");
  852. return;
  853. }
  854. }
  855. /*
  856. * Function으로 처리한다. 저장시에두 사용한다. ==> fCretReplCnts
  857. // 의뢰내역
  858. var title = "\n임상약동학 (TDM)" + "\n\n";
  859. var cnsttitle = "[의뢰내용]";
  860. var Citem1 = "\n1. 의뢰의사 : " + opt_cnstdrid.label;
  861. var Citem2 = "\n2. 의뢰약물 : " + ipt_testcd.label;
  862. var Citem3 = "\n3 .의뢰이유 : " + opt_cnstresn.label + "\n";
  863. var Citem = cnsttitle + Citem1 + Citem2 + Citem3;
  864. // 회신내역
  865. var repltitle = "\n[회신내용]";
  866. var Ritem1 = "\n1. 채혈시간 : " + "Trough - " + ipt_trghbcoldd.label + " " + ipt_trghbcoltm.label + " "
  867. + "Peak - " + ipt_peakbcoldd.label + " " + ipt_peakbcoltm.label; //2009-12-09 오타수정 (Through -> Trough)
  868. var Ritem2 = "\n2. 혈중농도 : ";
  869. //단위 Master에서 가져옴.
  870. // var Ritem3 = "\n\t\t\t" + "Through - " + ipt_trghblodconcen.label + " (Ref) " + cmb_trghblodconcenref.label + "mcg/ml";
  871. // var Ritem4 = "\n\t\t\t" + "peak - " + ipt_peakblodconcen.label + " (Ref) " + cmb_peakblodconcenref.label + "mcg/ml";
  872. // var Ritem5 = "\n\t 3. PK Parameters : " + "T1/2 (" + ipt_t12va.label + ") hr \t Vd (" + ipt_vdval.label + ") mcg/ml";
  873. // var Ritem6 = "\n\t Km (" + ipt_kmval.label + ") \t Vmax (" + ipt_vmaxval.label + ")";
  874. // var Ritem7 = "\n\t CL (" + ipt_clval.label + ") ml/min/kg"
  875. var Ritem3 = "\n" + "Trough - " + ipt_trghblodconcen.label + " (Ref) " + cmb_trghblodconcenref.label + " " + caption35.text; //2009-12-09 오타수정 (Through -> Trough)
  876. var Ritem4 = "\n" + "peak - " + ipt_peakblodconcen.label + " (Ref) " + cmb_peakblodconcenref.label + " " + caption37.text;
  877. var Ritem5 = "\n3. PK Parameters : " + "\nT1/2 (" + ipt_t12va.label + ") " + caption46.text + " \t Vd (" + ipt_vdval.label + ") " + caption47.text;
  878. var Ritem6 = "\nKm (" + ipt_kmval.label + ") " + caption48.text + " \t Vmax (" + ipt_vmaxval.label + ") " + caption49.text;
  879. var Ritem7 = "\nCL (" + ipt_clval.label + ") " + caption50.text
  880. var Ritem8 = "\n4. 분석방법 : " + cmb_analymthdcnts.label;
  881. var Ritem9 = "\n5. 판정결과(T) : " + cmb_tjudgrslt.label;
  882. var Ritem10 = "\n 판정결과(P) : " + cmb_pjudgrslt.label;
  883. var Ritem11 = "\n7. 자문내용 : " + cmb_cnstcnts.label;
  884. var Ritem12 = "\n8. 현재 Regimen : " + tar_prestregmcnts.label;
  885. var Ritem13 = "\n9. 추천 Regimen : " + tar_recmregmcnts.label;
  886. var Ritem14 = "\n10. 참고사항 : " + tar_cmt.label;
  887. var Ritem15 = "\n11. Recommendation : " + tar_recmcnts.label;
  888. var Ritem = repltitle + Ritem1 + Ritem2 + Ritem3 + Ritem4 + Ritem5 + Ritem6 + Ritem7 + Ritem8
  889. + Ritem9 + Ritem10 + Ritem11 + Ritem12 + Ritem13 + Ritem14 + Ritem15;
  890. var replcnts = title + Citem + Ritem;
  891. */
  892. var replcnts= fCretReplCnts("22"); //회신내역 발생 - cnststat = 상태 (22: 회신)
  893. var sel = fSendReplForm(replcnts,"");
  894. if(sel == "cfm"){
  895. //저장
  896. var rgstid = model.getValue("/root/main/baseinfo/tdminfolist/rgstid");
  897. if ((rgstid == "-") || ( rgstid =="")) { //저장하지 않고 바로 회신시 rgstid가 Null발생됨.
  898. model.setValue("/root/main/baseinfo/tdminfolist/rgstid" , "-");
  899. model.setValue("/root/main/baseinfo/tdminfolist/rgstdd" , "99991231");
  900. model.setValue("/root/main/baseinfo/tdminfolist/rgsttm" , "235959");
  901. }
  902. model.setValue("/root/temp/popupdata/repltype" , ""); //2010-01-11 tdmS 코드 추가 - 저장자ID 저장하기
  903. model.makeNode("/root/main/baseinfo/tdminfolist/replid");
  904. model.makeValue("/root/temp/popupdata/writid", model.getValue("/root/main/baseinfo/tdminfolist/rgstid")); //2010-01-11 저장자ID 추가
  905. model.makeValue("/root/temp/popupdata/writnm", model.getValue("/root/main/baseinfo/tdminfolist/rgstnm")); //2010-01-11 저장자추가
  906. model.setValue("/root/temp/popupdata/repltype","tdm");
  907. model.setValue("/root/temp/popupdata/receivedata" , "/root/main/baseinfo/tdminfolist/replid");
  908. modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
  909. var replid = model.getValue("/root/main/baseinfo/tdminfolist/replid");
  910. if(replid != ""){
  911. //2010-01-06 로긴ID와 회신자ID가 틀릴경우 회신내용중 [ 회신자: ] 변경저장처리
  912. var usernm = getUserName();
  913. if(replid != getUserId()){
  914. model.setValue("/root/send/userinfo/userid", replid);
  915. if(submit("TRADC02609")){
  916. var userid = model.getValue("/root/hidden/userinfo/userid");
  917. var usernm = model.getValue("/root/hidden/userinfo/usernm");
  918. if(userid != "" && usernm != ""){
  919. //model.setValue("/root/main/nstinfo/nutrpninfo/replnm",usernm);
  920. }else{
  921. messageBox("일치하는 사용자 정보가 일치하지 않습니다. 사용자 ID를 . ","I007");
  922. return;
  923. }
  924. }
  925. }
  926. //
  927. var Replinfo = "\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : " + usernm ;
  928. //2010-01-06 PN 회신시 로긴ID와 회신자ID가 틀릴경우 회신내용수동변경데이타 저장안됨
  929. //var replcnts = gv_Ritem+Replinfo;
  930. var replcntsArr = replcnts.split("\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : ");
  931. var replcnts = replcntsArr[0] + Replinfo; //2010-01-06 PN 회신시 로긴ID와 회신자ID가 틀릴경우 회신내용수동변경데이타 저장안됨
  932. if(fSave()){ // 저장이 성공했을시에 회신
  933. model.makeNode("/root/main/baseinfo/tdminfolist/pid");
  934. model.setValue("/root/main/baseinfo/tdminfolist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  935. model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
  936. model.makeValue("/root/main/baseinfo/tdminfolist/cnststat", "22"); //회신
  937. model.makeValue("/root/main/baseinfo/tdminfolist/replid", replid); //회신자
  938. model.makeNode("/root/main/baseinfo/tdminfolist/replcnts"); // 회신내역 노드생성
  939. model.setValue("/root/main/baseinfo/tdminfolist/replcnts", replcnts); // 회신내역 변수설정
  940. model.makeValue("/root/main/baseinfo/tdminfolist/cnstcnts20", "N"); //2010-01-21 adchcnstinfo - cnstcnsts20 미회신여부 등록(Y = 미회신 N=회신)
  941. fSetCnstinfo(); // 미의뢰 회신 기본 데이터 생성
  942. /********************************************************************************************/
  943. /* 인증저장 */
  944. /********************************************************************************************/
  945. /*
  946. // 1. 의사_간호사인증구분 (의사 : D , 간호사 : N )
  947. model.makeValue("/root/send/dnorrptinfo/drnuflag", "N");
  948. // 2. 인증환자정보
  949. model.copyNode("/root/temp/patinfolist","/root/main/baseinfo/patinfolist");
  950. // 3. 인증데이터정보
  951. model.makeNode("/root/send/signdatalist");
  952. model.copyNode("/root/send/signdatalist","/root/main/baseinfo");
  953. model.removenode("/root/send/signdatalist/patinfolist");
  954. model.removenode("/root/send/signdatalist/diaginfolist");
  955. model.removenode("/root/send/signdatalist/baseinfolist");
  956. model.removenode("/root/send/signdatalist/tdminfolist2");
  957. // 4. 서식코드세팅
  958. var pFormcd = "0000000769";
  959. if(fSignSaveInho("C", pFormcd ))
  960. {
  961. return false;
  962. }
  963. */
  964. /********************************************************************************************/
  965. //회신
  966. var success = submit("TXADC00902");
  967. if(gv_consult == "NR"){
  968. model.setValue("/root/send/formrecseq", model.getValue("/root/hidden/ret/formrecseq"));
  969. }
  970. btn_sea.dispatch("DOMActivate");
  971. //fCnstResn(); //의뢰이유를 코드명으로 나열하기
  972. // var v_ptext = "의뢰약물코드:"+ model.getValue("/root/main/baseinfo/tdminfolist/testcd")+", 회신일:"+model.getValue("/root/main/baseinfo/tdminfolist/repldt") +", 의뢰이유:"+model.getValue("/root/main/baseinfo/tdminfolist/cnstresn")+", 전달사항:"+model.getValue("/root/main/baseinfo/tdminfolist/remark")+", 채혈시간thgh:"+model.getValue("/root/main/baseinfo/tdminfolist/trghbcoldd")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/trghbcoltm")+", 채혈시간peak:"+model.getValue("/root/main/baseinfo/tdminfolist/peakbcoldd")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/peakbcoltm")+", 혈중농도thgh:"+model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcen")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcenref")+", 혈중농도peak:"+model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcen")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcenref")+", t1/2:"+model.getValue("/root/main/baseinfo/tdminfolist/t12val")+", vd:"+model.getValue("/root/main/baseinfo/tdminfolist/vdval")+", km:"+model.getValue("/root/main/baseinfo/tdminfolist/kmval")+", vmax:"+model.getValue("/root/main/baseinfo/tdminfolist/vmaxval")+", cl:"+model.getValue("/root/main/baseinfo/tdminfolist/clval")+", 분석방법:"+model.getValue("/root/main/baseinfo/tdminfolist/analymthdcnts")+", 판정결과T:"+model.getValue("/root/main/baseinfo/tdminfolist/tjudgrslt")+", 판정결과P:"+model.getValue("/root/main/baseinfo/tdminfolist/pjudgrslt")+", 자문내용:"+model.getValue("/root/main/baseinfo/tdminfolist/cnstcnts")+", 현재regimen:"+model.getValue("/root/main/baseinfo/tdminfolist/prestregmcnts")+", 추천regimen:"+model.getValue("/root/main/baseinfo/tdminfolist/recmregmcnts")+", 참고사항:"+model.getValue("/root/main/baseinfo/tdminfolist/cmt")+", recomendation"+model.getValue("/root/main/baseinfo/tdminfolist/recmcnts");
  973. // var v_stext = zesfSignData( v_ptext , getUserId(), true );
  974. // model.setValue( "/root/stext", v_stext );
  975. // model.setValue("/root/main/baseinfo/tdminfolist/formrecseq", model.getValue("/root/send/formrecseq"));
  976. // model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
  977. //인증저장 성공시 statflag 업데이트
  978. // if( model.getValue("/root/stext") !="") {
  979. // submit("TXADC00902");
  980. // btn_sea.dispatch("DOMActivate");
  981. // }
  982. }
  983. }
  984. model.refresh();
  985. }
  986. }else {
  987. messageBox("등록번호는 필수입력","I009");
  988. return false;
  989. }
  990. ]]>
  991. </script>
  992. </button>
  993. <button id="btn_del" class="btn4_letter2" navindex="33" style="left:1076px; top:3px; width:56px; height:22px; ">
  994. <caption>삭제</caption>
  995. <script type="javascript" ev:event="DOMActivate">
  996. <![CDATA[
  997. if(submit("TRADC62202")){
  998. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  999. if(cnststat == "04"){
  1000. messageBox("[취소] 더이상 수정하실 수","I004");
  1001. return ;
  1002. }else if (cnststat == "30"){
  1003. messageBox("[회신확정] 더이상 수정하실 수","I004");
  1004. return;
  1005. }else {
  1006. var sel = messageBox("저장된 내용은 삭제처리, 상태는 [의뢰]로 변경처리됩니다." + "\n\n" + "삭제","S001");
  1007. if(sel != 6){
  1008. return;
  1009. }
  1010. }
  1011. }
  1012. model.makeNode("/root/main/baseinfo/tdminfolist/pid");
  1013. model.setValue("/root/main/baseinfo/tdminfolist/pid" , model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1014. model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno" , model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
  1015. model.makeValue("/root/main/baseinfo/tdminfolist/formrecseq" , model.getValue("/root/send/formrecseq") ); //2009-12-21 삭제처리시 mmrhcnstinfo 상태가 변경되지 않음
  1016. if (submit("TXADC00903")) {
  1017. btn_sea.dispatch("DOMActivate");
  1018. }
  1019. ]]>
  1020. </script>
  1021. </button>
  1022. <button id="btn_prnt" class="btn6_letter2" navindex="34" style="left:1136px; top:3px; width:56px; height:22px; ">
  1023. <caption>출력</caption>
  1024. <script type="javascript" ev:event="DOMActivate">
  1025. <![CDATA[
  1026. /*출력을 위한 데이터 생성 2009-07-08 김귀남*/
  1027. model.copyNode("/root/hidden/prntinfo", "/root/main/baseinfo/patinfolist"); // 환자기본정보
  1028. /* 의뢰일자 => 0000/00/00 */
  1029. model.makeValue("/root/hidden/prntinfo/cnstdd", model.getValue("/root/hidden/prntinfo/cnstdd").substr(0,8)); // 의뢰일자
  1030. /*나이 => (M/00) */
  1031. var sna = "("+ model.getValue("/root/hidden/prntinfo/sna") + ")";
  1032. model.makeValue("/root/hidden/prntinfo/sna", sna); // 성별/나이
  1033. model.makeValue("/root/hidden/prntinfo/sikcnm", model.getValue("/root/main/baseinfo/baseinfolist/sikcnm")); // 상병명
  1034. model.makeValue("/root/hidden/prntinfo/testcd", model.getValue("/root/main/baseinfo/tdminfolist2/testcd")); // 의뢰약물
  1035. model.makeValue("/root/hidden/prntinfo/cnstresn", model.getValue("/root/main/baseinfo/tdminfolist2/cnstresn")); // 의뢰이유
  1036. model.makeValue("/root/hidden/prntinfo/prestregmcnts", model.getValue("/root/main/baseinfo/tdminfolist/prestregmcnts")); // 현재regimen
  1037. model.makeValue("/root/hidden/prntinfo/tjudgrslt", cmb_tjudgrslt.value); // 판정결과 (T)
  1038. model.makeValue("/root/hidden/prntinfo/pjudgrslt", cmb_pjudgrslt.value); // 판정결과 (P)
  1039. cmb_pjudgrslt
  1040. /* 채혈일 채혈시간 혈중농도*/
  1041. /* trough와 peak 중 입력된 내용만 출력 */
  1042. var blodconcen = model.getValue("/root/main/tdminfo/tdminfolist/blodconcen"); // 혈중농도 단위
  1043. model.makeValue("/root/hidden/prntinfo/trghbcoldd", model.getValue("/root/main/baseinfo/tdminfolist/trghbcoldd")); // 채혈일자(trough)
  1044. model.makeValue("/root/hidden/prntinfo/trghbcoltm", model.getValue("/root/main/baseinfo/tdminfolist/trghbcoltm")); // 채혈시간(trough)
  1045. var trghblodconcen = "";
  1046. if(model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcen") != ""){
  1047. trghblodconcen = model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcen") + "\t (" + cmb_trghblodconcenref.label+ ") " +blodconcen ;
  1048. }
  1049. model.makeValue("/root/hidden/prntinfo/trghblodconcen", trghblodconcen);// 혈중농도(trough)
  1050. model.makeValue("/root/hidden/prntinfo/peakbcoldd", model.getValue("/root/main/baseinfo/tdminfolist/peakbcoldd")); // 채혈일자(peak)
  1051. model.makeValue("/root/hidden/prntinfo/peakbcoltm", model.getValue("/root/main/baseinfo/tdminfolist/peakbcoltm")); // 채혈시간(peak)
  1052. var peakblodconcen = "";
  1053. if(model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcen") != ""){
  1054. peakblodconcen = model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcen") + "\t (" + cmb_peakblodconcenref.label + ") " +blodconcen;
  1055. }
  1056. model.makeValue("/root/hidden/prntinfo/peakblodconcen", peakblodconcen);// 혈중농도(peak)
  1057. /*PK(Pharmacokinetic) Parameters => 입력된 사항문 출력되도록 */
  1058. var pkParam = "";
  1059. if(ipt_t12va.label != "") {
  1060. pkParam += caption39.value + " " + ipt_t12va.label +" "+ caption46.value;
  1061. }
  1062. if(ipt_vdval.label != "") {
  1063. if(pkParam != "" ) pkParam += "\t";
  1064. pkParam += caption42.value + " " + ipt_vdval.label +" "+ caption47.value;
  1065. }
  1066. if(ipt_kmval.label != "") {
  1067. if(pkParam != "" ) pkParam += "\t";
  1068. pkParam += caption40.value + " " + ipt_kmval.label +" "+ caption48.value;
  1069. }
  1070. if(ipt_vmaxval.label != "") {
  1071. if(pkParam != "" ) pkParam += "\t";
  1072. pkParam += caption43.value + " " + ipt_vmaxval.label +" "+ caption49.value;
  1073. }
  1074. if(ipt_clval.label != "") {
  1075. if(pkParam != "" ) pkParam += "\t";
  1076. pkParam += caption41.value + " " + ipt_clval.label +" "+ caption50.value;
  1077. }
  1078. model.makeValue("/root/hidden/prntinfo/pkparameter", pkParam); // pk parameter
  1079. model.makeValue("/root/hidden/prntinfo/recmcnts", tar_recmcnts.value); // recommendation
  1080. model.makeValue("/root/hidden/prntinfo/repldt", model.getValue("/root/main/baseinfo/tdminfolist/repldt").substr(0,8)); // 회신일시
  1081. // 20110907_laboru_회신자 이름뒤에 소속 표시
  1082. //model.makeValue("/root/hidden/prntinfo/replusernm", model.getValue("/root/main/baseinfo/tdminfolist/replusernm")); // 회신자
  1083. if(model.getValue("/root/temp/cnstinfo/repluseridcheck") == "Y" ) {
  1084. model.makeValue("/root/hidden/prntinfo/replusernm", model.getValue("/root/main/baseinfo/tdminfolist/replusernm") + "(" + "약제부" + ")"); // 회신자
  1085. } else {
  1086. model.makeValue("/root/hidden/prntinfo/replusernm", model.getValue("/root/main/baseinfo/tdminfolist/replusernm") + "(" + "임상시험센터" + ")"); // 회신자
  1087. }
  1088. exeReportPreview("RPADC00900", "XMLSTR", "", "", "false","","","","","false");
  1089. ]]>
  1090. </script>
  1091. </button>
  1092. <button id="button2" class="btn6_letter4" style="left:685px; top:3px; width:80px; height:22px; ">
  1093. <caption>미리보기</caption>
  1094. <script type="javascript" ev:event="onclick">
  1095. <![CDATA[
  1096. if (model.getValue("/root/main/baseinfo/patinfolist/pid") == "") {
  1097. messageBox("내역을 조회후 [미리보기]하시기 바랍니다.","I");
  1098. return;
  1099. }
  1100. if ( model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z"){ //회신이상일경우는 회신된 내용의 데이타 가져오기
  1101. model.makeValue("/root/send/srchinfo/formrecseq", model.getValue("/root/main/baseinfo/tdminfolist/formrecseq") );
  1102. submit("TRADC62201");
  1103. var replcnts = model.getValue("/root/temp/formdata/replinfo/replcnts");
  1104. }else{
  1105. var replcnts= fCretReplCnts();
  1106. }
  1107. model.makeValue("/root/hidden/replinfo/replcnts" ,replcnts);
  1108. group2.attribute("visibility") ="visible";
  1109. group2.refresh();
  1110. ]]>
  1111. </script>
  1112. </button>
  1113. <button id="btn_replno" class="btn4_letter4" navindex="32" style="left:870px; top:2px; width:80px; height:22px; ">
  1114. <caption>회신제외</caption>
  1115. <script type="javascript" ev:event="DOMActivate">
  1116. <![CDATA[
  1117. if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
  1118. if(submit("TRADC62202")){
  1119. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  1120. if(cnststat == "04"){
  1121. messageBox("[취소] 더이상 수정하실 수","I004");
  1122. return ;
  1123. }else if (cnststat == "30"){
  1124. messageBox("[회신확정] 더이상 수정하실 수","I004");
  1125. return;
  1126. }
  1127. }
  1128. var sel = messageBox("[ 회신제외 ]","S001");
  1129. if (sel != 6) return;
  1130. var replcnts= fCretReplCnts("00"); //회신내역 발생 - cnststat = 상태 (22: 회신 00:미회신)
  1131. var sel = fSendReplForm(replcnts,"");
  1132. if(sel == "cfm"){
  1133. //저장
  1134. var rgstid = model.getValue("/root/main/baseinfo/tdminfolist/rgstid");
  1135. if ((rgstid == "-") || ( rgstid =="")) { //저장하지 않고 바로 회신시 rgstid가 Null발생됨.
  1136. model.setValue("/root/main/baseinfo/tdminfolist/rgstid" , "-");
  1137. model.setValue("/root/main/baseinfo/tdminfolist/rgstdd" , "99991231");
  1138. model.setValue("/root/main/baseinfo/tdminfolist/rgsttm" , "235959");
  1139. }
  1140. model.setValue("/root/temp/popupdata/repltype" , ""); //2010-01-11 tdmS 코드 추가 - 저장자ID 저장하기
  1141. model.makeNode("/root/main/baseinfo/tdminfolist/replid");
  1142. model.makeValue("/root/temp/popupdata/writid", model.getValue("/root/main/baseinfo/tdminfolist/rgstid")); //2010-01-11 저장자ID 추가
  1143. model.makeValue("/root/temp/popupdata/writnm", model.getValue("/root/main/baseinfo/tdminfolist/rgstnm")); //2010-01-11 저장자추가
  1144. model.setValue("/root/temp/popupdata/repltype","tdm");
  1145. model.setValue("/root/temp/popupdata/receivedata" , "/root/main/baseinfo/tdminfolist/replid");
  1146. modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
  1147. var replid = model.getValue("/root/main/baseinfo/tdminfolist/replid");
  1148. if(replid != ""){
  1149. //2010-01-06 로긴ID와 회신자ID가 틀릴경우 회신내용중 [ 회신자: ] 변경저장처리
  1150. var usernm = getUserName();
  1151. if(replid != getUserId()){
  1152. model.setValue("/root/send/userinfo/userid", replid);
  1153. if(submit("TRADC02609")){
  1154. var userid = model.getValue("/root/hidden/userinfo/userid");
  1155. var usernm = model.getValue("/root/hidden/userinfo/usernm");
  1156. if(userid != "" && usernm != ""){
  1157. //model.setValue("/root/main/nstinfo/nutrpninfo/replnm",usernm);
  1158. }else{
  1159. messageBox("일치하는 사용자 정보가 일치하지 않습니다. 사용자 ID를 . ","I007");
  1160. return;
  1161. }
  1162. }
  1163. }
  1164. //
  1165. var Replinfo = "\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : " + usernm ;
  1166. //2010-01-06 PN 회신시 로긴ID와 회신자ID가 틀릴경우 회신내용수동변경데이타 저장안됨
  1167. //var replcnts = gv_Ritem+Replinfo;
  1168. var replcntsArr = replcnts.split("\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : ");
  1169. var replcnts = replcntsArr[0] + Replinfo; //2010-01-06 PN 회신시 로긴ID와 회신자ID가 틀릴경우 회신내용수동변경데이타 저장안됨
  1170. if(fSave()){ // 저장이 성공했을시에 회신
  1171. model.makeNode("/root/main/baseinfo/tdminfolist/pid");
  1172. model.setValue("/root/main/baseinfo/tdminfolist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1173. model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
  1174. model.makeValue("/root/main/baseinfo/tdminfolist/cnststat", "22"); //회신
  1175. model.makeValue("/root/main/baseinfo/tdminfolist/replid", replid); //회신자
  1176. model.makeNode("/root/main/baseinfo/tdminfolist/replcnts"); // 회신내역 노드생성
  1177. model.setValue("/root/main/baseinfo/tdminfolist/replcnts", replcnts); // 회신내역 변수설정
  1178. model.makeValue("/root/main/baseinfo/tdminfolist/cnstcnts20", "Y"); //2010-01-21 adchcnstinfo - cnstcnsts20 미회신여부 등록(Y = 미회신)
  1179. fSetCnstinfo(); // 미의뢰 회신 기본 데이터 생성
  1180. /********************************************************************************************/
  1181. /* 인증저장 */
  1182. /********************************************************************************************/
  1183. /*
  1184. // 1. 의사_간호사인증구분 (의사 : D , 간호사 : N )
  1185. model.makeValue("/root/send/dnorrptinfo/drnuflag", "N");
  1186. // 2. 인증환자정보
  1187. model.copyNode("/root/temp/patinfolist","/root/main/baseinfo/patinfolist");
  1188. // 3. 인증데이터정보
  1189. model.makeNode("/root/send/signdatalist");
  1190. model.copyNode("/root/send/signdatalist","/root/main/baseinfo");
  1191. model.removenode("/root/send/signdatalist/patinfolist");
  1192. model.removenode("/root/send/signdatalist/diaginfolist");
  1193. model.removenode("/root/send/signdatalist/baseinfolist");
  1194. model.removenode("/root/send/signdatalist/tdminfolist2");
  1195. // 4. 서식코드세팅
  1196. var pFormcd = "0000000769";
  1197. if(fSignSaveInho("C", pFormcd ))
  1198. {
  1199. return false;
  1200. }
  1201. */
  1202. /********************************************************************************************/
  1203. //회신
  1204. var success = submit("TXADC00902");
  1205. if(gv_consult == "NR"){
  1206. model.setValue("/root/send/formrecseq", model.getValue("/root/hidden/ret/formrecseq"));
  1207. }
  1208. btn_sea.dispatch("DOMActivate");
  1209. //fCnstResn(); //의뢰이유를 코드명으로 나열하기
  1210. // var v_ptext = "의뢰약물코드:"+ model.getValue("/root/main/baseinfo/tdminfolist/testcd")+", 회신일:"+model.getValue("/root/main/baseinfo/tdminfolist/repldt") +", 의뢰이유:"+model.getValue("/root/main/baseinfo/tdminfolist/cnstresn")+", 전달사항:"+model.getValue("/root/main/baseinfo/tdminfolist/remark")+", 채혈시간thgh:"+model.getValue("/root/main/baseinfo/tdminfolist/trghbcoldd")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/trghbcoltm")+", 채혈시간peak:"+model.getValue("/root/main/baseinfo/tdminfolist/peakbcoldd")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/peakbcoltm")+", 혈중농도thgh:"+model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcen")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcenref")+", 혈중농도peak:"+model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcen")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcenref")+", t1/2:"+model.getValue("/root/main/baseinfo/tdminfolist/t12val")+", vd:"+model.getValue("/root/main/baseinfo/tdminfolist/vdval")+", km:"+model.getValue("/root/main/baseinfo/tdminfolist/kmval")+", vmax:"+model.getValue("/root/main/baseinfo/tdminfolist/vmaxval")+", cl:"+model.getValue("/root/main/baseinfo/tdminfolist/clval")+", 분석방법:"+model.getValue("/root/main/baseinfo/tdminfolist/analymthdcnts")+", 판정결과T:"+model.getValue("/root/main/baseinfo/tdminfolist/tjudgrslt")+", 판정결과P:"+model.getValue("/root/main/baseinfo/tdminfolist/pjudgrslt")+", 자문내용:"+model.getValue("/root/main/baseinfo/tdminfolist/cnstcnts")+", 현재regimen:"+model.getValue("/root/main/baseinfo/tdminfolist/prestregmcnts")+", 추천regimen:"+model.getValue("/root/main/baseinfo/tdminfolist/recmregmcnts")+", 참고사항:"+model.getValue("/root/main/baseinfo/tdminfolist/cmt")+", recomendation"+model.getValue("/root/main/baseinfo/tdminfolist/recmcnts");
  1211. // var v_stext = zesfSignData( v_ptext , getUserId(), true );
  1212. // model.setValue( "/root/stext", v_stext );
  1213. // model.setValue("/root/main/baseinfo/tdminfolist/formrecseq", model.getValue("/root/send/formrecseq"));
  1214. // model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
  1215. //인증저장 성공시 statflag 업데이트
  1216. // if( model.getValue("/root/stext") !="") {
  1217. // submit("TXADC00902");
  1218. // btn_sea.dispatch("DOMActivate");
  1219. // }
  1220. }
  1221. }
  1222. model.refresh();
  1223. }
  1224. }else {
  1225. messageBox("등록번호는 필수입력","I009");
  1226. return false;
  1227. }
  1228. ]]>
  1229. </script>
  1230. </button>
  1231. <button id="button4" class="btn3_letter6" style="left:164px; top:3px; width:104px; height:22px; ">
  1232. <caption>통합기록조회</caption>
  1233. <script type="javascript" ev:event="DOMActivate">
  1234. <![CDATA[
  1235. setParameter("SMMRI00400_param_pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1236. open("SMMRI00400");
  1237. ]]>
  1238. </script>
  1239. </button>
  1240. <button id="button5" class="btn3_letter6" style="left:482px; top:3px; width:104px; height:22px; ">
  1241. <caption>Consult관리</caption>
  1242. <script type="javascript" ev:event="DOMActivate">
  1243. <![CDATA[
  1244. //pid▦orddd▦cretno▦ioflag▦orddeptcd▦orddrid▦
  1245. var sParam = model.getValue("/root/main/baseinfo/patinfolist/pid") + "▦" + "" + "▦" + "" + "▦" + "" + "▦" + "" + "▦" + "";
  1246. setParameter("SMMMR05000_param_pinfo", sParam);
  1247. open("SMMMR05000");
  1248. ]]>
  1249. </script>
  1250. </button>
  1251. <button id="btn_emr_careplan" class="btn3_letter5" navindex="306" visibility="hidden" style="left:590px; top:3px; width:92px; height:22px; ">
  1252. <caption>CarePlan</caption>
  1253. <script type="javascript" ev:event="DOMActivate">
  1254. <![CDATA[
  1255. //1.JCI Care Plan 통합조회 화면 개발 연동
  1256. var pid= model.getValue("/root/main/baseinfo/patinfolist/pid")
  1257. setParameter("SMMRJ00100_pid", pid);
  1258. modal("SMMRJ00100"); // CarePlan 연동
  1259. ]]>
  1260. </script>
  1261. </button>
  1262. </group>
  1263. <group id="group1" style="left:0px; top:40px; width:1195px; height:744px; ">
  1264. <caption id="caption51" class="cell_1" style="left:10px; top:485px; width:170px; height:225px; vertical-align:middle; ">19)Recommendation</caption>
  1265. <caption id="caption49" style="left:536px; top:433px; width:80px; height:20px; vertical-align:middle; "/>
  1266. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:9px; top:29px; width:551px; height:95px; background-color:#fffbf2; border-color:#ffd799; "/>
  1267. <input id="ipt_trghbcoldd" ref="/root/main/baseinfo/tdminfolist/trghbcoldd" class="input_default" navindex="10" inputtype="date" style="left:185px; top:310px; width:100px; height:19px; "/>
  1268. <line id="line8" class="line_1" style="x1:569px; y1:24px; x2:1192px; y2:24px; "/>
  1269. <output id="opt_cnstdrid" ref="/root/main/baseinfo/patinfolist/cnstdrnm" class="output_search" style="left:403px; top:94px; width:150px; height:19px; "/>
  1270. <input id="ipt_trghbcoltm" ref="/root/main/baseinfo/tdminfolist/trghbcoltm" class="input_default" navindex="11" format="hh:nn" style="left:290px; top:310px; width:52px; height:19px; "/>
  1271. <line id="line9" class="line_3" style="x1:569px; y1:125px; x2:1192px; y2:125px; "/>
  1272. <output id="output5" ref="/root/main/baseinfo/patinfolist/cnstdd" class="output_search" format="yyyy-mm-dd hh:nn" style="left:403px; top:74px; width:150px; height:19px; "/>
  1273. <line id="line31" class="line_1" style="x1:8px; y1:480px; x2:1193px; y2:480px; "/>
  1274. <line id="line20" class="line_2" style="x1:595px; y1:282px; x2:1190px; y2:282px; "/>
  1275. <output id="opt_repldt" ref="/root/main/baseinfo/tdminfolist/repldt" class="output_fix" format="yyyy-mm-dd hh:nn" style="left:435px; top:235px; width:150px; height:19px; "/>
  1276. <input id="ipt_peakbcoldd" ref="/root/main/baseinfo/tdminfolist/peakbcoldd" class="input_default" navindex="12" inputtype="date" style="left:427px; top:310px; width:100px; height:19px; "/>
  1277. <output id="output6" ref="/root/main/baseinfo/patinfolist/bcoldt" class="output_search" format="yyyy-mm-dd hh:nn" style="left:403px; top:54px; width:150px; height:19px; "/>
  1278. <caption id="caption50" style="left:332px; top:410px; width:65px; height:20px; vertical-align:middle; ">ml/min/kg</caption>
  1279. <line id="line32" class="line_3" style="x1:8px; y1:713px; x2:1193px; y2:713px; "/>
  1280. <caption id="caption40" class="cell_1" style="left:185px; top:433px; width:75px; height:23px; vertical-align:middle; ">Km</caption>
  1281. <line id="line21" class="line_2" style="x1:595px; y1:307px; x2:1190px; y2:307px; "/>
  1282. <line id="line10" class="line_3" style="x1:8px; y1:202px; x2:1193px; y2:202px; "/>
  1283. <output id="output7" ref="/root/main/baseinfo/patinfolist/hngnm" class="output_search" style="left:403px; top:34px; width:100px; height:19px; "/>
  1284. <caption id="caption30" class="cell_1" style="left:593px; top:234px; width:160px; height:23px; vertical-align:middle; ">13) 분석방법</caption>
  1285. <output id="output12" ref="/root/main/baseinfo/patinfolist/roomcd" class="output_search" style="left:195px; top:74px; width:63px; height:19px; "/>
  1286. <caption id="caption41" class="cell_1" style="left:185px; top:408px; width:75px; height:23px; vertical-align:middle; ">CL</caption>
  1287. <line id="line22" class="line_2" style="x1:595px; y1:330px; x2:1190px; y2:330px; "/>
  1288. <line id="line11" class="line_2" style="x1:8px; y1:177px; x2:1193px; y2:177px; "/>
  1289. <output id="output8" ref="/root/main/baseinfo/patinfolist/sna" class="output_search" style="left:508px; top:34px; width:45px; height:19px; "/>
  1290. <caption id="caption31" class="cell_1" style="left:593px; top:259px; width:160px; height:23px; vertical-align:middle; ">14) 판정결과(T)</caption>
  1291. <output id="output13" ref="/root/main/baseinfo/tdminfolist2/cnstdrugnm" class="output_fix" style="left:220px; top:235px; width:140px; height:19px; "/>
  1292. <input id="input21" ref="/root/main/baseinfo/baseinfolist/albuminval" class="input_default" navindex="6" maxbyte="10" style="left:794px; top:155px; width:75px; height:19px; "/>
  1293. <caption id="caption42" class="cell_1" style="left:400px; top:383px; width:60px; height:23px; vertical-align:middle; ">Vd</caption>
  1294. <line id="line23" class="line_2" style="x1:595px; y1:375px; x2:1190px; y2:375px; "/>
  1295. <output id="opt_cnstresn" ref="/root/main/baseinfo/tdminfolist2/cnstresn" class="output_fix" style="left:105px; top:260px; width:480px; height:19px; "/>
  1296. <input id="ipt_peakbcoltm" ref="/root/main/baseinfo/tdminfolist/peakbcoltm" class="input_default" navindex="13" format="hh:nn" style="left:532px; top:310px; width:52px; height:19px; "/>
  1297. <line id="line12" class="line_1" style="x1:8px; y1:229px; x2:1193px; y2:229px; "/>
  1298. <caption id="caption20" class="tit_2" style="left:16px; top:214px; width:95px; height:13px; ">회신내용(I)</caption>
  1299. <caption id="caption32" class="cell_1" style="left:593px; top:284px; width:160px; height:23px; vertical-align:middle; ">판정결과(P)</caption>
  1300. <caption id="caption54" class="cell_1" style="left:697px; top:154px; width:91px; height:23px; vertical-align:middle; ">5) Albumin</caption>
  1301. <line id="line24" class="line_2" style="x1:10px; y1:405px; x2:585px; y2:405px; "/>
  1302. <caption id="caption43" class="cell_1" style="left:400px; top:433px; width:60px; height:23px; vertical-align:middle; ">Vmax</caption>
  1303. <input id="ipt_testcd" ref="/root/main/baseinfo/tdminfolist2/testcd" class="input_default" disabled="true" navindex="8" maxbyte="20" _chartype="upper" style="left:105px; top:235px; width:110px; height:19px; ">
  1304. <script type="javascript" ev:event="onkeydown">
  1305. <![CDATA[
  1306. model.makeNode("/root/main/baseinfo/tdminfolist/testcd");
  1307. inputEnterKey("btn_cnst","DOMActivate");
  1308. ]]>
  1309. </script>
  1310. </input>
  1311. <line id="line13" class="line_2" style="x1:10px; y1:307px; x2:585px; y2:307px; "/>
  1312. <caption id="caption21" class="cell_1" style="left:185px; top:154px; width:75px; height:23px; vertical-align:middle; ">2) 체중(kg)</caption>
  1313. <caption id="caption10" class="search_name" style="left:13px; top:57px; width:86px; height:17px; ">입원일 :</caption>
  1314. <caption id="caption1" class="tit_2" style="left:14px; top:134px; width:95px; height:13px; ">기본정보</caption>
  1315. <caption id="caption33" class="cell_1" style="left:593px; top:309px; width:160px; height:21px; vertical-align:middle; ">15) 자문내용</caption>
  1316. <caption id="caption44" class="cell_1" style="left:593px; top:377px; width:160px; height:43px; vertical-align:middle; ">17) 추천 Regimen</caption>
  1317. <line id="line25" class="line_2" style="x1:10px; y1:430px; x2:585px; y2:430px; "/>
  1318. <select1 id="cmb_tjudgrslt" ref="/root/main/baseinfo/tdminfolist/tjudgrslt" class="combo_default" navindex="24" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:757px; top:260px; width:435px; height:19px; ">
  1319. <choices>
  1320. <item>
  1321. <label>Upper</label>
  1322. <value>Upper</value>
  1323. </item>
  1324. <item>
  1325. <label>Low</label>
  1326. <value>Low</value>
  1327. </item>
  1328. <item>
  1329. <label>Below</label>
  1330. <value>Below</value>
  1331. </item>
  1332. <item>
  1333. <label>Steady State is not yet</label>
  1334. <value>Steady State is not yet</value>
  1335. </item>
  1336. <item>
  1337. <label>Wrong Sampling Time</label>
  1338. <value>Wrong Sampling Time</value>
  1339. </item>
  1340. <item>
  1341. <label>Within</label>
  1342. <value>Within</value>
  1343. </item>
  1344. <item>
  1345. <label>기타</label>
  1346. <value>기타</value>
  1347. </item>
  1348. </choices>
  1349. </select1>
  1350. <input id="input12" ref="/root/main/baseinfo/tdminfolist2/remark" class="input_default" navindex="9" style="left:105px; top:285px; width:480px; height:19px; "/>
  1351. <line id="line14" class="line_2" style="x1:10px; y1:330px; x2:585px; y2:330px; "/>
  1352. <caption id="caption22" class="cell_1" style="left:345px; top:154px; width:91px; height:23px; vertical-align:middle; ">3) Scr(mg/dL)</caption>
  1353. <caption id="caption11" class="search_name" style="left:13px; top:77px; width:97px; height:17px; ">병동/병실 :</caption>
  1354. <caption id="caption2" class="tit_2" style="left:13px; top:9px; width:95px; height:13px; ">환자정보</caption>
  1355. <line id="line15" class="line_2" style="x1:10px; y1:357px; x2:585px; y2:357px; "/>
  1356. <caption id="caption34" class="cell_1" style="left:593px; top:332px; width:160px; height:43px; vertical-align:middle; ">16) 현재 Regimen</caption>
  1357. <caption id="caption45" class="cell_1" style="left:593px; top:422px; width:160px; height:33px; vertical-align:middle; ">18) 참고사항</caption>
  1358. <input id="ipt_trghblodconcen" ref="/root/main/baseinfo/tdminfolist/trghblodconcen" class="input_default" navindex="14" maxbyte="20" style="left:185px; top:335px; width:75px; height:19px; "/>
  1359. <select1 id="cmb_pjudgrslt" ref="/root/main/baseinfo/tdminfolist/pjudgrslt" class="combo_default" navindex="25" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:757px; top:285px; width:435px; height:19px; ">
  1360. <choices>
  1361. <item>
  1362. <label>Upper</label>
  1363. <value>Upper</value>
  1364. </item>
  1365. <item>
  1366. <label>Low</label>
  1367. <value>Low</value>
  1368. </item>
  1369. <item>
  1370. <label>Below</label>
  1371. <value>Below</value>
  1372. </item>
  1373. <item>
  1374. <label>Within</label>
  1375. <value>Within</value>
  1376. </item>
  1377. <item>
  1378. <label>Wrong Sampling Time</label>
  1379. <value>Wrong Sampling Time</value>
  1380. </item>
  1381. </choices>
  1382. </select1>
  1383. <caption id="caption23" class="cell_1" style="left:520px; top:154px; width:91px; height:23px; vertical-align:middle; ">4) Ccr(ml/min)</caption>
  1384. <caption id="caption12" class="search_name" style="left:13px; top:97px; width:86px; height:17px; ">진료과 :</caption>
  1385. <button id="button61" class="icon_search" visibility="hidden" style="left:263px; top:34px; width:16px; height:16px; ">
  1386. <caption/>
  1387. </button>
  1388. <caption id="caption3" class="search_name" style="left:13px; top:37px; width:86px; height:17px; ">등록번호 :</caption>
  1389. <button id="button9" class="icon_search" style="left:135px; top:590px; width:16px; height:16px; ">
  1390. <caption/>
  1391. </button>
  1392. <caption id="caption46" style="left:334px; top:385px; width:61px; height:20px; vertical-align:middle; ">hr</caption>
  1393. <line id="line27" class="line_2" style="x1:595px; y1:420px; x2:1190px; y2:420px; "/>
  1394. <input id="ipt_peakblodconcen" ref="/root/main/baseinfo/tdminfolist/peakblodconcen" class="input_default" navindex="16" maxbyte="20" style="left:185px; top:361px; width:75px; height:19px; "/>
  1395. <caption id="caption35" style="left:534px; top:335px; width:55px; height:20px; vertical-align:middle; ">mcg/ml</caption>
  1396. <select1 id="cmb_analymthdcnts" ref="/root/main/baseinfo/tdminfolist/analymthdcnts" class="combo_default" navindex="23" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:757px; top:235px; width:435px; height:19px; ">
  1397. <choices>
  1398. <item>
  1399. <label>Population</label>
  1400. <value>Population</value>
  1401. </item>
  1402. <item>
  1403. <label>Single Point</label>
  1404. <value>Single Point</value>
  1405. </item>
  1406. <item>
  1407. <label>Bayesian</label>
  1408. <value>Bayesian</value>
  1409. </item>
  1410. <item>
  1411. <label>Simplex</label>
  1412. <value>Simplex</value>
  1413. </item>
  1414. <item>
  1415. <label>User</label>
  1416. <value>User</value>
  1417. </item>
  1418. <item>
  1419. <label>기타</label>
  1420. <value>기타</value>
  1421. </item>
  1422. </choices>
  1423. </select1>
  1424. <line id="line16" class="line_2" style="x1:10px; y1:256px; x2:585px; y2:256px; "/>
  1425. <caption id="caption24" class="cell_1" style="left:347px; top:309px; width:75px; height:21px; vertical-align:middle; ">Peak</caption>
  1426. <caption id="caption13" class="search_name" style="left:288px; top:97px; width:86px; height:17px; ">의뢰의사:</caption>
  1427. <caption id="caption4" class="cell_1" style="left:8px; top:284px; width:92px; height:23px; vertical-align:middle; ">9) 전달사항</caption>
  1428. <button id="btn_cnst" class="btn1_letter2" visibility="hidden" style="left:105px; top:205px; width:56px; height:22px; ">
  1429. <caption>조회</caption>
  1430. <script type="javascript" ev:event="DOMActivate">
  1431. <![CDATA[
  1432. model.resetInstanceNode("/root/main/tdminfo/tdminfolist2/trgh");
  1433. model.resetInstanceNode("/root/main/tdminfo/tdminfolist3/peak");
  1434. //model.setValue("/root/send/testcd",model.getValue("/root/main/tdminfo/tdminfolist/testcd"));
  1435. // 2008-09-04 output13 의 값이 TDM기준정보의 코드 값.
  1436. if (output13.value == '' ){
  1437. model.setValue("/root/send/testcd", ipt_testcd.currentText);
  1438. }else{
  1439. model.setValue("/root/send/testcd",output13.value );
  1440. }
  1441. submit("TRADC00902");
  1442. // TDM기준정보의 코드별 각각의 Unit 가져오기
  1443. caption35.text=model.getValue("/root/main/tdminfo/tdminfolist/blodconcen") // TDM Unit
  1444. caption37.text=model.getValue("/root/main/tdminfo/tdminfolist/blodconcen") // TDM Unit
  1445. caption46.text=model.getValue("/root/main/tdminfo/tdminfolist/t12val") // T1/2 Unit
  1446. caption47.text=model.getValue("/root/main/tdminfo/tdminfolist/vdval") // Vd Unit
  1447. caption48.text=model.getValue("/root/main/tdminfo/tdminfolist/kmval") // Km Unit
  1448. caption49.text=model.getValue("/root/main/tdminfo/tdminfolist/vmaxval") // Vmax Unit
  1449. caption50.text=model.getValue("/root/main/tdminfo/tdminfolist/clval") // CL Unit
  1450. model.refresh();
  1451. ]]>
  1452. </script>
  1453. </button>
  1454. <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:110px; top:5px; width:56px; height:17px; ">
  1455. <caption>조회</caption>
  1456. <script type="javascript" ev:event="DOMActivate">
  1457. <![CDATA[
  1458. model.setValue("/root/send/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1459. submit("TRADC00901");
  1460. // 미의뢰회신 전역변수 변경
  1461. // 의뢰시 발생되는 formrecseq 존재여부 체크
  1462. if(formrecseq == ""){
  1463. gv_consult = "NR";
  1464. fCretCnstinfo();
  1465. }
  1466. if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
  1467. fCnstResn(); //의뢰이유를 코드명으로 나열하기
  1468. //회신상태
  1469. if(model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z" ) {
  1470. btn_save.disabled = true;
  1471. btn_repl.disabled = true;
  1472. btn_del.disabled = true;
  1473. btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
  1474. btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
  1475. }
  1476. //저장상태
  1477. else {
  1478. btn_save.disabled = false;
  1479. btn_repl.disabled = false;
  1480. btn_del.disabled = false;
  1481. btn_replno.disabled = false; //2010-01-21 [미회신]버튼 활성화
  1482. btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
  1483. }
  1484. }else model.setFocus("ipt_pid");
  1485. if ( checkOpener() ) { //2010-01-18 등록번호별로 사용할수도 있음
  1486. opener.btn_sea.dispatch("DOMActivate");
  1487. opener.model.refresh();
  1488. }
  1489. ]]>
  1490. </script>
  1491. </button>
  1492. <caption id="caption47" style="left:536px; top:385px; width:60px; height:20px; vertical-align:middle; ">mcg/ml</caption>
  1493. <input id="ipt_t12va" ref="/root/main/baseinfo/tdminfolist/t12val" class="input_default" navindex="18" maxbyte="10" style="left:264px; top:384px; width:66px; height:19px; "/>
  1494. <caption id="caption36" style="left:265px; top:335px; width:30px; height:20px; vertical-align:middle; ">(Ref)</caption>
  1495. <select1 id="cmb_cnstcnts" ref="/root/main/baseinfo/tdminfolist/cnstcnts" class="combo_default" navindex="26" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:757px; top:310px; width:435px; height:19px; ">
  1496. <choices>
  1497. <item>
  1498. <label>유지</label>
  1499. <value>유지</value>
  1500. </item>
  1501. <item>
  1502. <label>필요성고려</label>
  1503. <value>필요성고려</value>
  1504. </item>
  1505. <item>
  1506. <label>용량설정</label>
  1507. <value>용량설정</value>
  1508. </item>
  1509. <item>
  1510. <label>투여경로 변경</label>
  1511. <value>투여경로 변경</value>
  1512. </item>
  1513. <item>
  1514. <label>증량</label>
  1515. <value>증량</value>
  1516. </item>
  1517. <item>
  1518. <label>감량</label>
  1519. <value>감량</value>
  1520. </item>
  1521. <item>
  1522. <label>Hold</label>
  1523. <value>Hold</value>
  1524. </item>
  1525. <item>
  1526. <label>기타</label>
  1527. <value>기타</value>
  1528. </item>
  1529. <item>
  1530. <label>회신제외</label>
  1531. <value>회신제외</value>
  1532. </item>
  1533. </choices>
  1534. </select1>
  1535. <caption id="caption25" class="cell_1" style="left:365px; top:234px; width:66px; height:23px; vertical-align:middle; ">7) 회신일</caption>
  1536. <line id="line17" class="line_2" style="x1:10px; y1:282px; x2:585px; y2:282px; "/>
  1537. <caption id="caption14" class="search_name" style="left:288px; top:77px; width:86px; height:17px; ">의뢰일시 :</caption>
  1538. <caption id="caption5" class="cell_1" style="left:8px; top:309px; width:92px; height:21px; vertical-align:middle; ">10) 채혈시간</caption>
  1539. <line id="line1" class="line_1" style="x1:8px; y1:149px; x2:1193px; y2:149px; "/>
  1540. <caption id="caption6" class="cell_1" style="left:8px; top:332px; width:92px; height:50px; vertical-align:middle; ">11) 혈중농도</caption>
  1541. <caption id="caption48" style="left:333px; top:435px; width:65px; height:20px; vertical-align:middle; "/>
  1542. <line id="line29" class="line_3" style="x1:8px; y1:456px; x2:1193px; y2:456px; "/>
  1543. <input id="ipt_kmval" ref="/root/main/baseinfo/tdminfolist/kmval" class="input_default" navindex="20" maxbyte="10" style="left:264px; top:434px; width:66px; height:19px; "/>
  1544. <caption id="caption37" style="left:534px; top:361px; width:55px; height:20px; vertical-align:middle; ">mcg/ml</caption>
  1545. <select1 id="cmb_trghblodconcenref" ref="/root/main/baseinfo/tdminfolist/trghblodconcenref" class="combo_default" navindex="15" appearance="minimal" editmode="inputsearch" style="left:305px; top:335px; width:225px; height:19px; ">
  1546. <choices>
  1547. <itemset nodeset="/root/main/tdminfo/tdminfolist2">
  1548. <label ref="trgh"/>
  1549. <value ref="trgh"/>
  1550. </itemset>
  1551. </choices>
  1552. </select1>
  1553. <line id="line18" class="line_2" style="x1:10px; y1:382px; x2:585px; y2:382px; "/>
  1554. <caption id="caption26" class="cell_1" style="left:105px; top:309px; width:75px; height:21px; vertical-align:middle; ">Trough</caption>
  1555. <input id="input1" ref="/root/main/baseinfo/baseinfolist/wt" class="input_default" navindex="3" maxbyte="10" style="left:265px; top:155px; width:75px; height:19px; "/>
  1556. <caption id="caption15" class="cell_1" style="left:8px; top:154px; width:92px; height:23px; vertical-align:middle; ">1) 키(cm)</caption>
  1557. <line id="line2" class="line_1" style="x1:9px; y1:24px; x2:562px; y2:24px; "/>
  1558. <input id="ipt_clval" ref="/root/main/baseinfo/tdminfolist/clval" class="input_default" navindex="22" maxbyte="10" style="left:264px; top:409px; width:66px; height:19px; "/>
  1559. <select1 id="cmb_peakblodconcenref" ref="/root/main/baseinfo/tdminfolist/peakblodconcenref" class="combo_default" navindex="17" appearance="minimal" editmode="inputsearch" style="left:305px; top:361px; width:225px; height:19px; ">
  1560. <choices>
  1561. <itemset nodeset="/root/main/tdminfo/tdminfolist3">
  1562. <label ref="peak"/>
  1563. <value ref="peak"/>
  1564. </itemset>
  1565. </choices>
  1566. </select1>
  1567. <caption id="caption38" style="left:265px; top:361px; width:30px; height:20px; vertical-align:middle; ">(Ref)</caption>
  1568. <textarea id="tar_prestregmcnts" ref="/root/main/baseinfo/tdminfolist/prestregmcnts" navindex="27" maxbyte="200" style="left:757px; top:333px; width:435px; height:40px; "/>
  1569. <caption id="caption27" class="cell_1" style="left:105px; top:334px; width:75px; height:23px; vertical-align:middle; ">Trough</caption>
  1570. <caption id="caption16" class="search_name" style="left:288px; top:57px; width:115px; height:17px; ">채혈일시 :</caption>
  1571. <line id="line3" class="line_2" style="x1:9px; y1:54px; x2:559px; y2:54px; "/>
  1572. <caption id="caption7" class="cell_1" style="left:8px; top:179px; width:92px; height:23px; vertical-align:middle; ">5) 상병명</caption>
  1573. <input id="ipt_pid" ref="/root/main/baseinfo/patinfolist/pid" class="input_s_essential" navindex="1" maxbyte="10" style="left:108px; top:34px; width:150px; height:19px; ">
  1574. <script type="javascript" ev:event="xforms-value-changed">
  1575. <![CDATA[
  1576. //btn_sea.dispatch("DOMActivate"); //2010-01-18 등록번호를 Clear하는 현상이 있음
  1577. ]]>
  1578. </script>
  1579. <script type="javascript" ev:event="onkeydown">
  1580. <![CDATA[
  1581. //2010-01-18 등록번호별 조회 (등록번호입력후 Enter시 입력된 등록번호의 데이타 가져오기)
  1582. if(event.keyCode == "13") {
  1583. model.setValue("/root/main/baseinfo/patinfolist/pid" , ipt_pid.currentText);
  1584. model.setValue("/root/send/pid" , ipt_pid.currentText);
  1585. model.setValue("/root/send/formcd" , "0000000769"); //TDM formcd
  1586. grd_patreqlist.visible = false;
  1587. btn_patreqlist.dispatch("onclick");
  1588. }
  1589. ]]>
  1590. </script>
  1591. </input>
  1592. <line id="line19" class="line_2" style="x1:595px; y1:257px; x2:1190px; y2:257px; "/>
  1593. <textarea id="tar_recmregmcnts" ref="/root/main/baseinfo/tdminfolist/recmregmcnts" navindex="28" maxbyte="200" style="left:757px; top:378px; width:435px; height:40px; "/>
  1594. <input id="ipt_vdval" ref="/root/main/baseinfo/tdminfolist/vdval" class="input_default" navindex="19" maxbyte="10" style="left:464px; top:384px; width:66px; height:19px; "/>
  1595. <caption id="caption39" class="cell_1" style="left:185px; top:383px; width:75px; height:23px; vertical-align:middle; ">T1/2</caption>
  1596. <caption id="caption28" class="cell_1" style="left:105px; top:359px; width:75px; height:23px; vertical-align:middle; ">Peak</caption>
  1597. <input id="input3" ref="/root/main/baseinfo/baseinfolist/ht" class="input_default" navindex="2" maxbyte="10" style="left:105px; top:155px; width:75px; height:19px; "/>
  1598. <caption id="caption17" class="search_name" style="left:288px; top:37px; width:86px; height:17px; ">성명 :</caption>
  1599. <line id="line4" class="line_2" style="x1:9px; y1:74px; x2:559px; y2:74px; "/>
  1600. <caption id="caption8" class="cell_1" style="left:8px; top:234px; width:92px; height:23px; vertical-align:middle; ">6) 의뢰약물</caption>
  1601. <caption id="caption29" class="cell_1" style="left:8px; top:384px; width:172px; height:72px; vertical-align:middle; ">12) PK Parameters</caption>
  1602. <textarea id="tar_cmt" ref="/root/main/baseinfo/tdminfolist/cmt" navindex="29" maxlength="65" maxbyte="66" style="left:757px; top:423px; width:435px; height:30px; ">
  1603. <script type="javascript" ev:event="onmaxlength">
  1604. <![CDATA[
  1605. if(messageBox("입력가능범위를","E003")=="1"){
  1606. model.setFocus("tar_recmcnts");
  1607. }
  1608. ]]>
  1609. </script>
  1610. </textarea>
  1611. <input id="ipt_vmaxval" ref="/root/main/baseinfo/tdminfolist/vmaxval" class="input_default" navindex="21" maxbyte="10" style="left:464px; top:434px; width:66px; height:19px; "/>
  1612. <input id="input4" ref="/root/main/baseinfo/baseinfolist/scrval" class="input_default" navindex="4" maxbyte="10" style="left:440px; top:155px; width:75px; height:19px; "/>
  1613. <caption id="caption18" class="tit_2" style="left:574px; top:9px; width:95px; height:13px; ">상병정보</caption>
  1614. <output id="output1" ref="/root/main/baseinfo/patinfolist/wardcd" class="output_search" style="left:108px; top:74px; width:82px; height:19px; "/>
  1615. <line id="line5" class="line_2" style="x1:9px; y1:94px; x2:559px; y2:94px; "/>
  1616. <caption id="caption9" class="cell_1" style="left:8px; top:259px; width:92px; height:23px; vertical-align:middle; ">8) 의뢰이유</caption>
  1617. <textarea id="tar_recmcnts" ref="/root/main/baseinfo/tdminfolist/recmcnts" navindex="30" maxlength="860" maxbyte="860" style="left:185px; top:485px; width:1007px; height:225px; ">
  1618. <script type="javascript" ev:event="onmaxlength">
  1619. <![CDATA[
  1620. if(messageBox("입력가능범위를","E003")=="1"){
  1621. model.setFocus("tar_recmcnts");
  1622. }
  1623. ]]>
  1624. </script>
  1625. </textarea>
  1626. <input id="input5" ref="/root/main/baseinfo/baseinfolist/ccrval" class="input_default" navindex="5" maxbyte="10" style="left:616px; top:155px; width:75px; height:19px; "/>
  1627. <output id="output2" ref="/root/main/baseinfo/patinfolist/orddd" class="output_search" format="yyyy-mm-dd" style="left:108px; top:54px; width:150px; height:19px; "/>
  1628. <line id="line6" class="line_3" style="x1:9px; y1:125px; x2:562px; y2:125px; "/>
  1629. <input id="input6" ref="/root/main/baseinfo/baseinfolist/sikcnm" class="input_default" navindex="7" maxbyte="100" style="left:105px; top:181px; width:764px; height:19px; "/>
  1630. <datagrid id="datagrid1" nodeset="/root/main/baseinfo/diaginfolist" scroll="vertical" autoresize="true" backcoloralternate="#f0f0f0" caption="상병코드^순서^분류^R/O^KA DR^who^상병명" colsep="^" colwidth="81, 36, 40, 36, 54, 62, 275" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:569px; top:29px; width:623px; height:95px; ">
  1631. <col ref="diagcd"/>
  1632. <col ref="diagno"/>
  1633. <col ref="bun"/>
  1634. <col ref="ro"/>
  1635. <col ref="kadr"/>
  1636. <col ref="who"/>
  1637. <col ref="diagengnm"/>
  1638. <script type="javascript" ev:event="ondblclick">
  1639. <![CDATA[
  1640. model.setValue("/root/main/baseinfo/baseinfolist/sikcnm", model.getValue("/root/main/baseinfo/diaginfolist[" + datagrid1.row + "]/diagengnm"));
  1641. model.refresh();
  1642. ]]>
  1643. </script>
  1644. </datagrid>
  1645. <output id="output3" ref="/root/main/baseinfo/patinfolist/cnstdeptnm" class="output_search" style="left:108px; top:94px; width:150px; height:19px; "/>
  1646. <line id="line7" class="line_2" style="x1:9px; y1:114px; x2:559px; y2:114px; "/>
  1647. <input id="ipt_rgstseqno" ref="/root/main/baseinfo/tdminfolist/rgstseqno" class="input_default" visibility="hidden" style="left:460px; top:409px; width:45px; height:19px; "/>
  1648. <input id="ipt_statflag" ref="/root/main/baseinfo/tdminfolist/statflag" class="input_default" visibility="hidden" style="left:510px; top:410px; width:30px; height:19px; "/>
  1649. <select1 id="combo1" ref="/root/hidden/formrecseq" class="combo_default" navindex="15" appearance="minimal" style="left:395px; top:3px; width:145px; height:19px; ">
  1650. <choices>
  1651. <itemset nodeset="/root/combo/reqlist/reqlist">
  1652. <label ref="reqdd"/>
  1653. <value ref="formrecseq"/>
  1654. </itemset>
  1655. </choices>
  1656. <script type="javascript" ev:event="xforms-value-changed">
  1657. <![CDATA[
  1658. //model.setValue("/root/send/pid", model.getValue("/root/main/baseinfo/patinfolist/pid")); // 2008-10-01 마이그레이션
  1659. //model.setValue("/root/send/reqdd", combo1.label); // 2008-10-01 마이그레이션
  1660. model.setValue("/root/send/formrecseq", combo1.value);
  1661. model.setValue("/root/send/rgstseqno", model.getXPathValue("/root/combo/reqlist/reqlist[formrecseq = '" + combo1.value + "']/rgstseqno"));
  1662. model.setValue("/root/send/cnstseqno", model.getXPathValue("/root/combo/reqlist/reqlist[formrecseq = '" + combo1.value + "']/cnstseqno"));
  1663. // model.setValue("/root/send/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1664. // model.setValue("/root/send/cretno", model.getValue("/root/temp/cnstinfo/cretno"));
  1665. // model.setValue("/root/send/orddd", model.getValue("/root/temp/cnstinfo/orddd"));
  1666. // model.setValue("/root/send/prcpgenrflag", model.getValue("/root/temp/cnstinfo/prcpgenrflag"));
  1667. // model.setValue("/root/send/rgstseqno", model.getValue("/root/temp/cnstinfo/rgstseqno"));
  1668. // model.setValue("/root/send/reqdd", model.getValue("/root/temp/cnstinfo/cnstdd")); //2008-10-01 마이그레이션 환자정보조회
  1669. submit("TRADC00901");
  1670. fCnstResn();
  1671. //회신상태
  1672. if(model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z" ) {
  1673. btn_save.disabled = true;
  1674. btn_repl.disabled = true;
  1675. btn_del.disabled = true;
  1676. btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
  1677. btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
  1678. }
  1679. //저장상태
  1680. else {
  1681. btn_save.disabled = false;
  1682. btn_repl.disabled = false;
  1683. btn_del.disabled = false;
  1684. btn_replno.disabled = false; //2010-01-21 [미회신]버튼 활성화
  1685. btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
  1686. }
  1687. ]]>
  1688. </script>
  1689. </select1>
  1690. <caption id="caption52" class="tit_2" style="left:17px; top:465px; width:95px; height:13px; vertical-align:middle; ">회신내용(II)</caption>
  1691. <button id="btn_patreqlist" class="icon_startend" visibility="visible" style="left:546px; top:4px; width:16px; height:16px; ">
  1692. <caption/>
  1693. <script type="javascript" ev:event="onclick">
  1694. <![CDATA[
  1695. if (grd_patreqlist.visible == true ) {
  1696. grd_patreqlist.visible = false;
  1697. }else {
  1698. model.resetInstanceNode("/root/main/patreqlistinfo/reqlist");
  1699. model.resetInstanceNode("/root/send");
  1700. model.setValue("/root/send/pid" , model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1701. model.setValue("/root/send/formcd" , "0000000769") //TDM formcd
  1702. submit("TRADC00103");
  1703. if (getNodesetCount("/root/main/patreqlistinfo/reqlist") == "0" ) {
  1704. messageBox("[ " + model.getValue("/root/send/pid") + " ] 의뢰내역이 없습니다. 등록번호를 ","I007");
  1705. btn_save.disabled = true;
  1706. btn_repl.disabled = true;
  1707. btn_del.disabled = true;
  1708. btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
  1709. btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가
  1710. submit("TRADC00901"); //화면 Clear하기 위함
  1711. return;
  1712. }
  1713. //데이타가 Clear되는 현상이 있어 첫번째 것으로 조회시킴
  1714. // model.setValue("/root/send/pid" , model.getValue("root/main/patreqlistinfo/reqlist[1]/pid")); //등록번호
  1715. // model.setValue("/root/send/formrecseq" , model.getValue("root/main/patreqlistinfo/reqlist[1]/formrecseq")); //formrecseq -저장시 Send/formrecseq가져간다.
  1716. // model.setValue("/root/send/cnstseqno" , model.getValue("root/main/patreqlistinfo/reqlist[1]/cnstseqno")); //의뢰순번
  1717. // model.setValue("/root/send/rgstseqno" , model.getValue("root/main/patreqlistinfo/reqlist[1]/rgstseqno")); //저장순번
  1718. // model.setValue("/root/send/testcd" , model.getValue("root/main/patreqlistinfo/reqlist[1]/drugcd")); //의뢰약물
  1719. // model.setValue("/root/send/cretno" , model.getValue("root/main/patreqlistinfo/reqlist[1]/cretno")); //cretno
  1720. // model.setValue("/root/send/orddd" , model.getValue("root/main/patreqlistinfo/reqlist[1]/orddd")); //진료/입원일자
  1721. // model.setValue("/root/send/prcpgenrflag" , model.getValue("root/main/patreqlistinfo/reqlist[1]/prcpgenrflag")); //입원/외래구분
  1722. // model.setValue("/root/send/reqdd" , model.getValue("root/main/patreqlistinfo/reqlist[1]/reqdd")); //의뢰일자
  1723. // model.setValue("/root/send/formcd" , "0000000769"); //Formcd
  1724. // submit("TRADC00901");
  1725. grd_patreqlist.visible = true;
  1726. }
  1727. ]]>
  1728. </script>
  1729. </button>
  1730. <datagrid id="grd_patreqlist" nodeset="/root/main/patreqlistinfo/reqlist" visibility="hidden" scroll="auto" allowselection="true" allowuserresize="true" autoresize="false" backcoloralternate="#f0f0f0" caption="cnstseqno^상태^의뢰일자^회신일자^회신약사^의뢰약물^환자번호^성명^cretno^orddeptcd^prcpgenrflag^formcd^병실^A/S^rrgstno^환자상태^주상병^내원/입원일^재원일수^결과^의뢰과^의뢰자^의뢰사유^전달사항^채혈일시^임병접수일시^의뢰번호(formrecseq)^reqdeptcd^requserid^cnstcnts1^prcpno^prcpcd^drugcd^rgstseqno" colsep="^" colwidth="100, 60, 71, 71, 78, 115, 86, 61, 100, 100, 100, 95, 59, 53, 100, 58, 144, 86, 57, 82, 103, 58, 100, 119, 116, 121, 135, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:470px; top:25px; width:725px; height:185px; ">
  1731. <col ref="cnstseqno" visibility="hidden"/>
  1732. <col ref="stat" style="text-align:center; "/>
  1733. <col ref="reqdd" format="yyyy-mm-dd"/>
  1734. <col ref="repldd" format="yyyy-mm-dd"/>
  1735. <col ref="replpharmst" style="text-align:center; "/>
  1736. <col ref="reqdrug" style="text-align:left; "/>
  1737. <col ref="pid" visibility="hidden" style="left:180px; top:23px; width:86px; height:23px; "/>
  1738. <col ref="hngnm" visibility="hidden" style="left:366px; top:23px; width:61px; height:23px; "/>
  1739. <col ref="cretno" visibility="hidden"/>
  1740. <col ref="orddeptcd" visibility="hidden"/>
  1741. <col ref="prcpgenrflag" visibility="hidden"/>
  1742. <col ref="formcd" visibility="hidden"/>
  1743. <col ref="wardnm" visibility="hidden"/>
  1744. <col ref="agesex" visibility="hidden"/>
  1745. <col ref="rrgstno" visibility="hidden"/>
  1746. <col ref="patstat" visibility="hidden"/>
  1747. <col ref="diagcd"/>
  1748. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  1749. <col ref="inhospday"/>
  1750. <col ref="result" visibility="hidden"/>
  1751. <col ref="reqdeptnm"/>
  1752. <col ref="requsernm"/>
  1753. <col ref="reqresn" visibility="hidden"/>
  1754. <col ref="reqcomment"/>
  1755. <col ref="bcolldt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  1756. <col ref="spcacptdt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
  1757. <col ref="formrecseq"/>
  1758. <col ref="reqdeptcd" visibility="hidden"/>
  1759. <col ref="requserid" visibility="hidden"/>
  1760. <col ref="cnstcnts1" visibility="hidden"/>
  1761. <col ref="prcpno" visibility="hidden"/>
  1762. <col ref="prcpcd" visibility="hidden"/>
  1763. <col ref="drugcd" visibility="hidden"/>
  1764. <col ref="rgstseqno" visibility="hidden"/>
  1765. <script type="javascript" ev:event="ondblclick">
  1766. <![CDATA[
  1767. model.setValue("/root/send/pid" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/pid")); //등록번호
  1768. model.setValue("/root/send/formrecseq" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/formrecseq")); //formrecseq -저장시 Send/formrecseq가져간다.
  1769. model.setValue("/root/send/cnstseqno" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/cnstseqno")); //의뢰순번
  1770. model.setValue("/root/send/rgstseqno" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/rgstseqno")); //저장순번
  1771. model.setValue("/root/send/testcd" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/drugcd")); //의뢰약물
  1772. model.setValue("/root/send/cretno" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/cretno")); //cretno
  1773. model.setValue("/root/send/orddd" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/orddd")); //진료/입원일자
  1774. model.setValue("/root/send/prcpgenrflag" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/prcpgenrflag")); //입원/외래구분
  1775. model.setValue("/root/send/reqdd" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/reqdd")); //의뢰일자
  1776. model.setValue("/root/send/formcd" , "0000000769"); //Formcd
  1777. submit("TRADC00901"); //
  1778. fCnstResn();
  1779. //회신상태
  1780. if(model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z" ) {
  1781. btn_save.disabled = true;
  1782. btn_repl.disabled = true;
  1783. btn_del.disabled = true;
  1784. btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
  1785. btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
  1786. }
  1787. //저장상태
  1788. else {
  1789. btn_save.disabled = false;
  1790. btn_repl.disabled = false;
  1791. btn_del.disabled = false;
  1792. btn_replno.disabled = false; //2010-01-21 [미회신]버튼 활성화
  1793. btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
  1794. }
  1795. if(model.getValue("/root/temp/cnstinfo/pidchkflag") == "Y") {
  1796. // 20100119_laboru_약사 이외의 사용자인 경우
  1797. btn_save.disabled = true;
  1798. btn_repl.disabled = true;
  1799. btn_del.disabled = true;
  1800. btn_replno.disabled = true; //2010-01-21 [미회신=회신제외]버튼 비활성화
  1801. btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가
  1802. }
  1803. btn_cnst.dispatch("DOMActivate");
  1804. grd_patreqlist.visible = false;
  1805. ]]>
  1806. </script>
  1807. <script type="javascript" ev:event="onaftersort">
  1808. <![CDATA[
  1809. // 소트 후 인스턴스 정리
  1810. grd_patreqlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
  1811. ]]>
  1812. </script>
  1813. </datagrid>
  1814. <group id="group2" visibility="hidden" style="left:589px; top:0px; width:506px; height:500px; background-color:#dddddd; border-color:#800080; border-style:dotted; ">
  1815. <line id="line26" class="line_1" style="x1:3px; y1:25px; x2:503px; y2:25px; "/>
  1816. <textarea id="textarea2" ref="/root/hidden/replinfo/replcnts" overflow="scroll" scroll="auto" editable="false" style="left:2px; top:30px; width:500px; height:435px; "/>
  1817. <caption id="caption55" class="tit_2" style="left:10px; top:5px; width:170px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">회신내역 미리보기</caption>
  1818. <button id="button3" class="btn4_letter2" style="left:443px; top:468px; width:56px; height:22px; ">
  1819. <caption>닫기</caption>
  1820. <script type="javascript" ev:event="DOMActivate">
  1821. <![CDATA[
  1822. group2.attribute("visibility") ="hidden";
  1823. ]]>
  1824. </script>
  1825. </button>
  1826. </group>
  1827. <button id="btn_careplan" class="btn4_letter7" navindex="32" visibility="hidden" style="left:185px; top:458px; width:116px; height:22px; ">
  1828. <caption>CarePlan 전송</caption>
  1829. <script type="javascript" ev:event="DOMActivate">
  1830. <![CDATA[
  1831. if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
  1832. if(submit("TRADC62202")){
  1833. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  1834. if(cnststat == "04"){
  1835. messageBox("[취소]상태는 [CarePlan 전송]할 수","I004");
  1836. return ;
  1837. }else if (cnststat <= "21"){
  1838. messageBox("[회신]이전 더이상 [CarePlan 전송]하실 수","I004");
  1839. return;
  1840. }
  1841. }
  1842. //CarePlan 전송여부 확인.
  1843. var CarePlanSendYN =model.getValue("root/main/baseinfo/tdminfolist/replyn");
  1844. if (CarePlanSendYN == "Y") {
  1845. var sel = messageBox("이미 [ CarePlan 전송 ] 완료하였습니다. \n\n작업을 계속진행 ","S001");
  1846. if (sel != 6) return;
  1847. }else{
  1848. var sel = messageBox("[ CarePlan 전송 ]","S001");
  1849. if (sel != 6) return;
  1850. }
  1851. sendENRCAREPLANData(); //Care Plan 관련 ENR 데이터 전송
  1852. }else {
  1853. messageBox("등록번호는 필수입력","I009");
  1854. return false;
  1855. }
  1856. ]]>
  1857. </script>
  1858. </button>
  1859. </group>
  1860. </xhtml:body>
  1861. </xhtml:html>