SMADC02800_복약상담회신서일반.xrw 97 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085
  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>복약상담회신서(일반)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <baseinfo>
  11. <patinfolist>
  12. <pid/>
  13. <hngnm/>
  14. <sna/>
  15. <orddeptcd/>
  16. <cnstdeptcd/>
  17. <roomcd/>
  18. <orddd/>
  19. <cnstdd/>
  20. <cnstdrid/>
  21. <cnstdeptcd/>
  22. <cnstcnts4/>
  23. <repldd/>
  24. <repluserid/>
  25. <fstrgstrid/>
  26. <cnstcnts1/>
  27. <lowtitle/>
  28. <medispclnm/>
  29. <cnstcnts17/>
  30. <cnstcnts18/>
  31. </patinfolist>
  32. <diaginfolist>
  33. <diagcd/>
  34. <diagengnm/>
  35. <diaghngnm/>
  36. </diaginfolist>
  37. <curdoubtlist>
  38. <drugcd/>
  39. <drugnm/>
  40. <dayvol/>
  41. <daytims/>
  42. <days/>
  43. <firstyn/>
  44. <pid/>
  45. <rgstseqno/>
  46. <deptcd/>
  47. <tmedflag/>
  48. </curdoubtlist>
  49. <curtmedlist>
  50. <deptcd/>
  51. <drugcd/>
  52. <drugnm/>
  53. <comnm/>
  54. <dayvol/>
  55. <daytims/>
  56. <days/>
  57. <awargrde/>
  58. <cmt/>
  59. <pid/>
  60. <rgstseqno/>
  61. <tmedflag/>
  62. <ordertype/>
  63. <prcpdd/>
  64. <prcpgenrflagnm/>
  65. <drugno/>
  66. <prcpdelivefact/>
  67. <prcpno/>
  68. </curtmedlist>
  69. <cnsttmedlist>
  70. <pasttmedadapt/>
  71. <nonadaptresn/>
  72. <nonadaptresn1/>
  73. <nonadaptresn2/>
  74. <nonadaptresn3/>
  75. <nonadaptresn4/>
  76. <nonadaptresn5/>
  77. <seffcyn/>
  78. <seffckind/>
  79. <seffccasdrug/>
  80. <seffcsymp/>
  81. <tmedcnst/>
  82. <tmedcnst1/>
  83. <tmedcnst2/>
  84. <tmedcnst3/>
  85. <tmedcnst4/>
  86. <tmedcnst5/>
  87. <tmedcnst6/>
  88. <tmedcnst7/>
  89. <majrcnstcnts/>
  90. <majrcnstcnts1/>
  91. <majrcnstcnts2/>
  92. <majrcnstcnts3/>
  93. <majrcnstcnts4/>
  94. <majrcnstcnts5/>
  95. <majrcnstcnts6/>
  96. <majrcnstcnts7/>
  97. <cnstcomment/>
  98. <cmt/>
  99. <statflag/>
  100. <rgstseqno/>
  101. <pid/>
  102. <repltrgt/>
  103. <repltrgt1/>
  104. <repltrgt2/>
  105. <repltrgtnm/>
  106. <replusetm/>
  107. <nonadaptetc/>
  108. <tmedcnstetc/>
  109. <cnstreyn/>
  110. <cnstyn/>
  111. <cnstpat/>
  112. <cnstprocer/>
  113. <cnsttmedwill/>
  114. <formrecseq/>
  115. <replid/>
  116. <lnprepcd/>
  117. <eductrgtmancd/>
  118. <eductrgtmanetc/>
  119. <educmthdcd/>
  120. <educmthdetc/>
  121. <educrsltcd/>
  122. <educrsltetc/>
  123. <drunk/>
  124. <blooding/>
  125. <healthfood/>
  126. <majrcnstcnts8/>
  127. <majrcnstcnts9/>
  128. </cnsttmedlist>
  129. </baseinfo>
  130. <srchinfo>
  131. <item>
  132. <drugcd/>
  133. <olddrugcd/>
  134. <drugnm/>
  135. </item>
  136. </srchinfo>
  137. <copydeptlist>
  138. <item>
  139. <orddeptcd/>
  140. <orddeptnm/>
  141. </item>
  142. </copydeptlist>
  143. </main>
  144. <send>
  145. <pid/>
  146. <req>
  147. <curdoubtlist/>
  148. <curtmedlist/>
  149. <cnsttmedlist/>
  150. <edudata/>
  151. </req>
  152. <srchinfo>
  153. <srchcd/>
  154. <srchdrugnm/>
  155. </srchinfo>
  156. <rgstseqno/>
  157. <formrecseq/>
  158. <prcpgenrflag/>
  159. <orddd/>
  160. <cretno/>
  161. <tmedflag/>
  162. <cnstdd/>
  163. </send>
  164. <init>
  165. <cmb_info>
  166. <suppdeptlist>
  167. <suppdept>
  168. <suppdeptcd/>
  169. <depthngnm/>
  170. </suppdept>
  171. </suppdeptlist>
  172. </cmb_info>
  173. <cmblist>
  174. <jciyn/>
  175. </cmblist>
  176. </init>
  177. <hidden>
  178. <item/>
  179. <pasttmedadaptcls/>
  180. <prntinfo>
  181. <patinfolist/>
  182. <prntinfolist/>
  183. </prntinfo>
  184. </hidden>
  185. <stext/>
  186. <temp>
  187. <cnstinfo>
  188. <formrecseq/>
  189. <pid/>
  190. <rgstseqno/>
  191. <cnstdd/>
  192. <prcpgenrflag/>
  193. <orddd/>
  194. <cretno/>
  195. </cnstinfo>
  196. <replform>
  197. <replcnts/>
  198. <sel/>
  199. </replform>
  200. <popupdata>
  201. <repltype/>
  202. <receivedata>/root/main/baseinfo/cnsttmedlist/replid</receivedata>
  203. </popupdata>
  204. </temp>
  205. </root>
  206. </instance>
  207. <script type="javascript" ev:event="xforms-ready">
  208. <![CDATA[
  209. model.setValue("/root/send/pid",model.getValue("/root/main/baseinfo/patinfolist/pid"));
  210. var instcd = getUserInfo("dutplceinstcd");
  211. var standard_yn = "orduseyn";
  212. var ord_deptflag = 'D';
  213. var rslt_ref = "/root/init/cmb_info/suppdeptlist";
  214. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  215. //다학제 연동 여부 조회.
  216. pharmacyGetCodeList( new Array("JCI1"), new Array("/root/init/cmblist/jciyn") );
  217. if(model.getValue("/root/init/cmblist/jciyn/JCI1[2]/cdid") == "Y") {
  218. button7.visible = true;
  219. } else {
  220. button7.visible = false;
  221. }
  222. button7.refresh();
  223. if (model.getValue("/root/main/cnst/cnstinfo/statflag") == "Z"){
  224. messageBox("회신처리된 의뢰 건","I009");
  225. }
  226. //submit("TRADC02801");
  227. model.setValue("/root/send/tmedflag", "1");
  228. btn_sea.dispatch("DOMActivate");
  229. if(model.getValue("/root/temp/cnstinfo/btnreplflag") == "Y") {
  230. // 20100118_laboru_회신확정 상태일때 회신버튼 비활성화 위해서
  231. btn_req.disabled = true;
  232. }
  233. if(model.getValue("/root/temp/cnstinfo/pidchkflag") == "Y") {
  234. // 20100119_laboru_약사 이외의 사용자인 경우
  235. btn_save.disabled = true;
  236. btn_req.disabled = true;
  237. btn_del.disabled = true;
  238. }
  239. //---------------(20091024)
  240. // var sjobkindcd = getUserInfo("jobkindcd");
  241. // //직종이 약사인경우만
  242. // //alert( sjobkindcd.substr(0,2) ) ;
  243. //
  244. // if ( sjobkindcd.substr(0,2) != "12" ) {
  245. // btn_save.disabled = true ; //저장
  246. // btn_req.disabled = true ; //회신
  247. // btn_del.disabled = true ; //삭제
  248. // }
  249. //---------------(20091024)
  250. ]]>
  251. </script>
  252. <script type="javascript">
  253. <![CDATA[
  254. function fMakeDisState(objCnts1, pEtcStat, objCnts2) {
  255. if(model.getValue(objCnts1.attribute("ref")) == pEtcStat) {
  256. objCnts2.disabled = false;
  257. } else {
  258. model.setValue(objCnts2.attribute("ref"), "");
  259. objCnts2.disabled = true;
  260. }
  261. objCnts2.refresh();
  262. }
  263. function datacheck(){
  264. for (var i = 1; i < datagrid3.rows; i ++){
  265. var sdrugcd = model.getValue("/root/main/baseinfo/curdoubtlist[" + i + "]/drugcd");
  266. if (sdrugcd == ""){
  267. messageBox(i + "번째 약물코드는 필수 선택항목입니다.", "E999", "");
  268. return false;
  269. }
  270. for (var j = 1; j < datagrid3.rows; j ++){
  271. var sdrugcd1 = model.getValue("/root/main/baseinfo/curdoubtlist[" + j + "]/drugcd");
  272. if (i != j){
  273. if (sdrugcd == sdrugcd1){
  274. messageBox(j + "번째에서 의뢰약물 중복된 자료가 존재합니다", "E999", "");
  275. return false;
  276. }
  277. }
  278. }
  279. }
  280. for (var i = 1; i < grd_curtmed.rows; i ++){
  281. var sdrugcd = model.getValue("/root/main/baseinfo/curtmedlist[" + i + "]/drugcd");
  282. var sdeptcd = model.getValue("/root/main/baseinfo/curtmedlist[" + i + "]/deptcd");
  283. if (sdeptcd == ""){
  284. messageBox(i + "번째 진료과는 필수 선택항목입니다.", "E999", "");
  285. return false;
  286. }
  287. if (sdrugcd == ""){
  288. messageBox(i + "번째 약물코드는 필수 선택항목입니다.", "E999", "");
  289. return false;
  290. }
  291. // 2011.03.17 pymi
  292. //현재 복용약물 최초 저장시 동일한 진료과와 약품코드일 경우 경고창을 띄우도록 되어 있는 부분 삭제 요청
  293. /*for (var j = 1; j < grd_curtmed.rows; j ++){
  294. var sdrugcd1 = model.getValue("/root/main/baseinfo/curtmedlist[" + j + "]/drugcd");
  295. var sdeptcd1 = model.getValue("/root/main/baseinfo/curtmedlist[" + j + "]/deptcd");
  296. if (i != j){
  297. if (sdrugcd == sdrugcd1 && sdeptcd == sdeptcd1){
  298. messageBox(j + "번째에서 현재 복용약물 및 환자상태에 중복된 자료가 존재합니다", "E999", "");
  299. return false;
  300. }
  301. }
  302. }*/
  303. }
  304. var non1 = model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn1");
  305. if (non1 == ""){ non1 = "0"};
  306. var non2 = model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn2");
  307. if (non2 == ""){ non2 = "0"};
  308. var non3 = model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn3");
  309. if (non3 == ""){ non3 = "0"};
  310. var non4 = model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn4");
  311. if (non4 == ""){ non4 = "0"};
  312. var non5 = model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn5");
  313. if (non5 == ""){ non5 = "0"};
  314. var nonall = non1 + non2 + non3 + non4 + non5;
  315. model.setValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn", nonall);
  316. var cnst1 = model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst1");
  317. if (cnst1 == ""){ cnst1 = "0"};
  318. var cnst2 = model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst2");
  319. if (cnst2 == ""){ cnst2 = "0"};
  320. var cnst3 = model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst3");
  321. if (cnst3 == ""){ cnst3 = "0"};
  322. var cnst4 = model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst4");
  323. if (cnst4 == ""){ cnst4 = "0"};
  324. var cnst5 = model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst5");
  325. if (cnst5 == ""){ cnst5 = "0"};
  326. var cnst6 = model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst6");
  327. if (cnst6 == ""){ cnst6 = "0"};
  328. var cnst7 = model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst7");
  329. if (cnst7 == ""){ cnst7 = "0"};
  330. var cnstall = cnst1 + cnst2 + cnst3 + cnst4 + cnst5 + cnst6 + cnst7;
  331. model.setValue("/root/main/baseinfo/cnsttmedlist/tmedcnst", cnstall);
  332. var majr1 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts1");
  333. if (majr1 == ""){ majr1 = "0"};
  334. var majr2 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts2");
  335. if (majr2 == ""){ majr2 = "0"};
  336. var majr3 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts3");
  337. if (majr3 == ""){ majr3 = "0"};
  338. var majr4 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts4");
  339. if (majr4 == ""){ majr4 = "0"};
  340. var majr5 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts5");
  341. if (majr5 == ""){ majr5 = "0"};
  342. var majr6 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts6");
  343. if (majr6 == ""){ majr6 = "0"};
  344. var majr7 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts7");
  345. if (majr7 == ""){ majr7 = "0"};
  346. var majr8 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts7");
  347. if (majr8 == ""){ majr8 = "0"};
  348. var majr9 = model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts7");
  349. if (majr9 == ""){ majr9 = "0"};
  350. var majrall = majr1 + majr2 + majr3 + majr4 + majr5 + majr6 + majr7 + majr8 + majr9 ;
  351. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts", majrall);
  352. var trgt1 = model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgt1");
  353. if (trgt1 == ""){ trgt1 = "0"};
  354. var trgt2 = model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgt2");
  355. if (trgt2 == ""){ trgt2 = "0"};
  356. var trgtall = trgt1 + trgt2;
  357. model.setValue("/root/main/baseinfo/cnsttmedlist/repltrgt", trgtall);
  358. model.refresh();
  359. }
  360. ]]>
  361. </script>
  362. <submission id="TRADB00001"/>
  363. <submission id="TRADC02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/baseinfo"/>
  364. <submission id="TXADC02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  365. <submission id="TXADC02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/baseinfo/cnsttmedlist" replace="instance" resultref="/root/hidden"/>
  366. <submission id="TRADB00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/srchinfo"/>
  367. <submission id="TRADB00808" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/copydeptlist"/>
  368. <submission id="TXADC02803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  369. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  370. <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post"/>
  371. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  372. <submission id="TRADC00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchgrupid" replace="instance" resultref="/root/temp/drugcdlist"/>
  373. <submission id="TRADC62202" mediatype="application/x-www-form-urlencoded" method="post"/>
  374. </model>
  375. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  376. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  377. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  378. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  379. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  380. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  381. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  382. <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
  383. <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SPADC62200.js"/>
  384. <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
  385. </xhtml:head>
  386. <xhtml:body guideline="1,1195;2,784;">
  387. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  388. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">복약상담 회신서(일반)</caption>
  389. </group>
  390. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:771px; ">
  391. <group id="group2" style="left:0px; top:40px; width:1195px; height:95px; ">
  392. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:95px; background-color:#fffbf2; border-color:#ffd799; "/>
  393. <input id="output5" ref="/root/main/baseinfo/patinfolist/pid" class="inputt_search" style="left:116px; top:9px; width:110px; height:19px; ">
  394. <script type="javascript" ev:event="onkeydown">
  395. <![CDATA[
  396. inputEnterKey("btn_sea","DOMActivate");
  397. ]]>
  398. </script>
  399. </input>
  400. <output id="output6" ref="/root/main/baseinfo/patinfolist/hngnm" class="output_search" style="left:324px; top:9px; width:110px; height:19px; "/>
  401. <output id="output7" ref="/root/main/baseinfo/patinfolist/orddeptcd" class="output_search" style="left:324px; top:34px; width:110px; height:19px; "/>
  402. <output id="output9" ref="/root/main/baseinfo/patinfolist/sna" class="output_search" style="left:116px; top:34px; width:110px; height:19px; "/>
  403. <caption id="caption2" class="search_name" style="left:20px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  404. <caption id="caption25" class="search_name" style="left:247px; top:9px; width:86px; height:17px; ">성명 :</caption>
  405. <caption id="caption1" class="search_name" style="left:20px; top:34px; width:93px; height:17px; ">성별/나이 :</caption>
  406. <caption id="caption3" class="search_name" style="left:247px; top:34px; width:86px; height:17px; ">진료과 :</caption>
  407. <caption id="caption4" class="search_name" style="left:20px; top:58px; width:86px; height:17px; ">병실 :</caption>
  408. <caption id="caption6" class="search_name" style="left:458px; top:10px; width:86px; height:17px; ">상병정보 :</caption>
  409. <line id="line15" class="line_1" style="x1:549px; y1:7px; x2:1180px; y2:7px; "/>
  410. <datagrid id="datagrid1" nodeset="/root/main/baseinfo/diaginfolist" autoresize="true" backcoloralternate="#f0f0f0" caption="싱병코드^영문상병명^한글상병명" colsep="^" colwidth="114, 287, 188" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:549px; top:12px; width:631px; height:73px; ">
  411. <col ref="diagcd"/>
  412. <col ref="diagengnm"/>
  413. <col ref="diaghngnm"/>
  414. </datagrid>
  415. <output id="output1" ref="/root/main/baseinfo/patinfolist/orddd" class="output_search" format="yyyy-mm-dd" style="left:324px; top:59px; width:110px; height:19px; text-align:center; "/>
  416. <output id="output2" ref="/root/main/baseinfo/patinfolist/roomcd" class="output_search" style="left:116px; top:59px; width:110px; height:19px; "/>
  417. <caption id="caption7" class="search_name" style="left:247px; top:58px; width:86px; height:17px; ">입원일 :</caption>
  418. <line id="line2" class="line_2" style="x1:25px; y1:30px; x2:435px; y2:30px; "/>
  419. <line id="line11" class="line_2" style="x1:25px; y1:55px; x2:435px; y2:55px; "/>
  420. <line id="line24" class="line_2" style="x1:25px; y1:80px; x2:435px; y2:80px; "/>
  421. <line id="line25" class="line_3" style="x1:549px; y1:86px; x2:1180px; y2:86px; "/>
  422. <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:235px; top:5px; width:56px; height:22px; ">
  423. <caption>조회</caption>
  424. <script type="javascript" ev:event="DOMActivate">
  425. <![CDATA[
  426. //model.setValue("/root/send/pid",model.getValue("/root/main/baseinfo/patinfolist/pid"));
  427. model.removeNodeset("/root/main/baseinfo/curdoubtlist");
  428. model.removeNodeset("/root/main/baseinfo/curtmedlist");
  429. model.setValue("/root/main/baseinfo/patinfolist/pid",model.getValue("/root/temp/cnstinfo/pid"));
  430. model.setValue("/root/send/pid",model.getValue("/root/temp/cnstinfo/pid"));
  431. model.setValue("/root/send/rgstseqno",model.getValue("/root/temp/cnstinfo/rgstseqno"));
  432. model.setValue("/root/send/formrecseq", model.getValue("/root/temp/cnstinfo/formrecseq"));
  433. model.setValue("/root/send/prcpgenrflag", model.getValue("/root/temp/cnstinfo/prcpgenrflag"));
  434. model.setValue("/root/send/orddd", model.getValue("/root/temp/cnstinfo/orddd"));
  435. model.setValue("/root/send/cretno", model.getValue("/root/temp/cnstinfo/cretno"));
  436. model.setValue("/root/send/cnstdd", model.getValue("/root/temp/cnstinfo/cnstdd"));
  437. if (submit("TRADC02801")){
  438. if (model.getValue("/root/main/baseinfo/cnsttmedlist/formrecseq") == ""){
  439. model.setValue("/root/main/baseinfo/cnsttmedlist/formrecseq", model.getValue("/root/temp/cnstinfo/formrecseq"));
  440. model.setValue("/root/main/baseinfo/cnsttmedlist/pid",model.getValue("/root/temp/cnstinfo/pid"));
  441. }
  442. model.makeValue("/root/main/baseinfo/cnsttmedlist/cnstseqno",model.getValue("/root/temp/cnstinfo/cnstseqno"));
  443. if (model.getValue("/root/main/baseinfo/cnsttmedlist/statflag") == "Z"){
  444. btn_req.disabled = true;
  445. btn_save.disabled = true;
  446. btn_del.disabled = true;
  447. group5.disabled = true;
  448. }else if (model.getValue("/root/main/baseinfo/cnsttmedlist/statflag") == "D"){
  449. btn_req.disabled = false;
  450. btn_save.disabled = false;
  451. btn_del.disabled = false;
  452. group5.disabled = false;
  453. }else{
  454. btn_req.disabled = true;
  455. btn_save.disabled = false;
  456. btn_del.disabled = true;
  457. group5.disabled = false;
  458. }
  459. for (var i=1 ; i< grd_curtmed.rows ; i++) {
  460. if (model.getValue("/root/main/baseinfo/curtmedlist["+ i +"]/ordertype") == "O"){
  461. grd_curtmed.addStatus(i,"insert");
  462. }
  463. }
  464. // alert("데이타 : " + model.getValue("/root/main/baseinfo/patinfolist/cnstcnts1);
  465. radio2.dispatch("xforms-value-changed");
  466. bool7.dispatch("xforms-value-changed");
  467. bool14.dispatch("xforms-value-changed");
  468. fMakeDisState(cmb_eductrgtman, "99", ipt_eductrgtmanetc);
  469. fMakeDisState(cmb_educmthd, "99", ipt_educmthdetc);
  470. fMakeDisState(cmb_educrslt, "99", ipt_educrsltetc);
  471. model.refresh();
  472. }
  473. ]]>
  474. </script>
  475. </button>
  476. </group>
  477. <group id="group5" style="left:0px; top:135px; width:1195px; height:635px; ">
  478. <line id="line8" class="line_2" style="x1:0px; y1:433px; x2:1194px; y2:433px; "/>
  479. <output id="output4" ref="/root/main/baseinfo/patinfolist/cnstdrid" class="output_fix" style="left:865px; top:54px; width:125px; height:19px; "/>
  480. <input id="input7" ref="/root/main/baseinfo/cnsttmedlist/seffcsymp" class="input_default" disabled="true" style="left:636px; top:462px; width:544px; height:19px; "/>
  481. <datagrid id="grd_curtmed" nodeset="/root/main/baseinfo/curtmedlist" caption="약품코드^약품명^성분명^1일용량^1일횟수^일수^처방일^진료과^처방상태^처방번호^의사전달사항^인지도^특이사항^pid^rgstseqno^caption1^prcpno" colsep="^" colwidth="112, 229, 190, 61, 55, 45, 80, 110, 66, 80, 172, 130, 206, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:180px; width:1195px; height:175px; ">
  482. <col disabled="true" ref="drugcd" type="inputbutton" maxlength="15" _chartype="upper" _key="true"/>
  483. <col ref="drugnm" style="text-align:left; "/>
  484. <col ref="comnm" style="text-align:left; "/>
  485. <col ref="dayvol" type="input" style="text-align:center; "/>
  486. <col ref="daytims" type="input" style="text-align:center; "/>
  487. <col ref="days" type="input" visibility="hidden" style="text-align:center; "/>
  488. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  489. <col editmode="inputsearch" ref="deptcd" type="combo" _key="true">
  490. <choices>
  491. <itemset nodeset="/root/init/cmb_info/suppdeptlist/dept">
  492. <label ref="depthngnm"/>
  493. <value ref="deptcd"/>
  494. </itemset>
  495. </choices>
  496. </col>
  497. <col ref="prcpgenrflagnm" style="text-align:center; "/>
  498. <col ref="drugno"/>
  499. <col ref="prcpdelivefact"/>
  500. <col ref="awargrde" type="input"/>
  501. <col ref="cmt" type="input"/>
  502. <col ref="pid" visibility="hidden"/>
  503. <col ref="rgstseqno" visibility="hidden"/>
  504. <col ref="tmedflag" visibility="hidden"/>
  505. <col ref="prcpno" visibility="hidden"/>
  506. <script type="javascript" ev:event="onbuttonclick">
  507. <![CDATA[
  508. if ( grd_curtmed.col== grd_curtmed.colRef("drugcd") ){
  509. /*
  510. model.setValue("/root/send/srchinfo/srchdrugnm", model.getValue("/root/main/tmedinfo/curtmedlist["+grd_curtmed.row+"]/drugcd"));
  511. submit("TRADB00106");
  512. grd_druglist.visible=true;
  513. */
  514. model.makeValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  515. model.makeValue("/root/temp/receivedata/srchflag", "");
  516. model.makeValue("/root/temp/receivedata/srchcnts", "");
  517. model.makeValue("/root/temp/receivedata/drugkind","");
  518. model.makeValue("/root/temp/receivedata/receiveref", "/root/hidden/drugcd");
  519. model.makeNode("/root/hidden/drugcd");
  520. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  521. if (model.getValue("/root/hidden/drugcd") !=""){
  522. model.setValue("/root/main/baseinfo/curtmedlist["+grd_curtmed.row+"]/drugcd", model.getValue("/root/hidden/drugcd"));
  523. model.makeValue("/root/temp/srchgrupid/drugcd", model.getValue("/root/hidden/drugcd"));
  524. //alert (model.getValue("/root/temp/srchgrupid/drugcd"));
  525. submit("TRADC00604");
  526. //alert (model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
  527. model.setValue("/root/main/baseinfo/curtmedlist["+ grd_curtmed.row +"]/drugnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
  528. model.setValue("/root/main/baseinfo/curtmedlist["+ grd_curtmed.row +"]/comnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/comdesc"));
  529. }
  530. model.refresh();
  531. }
  532. /*
  533. if ( grd_curtmed.col== grd_curtmed.colRef("drugnm") ){
  534. model.setValue("/root/send/srchinfo/srchcd", model.getValue("/root/main/tmedinfo/curtmedlist["+grd_curtmed.row+"]/drugnm"));
  535. submit("TRADB00106");
  536. grd_druglist.visible=true;
  537. }
  538. */
  539. ]]>
  540. </script>
  541. </datagrid>
  542. <bool id="bool18" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts4" style="left:403px; top:487px; width:20px; height:20px; ">
  543. <script type="javascript" ev:event="xforms-value-changed">
  544. <![CDATA[
  545. if ( bool18.value != 1) {
  546. bool15.value = 0 ;
  547. }
  548. ]]>
  549. </script>
  550. </bool>
  551. <datagrid id="datagrid3" nodeset="/root/main/baseinfo/curdoubtlist" caption="약품코드^약품명^1일용량^1일횟수^일수^초회여부^caption1^caption2^caption3^caption4" colsep="^" colwidth="112, 165, 53, 54, 38, 57, 15, 17, 20, 26" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:43px; top:28px; width:494px; height:72px; ">
  552. <col disabled="true" ref="drugcd" type="inputbutton"/>
  553. <col ref="drugnm"/>
  554. <col ref="dayvol" type="input" style="text-align:center; "/>
  555. <col ref="daytims" type="input" style="text-align:center; "/>
  556. <col ref="days" type="input" style="text-align:center; "/>
  557. <col checkvalue="Y,N" ref="firstyn" type="checkbox"/>
  558. <col ref="pid" visibility="hidden"/>
  559. <col ref="rgstseqno" visibility="hidden"/>
  560. <col ref="deptcd" visibility="hidden"/>
  561. <col ref="tmedflag" visibility="hidden"/>
  562. <script type="javascript" ev:event="onbuttonclick">
  563. <![CDATA[
  564. if ( datagrid3.col== datagrid3.colRef("drugcd") ){
  565. model.makeValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  566. model.makeValue("/root/temp/receivedata/srchflag", "");
  567. model.makeValue("/root/temp/receivedata/srchcnts", "");
  568. model.makeValue("/root/temp/receivedata/drugkind","");
  569. model.makeValue("/root/temp/receivedata/receiveref", "/root/hidden/drugcd");
  570. model.makeNode("/root/hidden/drugcd");
  571. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  572. if (model.getValue("/root/hidden/drugcd") !=""){
  573. model.setValue("/root/main/baseinfo/curdoubtlist["+ datagrid3.row+"]/drugcd", model.getValue("/root/hidden/drugcd"));
  574. model.makeValue("/root/temp/srchgrupid/drugcd", model.getValue("/root/hidden/drugcd"));
  575. //alert (model.getValue("/root/temp/srchgrupid/drugcd"));
  576. submit("TRADC00604");
  577. model.setValue("/root/main/baseinfo/curdoubtlist["+ datagrid3.row +"]/drugnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
  578. //model.setValue("/root/main/baseinfo/curdoubtlist["+ datagrid3.row +"]/comnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/comdesc"));
  579. }
  580. model.refresh();
  581. }
  582. ]]>
  583. </script>
  584. </datagrid>
  585. <line id="line9" class="line_2" style="x1:0px; y1:458px; x2:1194px; y2:458px; "/>
  586. <input id="input8" ref="/root/main/baseinfo/cnsttmedlist/statflag" class="input_search" visibility="hidden" style="left:865px; top:410px; width:85px; height:19px; "/>
  587. <bool id="bool19" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts5" style="left:488px; top:487px; width:20px; height:20px; ">
  588. <script type="javascript" ev:event="xforms-value-changed">
  589. <![CDATA[
  590. if ( bool19.value != 1) {
  591. bool15.value = 0 ;
  592. }
  593. ]]>
  594. </script>
  595. </bool>
  596. <caption id="caption60" style="left:618px; top:487px; width:106px; height:20px; ">부작용 및 주의사항</caption>
  597. <button id="button1" class="btn2_letter3" style="left:482px; top:3px; width:53px; height:19px; ">
  598. <caption>행삭제</caption>
  599. <script type="javascript" ev:event="DOMActivate">
  600. <![CDATA[
  601. datagrid3.deleteRow(datagrid3.row);
  602. ]]>
  603. </script>
  604. </button>
  605. <line id="line20" class="line_2" style="x1:791px; y1:76px; x2:990px; y2:76px; "/>
  606. <output id="output10" ref="/root/main/baseinfo/patinfolist/repluserid" class="output_fix" style="left:1069px; top:79px; width:125px; height:19px; "/>
  607. <input id="input9" ref="/root/main/baseinfo/cnsttmedlist/rgstseqno" class="input_search" visibility="hidden" style="left:960px; top:410px; width:85px; height:19px; "/>
  608. <caption id="caption61" style="left:750px; top:487px; width:106px; height:20px; ">상호작용</caption>
  609. <line id="line10" class="line_2" style="x1:0px; y1:483px; x2:1194px; y2:483px; "/>
  610. <line id="line21" class="line_2" style="x1:995px; y1:76px; x2:1194px; y2:76px; "/>
  611. <output id="output11" ref="/root/main/baseinfo/patinfolist/fstrgstrid" class="output_fix" style="left:1069px; top:54px; width:125px; height:19px; "/>
  612. <caption id="caption40" class="cell_1" visibility="hidden" style="left:835px; top:528px; width:115px; height:23px; vertical-align:middle; ">재상담 여부</caption>
  613. <caption id="caption51" visibility="hidden" style="left:734px; top:243px; width:120px; height:20px; ">부작용이 발생한 경우</caption>
  614. <caption id="caption62" visibility="hidden" style="left:1025px; top:530px; width:90px; height:20px; ">재상담 필요함</caption>
  615. <caption id="caption30" class="cell_1" style="left:995px; top:78px; width:70px; height:23px; vertical-align:middle; ">회신자</caption>
  616. <line id="line22" class="line_2" style="x1:995px; y1:51px; x2:1194px; y2:51px; "/>
  617. <output id="output8" ref="/root/main/baseinfo/patinfolist/cnstdeptcd" class="output_fix" style="left:865px; top:79px; width:125px; height:19px; "/>
  618. <output id="output12" ref="/root/main/baseinfo/patinfolist/repldd" class="output_fix" format="yyyy-mm-dd hh:nn" style="left:1069px; top:29px; width:125px; height:19px; text-align:center; "/>
  619. <caption id="caption41" visibility="hidden" style="left:585px; top:411px; width:30px; height:20px; ">환자</caption>
  620. <caption id="caption52" visibility="hidden" style="left:878px; top:243px; width:134px; height:20px; ">환자가 알고자 하는 경우</caption>
  621. <caption id="caption63" style="left:260px; top:541px; width:90px; height:20px; ">상담거부</caption>
  622. <line id="line12" class="line_2" style="x1:791px; y1:51px; x2:990px; y2:51px; "/>
  623. <caption id="caption31" class="cell_1" style="left:995px; top:28px; width:70px; height:23px; vertical-align:middle; ">회신일시</caption>
  624. <caption id="caption20" class="cell_1" visibility="hidden" style="left:115px; top:239px; width:115px; height:48px; vertical-align:middle; ">복약상담 필요부분</caption>
  625. <input id="input10" ref="/root/main/baseinfo/cnsttmedlist/pid" class="input_search" visibility="hidden" style="left:1055px; top:410px; width:85px; height:19px; "/>
  626. <bool id="bool1" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/repltrgt1" style="left:565px; top:410px; width:20px; height:20px; "/>
  627. <caption id="caption42" visibility="hidden" style="left:635px; top:411px; width:38px; height:20px; ">보호자</caption>
  628. <caption id="caption53" visibility="hidden" style="left:1038px; top:243px; width:145px; height:20px; ">Critical Pathway 대상환자</caption>
  629. <caption id="caption10" class="tit_2" style="left:5px; top:8px; width:144px; height:13px; ">의뢰정보</caption>
  630. <line id="line13" class="line_2" style="x1:0px; y1:512px; x2:1194px; y2:512px; "/>
  631. <caption id="caption21" class="cell_1" style="left:0px; top:485px; width:115px; height:27px; vertical-align:middle; ">주요 상담내용</caption>
  632. <caption id="caption32" class="cell_1" style="left:575px; top:514px; width:115px; height:23px; vertical-align:middle; ">복약 의지</caption>
  633. <bool id="bool2" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/repltrgt2" style="left:615px; top:410px; width:20px; height:20px; "/>
  634. <caption id="caption43" style="left:137px; top:438px; width:30px; height:20px; ">잊음</caption>
  635. <caption id="caption54" visibility="hidden" style="left:255px; top:264px; width:30px; height:20px; ">기타</caption>
  636. <button id="button6" class="btn2_letter3" style="left:425px; top:3px; width:53px; height:19px; ">
  637. <caption>행추가</caption>
  638. <script type="javascript" ev:event="DOMActivate">
  639. <![CDATA[
  640. datagrid3.addRow();
  641. var irow = datagrid3.row;
  642. model.setValue("/root/main/baseinfo/curdoubtlist["+ irow +"]/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  643. model.setValue("/root/main/baseinfo/curdoubtlist["+ irow +"]/deptcd", "0000000000");
  644. model.setValue("/root/main/baseinfo/curdoubtlist["+ irow +"]/firstyn", "N");
  645. model.setValue("/root/main/baseinfo/curdoubtlist["+ irow +"]/tmedflag", "1");
  646. //datagrid3.refresh();
  647. ]]>
  648. </script>
  649. </button>
  650. <caption id="caption11" class="tit_2" style="left:5px; top:160px; width:115px; height:13px; ">현재 복용약물</caption>
  651. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:154px; width:53px; height:19px; ">
  652. <caption>행삭제</caption>
  653. <script type="javascript" ev:event="DOMActivate">
  654. <![CDATA[
  655. grd_curtmed.deleteRow(grd_curtmed.row);
  656. ]]>
  657. </script>
  658. </button>
  659. <caption id="caption22" class="cell_1" style="left:0px; top:514px; width:115px; height:48px; vertical-align:middle; ">상담소견</caption>
  660. <caption id="caption33" class="cell_1" style="left:117px; top:539px; width:115px; height:23px; vertical-align:middle; ">상담 여부</caption>
  661. <bool id="bool3" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/nonadaptresn1" style="left:118px; top:438px; width:20px; height:20px; "/>
  662. <caption id="caption44" style="left:187px; top:438px; width:62px; height:20px; ">생활패턴</caption>
  663. <caption id="caption55" style="left:138px; top:487px; width:78px; height:20px; ">다음 사항모두</caption>
  664. <caption id="caption12" class="tit_2" style="left:5px; top:365px; width:78px; height:13px; ">회신내용</caption>
  665. <caption id="caption23" style="left:239px; top:515px; width:45px; height:20px; vertical-align:middle; ">(환자)</caption>
  666. <caption id="caption34" style="left:1167px; top:388px; width:23px; height:20px; vertical-align:middle; ">분</caption>
  667. <bool id="bool4" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/nonadaptresn2" style="left:168px; top:438px; width:20px; height:20px; "/>
  668. <caption id="caption45" style="left:262px; top:438px; width:62px; height:20px; ">부작용</caption>
  669. <caption id="caption56" style="left:238px; top:487px; width:112px; height:20px; ">복용(사용)의 중요성</caption>
  670. <bool id="bool20" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts6" style="left:598px; top:487px; width:20px; height:20px; ">
  671. <script type="javascript" ev:event="xforms-value-changed">
  672. <![CDATA[
  673. if ( bool20.value != 1) {
  674. bool15.value = 0 ;
  675. }
  676. ]]>
  677. </script>
  678. </bool>
  679. <line id="line16" class="line_2" style="x1:117px; y1:537px; x2:1194px; y2:537px; "/>
  680. <caption id="caption24" style="left:395px; top:516px; width:55px; height:20px; vertical-align:middle; ">(보호자)</caption>
  681. <caption id="caption13" class="cell_1" style="left:1030px; top:385px; width:90px; height:23px; vertical-align:middle; ">상담 소요시간</caption>
  682. <caption id="caption35" style="left:230px; top:462px; width:40px; height:20px; vertical-align:middle; ">( 종류</caption>
  683. <bool id="bool5" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/nonadaptresn3" style="left:243px; top:438px; width:20px; height:20px; "/>
  684. <caption id="caption46" style="left:322px; top:438px; width:94px; height:20px; ">중요성 인식 부족</caption>
  685. <caption id="caption57" style="left:373px; top:487px; width:32px; height:20px; ">약명</caption>
  686. <bool id="bool21" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts7" style="left:728px; top:487px; width:20px; height:20px; ">
  687. <script type="javascript" ev:event="xforms-value-changed">
  688. <![CDATA[
  689. if ( bool21.value != 1) {
  690. bool15.value = 0 ;
  691. }
  692. ]]>
  693. </script>
  694. </bool>
  695. <line id="line1" class="line_1" style="x1:0px; y1:175px; x2:1194px; y2:175px; "/>
  696. <caption id="caption5" class="cell_1" style="left:0px; top:28px; width:40px; height:74px; vertical-align:middle; ">
  697. <![CDATA[의뢰
  698. 약물]]>
  699. </caption>
  700. <caption id="caption36" style="left:416px; top:461px; width:55px; height:20px; vertical-align:middle; ">원인약물</caption>
  701. <caption id="caption14" class="cell_1" style="left:0px; top:385px; width:115px; height:24px; vertical-align:middle; ">학습준비도</caption>
  702. <datagrid id="grd_druglist" nodeset="/root/main/srchinfo/item" visibility="hidden" caption="약품코드^구코드^약품명" colsep="^" colwidth="117, 100, 324" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:290px; top:240px; width:270px; height:85px; border-width:3px; border-style:solid; ">
  703. <col ref="drugcd"/>
  704. <col ref="olddrugcd"/>
  705. <col ref="drugnm"/>
  706. <script type="javascript" ev:event="ondblclick">
  707. <![CDATA[
  708. grd_druglist.visible=false;
  709. model.setValue( "/root/main/tmedinfo/curtmedlist["+grd_curtmed.row+"]/drugcd", model.getValue("/root/main/srchinfo/item["+grd_druglist.row+"]/drugcd") );
  710. model.setValue( "/root/main/tmedinfo/curtmedlist["+grd_curtmed.row+"]/drugnm", model.getValue("/root/main/srchinfo/item["+grd_druglist.row+"]/drugnm") );
  711. model.refresh();
  712. //fSetPrcpCd();
  713. ]]>
  714. </script>
  715. </datagrid>
  716. <select1 id="radio1" ref="/root/main/baseinfo/cnsttmedlist/pasttmedadapt" appearance="full" cols="4" overflow="visible" style="left:120px; top:413px; width:140px; height:20px; border-style:none; ">
  717. <choices>
  718. <item>
  719. <label>상</label>
  720. <value>1</value>
  721. </item>
  722. <item>
  723. <label>중</label>
  724. <value>2</value>
  725. </item>
  726. <item>
  727. <label>하</label>
  728. <value>3</value>
  729. </item>
  730. <item>
  731. <label>신환</label>
  732. <value>4</value>
  733. </item>
  734. </choices>
  735. <script type="javascript" ev:event="xforms-value-changed">
  736. <![CDATA[
  737. if (radio1.value > '0' ) {
  738. bool24.value = '0';
  739. bool24.visible = true;
  740. caption64.visible = true;
  741. }else {
  742. bool24.value = '1';
  743. bool24.visible = false ;
  744. caption64.visible = false;
  745. }
  746. ]]>
  747. </script>
  748. </select1>
  749. <bool id="bool6" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/nonadaptresn4" style="left:303px; top:438px; width:20px; height:20px; "/>
  750. <caption id="caption47" style="left:445px; top:437px; width:42px; height:20px; ">기타</caption>
  751. <bool id="bool11" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/tmedcnst4" style="left:713px; top:243px; width:20px; height:20px; "/>
  752. <caption id="caption58" style="left:423px; top:487px; width:62px; height:20px; ">효능 , 효과</caption>
  753. <bool id="bool22" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/cnstreyn" style="left:1002px; top:530px; width:20px; height:20px; "/>
  754. <caption id="caption26" class="tit_2" style="left:995px; top:8px; width:144px; height:13px; ">회신정보</caption>
  755. <line id="line18" class="line_3" style="x1:0px; y1:628px; x2:1194px; y2:628px; "/>
  756. <input id="input1" ref="/root/main/baseinfo/cnsttmedlist/replusetm" class="input_default" style="left:1125px; top:387px; width:40px; height:19px; text-align:center; "/>
  757. <caption id="caption37" style="left:605px; top:462px; width:35px; height:20px; vertical-align:middle; ">증상</caption>
  758. <caption id="caption15" class="cell_1" style="left:0px; top:410px; width:115px; height:23px; vertical-align:middle; ">과거 복약순응도</caption>
  759. <bool id="bool7" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/nonadaptresn5" style="left:423px; top:438px; width:20px; height:20px; ">
  760. <script type="javascript" ev:event="xforms-value-changed">
  761. <![CDATA[
  762. if (model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn5") == "1"){
  763. input4.disabled = false;
  764. }else{
  765. model.setValue("/root/main/baseinfo/cnsttmedlist/nonadaptetc", "");
  766. input4.disabled = true;
  767. }
  768. model.refresh();
  769. ]]>
  770. </script>
  771. </bool>
  772. <select1 id="radio2" ref="/root/main/baseinfo/cnsttmedlist/seffcyn" appearance="full" cols="2" overflow="visible" style="left:120px; top:463px; width:100px; height:20px; border-style:none; ">
  773. <choices>
  774. <item>
  775. <label>아니오</label>
  776. <value>1</value>
  777. </item>
  778. <item>
  779. <label>예</label>
  780. <value>2</value>
  781. </item>
  782. </choices>
  783. <script type="javascript" ev:event="xforms-value-changed">
  784. <![CDATA[
  785. if (model.getValue("/root/main/baseinfo/cnsttmedlist/seffcyn") == "2"){
  786. input5.disabled = false;
  787. input6.disabled = false;
  788. input7.disabled = false;
  789. }else{
  790. input5.disabled = true;
  791. input6.disabled = true;
  792. input7.disabled = true;
  793. model.setValue("/root/main/baseinfo/cnsttmedlist/seffckind", "");
  794. model.setValue("/root/main/baseinfo/cnsttmedlist/seffccasdrug", "");
  795. model.setValue("/root/main/baseinfo/cnsttmedlist/seffcsymp", "");
  796. }
  797. model.refresh();
  798. ]]>
  799. </script>
  800. </select1>
  801. <caption id="caption48" visibility="hidden" style="left:255px; top:243px; width:140px; height:20px; ">처음 복용(사용)하는 경우</caption>
  802. <bool id="bool12" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/tmedcnst5" style="left:858px; top:243px; width:20px; height:20px; "/>
  803. <caption id="caption59" style="left:508px; top:487px; width:84px; height:20px; ">복용법(사용법)</caption>
  804. <bool id="bool23" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/cnstyn" style="left:237px; top:541px; width:20px; height:20px; "/>
  805. <line id="line3" class="line_1" style="x1:0px; y1:23px; x2:990px; y2:23px; "/>
  806. <textarea id="textarea1" ref="/root/main/baseinfo/patinfolist/cnstcnts4" disabled="true" style="left:583px; top:28px; width:205px; height:72px; "/>
  807. <input id="input2" ref="/root/main/baseinfo/cnsttmedlist/repltrgtnm" class="input_search" visibility="hidden" style="left:680px; top:410px; width:110px; height:19px; "/>
  808. <caption id="caption27" class="cell_1" style="left:791px; top:53px; width:70px; height:23px; vertical-align:middle; ">의뢰자</caption>
  809. <caption id="caption38" visibility="hidden" style="left:1184px; top:412px; width:10px; height:20px; vertical-align:middle; ">)</caption>
  810. <caption id="caption16" class="cell_1" style="left:0px; top:435px; width:115px; height:23px; vertical-align:middle; ">불순응 요인</caption>
  811. <bool id="bool8" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/tmedcnst1" style="left:233px; top:243px; width:20px; height:20px; "/>
  812. <caption id="caption49" visibility="hidden" style="left:420px; top:243px; width:140px; height:20px; ">변경된 약물이 있는 경우</caption>
  813. <bool id="bool13" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/tmedcnst6" style="left:1018px; top:243px; width:20px; height:20px; "/>
  814. <select1 id="radio3" ref="/root/main/baseinfo/cnsttmedlist/cnstpat" appearance="full" cols="3" overflow="visible" style="left:286px; top:516px; width:100px; height:20px; border-style:none; ">
  815. <choices>
  816. <item>
  817. <label>상</label>
  818. <value>1</value>
  819. </item>
  820. <item>
  821. <label>중</label>
  822. <value>2</value>
  823. </item>
  824. <item>
  825. <label>하</label>
  826. <value>3</value>
  827. </item>
  828. </choices>
  829. </select1>
  830. <line id="line4" class="line_1" style="x1:995px; y1:23px; x2:1194px; y2:23px; "/>
  831. <caption id="caption8" class="cell_1" style="left:540px; top:28px; width:41px; height:74px; vertical-align:middle; ">
  832. <![CDATA[전달
  833. 사항]]>
  834. </caption>
  835. <caption id="caption28" class="cell_1" style="left:791px; top:78px; width:70px; height:23px; vertical-align:middle; ">의뢰과</caption>
  836. <textarea id="textarea2" ref="/root/main/baseinfo/cnsttmedlist/cmt" style="left:118px; top:565px; width:1075px; height:62px; "/>
  837. <caption id="caption17" class="cell_1" style="left:0px; top:460px; width:115px; height:23px; vertical-align:middle; ">부작용 유무</caption>
  838. <caption id="caption39" class="cell_1" style="left:117px; top:514px; width:115px; height:23px; vertical-align:middle; ">상담 이해도</caption>
  839. <input id="input3" ref="/root/main/baseinfo/cnsttmedlist/tmedcnstetc" class="input_search" disabled="true" visibility="hidden" style="left:290px; top:265px; width:850px; height:19px; "/>
  840. <bool id="bool9" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/tmedcnst2" style="left:398px; top:243px; width:20px; height:20px; "/>
  841. <bool id="bool14" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/tmedcnst7" style="left:233px; top:264px; width:20px; height:20px; ">
  842. <script type="javascript" ev:event="xforms-value-changed">
  843. <![CDATA[
  844. if (model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst7") == "1"){
  845. input3.disabled = false;
  846. }else{
  847. input3.disabled = true;
  848. model.setValue("/root/main/baseinfo/cnsttmedlist/tmedcnstetc", "");
  849. }
  850. model.refresh();
  851. ]]>
  852. </script>
  853. </bool>
  854. <select1 id="radio4" ref="/root/main/baseinfo/cnsttmedlist/cnstprocer" appearance="full" cols="3" overflow="visible" style="left:451px; top:516px; width:100px; height:20px; border-style:none; ">
  855. <choices>
  856. <item>
  857. <label>상</label>
  858. <value>1</value>
  859. </item>
  860. <item>
  861. <label>중</label>
  862. <value>2</value>
  863. </item>
  864. <item>
  865. <label>하</label>
  866. <value>3</value>
  867. </item>
  868. </choices>
  869. </select1>
  870. <line id="line5" class="line_3" style="x1:995px; y1:101px; x2:1194px; y2:101px; "/>
  871. <caption id="caption18" class="cell_1" style="left:0px; top:565px; width:115px; height:63px; vertical-align:middle; ">
  872. <![CDATA[약사
  873. Comment]]>
  874. </caption>
  875. <button id="btn_grdadd" class="btn2_letter3" style="left:1084px; top:154px; width:53px; height:19px; ">
  876. <caption>행추가</caption>
  877. <script type="javascript" ev:event="DOMActivate">
  878. <![CDATA[
  879. grd_curtmed.addRow();
  880. var irow = grd_curtmed.row;
  881. model.setValue("/root/main/baseinfo/curtmedlist["+ irow +"]/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  882. model.setValue("/root/main/baseinfo/curtmedlist["+ irow +"]/tmedflag", "1");
  883. //grd_curtmed.refresh();
  884. ]]>
  885. </script>
  886. </button>
  887. <caption id="caption9" class="cell_1" style="left:791px; top:28px; width:70px; height:23px; vertical-align:middle; ">의뢰일시</caption>
  888. <caption id="caption29" class="cell_1" style="left:995px; top:53px; width:70px; height:23px; vertical-align:middle; ">작성자</caption>
  889. <input id="input4" ref="/root/main/baseinfo/cnsttmedlist/nonadaptetc" class="input_default" disabled="true" style="left:494px; top:438px; width:685px; height:19px; "/>
  890. <bool id="bool15" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts1" style="left:118px; top:487px; width:20px; height:20px; ">
  891. <script type="javascript" ev:event="xforms-value-changed">
  892. <![CDATA[
  893. if (bool15.value== 1) {
  894. /*
  895. bool16.value = 1;
  896. bool17.value = 1;
  897. bool18.value = 1;
  898. bool19.value = 1;
  899. bool20.value = 1;
  900. bool21.value = 1;
  901. */
  902. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts2", "1");
  903. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts3", "1");
  904. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts4", "1");
  905. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts5", "1");
  906. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts6", "1");
  907. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts7", "1");
  908. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts8", "1"); // 20110131 wify 경북대병원 식생활 추가
  909. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts9", "1"); // 20110131 wify 경북대병원 혈액검사 추가
  910. }else{
  911. /*
  912. bool16.value = 0;
  913. bool17.value = 0;
  914. bool18.value = 0;
  915. bool19.value = 0;
  916. bool20.value = 0;
  917. bool21.value = 0;
  918. */
  919. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts2", "0");
  920. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts3", "0");
  921. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts4", "0");
  922. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts5", "0");
  923. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts6", "0");
  924. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts7", "0");
  925. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts8", "0"); // 20110131 wify 경북대병원 식생활 추가
  926. model.setValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts9", "0"); // 20110131 wify 경북대병원 혈액검사 추가
  927. }
  928. model.refresh();
  929. ]]>
  930. </script>
  931. </bool>
  932. <select1 id="radio5" ref="/root/main/baseinfo/cnsttmedlist/cnsttmedwill" appearance="full" cols="3" overflow="visible" style="left:695px; top:516px; width:100px; height:20px; border-style:none; ">
  933. <choices>
  934. <item>
  935. <label>상</label>
  936. <value>1</value>
  937. </item>
  938. <item>
  939. <label>중</label>
  940. <value>2</value>
  941. </item>
  942. <item>
  943. <label>하</label>
  944. <value>3</value>
  945. </item>
  946. </choices>
  947. </select1>
  948. <line id="line6" class="line_1" style="x1:0px; y1:380px; x2:1194px; y2:380px; "/>
  949. <input id="input5" ref="/root/main/baseinfo/cnsttmedlist/seffckind" class="input_default" disabled="true" style="left:270px; top:462px; width:135px; height:19px; "/>
  950. <bool id="bool16" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts2" style="left:218px; top:487px; width:20px; height:20px; ">
  951. <script type="javascript" ev:event="xforms-value-changed">
  952. <![CDATA[
  953. if ( bool16.value != 1) {
  954. bool15.value = 0 ;
  955. }
  956. ]]>
  957. </script>
  958. </bool>
  959. <line id="line7" class="line_2" style="x1:0px; y1:408px; x2:1194px; y2:408px; "/>
  960. <output id="output3" ref="/root/main/baseinfo/patinfolist/cnstdd" class="output_fix" format="yyyy-mm-dd hh:nn" style="left:865px; top:29px; width:125px; height:19px; text-align:center; "/>
  961. <input id="input6" ref="/root/main/baseinfo/cnsttmedlist/seffccasdrug" class="input_default" disabled="true" style="left:470px; top:461px; width:135px; height:19px; "/>
  962. <bool id="bool17" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts3" style="left:353px; top:487px; width:20px; height:20px; ">
  963. <script type="javascript" ev:event="xforms-value-changed">
  964. <![CDATA[
  965. if ( bool17.value != 1) {
  966. bool15.value = 0 ;
  967. }
  968. ]]>
  969. </script>
  970. </bool>
  971. <bool id="bool24" visibility="hidden" checkvalue="1,0" ref="/root/hidden/pasttmedadaptcls" style="left:275px; top:411px; width:25px; height:20px; ">
  972. <script type="javascript" ev:event="xforms-value-changed">
  973. <![CDATA[
  974. if ( bool24.value == '1' ) {
  975. radio1.value = '0';
  976. bool24.visible = false;
  977. caption64.visible = false;
  978. }else{
  979. bool24.visible = true;
  980. caption64.visible = true;
  981. }
  982. ]]>
  983. </script>
  984. </bool>
  985. <caption id="caption64" visibility="hidden" style="left:297px; top:412px; width:45px; height:20px; ">Clear</caption>
  986. <line id="line17" class="line_2" style="x1:0px; y1:562px; x2:1194px; y2:562px; "/>
  987. <caption id="caption50" visibility="hidden" style="left:580px; top:243px; width:140px; height:20px; ">복약순응도가 낮은 경우</caption>
  988. <bool id="bool10" visibility="hidden" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/tmedcnst3" style="left:558px; top:243px; width:20px; height:20px; "/>
  989. <line id="line14" class="line_3" style="x1:0px; y1:149px; x2:990px; y2:149px; "/>
  990. <line id="line19" class="line_2" style="x1:0px; y1:101px; x2:990px; y2:101px; "/>
  991. <select id="chk_cnstcnts17" ref="/root/main/baseinfo/patinfolist/cnstcnts17" navindex="4" overflow="visible" appearance="full" cols="5" vcellspacing="3" style="left:135px; top:109px; width:860px; height:38px; border-style:none; ">
  992. <choices>
  993. <item>
  994. <label>처음복용(사용)하는 경우</label>
  995. <value>1</value>
  996. </item>
  997. <item>
  998. <label>변경된 약물이 있는 경우</label>
  999. <value>2</value>
  1000. </item>
  1001. <item>
  1002. <label>복약순응도가 낮은 경우</label>
  1003. <value>3</value>
  1004. </item>
  1005. <item>
  1006. <label>부작용이 발생한 경우</label>
  1007. <value>4</value>
  1008. </item>
  1009. <item>
  1010. <label>환자가 알고자 하는 경우</label>
  1011. <value>5</value>
  1012. </item>
  1013. <item>
  1014. <label>Critical Pathway 대상환자</label>
  1015. <value>6</value>
  1016. </item>
  1017. <item>
  1018. <label>기타</label>
  1019. <value>7</value>
  1020. </item>
  1021. </choices>
  1022. </select>
  1023. <input id="ipt_cnstcnts18" ref="/root/main/baseinfo/patinfolist/cnstcnts18" style="left:345px; top:128px; width:645px; height:19px; "/>
  1024. <caption id="caption65" class="cell_1" style="left:0px; top:104px; width:130px; height:45px; ">복약상담필요부분</caption>
  1025. <caption id="caption82" class="cell_1" style="left:202px; top:385px; width:80px; height:23px; vertical-align:middle; ">교육대상자</caption>
  1026. <input id="ipt_eductrgtmanetc" ref="/root/main/baseinfo/cnsttmedlist/eductrgtmanetc" class="input_default" disabled="true" maxlength="15" style="left:367px; top:387px; width:78px; height:19px; "/>
  1027. <caption id="caption84" class="cell_1" style="left:450px; top:385px; width:80px; height:23px; vertical-align:middle; ">교육방법</caption>
  1028. <caption id="caption85" class="cell_1" style="left:740px; top:385px; width:80px; height:23px; vertical-align:middle; ">교육결과</caption>
  1029. <select1 id="cmb_educmthd" ref="/root/main/baseinfo/cnsttmedlist/educmthdcd" appearance="minimal" style="left:533px; top:387px; width:102px; height:19px; ">
  1030. <choices>
  1031. <item>
  1032. <label>구두설명</label>
  1033. <value>1</value>
  1034. </item>
  1035. <item>
  1036. <label>유인물 제공</label>
  1037. <value>2</value>
  1038. </item>
  1039. <item>
  1040. <label>시범 보이기</label>
  1041. <value>3</value>
  1042. </item>
  1043. <item>
  1044. <label>시청각 예제</label>
  1045. <value>4</value>
  1046. </item>
  1047. <item>
  1048. <label>기타</label>
  1049. <value>99</value>
  1050. </item>
  1051. <item>
  1052. <label/>
  1053. <value>-</value>
  1054. </item>
  1055. </choices>
  1056. <script type="javascript" ev:event="xforms-value-changed">
  1057. <![CDATA[
  1058. fMakeDisState(cmb_educmthd, "99", ipt_educmthdetc);
  1059. ]]>
  1060. </script>
  1061. </select1>
  1062. <input id="ipt_educmthdetc" ref="/root/main/baseinfo/cnsttmedlist/educmthdetc" class="input_default" disabled="true" maxlength="30" style="left:637px; top:387px; width:98px; height:19px; "/>
  1063. <select1 id="cmb_lnprep" ref="/root/main/baseinfo/cnsttmedlist/lnprepcd" appearance="minimal" style="left:120px; top:387px; width:76px; height:19px; ">
  1064. <choices>
  1065. <item>
  1066. <label>Y</label>
  1067. <value>1</value>
  1068. </item>
  1069. <item>
  1070. <label>N</label>
  1071. <value>2</value>
  1072. </item>
  1073. <item>
  1074. <label/>
  1075. <value>-</value>
  1076. </item>
  1077. </choices>
  1078. </select1>
  1079. <select1 id="cmb_educrslt" ref="/root/main/baseinfo/cnsttmedlist/educrsltcd" appearance="minimal" style="left:823px; top:387px; width:107px; height:19px; ">
  1080. <choices>
  1081. <item>
  1082. <label>재교육필요</label>
  1083. <value>1</value>
  1084. </item>
  1085. <item>
  1086. <label>보통</label>
  1087. <value>2</value>
  1088. </item>
  1089. <item>
  1090. <label>배운 것을 말로 표현할 수 있음</label>
  1091. <value>3</value>
  1092. </item>
  1093. <item>
  1094. <label>배운 것을 시범 보일 수 있음</label>
  1095. <value>4</value>
  1096. </item>
  1097. <item>
  1098. <label>기타</label>
  1099. <value>99</value>
  1100. </item>
  1101. <item>
  1102. <label/>
  1103. <value>-</value>
  1104. </item>
  1105. </choices>
  1106. <script type="javascript" ev:event="xforms-value-changed">
  1107. <![CDATA[
  1108. fMakeDisState(cmb_educrslt, "99", ipt_educrsltetc);
  1109. ]]>
  1110. </script>
  1111. </select1>
  1112. <select1 id="cmb_eductrgtman" ref="/root/main/baseinfo/cnsttmedlist/eductrgtmancd" appearance="minimal" style="left:285px; top:387px; width:80px; height:19px; ">
  1113. <choices>
  1114. <item>
  1115. <label>환자</label>
  1116. <value>1</value>
  1117. </item>
  1118. <item>
  1119. <label>보호자</label>
  1120. <value>2</value>
  1121. </item>
  1122. <item>
  1123. <label>환자+보호자</label>
  1124. <value>3</value>
  1125. </item>
  1126. <item>
  1127. <label>기타</label>
  1128. <value>99</value>
  1129. </item>
  1130. <item>
  1131. <label/>
  1132. <value>-</value>
  1133. </item>
  1134. </choices>
  1135. <script type="javascript" ev:event="xforms-value-changed">
  1136. <![CDATA[
  1137. fMakeDisState(cmb_eductrgtman, "99", ipt_eductrgtmanetc);
  1138. ]]>
  1139. </script>
  1140. </select1>
  1141. <input id="ipt_educrsltetc" ref="/root/main/baseinfo/cnsttmedlist/educrsltetc" class="input_default" disabled="true" maxlength="30" style="left:932px; top:387px; width:93px; height:19px; "/>
  1142. <caption id="caption66" class="cell_1" style="left:410px; top:410px; width:80px; height:23px; vertical-align:middle; ">음 주</caption>
  1143. <caption id="caption67" class="cell_1" style="left:695px; top:410px; width:80px; height:23px; vertical-align:middle; ">출 혈</caption>
  1144. <caption id="caption68" class="cell_1" style="left:960px; top:410px; width:80px; height:23px; vertical-align:middle; ">건강기능식품</caption>
  1145. <select1 id="radio6" ref="/root/main/baseinfo/cnsttmedlist/drunk" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:495px; top:413px; width:190px; height:20px; border-style:none; ">
  1146. <choices>
  1147. <item>
  1148. <label>예</label>
  1149. <value>1</value>
  1150. </item>
  1151. <item>
  1152. <label>아니오</label>
  1153. <value>2</value>
  1154. </item>
  1155. <item>
  1156. <label>가끔</label>
  1157. <value>3</value>
  1158. </item>
  1159. </choices>
  1160. </select1>
  1161. <select1 id="radio7" ref="/root/main/baseinfo/cnsttmedlist/blooding" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:780px; top:413px; width:130px; height:20px; border-style:none; ">
  1162. <choices>
  1163. <item>
  1164. <label>예</label>
  1165. <value>1</value>
  1166. </item>
  1167. <item>
  1168. <label>아니오</label>
  1169. <value>2</value>
  1170. </item>
  1171. <item>
  1172. <label>가끔</label>
  1173. <value>3</value>
  1174. </item>
  1175. </choices>
  1176. </select1>
  1177. <select1 id="radio8" ref="/root/main/baseinfo/cnsttmedlist/healthfood" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:1050px; top:413px; width:130px; height:20px; border-style:none; ">
  1178. <choices>
  1179. <item>
  1180. <label>예</label>
  1181. <value>1</value>
  1182. </item>
  1183. <item>
  1184. <label>아니오</label>
  1185. <value>2</value>
  1186. </item>
  1187. <item>
  1188. <label>가끔</label>
  1189. <value>3</value>
  1190. </item>
  1191. </choices>
  1192. </select1>
  1193. <caption id="caption69" style="left:830px; top:487px; width:106px; height:20px; ">식생활</caption>
  1194. <bool id="bool25" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts8" style="left:808px; top:487px; width:20px; height:20px; ">
  1195. <script type="javascript" ev:event="xforms-value-changed">
  1196. <![CDATA[
  1197. if ( bool25.value != 1) {
  1198. bool15.value = 0 ;
  1199. }
  1200. ]]>
  1201. </script>
  1202. </bool>
  1203. <caption id="caption70" style="left:905px; top:487px; width:106px; height:20px; ">혈액검사</caption>
  1204. <bool id="bool26" checkvalue="1,0" ref="/root/main/baseinfo/cnsttmedlist/majrcnstcnts9" style="left:883px; top:487px; width:20px; height:20px; ">
  1205. <script type="javascript" ev:event="xforms-value-changed">
  1206. <![CDATA[
  1207. if ( bool26.value != 1) {
  1208. bool15.value = 0 ;
  1209. }
  1210. ]]>
  1211. </script>
  1212. </bool>
  1213. </group>
  1214. </group>
  1215. <group id="group4" scroll="auto" style="left:0px; top:18px; width:1195px; height:27px; ">
  1216. <button id="button2" class="btn3_letter4" style="left:1px; top:5px; width:80px; height:22px; ">
  1217. <caption>약력조회</caption>
  1218. <script type="javascript" ev:event="DOMActivate">
  1219. <![CDATA[
  1220. open("SMADB10100",0,0,0,"SMADB10100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
  1221. ]]>
  1222. </script>
  1223. </button>
  1224. <button id="button3" class="btn3_letter6" style="left:83px; top:5px; width:104px; height:22px; ">
  1225. <caption>통합결과조회</caption>
  1226. <script type="javascript" ev:event="DOMActivate">
  1227. <![CDATA[
  1228. modal("SMAER00800 ","","","","","/root/main/baseinfo/patinfolist/pid","/root/send/data/singdata/srchpid");
  1229. ]]>
  1230. </script>
  1231. </button>
  1232. <button id="button4" class="btn3_letter6" style="left:189px; top:5px; width:104px; height:22px; ">
  1233. <caption>통합기록조회</caption>
  1234. <script type="javascript" ev:event="DOMActivate">
  1235. <![CDATA[
  1236. setParameter("SMMRI00400_param_pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1237. open("SMMRI00400");
  1238. ]]>
  1239. </script>
  1240. </button>
  1241. <button id="button5" class="btn3_letter4" style="left:295px; top:5px; width:80px; height:22px; ">
  1242. <caption>약품편람</caption>
  1243. <script type="javascript" ev:event="DOMActivate">
  1244. <![CDATA[
  1245. open("SMADB01900");
  1246. ]]>
  1247. </script>
  1248. </button>
  1249. <button id="btn_prt" class="btn6_letter2" style="left:564px; top:5px; width:56px; height:22px; ">
  1250. <caption>출력</caption>
  1251. <script type="javascript" ev:event="DOMActivate">
  1252. <![CDATA[
  1253. // 출력정보 인스턴스 생성 - 2009-05-18 김귀남 === 안성심 약사 요청사항
  1254. model.makeNode("/root/hidden/prntinfo/patinfolist");
  1255. model.copyNode("/root/hidden/prntinfo/patinfolist", "/root/main/baseinfo/patinfolist");
  1256. // ===============================================================================
  1257. // 상담대상 체크
  1258. // ===============================================================================
  1259. var repltrgt = "";
  1260. var repltrgtnm = model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgtnm")
  1261. //alert("복약상담 필요부분 : " + repltrgtnm);
  1262. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgt1") == 1 ) { //상담대상 - 환자
  1263. repltrgt += caption41.text;
  1264. }
  1265. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgt2") == 1 ) { //상담대상 - 보호자
  1266. if(repltrgt != "") repltrgt += ", ";
  1267. repltrgt += caption42.text
  1268. if(repltrgtnm != "" ) repltrgt += " - " + repltrgtnm ;
  1269. }
  1270. // *******************************************************************************
  1271. // alert("상담대상 : " + repltrgt);
  1272. // ===============================================================================
  1273. // 부작용유무 체크
  1274. // ===============================================================================
  1275. var seffcyn = "";
  1276. if(radio2.label != ""){
  1277. var seffcyn = radio2.label;
  1278. if (radio2.value == 2 ) { // 부작용 유무 - 예
  1279. var seffckind = model.getValue("/root/main/baseinfo/cnsttmedlist/seffckind");
  1280. var seffccasdrug = model.getValue("/root/main/baseinfo/cnsttmedlist/seffccasdrug");
  1281. var seffcsymp = model.getValue("/root/main/baseinfo/cnsttmedlist/seffcsymp");
  1282. if(seffckind != "" || seffccasdrug != "" || seffcsymp != "")
  1283. seffcyn += "(";
  1284. seffcyn += "종류 : "+ model.getValue("/root/main/baseinfo/cnsttmedlist/seffckind");
  1285. if(seffcyn != "") seffcyn += "\n";
  1286. seffcyn += "원인약물 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/seffccasdrug");
  1287. if(seffcyn != "") seffcyn += "\n";
  1288. seffcyn += "증상 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/seffcsymp");
  1289. seffcyn += ")";
  1290. }
  1291. }
  1292. // *******************************************************************************
  1293. //alert("부작용 유무 : " + seffcyn);
  1294. // ===============================================================================
  1295. // 복약상담 필요부분 체크
  1296. // ===============================================================================
  1297. var tmedcnst = "" ;
  1298. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst1") == 1 ) { //복약상담 필요부분 - 처음 복용(사용하는경우)
  1299. tmedcnst += caption48.text + " ";
  1300. }
  1301. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst2") == 1 ) { //복약상담 필요부분 - 변경된 약물이 있는 경우
  1302. if(tmedcnst != "") tmedcnst += "\n";
  1303. tmedcnst += caption49.text + " ";
  1304. }
  1305. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst3") == 1 ) { //복약상담 필요부분 - 복약순응도가 낮은 경우
  1306. if(tmedcnst != "") tmedcnst += "\n";
  1307. tmedcnst += caption50.text + " " ;
  1308. }
  1309. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst4") == 1 ) { //복약상담 필요부분 - 부작용이 발생한 경우
  1310. if(tmedcnst != "") tmedcnst += "\n";
  1311. tmedcnst += caption51.text + " ";
  1312. }
  1313. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst5") == 1 ) { //복약상담 필요부분 - 환자가 알고자 하는 경우
  1314. if(tmedcnst != "") tmedcnst += "\n";
  1315. tmedcnst +=caption52.text + " ";
  1316. }
  1317. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst6") == 1 ) { //복약상담 필요부분 - Critical Pathway 대상환자
  1318. if(tmedcnst != "") tmedcnst += "\n";
  1319. tmedcnst += caption53.text + " ";
  1320. }
  1321. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst7") == 1 ) { //복약상담 필요부분 - 기타
  1322. if(tmedcnst != "") tmedcnst += "\n";
  1323. tmedcnst += caption54.text ;
  1324. if(model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnstetc") != "")
  1325. tmedcnst += " - " + model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnstetc") ;
  1326. }
  1327. // *******************************************************************************
  1328. /*alert("복약상담 필요부분 : " + tmedcnst);*/
  1329. // ===============================================================================
  1330. // 주요 상담 내용
  1331. // ===============================================================================
  1332. var majrcnstcnts = "" ;
  1333. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts1") == 1 ) { //주요 상담내용 - 다음 사항모두
  1334. majrcnstcnts += caption56.text + "\n" +
  1335. caption57.text + "\n" +
  1336. caption58.text + "\n" +
  1337. caption59.text + "\n" +
  1338. caption60.text + "\n" +
  1339. caption61.text;
  1340. }else{
  1341. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts2") == 1 ) { //주요 상담내용 - 복용(사용)의 중요성
  1342. majrcnstcnts += caption56.text + " " ;
  1343. }
  1344. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts3") == 1 ) { //주요 상담내용 - 약명
  1345. if(majrcnstcnts != "" ) majrcnstcnts += "\n";
  1346. majrcnstcnts += caption57.text + " " ;
  1347. }
  1348. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts4") == 1 ) { //주요 상담내용 - 효능 , 효과
  1349. if(majrcnstcnts != "" ) majrcnstcnts += "\n";
  1350. majrcnstcnts += caption58.text + " " ;
  1351. }
  1352. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts5") == 1 ) { //주요 상담내용 - 복용법(사용법)
  1353. if(majrcnstcnts != "" ) majrcnstcnts += "\n";
  1354. majrcnstcnts += caption59.text + " " ;
  1355. }
  1356. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts6") == 1 ) { //주요 상담내용 - 부작용 및 주의사항
  1357. if(majrcnstcnts != "" ) majrcnstcnts += "\n";
  1358. majrcnstcnts += caption60.text + " " ;
  1359. }
  1360. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts7") == 1 ) { //주요 상담내용 - 상호작용
  1361. if(majrcnstcnts != "" ) majrcnstcnts += "\n";
  1362. majrcnstcnts += caption61.text + " " ;
  1363. }
  1364. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts8") == 1 ) { //주요 상담내용 - 식생활
  1365. if(majrcnstcnts != "" ) majrcnstcnts += "\n";
  1366. majrcnstcnts += caption69.text + " " ;
  1367. }
  1368. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts9") == 1 ) { //주요 상담내용 - 혈액검사
  1369. if(majrcnstcnts != "" ) majrcnstcnts += "\n";
  1370. majrcnstcnts += caption70.text + " " ;
  1371. }
  1372. }
  1373. // *******************************************************************************
  1374. //alert("주요상담 내용 : " + majrcnstcnts);
  1375. // ===============================================================================
  1376. // 상담이해도
  1377. // ===============================================================================
  1378. var cnstintelligibility = "";
  1379. if(radio3.label != ""){
  1380. cnstintelligibility += caption23.value + " : " + radio3.label;
  1381. }
  1382. if(radio4.label != ""){
  1383. if (cnstintelligibility != "") cnstintelligibility += ",";
  1384. cnstintelligibility += caption24.value + " : " + radio4.label;
  1385. }
  1386. //alert("상담이해도 : " + cnstintelligibility);
  1387. // ===============================================================================
  1388. // 복약의지
  1389. // ===============================================================================
  1390. var cnsttmedwill = "" ; // 복약의지
  1391. if(radio5.label != ""){
  1392. cnsttmedwill = radio5.label;
  1393. }
  1394. // *******************************************************************************
  1395. //alert("복약의지 : " + cnsttmedwill);
  1396. // ===============================================================================
  1397. // 약사의견
  1398. // ===============================================================================
  1399. var cmt="";
  1400. if (model.getValue("/root/main/baseinfo/cnsttmedlist/cmt") !="" ){
  1401. var cmt = "" ;
  1402. cmt += model.getValue("/root/main/baseinfo/cnsttmedlist/cmt").replace(/\n/gi,"\n");
  1403. }
  1404. // *******************************************************************************
  1405. //alert("약사의견 : " + cmt);
  1406. var repldd = model.getValue("/root/main/baseinfo/patinfolist/repldd").substr(0,8); // 회신일시
  1407. var repluserid = model.getValue("/root/main/baseinfo/patinfolist/repluserid") // 회신약사
  1408. //alert(repldd + repluserid);
  1409. model.makeValue("/root/hidden/prntinfo/prntinfolist/repltrgt",repltrgt); // 상담대상
  1410. model.makeValue("/root/hidden/prntinfo/prntinfolist/seffcyn",seffcyn); // 부작용 유무
  1411. model.makeValue("/root/hidden/prntinfo/prntinfolist/tmedcnst",tmedcnst); // 복약상담 필요부분
  1412. model.makeValue("/root/hidden/prntinfo/prntinfolist/majrcnstcnts",majrcnstcnts); // 주요상담내용
  1413. model.makeValue("/root/hidden/prntinfo/prntinfolist/cnstintelligibility",cnstintelligibility); // 상담이해도
  1414. model.makeValue("/root/hidden/prntinfo/prntinfolist/cnsttmedwill",cnsttmedwill); // 복약의지
  1415. model.makeValue("/root/hidden/prntinfo/prntinfolist/cmt",cmt); // 약사의견
  1416. model.makeValue("/root/hidden/prntinfo/prntinfolist/repldd",repldd); // 회신일자
  1417. model.makeValue("/root/hidden/prntinfo/prntinfolist/repluserid",repluserid); // 회신약사
  1418. // alert("1 : " + repltrgt);
  1419. // alert("1 : " + seffcyn);
  1420. // alert("1 : " + tmedcnst);
  1421. // alert("1 : " + majrcnstcnts);
  1422. // alert("1 : " + cnstintelligibility);
  1423. // alert("1 : " + cnsttmedwill);
  1424. // alert("1 : " + tmedcnst);
  1425. exeReportPreview("RPADC02801", "XMLSTR", "", "", "true","","","","","true"); // 복약상담회신서 (임시) 안성심 약사 요청. 2009-05-19 - 김귀남
  1426. ]]>
  1427. </script>
  1428. </button>
  1429. <button id="btn_save" class="btn4_letter2" style="left:1022px; top:5px; width:56px; height:22px; ">
  1430. <caption>저장</caption>
  1431. <script type="javascript" ev:event="DOMActivate">
  1432. <![CDATA[
  1433. if ( messageBox("","Q002")==6 ) {
  1434. if (datacheck() == false){
  1435. return;
  1436. }
  1437. var update = getGridUpdateData(grd_curtmed);
  1438. model.setValue("/root/send/req/curtmedlist", update);
  1439. var update = getGridUpdateData(datagrid3);
  1440. model.setValue("/root/send/req/curdoubtlist", update);
  1441. model.copyNode("/root/send/req/cnsttmedlist", "/root/main/baseinfo/cnsttmedlist");
  1442. model.makeValue("/root/send/req/cnsttmedlist/statflag", "D"); //저장
  1443. model.makeValue("/root/send/req/cnsttmedlist/cnststat", "21"); //회신임시
  1444. if (submit("TXADC02801")){
  1445. if ( model.getValue("/root/send/rgstseqno") == "" ) {
  1446. model.setValue("/root/send/rgstseqno", model.getValue("/root/hidden/ret/rgstseqno"));
  1447. }
  1448. model.setValue("/root/main/baseinfo/cnsttmedlist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1449. model.setValue("/root/main/baseinfo/cnsttmedlist/statflag", "D");
  1450. //submit("TXADC02802");
  1451. btn_sea.dispatch("DOMActivate");
  1452. model.refresh();
  1453. }
  1454. //submit("TRADC02802",false);
  1455. /*
  1456. model.setValue("/root/main/baseinfo/cnsttmedlist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1457. model.setValue("/root/main/baseinfo/cnsttmedlist/statflag", "D");
  1458. submit("TXADC02802");
  1459. submit("TRADC02803", false);
  1460. */
  1461. }
  1462. ]]>
  1463. </script>
  1464. <script type="javascript" ev:event="DOMFocusIn">
  1465. <![CDATA[
  1466. checkKeyColumn("grd_curtmed");
  1467. ]]>
  1468. </script>
  1469. </button>
  1470. <button id="btn_del" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  1471. <caption>삭제</caption>
  1472. <script type="javascript" ev:event="DOMActivate">
  1473. <![CDATA[
  1474. model.setValue("/root/main/baseinfo/cnsttmedlist/pid", model.getValue("/root/send/pid"));
  1475. model.copyNode("/root/send/req/cnsttmedlist", "/root/main/baseinfo/cnsttmedlist");
  1476. model.makeValue("/root/send/req/cnsttmedlist/statflag", ""); //삭제
  1477. if (submit("TXADC02801")){
  1478. btn_sea.dispatch("DOMActivate");
  1479. }
  1480. //submit("TRADC02802",false);
  1481. //submit("TRADC02803");
  1482. ]]>
  1483. </script>
  1484. </button>
  1485. <button id="btn_req" class="btn4_letter2" style="left:1080px; top:5px; width:56px; height:22px; ">
  1486. <caption>회신</caption>
  1487. <script type="javascript" ev:event="DOMActivate">
  1488. <![CDATA[
  1489. var sTemp = "";
  1490. var sEduPrepYN = "";
  1491. var sEduWho = "";
  1492. var sEduWay = "";
  1493. var sEduRslt = "";
  1494. if (datacheck() == false){
  1495. return;
  1496. }
  1497. if(submit("TRADC62202")){
  1498. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  1499. if(cnststat == "04"){
  1500. messageBox("[취소] 더이상 수정하실 수","I004");
  1501. return ;
  1502. }else if (cnststat == "30"){
  1503. messageBox("[회신확정] 더이상 수정하실 수","I004");
  1504. return;
  1505. }
  1506. }
  1507. //회신내역
  1508. var title = "\n\t\t\t\t\t [ 복약상담(일반) 회신서 ]\n" ;
  1509. sTemp = " ";
  1510. if(sTemp != "") sTemp += "\n";
  1511. title += sTemp;
  1512. sTemp = "";
  1513. if(model.getValue("/root/main/baseinfo/cnsttmedlist/lnprepcd") != "" && model.getValue("/root/main/baseinfo/cnsttmedlist/lnprepcd") != "-") {
  1514. sTemp += "\n* 학습준비도 : " + cmb_lnprep.label;
  1515. sEduPrepYN = cmb_lnprep.label;
  1516. }
  1517. // if(sTemp != "") sTemp += "\n";
  1518. // title += sTemp;
  1519. if(model.getValue("/root/main/baseinfo/cnsttmedlist/eductrgtmancd") != "" && model.getValue("/root/main/baseinfo/cnsttmedlist/eductrgtmancd") != "-") {
  1520. sTemp += "\n* 교육대상자 : " + cmb_eductrgtman.label;
  1521. sEduWho = cmb_eductrgtman.label;
  1522. if(model.getValue("/root/main/baseinfo/cnsttmedlist/eductrgtmancd") == "99") {
  1523. sTemp += "(" + ipt_eductrgtmanetc.label + ")";
  1524. sEduWho += "(" + ipt_eductrgtmanetc.label + ")";
  1525. }
  1526. }
  1527. if(model.getValue("/root/main/baseinfo/cnsttmedlist/educmthdcd") != "" && model.getValue("/root/main/baseinfo/cnsttmedlist/educmthdcd") != "-") {
  1528. sTemp += "\n* 교육방법 : " + cmb_educmthd.label;
  1529. sEduWay = cmb_educmthd.label;
  1530. if(model.getValue("/root/main/baseinfo/cnsttmedlist/educmthdcd") == "99") {
  1531. sTemp += "(" + ipt_educmthdetc.label + ")";
  1532. sEduWay += "(" + ipt_educmthdetc.label + ")";
  1533. }
  1534. }
  1535. if(model.getValue("/root/main/baseinfo/cnsttmedlist/educrsltcd") != "" && model.getValue("/root/main/baseinfo/cnsttmedlist/educrsltcd") != "-") {
  1536. sTemp += "\n* 교육결과 : " + cmb_educrslt.label;
  1537. sEduRslt = cmb_educrslt.label;
  1538. if(model.getValue("/root/main/baseinfo/cnsttmedlist/educrsltcd") == "99") {
  1539. sTemp += "(" + ipt_educrsltetc.label + ")";
  1540. sEduRslt += "(" + ipt_educrsltetc.label + ")";
  1541. }
  1542. }
  1543. if (model.getValue("/root/main/baseinfo/cnsttmedlist/replusetm") != "" ) {
  1544. sTemp += "\n* 상담소요시간 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/replusetm") + caption34.text ;
  1545. }
  1546. title += sTemp;
  1547. sTemp = "";
  1548. sTemp = "\n\n* 과거복약순응도 : " + radio1.label ;
  1549. title += sTemp;
  1550. sTemp = "\n* 음주 : " + radio6.label ;
  1551. title += sTemp;
  1552. sTemp = "\n* 출혈 : " + radio7.label ;
  1553. title += sTemp;
  1554. sTemp = "\n* 건강기능식품 : " + radio8.label ;
  1555. title += sTemp;
  1556. sTemp = " ";
  1557. sTemp = "\n\n* 불순응 요인 : "
  1558. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn1") == 1 ) { //불순응 요인 - 잊음
  1559. sTemp += caption43.text + " " ;
  1560. }
  1561. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn2") == 1 ) { //불순응 요인 - 생활패턴
  1562. sTemp += caption44.text + " " ;
  1563. }
  1564. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn3") == 1 ) { //불순응 요인 - 부작용
  1565. sTemp += caption45.text + " " ;
  1566. }
  1567. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn4") == 1 ) { //불순응 요인 - 중요성 인식 부족
  1568. sTemp += caption46.text + " " ;
  1569. }
  1570. if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn5") == 1 ) { //불순응 요인 - 기타
  1571. sTemp += caption47.text + "-" + model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptetc") ;
  1572. }
  1573. title += sTemp;
  1574. sTemp = " ";
  1575. sTemp = "\n\n* 부작용 유무 : " + radio2.label;
  1576. if (radio2.value == 2 ) { // 부작용 유무 - 예
  1577. sTemp += "\n ( 종류 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/seffckind") + " "
  1578. + "\n 원인약물 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/seffccasdrug") + " "
  1579. + "\n 증상 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/seffcsymp") + " )" ;
  1580. }
  1581. title += sTemp;
  1582. // if(isSearchString(chk_cnstcnts17.value, 1)) {
  1583. // sTemp = "\n* 상담의뢰 사유";
  1584. // sTemp += "\n\t- 처음복용(사용)하는 경우"
  1585. // }
  1586. //
  1587. // if(isSearchString(chk_cnstcnts17.value, 2)) {
  1588. // if(sTemp != "") {
  1589. // sTemp += "\n\t- 변경된 약물이 있는 경우"
  1590. // } else {
  1591. // sTemp = "\n* 상담의뢰 사유";
  1592. // sTemp += "\n\t- 변경된 약물이 있는 경우"
  1593. // }
  1594. // }
  1595. //
  1596. // if(isSearchString(chk_cnstcnts17.value, 3)) {
  1597. // if(sTemp != "") {
  1598. // sTemp += "\n\t- 복약순응도가 낮은 경우"
  1599. // } else {
  1600. // sTemp = "\n* 상담의뢰 사유";
  1601. // sTemp += "\n\t- 복약순응도가 낮은 경우"
  1602. // }
  1603. // }
  1604. //
  1605. // if(isSearchString(chk_cnstcnts17.value, 4)) {
  1606. // if(sTemp != "") {
  1607. // sTemp += "\n\t- 부작용이 발생한 경우"
  1608. // } else {
  1609. // sTemp = "\n* 상담의뢰 사유";
  1610. // sTemp += "\n\t- 부작용이 발생한 경우"
  1611. // }
  1612. // }
  1613. //
  1614. // if(isSearchString(chk_cnstcnts17.value, 5)) {
  1615. // if(sTemp != "") {
  1616. // sTemp += "\n\t- 환자가 알고자 하는 경우"
  1617. // } else {
  1618. // sTemp = "\n* 상담의뢰 사유";
  1619. // sTemp += "\n\t- 환자가 알고자 하는 경우"
  1620. // }
  1621. // }
  1622. //
  1623. // if(isSearchString(chk_cnstcnts17.value, 6)) {
  1624. // if(sTemp != "") {
  1625. // sTemp += "\n\t- Critical Pathway 대상환자"
  1626. // } else {
  1627. // sTemp = "\n* 상담의뢰 사유";
  1628. // sTemp += "\n\t- Critical Pathway 대상환자"
  1629. // }
  1630. // }
  1631. //
  1632. // if(isSearchString(chk_cnstcnts17.value, 7)) {
  1633. // if(sTemp != "") {
  1634. // sTemp += "\n\t- 기타(" + model.getValue("/root/main/baseinfo/patinfolist/cnstcnts18") + ")";
  1635. // } else {
  1636. // sTemp = "\n* 상담의뢰 사유";
  1637. // sTemp += "\n\t- 기타(" + model.getValue("/root/main/baseinfo/patinfolist/cnstcnts18") + ")";
  1638. // }
  1639. // }
  1640. /*
  1641. sTemp = "";
  1642. if(model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgt1") == "1" ) {
  1643. sTemp = "\n* 상담대상 : " + caption41.text ;
  1644. }
  1645. if(model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgt2") == "1" ) {
  1646. if(sTemp != "") {
  1647. sTemp += "/" + caption42.text ;
  1648. } else {
  1649. sTemp = "\n* 상담대상 : " + caption42.text ;
  1650. }
  1651. }
  1652. if(model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgtnm") != "" ) {
  1653. if(sTemp != "") {
  1654. sTemp += "/" + model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgtnm");
  1655. } else {
  1656. sTemp = "\n* 상담대상 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgtnm") ;
  1657. }
  1658. }
  1659. title += sTemp;
  1660. */
  1661. sTemp = "";
  1662. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts1") == 1) {
  1663. sTemp = "\n\n* 주요 상담 내용";
  1664. sTemp += "\n\t- " + caption55.text;
  1665. }
  1666. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts2") == "1" ) {
  1667. if(sTemp != "") {
  1668. sTemp += "\n\t- " + caption56.text;
  1669. } else {
  1670. sTemp = "\n* 주요 상담 내용";
  1671. sTemp += "\n\t- " + caption56.text;
  1672. }
  1673. }
  1674. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts3") == "1" ) {
  1675. if(sTemp != "") {
  1676. sTemp += "\n\t- " + caption57.text;
  1677. } else {
  1678. sTemp = "\n* 주요 상담 내용";
  1679. sTemp += "\n\t- " + caption57.text;
  1680. }
  1681. }
  1682. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts4") == "1" ) {
  1683. if(sTemp != "") {
  1684. sTemp += "\n\t- " + caption58.text;
  1685. } else {
  1686. sTemp = "\n* 주요 상담 내용";
  1687. sTemp += "\n\t- " + caption58.text;
  1688. }
  1689. }
  1690. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts5") == "1" ) {
  1691. if(sTemp != "") {
  1692. sTemp += "\n\t- " + caption59.text;
  1693. } else {
  1694. sTemp = "\n* 주요 상담 내용";
  1695. sTemp += "\n\t- " + caption59.text;
  1696. }
  1697. }
  1698. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts6") == "1" ) {
  1699. if(sTemp != "") {
  1700. sTemp += "\n\t- " + caption60.text;
  1701. } else {
  1702. sTemp = "\n* 주요 상담 내용";
  1703. sTemp += "\n\t- " + caption60.text;
  1704. }
  1705. }
  1706. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts7") == "1" ) {
  1707. if(sTemp != "") {
  1708. sTemp += "\n\t- " + caption61.text;
  1709. } else {
  1710. sTemp = "\n* 주요 상담 내용";
  1711. sTemp += "\n\t- " + caption61.text;
  1712. }
  1713. }
  1714. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts8") == "1" ) {
  1715. if(sTemp != "") {
  1716. sTemp += "\n\t- " + caption69.text;
  1717. } else {
  1718. sTemp = "\n* 주요 상담 내용";
  1719. sTemp += "\n\t- " + caption69.text;
  1720. }
  1721. }
  1722. if(model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts9") == "1" ) {
  1723. if(sTemp != "") {
  1724. sTemp += "\n\t- " + caption70.text;
  1725. } else {
  1726. sTemp = "\n* 주요 상담 내용";
  1727. sTemp += "\n\t- " + caption70.text;
  1728. }
  1729. }
  1730. title += sTemp;
  1731. sTemp = "";
  1732. if(radio3.label != "" ) {
  1733. sTemp = "\n\n* 상담 소견";
  1734. sTemp += "\n\t 상담이해도 : 환자(" + radio3.label + ") ";
  1735. }
  1736. if(radio4.label != "") {
  1737. if(sTemp != "") {
  1738. sTemp += " 보호자(" + radio4.label + ")";
  1739. } else {
  1740. sTemp = "\n\t 상담이해도 : 보호자(" + radio4.label + ")";
  1741. }
  1742. }
  1743. if(radio5.label != "" ) {
  1744. sTemp += "\n\t 복약의지 : " + radio3.label ;
  1745. }
  1746. if(model.getValue("/root/main/baseinfo/cnsttmedlist/cnstyn") == "1" ) {
  1747. sTemp += "\n\t 재상담 여부 : " + caption63.text;
  1748. }
  1749. title += sTemp;
  1750. // if (model.getValue("/root/main/baseinfo/cnsttmedlist/cnstreyn" ) == 1) title += "\n* 재상담여부 : 재상담 필요함";
  1751. var replcnts = title;
  1752. // var Ritem1 = "\n\n* 상담대상 : ";
  1753. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgt1") == 1 ) { //상담대상 - 환자
  1754. // Ritem1 += caption41.text + " " ;
  1755. // }
  1756. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgt2") == 1 ) { //상담대상 - 보호자
  1757. // Ritem1 += caption42.text+ "-" + model.getValue("/root/main/baseinfo/cnsttmedlist/repltrgtnm") ;
  1758. // }
  1759. // if (model.getValue("/root/main/baseinfo/cnsttmedlist/replusetm") != "" ) {
  1760. // Ritem1 += "\n\n 상담소요시간 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/replusetm") + caption34.text ;
  1761. // }
  1762. //
  1763. // var Ritem2 = "\n\n* 과거복약순응도 : " + radio1.label ;
  1764. // var Ritem3 = "\n\n* 불순응 요인 : "
  1765. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn1") == 1 ) { //불순응 요인 - 잊음
  1766. // Ritem3 += caption43.text + " " ;
  1767. // }
  1768. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn2") == 1 ) { //불순응 요인 - 생활패턴
  1769. // Ritem3 += caption44.text + " " ;
  1770. // }
  1771. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn3") == 1 ) { //불순응 요인 - 부작용
  1772. // Ritem3 += caption45.text + " " ;
  1773. // }
  1774. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn4") == 1 ) { //불순응 요인 - 중요성 인식 부족
  1775. // Ritem3 += caption46.text + " " ;
  1776. // }
  1777. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn5") == 1 ) { //불순응 요인 - 기타
  1778. // Ritem3 += caption47.text + "-" + model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptetc") ;
  1779. // }
  1780. //
  1781. // var Ritem4 = "\n\n* 부작용 유무 : " + radio2.label;
  1782. // if (radio2.value == 2 ) { // 부작용 유무 - 예
  1783. // Ritem4 += "\n\n ( 종류 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/seffckind") + " "
  1784. // + "\n\n 원인약물 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/seffccasdrug") + " "
  1785. // + "\n\n 증상 : " + model.getValue("/root/main/baseinfo/cnsttmedlist/seffcsymp") + " )" ;
  1786. // }
  1787. //
  1788. // var Ritem5 = "\n\n* 복약상담 필요부분 : " ;
  1789. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst1") == 1 ) { //복약상담 필요부분 - 처음 복용(사용하는경우)
  1790. // Ritem5 += caption48.text + " ";
  1791. // }
  1792. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst2") == 1 ) { //복약상담 필요부분 - 변경된 약물이 있는 경우
  1793. // Ritem5 += caption49.text + " ";
  1794. // }
  1795. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst3") == 1 ) { //복약상담 필요부분 - 복약순응도가 낮은 경우
  1796. // Ritem5 += caption50.text + " " ;
  1797. // }
  1798. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst4") == 1 ) { //복약상담 필요부분 - 부작용이 발생한 경우
  1799. // Ritem5 += caption51.text + " ";
  1800. // }
  1801. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst5") == 1 ) { //복약상담 필요부분 - 환자가 알고자 하는 경우
  1802. // Ritem5 +=caption52.text + " ";
  1803. // }
  1804. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst6") == 1 ) { //복약상담 필요부분 - Critical Pathway 대상환자
  1805. // Ritem5 += caption53.text + " ";
  1806. // }
  1807. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst7") == 1 ) { //복약상담 필요부분 - 기타
  1808. // Ritem5 += caption54.text + " - " + model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnstetc") ;
  1809. // }
  1810. //
  1811. // var Ritem6 = "\n\n* 주요 상담내용 : " ;
  1812. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts1") == 1 ) { //주요 상담내용 - 다음 사항모두
  1813. // Ritem6 += caption55.text + " " ;
  1814. // }
  1815. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts2") == 1 ) { //주요 상담내용 - 복용(사용)의 중요성
  1816. // Ritem6 += caption56.text + " " ;
  1817. // }
  1818. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts3") == 1 ) { //주요 상담내용 - 약명
  1819. // Ritem6 += caption57.text + " " ;
  1820. // }
  1821. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts4") == 1 ) { //주요 상담내용 - 효능 , 효과
  1822. // Ritem6 += caption58.text + " " ;
  1823. // }
  1824. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts5") == 1 ) { //주요 상담내용 - 복용법(사용법)
  1825. // Ritem6 += caption59.text + " " ;
  1826. // }
  1827. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts6") == 1 ) { //주요 상담내용 - 부작용 및 주의사항
  1828. // Ritem6 += caption60.text + " " ;
  1829. // }
  1830. // if ( model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts7") == 1 ) { //주요 상담내용 - 상호작용
  1831. // Ritem6 += caption61.text + " " ;
  1832. // }
  1833. //
  1834. // var Ritem7 = "\n\n* 상담소견 : 상담이해도 : ( 환자 - " + radio3.label + ") (보호자 - " + radio4.label + ") ";
  1835. // Ritem7 += "\n 복 약 의 지 : " + radio5.label ;
  1836. // if (model.getValue("/root/main/baseinfo/cnsttmedlist/cnstreyn" ) == 1) {
  1837. // Ritem7 += "\n 재상담여부 : " + "재상담 필요함 ";
  1838. // }
  1839. // if (model.getValue("/root/main/baseinfo/cnsttmedlist/cnstyn" ) == 1) {
  1840. // Ritem7 += "\n 상 담 여 부 : " + "상담거부 ";
  1841. // }
  1842. //
  1843. // var Ritem8="";
  1844. // if (model.getValue("/root/main/baseinfo/cnsttmedlist/cmt") !="" ){
  1845. // var Ritem8 = "\n\n* 기타약사의견 : " ;
  1846. // Ritem8 += "\n\t" + model.getValue("/root/main/baseinfo/cnsttmedlist/cmt").replace(/\n/gi,"\n\t");
  1847. //
  1848. // }
  1849. // var Ritem = Ritem1 + Ritem2 + Ritem3 + Ritem4 + Ritem5 + Ritem6 + Ritem7 + Ritem8 ;
  1850. var last_str
  1851. last_str += "\n\n* 약사 Comment : " + model.getValue("/root/main/baseinfo/cnsttmedlist/cmt").replace(/\n/gi,"\n\t\t\t ");
  1852. last_str += "\n\n-------------------------------------------------------------------------------\n"
  1853. var replcnts = title + last_str ;
  1854. // 회신내역 서식 팝업 - SPADC62200 - 2008/09/04 김귀남
  1855. var sel = fSendReplForm(replcnts);
  1856. if(sel == "cfm"){
  1857. //저장
  1858. model.makeNode("/root/main/baseinfo/cnsttmedlist/replid");
  1859. model.setValue("/root/temp/popupdata/repltype","med");
  1860. modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
  1861. var replid = model.getValue("/root/main/baseinfo/cnsttmedlist/replid");
  1862. if(replid != ""){
  1863. var update = getGridUpdateData(grd_curtmed);
  1864. model.setValue("/root/send/req/curtmedlist", update);
  1865. var update = getGridUpdateData(datagrid3);
  1866. model.setValue("/root/send/req/curdoubtlist", update);
  1867. model.copyNode("/root/send/req/cnsttmedlist", "/root/main/baseinfo/cnsttmedlist");
  1868. model.makeValue("/root/send/req/cnsttmedlist/statflag", "Z"); //회신
  1869. model.makeValue("/root/send/req/cnsttmedlist/cnststat", "22"); //회신
  1870. model.makeValue("/root/send/req/cnsttmedlist/repluserid", replid); //adchcnstinfo / mmrhcnstinfo 회신자 처리
  1871. model.makeValue("/root/send/req/cnsttmedlist/replcnts", replcnts);
  1872. model.makeValue("/root/send/req/cnsttmedlist/emreduyn", model.getValue("/root/init/cmblist/jciyn/JCI1[2]/cdid")); //다학제연동여부
  1873. if(sEduPrepYN == "" ) {
  1874. messageBox("학습준비도는", "I003");
  1875. return;
  1876. }
  1877. //다학제 저장 정보 set
  1878. model.makeValue("/root/send/req/edudata/pid", model.getValue("/root/temp/cnstinfo/pid"));
  1879. model.makeValue("/root/send/req/edudata/orddd", model.getValue("/root/temp/cnstinfo/orddd"));
  1880. model.makeValue("/root/send/req/edudata/cretno", model.getValue("/root/temp/cnstinfo/cretno"));
  1881. model.makeValue("/root/send/req/edudata/scrnid", "SMADC02800");
  1882. model.makeValue("/root/send/req/edudata/eduprepyn", sEduPrepYN);
  1883. model.makeValue("/root/send/req/edudata/eduwho", sEduWho);
  1884. model.makeValue("/root/send/req/edudata/eduway", sEduWay);
  1885. model.makeValue("/root/send/req/edudata/edurslt", sEduRslt);
  1886. if (submit("TXADC02801")){
  1887. if ( model.getValue("/root/send/rgstseqno") == "" ) {
  1888. model.setValue("/root/send/rgstseqno", model.getValue("/root/hidden/ret/rgstseqno"));
  1889. }
  1890. model.setValue("/root/main/baseinfo/cnsttmedlist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1891. model.setValue("/root/main/baseinfo/cnsttmedlist/statflag", "Z");
  1892. //submit("TXADC02802");
  1893. btn_sea.dispatch("DOMActivate");
  1894. model.refresh();
  1895. }
  1896. }
  1897. model.refresh();
  1898. }
  1899. // var v_ptext ="[회신내용]"
  1900. // +"상담대상 : "+"NG!!넣어야함"
  1901. // +"상담 소요시간 : "+"NG!!넣어야함"
  1902. // +"과거 복약순응도 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/pasttmedadapt")
  1903. // +"불순응 요인 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/nonadaptresn")
  1904. // +"부작용 유무 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/seffcyn")
  1905. // +"복약상담 필요부분 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/pasttmedadapt")
  1906. // +"과거 복약순응도 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/tmedcnst")
  1907. // +"주요 상담내용 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/majrcnstcnts")
  1908. // +"상담소견 : "
  1909. // +"1)상담 이해도 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/cnstcomment")
  1910. // +"2)재상담 여부 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/cnstcomment")
  1911. // +"3)복약 의지 : "+"NG!!넣어야함"
  1912. // +"4)상담 여부 : "+"NG!!넣어야함"
  1913. // +"기타 약사의견 : "+model.getValue("/root/main/baseinfo/cnsttmedlist/cmt");
  1914. //
  1915. // var v_stext = zesfSignData( v_ptext , getUserId(), true );
  1916. // model.setValue( "/root/stext", v_stext );
  1917. //
  1918. //
  1919. // //인증저장 성공시 statflag 업데이트
  1920. // if( model.getValue("/root/stext") !="") {
  1921. // model.copyNode("/root/send/req/cnsttmedlist", "/root/main/baseinfo/cnsttmedlist");
  1922. // model.makeValue("/root/send/req/cnsttmedlist/statflag", "Z"); //회신
  1923. // model.makeValue("/root/send/req/cnsttmedlist/cnststat", "22"); //회신임시
  1924. //
  1925. // if (submit("TXADC02803")){
  1926. // btn_sea.dispatch("DOMActivate");
  1927. // }
  1928. // /*
  1929. // var update = getGridUpdateData(grd_curtmed);
  1930. // // var update = model.getValue("/root/send/req/data");
  1931. // if(update == ""){
  1932. // // messageBox("업데이트 정보가 없습니다.", "I");
  1933. // // return 0;
  1934. //
  1935. // } else {
  1936. // model.setValue("/root/send/req/data", update);
  1937. // alert(update);
  1938. // submit("TXADC02801");
  1939. // //submit("TRADC02802",false);
  1940. // }
  1941. // model.setValue("/root/main/baseinfo/cnsttmedlist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1942. // model.setValue("/root/main/baseinfo/cnsttmedlist/statflag", "Z");
  1943. //
  1944. // submit("TXADC02802");
  1945. // //submit("TRADC02803", false);
  1946. //
  1947. // btn_save.disabled = true;
  1948. // btn_req.disabled = true;
  1949. // btn_del.disabled = true;
  1950. // btn_sea.dispatch("DOMActivate");
  1951. // model.refresh();
  1952. // */
  1953. // }
  1954. ]]>
  1955. </script>
  1956. <script type="javascript" ev:event="DOMFocusIn">
  1957. <![CDATA[
  1958. checkKeyColumn("grd_curtmed");
  1959. ]]>
  1960. </script>
  1961. </button>
  1962. <button id="button7" class="btn3_letter10" visibility="hidden" style="left:622px; top:5px; width:152px; height:22px; ">
  1963. <caption>환자교육통합기록조회</caption>
  1964. <script type="javascript" ev:event="DOMActivate">
  1965. <![CDATA[
  1966. //pat_info = "I"+"▦"+ model.getValue("/root/temp/cnstinfo/pid") +"▦"+ model.getValue("/root/temp/cnstinfo/orddd") +"▦"+model.getValue("/root/temp/cnstinfo/cretno")+"▦"+ getUserInfo("dutplceinstcd")+"▦"+ "";
  1967. //setParameter("condparam", pat_info);
  1968. //modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1969. setParameter("SMMRJ00200_pid", model.getValue("/root/temp/cnstinfo/pid"));
  1970. modal("SMMRJ00200");
  1971. ]]>
  1972. </script>
  1973. </button>
  1974. <button id="button8" class="btn3_letter4" style="left:376px; top:5px; width:80px; height:22px; ">
  1975. <caption>처방조회</caption>
  1976. <script type="javascript" ev:event="DOMActivate">
  1977. <![CDATA[
  1978. setParameter ("SPMMO14900_pid" , model.getValue("/root/main/baseinfo/patinfolist/pid")); //등록번호
  1979. setParameter ("SPMMO14900_hngnm" , model.getValue("/root/main/baseinfo/patinfolist/hngnm")); //성명
  1980. open("SPMMO14900");
  1981. ]]>
  1982. </script>
  1983. </button>
  1984. <button id="button9" class="btn3_letter6" style="left:458px; top:5px; width:104px; height:22px; ">
  1985. <caption>투약기록조회</caption>
  1986. <script type="javascript" ev:event="DOMActivate">
  1987. <![CDATA[
  1988. open("SMMNR04500");
  1989. ]]>
  1990. </script>
  1991. </button>
  1992. </group>
  1993. </xhtml:body>
  1994. </xhtml:html>