SMADC00600_ADR보고서작성.xrw 151 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502
  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>ADR보고서작성</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <baseinfo>
  11. <patinfolist>
  12. <pid/>
  13. <orddd/>
  14. <wardcd/>
  15. <roomcd/>
  16. <cnstdeptcd/>
  17. <hngnm/>
  18. <sna/>
  19. <cnstdd/>
  20. <cnstdrid/>
  21. <ht/>
  22. <wt/>
  23. <repluserid/>
  24. <repldd/>
  25. <chosflag/>
  26. <cnstdeptnm/>
  27. <cnstdrnm/>
  28. <sex/>
  29. <age/>
  30. <adrseqno/>
  31. <fstrgstrnm/>
  32. <cretno/>
  33. <fstvaluid/>
  34. <fstvalunm/>
  35. <fstvaluidd/>
  36. <fstvalutm/>
  37. </patinfolist>
  38. <diaginfolist>
  39. <diagcd/>
  40. <diagengnm/>
  41. <diaghngnm/>
  42. </diaginfolist>
  43. <adrinfo>
  44. <pid/>
  45. <rgstseqno/>
  46. <statflag/>
  47. <phx/>
  48. <fhx/>
  49. <smok/>
  50. <drink/>
  51. <advsmnftgrde/>
  52. <meascnts/>
  53. <advsprcsrslt/>
  54. <redrugadvsmnft/>
  55. <pastmnftdd/>
  56. <cmt/>
  57. <serigrde/>
  58. <sympmnftgrde/>
  59. <adrcntssmm/>
  60. <srchcnts/>
  61. <sympmnftdd/>
  62. <enddd/>
  63. <doubdrug/>
  64. <doubdrugnm/>
  65. <pastadvs/>
  66. <pastadvsdrug/>
  67. <advscnts/>
  68. <ilsu/>
  69. <reqdrugnm/>
  70. <pastreqdrugnm/>
  71. <doubdrug/>
  72. <doubdrug2/>
  73. <doubdrug3/>
  74. <doubdrug4/>
  75. <doubdrug5/>
  76. <reqdrugnm2/>
  77. <reqdrugnm3/>
  78. <reqdrugnm4/>
  79. <reqdrugnm5/>
  80. <reqdrugnm6/>
  81. </adrinfo>
  82. <adrinfo2>
  83. <pid/>
  84. <rgstseqno/>
  85. <cnstseqno/>
  86. <formrecseq/>
  87. <sympmnftdd/>
  88. <enddd/>
  89. <doubdrug/>
  90. <doubdrugnm/>
  91. <pastadvs/>
  92. <pastadvsdrug/>
  93. <advscnts/>
  94. </adrinfo2>
  95. <prcpinfo>
  96. <item/>
  97. </prcpinfo>
  98. <sympinfo>
  99. <pid/>
  100. <rgstseqno/>
  101. <flag/>
  102. <cnstcnts2/>
  103. <cnstcnts3/>
  104. <cnstcnts4/>
  105. <cnstcnts5/>
  106. <cnstcnts6/>
  107. <cnstcnts7/>
  108. <cnstcnts8/>
  109. <cnstcnts9/>
  110. <cnstcnts10/>
  111. <cnstcnts11/>
  112. <cnstcnts22/>
  113. <cnstcnts23/>
  114. <cnstcnts24/>
  115. <cnstcnts25/>
  116. <cnstcnts26/>
  117. <cnstcnts31/>
  118. <etccd/>
  119. <cnstcnts32/>
  120. </sympinfo>
  121. <druginfo>
  122. <pid/>
  123. <rgstseqno/>
  124. <drugcd/>
  125. <drugnm/>
  126. <comnm/>
  127. <prodcmpynm/>
  128. <prodcmpycd/>
  129. <casrslt/>
  130. <casrsltbtn/>
  131. <totscr/>
  132. <naranjocmt/>
  133. <serigrde/>
  134. <sympmnftgrde/>
  135. <symp/>
  136. <koralgo/>
  137. <sympcnts/>
  138. </druginfo>
  139. <oldsympinfo>
  140. <pid/>
  141. <rgstseqno/>
  142. <flag/>
  143. <cnstcnts2/>
  144. <cnstcnts3/>
  145. <cnstcnts4/>
  146. <cnstcnts5/>
  147. <cnstcnts6/>
  148. <cnstcnts7/>
  149. <cnstcnts22/>
  150. <cnstcnts23/>
  151. <cnstcnts24/>
  152. </oldsympinfo>
  153. <hdruginfo>
  154. <prcpnm/>
  155. <rgstdt/>
  156. <prcpvol/>
  157. <prcpvolunit/>
  158. <prcpqty/>
  159. <prcpqtyunit/>
  160. <prcptims/>
  161. <prcpdayno/>
  162. <fsttakedt/>
  163. <lsttakedt/>
  164. <prcpclscd/>
  165. <prodcmpynm/>
  166. <preyn/>
  167. <orddeptnm/>
  168. <orddeptcd/>
  169. <rgstseqno/>
  170. <formrecseq/>
  171. <prcpcd/>
  172. <prcpno/>
  173. <execprcphistcd/>
  174. <pid/>
  175. <seqno/>
  176. </hdruginfo>
  177. <lapinfo>
  178. <chk/>
  179. <testnm/>
  180. <srchdd/>
  181. <cmt/>
  182. <testcd/>
  183. <pid/>
  184. <rgstseqno/>
  185. <srchfromdd/>
  186. </lapinfo>
  187. </baseinfo>
  188. <medirecinfo>
  189. <row/>
  190. <header/>
  191. </medirecinfo>
  192. <prtnimglist>
  193. <prtnimginfo>
  194. <img/>
  195. <cmt/>
  196. </prtnimginfo>
  197. </prtnimglist>
  198. <adrflag>
  199. <adr>
  200. <newflag/>
  201. </adr>
  202. </adrflag>
  203. </main>
  204. <send>
  205. <searchitem>
  206. <pid/>
  207. <orddd/>
  208. <cretno/>
  209. <prcpgenrflag/>
  210. <rgstseqno/>
  211. <cnstdd/>
  212. <formrecseq/>
  213. <ioflag/>
  214. <prcpno/>
  215. <scrnflag/>
  216. </searchitem>
  217. <data>
  218. <patinfolist/>
  219. <adrinfo/>
  220. <sympinfo/>
  221. <oldsympinfo/>
  222. <druginfo/>
  223. <hdruginfo/>
  224. <pastadvsdrug/>
  225. </data>
  226. <srchdruglist/>
  227. <reqdata>
  228. <drugcd/>
  229. </reqdata>
  230. </send>
  231. <init>
  232. <baseinfo>
  233. <initprcpclscd/>
  234. <initcnst/>
  235. </baseinfo>
  236. <codelist>
  237. <smlcd1/>
  238. <smlcd2/>
  239. <smlcd3/>
  240. <smlcd4/>
  241. <smlcd5/>
  242. <smlcd6/>
  243. <smlcd7/>
  244. <smlcd8/>
  245. </codelist>
  246. <reqdrnm/>
  247. <whoalgocmt/>
  248. <koralgocmt/>
  249. <cmblist>
  250. <jciyn/>
  251. </cmblist>
  252. </init>
  253. <hidden>
  254. <casrslt/>
  255. <receivedrugcd>/root/hidden/drugcd</receivedrugcd>
  256. <drugcd/>
  257. <prntdata>
  258. <pid/>
  259. <hngnm/>
  260. <roomcd/>
  261. <sna/>
  262. <chosflag/>
  263. <cnstdeptnm/>
  264. <cnstdrnm/>
  265. <cnstdd/>
  266. <diagengnm/>
  267. <cnstcnts/>
  268. <adrcntssmm/>
  269. <doubdrugnm/>
  270. <sympmnftgrde/>
  271. <serigrde/>
  272. <casrslt/>
  273. <srchcnts/>
  274. </prntdata>
  275. <koralgo/>
  276. <return/>
  277. <return/>
  278. <cnststatinfo/>
  279. <resultref>
  280. <info/>
  281. </resultref>
  282. </hidden>
  283. <temp>
  284. <receivedata>
  285. <receiveref/>
  286. <srchflag/>
  287. <srchcnts/>
  288. <drugkind/>
  289. <receivedrugpnm/>
  290. <receivedrugflag/>
  291. <receivedrugcom/>
  292. </receivedata>
  293. <cnstinfo/>
  294. <replform>
  295. <replcnts/>
  296. <sel/>
  297. </replform>
  298. <cdlist>
  299. <bigcode>
  300. <cdgrupnm/>
  301. <cdgrupid/>
  302. </bigcode>
  303. <smacodelist>
  304. <smacode>
  305. <cdnm/>
  306. <cdid/>
  307. </smacode>
  308. </smacodelist>
  309. </cdlist>
  310. <srchgrupid>
  311. <initgrupid/>
  312. <drugcd/>
  313. <comflag/>
  314. </srchgrupid>
  315. <drugcdlist>
  316. <drugcdlist>
  317. <drugcd/>
  318. <drugnm/>
  319. <comdesc/>
  320. <prodcmpycd/>
  321. <prodcmpynm/>
  322. </drugcdlist>
  323. </drugcdlist>
  324. <data>
  325. <symplist>
  326. <sympinfo/>
  327. </symplist>
  328. </data>
  329. <popupdata>
  330. <repltype/>
  331. <receivedata>/root/main/baseinfo/adrinfo/replid</receivedata>
  332. </popupdata>
  333. <valuprintinfo/>
  334. <medirecinfo/>
  335. <laplist/>
  336. <rgsttemp/>
  337. <tempsymp/>
  338. <returnsymp>
  339. <symp/>
  340. <sympcnts/>
  341. </returnsymp>
  342. </temp>
  343. <popdata>
  344. <poplist>
  345. <pid/>
  346. <prcpcd/>
  347. <prcpno/>
  348. <execprcphistcd/>
  349. </poplist>
  350. </popdata>
  351. <popdata1>
  352. <casrslt/>
  353. <totscr/>
  354. <naranjocmt/>
  355. <koralgo/>
  356. </popdata1>
  357. </root>
  358. </instance>
  359. <script type="javascript" ev:event="xforms-ready">
  360. <![CDATA[
  361. document.controls("PreView").attribute("visibility") = "hidden";
  362. // 유해 약물 대분류 DB에서 가지고 오기
  363. //submit("TRADC00602");
  364. pharmacyGetCodeList( new Array("P030"), new Array("/root/temp/srchgrupid/initgrupid") );
  365. grd_druginfo.removeRow(false); // 의심약물 그리드 초기화
  366. submit("TRADB00001");
  367. pharmacyGetCodeList( new Array("JCI1"), new Array("/root/init/cmblist/jciyn") );
  368. var formrecseq = model.getValue("/root/temp/cnstinfo/formrecseq");
  369. if (model.getValue("/root/popdata/poplist[" + 1 + "]/pid") != ""){
  370. var pid = model.getValue("/root/popdata/poplist[" + 1 + "]/pid");
  371. }else{
  372. var pid = model.getValue("/root/temp/cnstinfo/pid");
  373. }
  374. zbcfGetCodeList( new Array("M0005"), new Array("/root/init/baseinfo/initprcpclscd") );
  375. var cretno = model.getValue("/root/temp/cnstinfo/cretno");
  376. var orddd = model.getValue("/root/temp/cnstinfo/orddd");
  377. var prcpgenrflag = model.getValue("/root/temp/cnstinfo/prcpgenrflag");
  378. var rgstseqno= model.getValue("/root/temp/cnstinfo/rgstseqno");
  379. var cnstseqno= model.getValue("/root/temp/cnstinfo/cnstseqno");
  380. var cnstdd= model.getValue("/root/temp/cnstinfo/cnstdd");
  381. model.removeNodeset("/root/main/baseinfo/hdruginfo");
  382. if ( pid != "") {
  383. model.setValue("/root/send/searchitem/formrecseq", formrecseq);
  384. model.makeValue("/root/send/searchitem/cnstseqno", cnstseqno);
  385. model.setValue("/root/send/searchitem/pid", pid);
  386. model.setValue("/root/send/searchitem/cretno", cretno);
  387. model.setValue("/root/send/searchitem/orddd", orddd);
  388. model.setValue("/root/send/searchitem/prcpgenrflag", prcpgenrflag);
  389. model.setValue("/root/send/searchitem/rgstseqno", rgstseqno);
  390. model.setValue("/root/send/searchitem/cnstdd", cnstdd);
  391. model.refresh();
  392. submit("TRADC00607");
  393. var newflag = model.getValue("/root/temp/adrflag/adr/newflag");
  394. // alert(newflag);
  395. if ( newflag == "Y" ) {
  396. model.toggle("case2");
  397. } else {
  398. model.toggle("case1");
  399. }
  400. var success = submit("TRADC00601");
  401. if (success == false) {
  402. model.resetInstanceNode("/root/main/baseinfo");
  403. model.refresh();
  404. }
  405. // model.toggle("case1");
  406. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  407. }
  408. fComboSet();
  409. //---------------(20091024)
  410. // var sjobkindcd = getUserInfo("jobkindcd");
  411. // //직종이 약사인경우만
  412. // //alert( sjobkindcd.substr(0,2) ) ;
  413. //
  414. // if ( sjobkindcd.substr(0,2) != "12" ) {
  415. // btn_save.disabled = true ; //저장
  416. // btn_repl.disabled = true ; //회신
  417. // btn_del.disabled = true ; //삭제
  418. // }
  419. //---------------(20091024)
  420. ]]>
  421. </script>
  422. <script type="javascript">
  423. <![CDATA[
  424. var ColFlagNm = "column"; // 일반컬럼과 실시이력에 대한 구분을 위한 구분값
  425. //회신상태에 따라 버튼 활성화 처리
  426. function fBtnDisabled() {
  427. if (model.getValue("/root/main/baseinfo/adrinfo/statflag") == "Z" ) {
  428. btn_save.disabled = true;
  429. btn_repl.disabled = true;
  430. btn_del.disabled = true;
  431. button19.disabled = true;
  432. } else {
  433. btn_save.disabled = false;
  434. //1차평가완료가 되지 않으면 회신 하지 못도록 수정.
  435. if(model.getValue("/root/main/baseinfo/patinfolist/fstvaluid") != "") {
  436. btn_repl.disabled = false;
  437. } else {
  438. btn_repl.disabled = true;
  439. }
  440. btn_del.disabled = false;
  441. button19.disabled = false;
  442. }
  443. if(model.getValue("/root/temp/cnstinfo/btnreplflag") == "Y") {
  444. // 20100118_laboru_회신완료 상태일때 회신버튼 비활성화 위해서
  445. btn_repl.disabled = true;
  446. }
  447. if(model.getValue("/root/temp/cnstinfo/pidchkflag") == "Y") {
  448. // 20100119_laboru_약사 이외의 사용자인 경우
  449. btn_save.disabled = true;
  450. btn_repl.disabled = true;
  451. btn_del.disabled = true;
  452. button19.disabled = true;
  453. }
  454. //회신약의 유해증상을 유해증상번호와 유해증상내용으로 구분한다.
  455. fDivDrugInfoSymp();
  456. }
  457. function fSmlComboChg(trg_control){
  458. var src_combo = document.all(event.currentTarget).label;
  459. var etc_control = document.controls(trg_control);
  460. if(src_combo == "기타"){
  461. etc_control.attribute("visibility") = "visible";
  462. }else {
  463. etc_control.attribute("visibility") = "hidden";
  464. var node = etc_control.attribute("ref");
  465. model.setValue(node,"");
  466. }
  467. model.refresh();
  468. }
  469. function fComboSet(){
  470. var iname = "";
  471. var icode = "";
  472. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts2") != ""){
  473. cmb_cnstcnts3.visible = true;
  474. }else{
  475. cmb_cnstcnts3.visible = false;
  476. }
  477. iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts2");
  478. icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  479. if (icode != ""){
  480. model.removeNodeset("/root/init/baseinfo/initcnst");
  481. model.makeNode("/root/init/baseinfo/initcnst");
  482. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  483. submit("TRZBC00101", false);
  484. copyNodesetType("/root/init/codelist/smlcd1", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  485. }
  486. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts4") != ""){
  487. cmb_cnstcnts5.visible = true;
  488. }else{
  489. cmb_cnstcnts5.visible = false;
  490. }
  491. iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts4");
  492. icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  493. if (icode != ""){
  494. model.removeNodeset("/root/init/baseinfo/initcnst");
  495. model.makeNode("/root/init/baseinfo/initcnst");
  496. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  497. submit("TRZBC00101", false);
  498. copyNodesetType("/root/init/codelist/smlcd2", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  499. }
  500. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts6") != ""){
  501. cmb_cnstcnts7.visible = true;
  502. }else{
  503. cmb_cnstcnts7.visible = false;
  504. }
  505. iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts6");
  506. icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  507. if (icode != ""){
  508. model.removeNodeset("/root/init/baseinfo/initcnst");
  509. model.makeNode("/root/init/baseinfo/initcnst");
  510. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  511. submit("TRZBC00101", false);
  512. copyNodesetType("/root/init/codelist/smlcd3", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  513. }
  514. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts8") != ""){
  515. cmb_cnstcnts9.visible = true;
  516. }else{
  517. cmb_cnstcnts9.visible = false;
  518. }
  519. iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts8");
  520. icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  521. if (icode != ""){
  522. model.removeNodeset("/root/init/baseinfo/initcnst");
  523. model.makeNode("/root/init/baseinfo/initcnst");
  524. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  525. submit("TRZBC00101", false);
  526. copyNodesetType("/root/init/codelist/smlcd4", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  527. }
  528. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts10") != ""){
  529. cmb_cnstcnts11.visible = true;
  530. }else{
  531. cmb_cnstcnts11.visible = false;
  532. }
  533. iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts10");
  534. icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  535. if (icode != ""){
  536. model.removeNodeset("/root/init/baseinfo/initcnst");
  537. model.makeNode("/root/init/baseinfo/initcnst");
  538. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  539. submit("TRZBC00101", false);
  540. copyNodesetType("/root/init/codelist/smlcd5", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  541. }
  542. if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts2") != ""){
  543. combo2.visible = true;
  544. }else{
  545. combo2.visible = false;
  546. }
  547. var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts2");
  548. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  549. if (icode != ""){
  550. model.removeNodeset("/root/init/baseinfo/initcnst");
  551. model.makeNode("/root/init/baseinfo/initcnst");
  552. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  553. submit("TRZBC00101", false);
  554. copyNodesetType("/root/init/codelist/smlcd6", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  555. }
  556. if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts4") != ""){
  557. combo4.visible = true;
  558. }else{
  559. combo4.visible = false;
  560. }
  561. var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts4");
  562. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  563. if (icode != ""){
  564. model.removeNodeset("/root/init/baseinfo/initcnst");
  565. model.makeNode("/root/init/baseinfo/initcnst");
  566. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  567. submit("TRZBC00101", false);
  568. copyNodesetType("/root/init/codelist/smlcd7", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  569. }
  570. if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts6") != ""){
  571. combo6.visible = true;
  572. }else{
  573. combo6.visible = false;
  574. }
  575. var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts6");
  576. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  577. if (icode != ""){
  578. model.removeNodeset("/root/init/baseinfo/initcnst");
  579. model.makeNode("/root/init/baseinfo/initcnst");
  580. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  581. submit("TRZBC00101", false);
  582. copyNodesetType("/root/init/codelist/smlcd8", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  583. }
  584. model.refresh();
  585. // if (cmb_cnstcnts3.label == "기타"){
  586. // ipt_cnstcnts22.visible = true;
  587. // }else{
  588. // ipt_cnstcnts22.visible = false;
  589. // }
  590. // if (cmb_cnstcnts5.label == "기타"){
  591. // ipt_cnstcnts23.visible = true;
  592. // }else{
  593. // ipt_cnstcnts23.visible = false;
  594. // }
  595. // if (cmb_cnstcnts7.label == "기타"){
  596. // ipt_cnstcnts24.visible = true;
  597. // }else{
  598. // ipt_cnstcnts24.visible = false;
  599. // }
  600. // if (cmb_cnstcnts9.label == "기타"){
  601. // ipt_cnstcnts25.visible = true;
  602. // }else{
  603. // ipt_cnstcnts25.visible = false;
  604. // }
  605. // if (cmb_cnstcnts11.label == "기타"){
  606. // ipt_cnstcnts26.visible = true;
  607. // }else{
  608. // ipt_cnstcnts26.visible = false;
  609. // }
  610. // if (combo2.label == "기타"){
  611. // input2.visible = true;
  612. // }else{
  613. // input2.visible = false;
  614. // }
  615. // if (combo4.label == "기타"){
  616. // input3.visible = true;
  617. // }else{
  618. // input3.visible = false;
  619. // }
  620. // if (combo6.label == "기타"){
  621. // input4.visible = true;
  622. // }else{
  623. // input4.visible = false;
  624. // }
  625. // model.refresh();
  626. }
  627. function datacheck(){
  628. var srsrvdt = "";
  629. var trsrvdt = "";
  630. for (var i = 1; i < grd_prcpinfo.rows ; i++) {
  631. var srsrvdt = model.getValue("/root/main/baseinfo/hdruginfo["+i+"]/fsttakedt");
  632. if (srsrvdt != ""){
  633. if (isValidDateTime(srsrvdt, "YYYYMMDDhhmm") == false){
  634. messageBox("최초복용일시 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
  635. return false;
  636. }
  637. }
  638. var trsrvdt = model.getValue("/root/main/baseinfo/hdruginfo["+i+"]/lsttakedt");
  639. if (trsrvdt != ""){
  640. if (isValidDateTime(trsrvdt, "YYYYMMDDhhmm") == false){
  641. messageBox("최종복용일시 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
  642. return false;
  643. }
  644. }
  645. if (srsrvdt != "" && trsrvdt != ""){
  646. if (srsrvdt > trsrvdt){
  647. messageBox("최초복용일시와 최종복용일시의 일자가 잘못 입력되었습니다.", "E999", "");
  648. return false;
  649. }
  650. }
  651. }
  652. srsrvdt = model.getValue("/root/main/baseinfo/adrinfo/sympmnftdd");
  653. if (srsrvdt != ""){
  654. if (isValidDateTime(srsrvdt, "YYYYMMDD") == false){
  655. messageBox("증상발현일 일자 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
  656. return false;
  657. }
  658. }
  659. trsrvdt = model.getValue("/root/main/baseinfo/adrinfo/enddd");
  660. if (trsrvdt != ""){
  661. if (isValidDateTime(trsrvdt, "YYYYMMDD") == false){
  662. messageBox("종료일일 일자 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
  663. return false;
  664. }
  665. }
  666. if (srsrvdt != "" && trsrvdt != ""){
  667. if (srsrvdt > trsrvdt){
  668. messageBox("증상발현일과 종료일의 일자가 잘못 입력되었습니다.", "E999", "");
  669. return false;
  670. }
  671. }
  672. srsrvdt = model.getValue("/root/main/baseinfo/adrinfo/pastmnftdd");
  673. if (srsrvdt != ""){
  674. if (isValidDateTime(srsrvdt, "YYYYMMDD") == false){
  675. messageBox("발생시기 일자 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
  676. return false;
  677. }
  678. }
  679. for (var i = 1; i < grd_druginfo.rows; i ++){
  680. if (model.getValue("/root/main/baseinfo/druginfo[" + i + "]/drugcd") == ""){
  681. messageBox(i + "번째 처방코드는 필수 선택항목입니다.", "E999", "");
  682. return false;
  683. }
  684. }
  685. }
  686. /*
  687. @ 결과 그리드 컬럼 초기화
  688. */
  689. function fSetGrdInit(){
  690. model.resetInstanceNode("/root/main/medirecinfo");
  691. var cols = grd_medirec.cols-grd_medirec.fixedCols;
  692. var rows = grd_medirec.rows-grd_medirec.fixedRows;
  693. for( var i = 0; i < cols; i++ ) {
  694. grd_medirec.removeColumn(false);
  695. }
  696. for( var i = 0; i < rows; i++ ) {
  697. grd_medirec.removeRow(false);
  698. }
  699. model.removeNodeSet("/root/main/");
  700. model.refresh();
  701. }
  702. /*
  703. @ 약품실시정보 조회
  704. */
  705. function fGetDrugExecInfo() {
  706. var sPrcpNo = "";
  707. grd_medirec.clearStatus();
  708. /*
  709. @ 그리드 설정 초기화
  710. */
  711. fSetGrdInit();
  712. model.setValue("/root/send/searchitem/ioflag", "T");
  713. model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  714. for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/hdruginfo") ; iNo++) {
  715. if(sPrcpNo == "") {
  716. sPrcpNo = model.getValue("/root/main/baseinfo/hdruginfo["+ iNo +"]/prcpno");
  717. } else {
  718. sPrcpNo += "|" + model.getValue("/root/main/baseinfo/hdruginfo["+ iNo +"]/prcpno");
  719. }
  720. }
  721. model.setValue("/root/send/searchitem/prcpno", sPrcpNo);
  722. model.setValue("/root/send/searchitem/scrnflag", "SMADC00600");
  723. submit("TRADC20101", false);
  724. var grdCaption = model.getValue("/root/temp/medirecinfo/header/caption");
  725. var grdColref = model.getValue("/root/temp/medirecinfo/header/colref");
  726. var grdHidden = model.getValue("/root/temp/medirecinfo/header/hidden");
  727. var grdAttribute = "";
  728. if(getNodesetCount("/root/temp/medirecinfo/row") == 0){
  729. return;
  730. }
  731. var grdColrefArray = grdColref.split("^");
  732. var grdHiddenArray = grdHidden.split("^");
  733. for (var i = 0; i < grdColrefArray.length; i++){
  734. if(grdColrefArray[i] != "") grdAttribute += "ref:"+ grdColrefArray[i]+";";
  735. if(isSearchString(grdColrefArray[i],ColFlagNm)) grdAttribute += "style:text-align:center;";
  736. grd_medirec.addColumn(grdAttribute,false);
  737. }
  738. grd_medirec.colWidth(grd_medirec.colRef("ioflagnm")) = "40";
  739. grd_medirec.colWidth(grd_medirec.colRef("prcpcd")) = "100";
  740. grd_medirec.colWidth(grd_medirec.colRef("prcpnm")) = "250";
  741. grd_medirec.colWidth(grd_medirec.colRef("drugmthdspccd")) = "250"
  742. grd_medirec.colHidden(grd_medirec.colRef("ioflag")) = true;
  743. grd_medirec.colHidden(grd_medirec.colRef("orddd")) = true;
  744. grd_medirec.colHidden(grd_medirec.colRef("exectm")) = true;
  745. model.copyNode("/root/main/medirecinfo","/root/temp/medirecinfo");
  746. grd_medirec.caption = grdCaption;
  747. /*
  748. @ 약품실시이력 cell 색상 변경
  749. 약품실시이력에 데이터가 존재시 색상변경
  750. */
  751. for(var i = grd_medirec.fixedCols; i < grd_medirec.cols; i++){
  752. var colnm = grd_medirec.colAttribute(parseInt(i), "ref");
  753. var col = parseInt(i);
  754. if(isSearchString(colnm, ColFlagNm)){
  755. for(var j = grd_medirec.fixedRows; j < grd_medirec.rows; j++){
  756. var row = parseInt(j);
  757. if(grd_medirec.valueMatrix(row, col) != ""){
  758. grd_medirec.cellStyle("background-color",row,col) = "#ffff99";
  759. }
  760. }
  761. }
  762. }
  763. grd_medirec.selectionMode = "free";
  764. grd_medirec.rebuild();
  765. }
  766. /*
  767. @ 출력물에서 하나의 노드가 한장 이상일 경우는 출력 못하기 때문에 개행문자를 기준으로 노드를 분리.
  768. */
  769. function fSetPrtnDiv(pCnts, pRefNode) {
  770. var iStartPos = 0;
  771. var iRowNum = 1;
  772. var sRsltcnts = pCnts;
  773. for(var iLeng = 1 ; iLeng <= sRsltcnts.length ; iLeng++) {
  774. if("\n" == sRsltcnts.substr(iLeng, 1)) {
  775. model.makeValue(pRefNode + "["+ iRowNum +"]/cnts", sRsltcnts.substring(iStartPos, iLeng), true);
  776. iRowNum++;
  777. iStartPos = Number(iLeng) + 1;
  778. } else {
  779. if(sRsltcnts.length == iLeng){
  780. model.makeValue(pRefNode + "["+ iRowNum +"]/cnts", sRsltcnts.substring(iStartPos, iLeng), true);
  781. }
  782. }
  783. }
  784. }
  785. /*
  786. @ 저장
  787. */
  788. function fExeSave() {
  789. if (datacheck() == false){
  790. return;
  791. }
  792. model.copyNode("/root/send/data/patinfolist", "/root/main/baseinfo/patinfolist");
  793. model.makeValue("/root/send/data/patinfolist/rgstseqno", model.getValue("/root/send/searchitem/rgstseqno"));
  794. model.makeValue("/root/send/data/patinfolist/cnstseqno", model.getValue("/root/temp/cnstinfo/cnstseqno"));
  795. // 20110124_laboru_경북대병원_과거유해반응 원인약물 저장 되게 수정
  796. model.setValue("/root/main/baseinfo/adrinfo/pastadvsdrug", model.getValue("/root/main/baseinfo/adrinfo/pastreqdrugnm"));
  797. model.copyNode("/root/send/data/adrinfo", "/root/main/baseinfo/adrinfo");
  798. model.setValue("/root/send/data/sympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/sympinfo" )));
  799. //model.copyNode("/root/send/data/oldsympinfo", "/root/main/baseinfo/oldsympinfo");
  800. model.setValue("/root/send/data/oldsympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/oldsympinfo" )));
  801. var update = getGridUpdateData(grd_prcpinfo);
  802. model.setValue("/root/send/data/hdruginfo", update);
  803. var update = getGridUpdateData(grd_druginfo);
  804. model.setValue("/root/send/data/druginfo", update);
  805. model.makeValue("/root/send/data/adrinfo/formrecseq", model.getValue("/root/send/searchitem/formrecseq"));
  806. //model.makeValue("/root/send/data/adrinfo/cnstdd", model.getValue("/root/send/searchitem/cnstdd"));
  807. //model.makeValue("/root/send/data/adrinfo/cnstseqno", model.getValue("/root/main/baseinfo/adrinfo2/cnstseqno"));
  808. model.makeValue("/root/send/data/adrinfo/statflag", "D"); //저장
  809. model.makeValue("/root/send/data/adrinfo/cnststat", "21"); //회신임시
  810. var success = submit("TXADC00601");
  811. if(success) {
  812. if ( model.getValue("/root/send/searchitem/rgstseqno") == "" ) {
  813. model.setValue("/root/send/searchitem/rgstseqno", model.getValue("/root/hidden/return/ret/rgstseqno"));
  814. }
  815. model.makeValue("/root/hidden/ret/saverslt", 'Y');
  816. submit("TRADC00601");
  817. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  818. model.resetInstanceNode("root/send/data");
  819. } else {
  820. model.makeValue("/root/hidden/ret/saverslt", 'N');
  821. }
  822. return success;
  823. }
  824. /*
  825. @ 저장
  826. */
  827. function fExeSaveRe() {
  828. if (datacheck() == false){
  829. return;
  830. }
  831. model.copyNode("/root/send/data/patinfolist", "/root/main/baseinfo/patinfolist");
  832. model.makeValue("/root/send/data/patinfolist/rgstseqno", model.getValue("/root/send/searchitem/rgstseqno"));
  833. model.makeValue("/root/send/data/patinfolist/cnstseqno", model.getValue("/root/temp/cnstinfo/cnstseqno"));
  834. // 20110124_laboru_경북대병원_과거유해반응 원인약물 저장 되게 수정
  835. model.setValue("/root/main/baseinfo/adrinfo/pastadvsdrug", model.getValue("/root/main/baseinfo/adrinfo/pastreqdrugnm"));
  836. model.copyNode("/root/send/data/adrinfo", "/root/main/baseinfo/adrinfo");
  837. model.setValue("/root/send/data/sympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/sympinfo" )));
  838. //model.copyNode("/root/send/data/oldsympinfo", "/root/main/baseinfo/oldsympinfo");
  839. model.setValue("/root/send/data/oldsympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/oldsympinfo" )));
  840. var update = getGridUpdateData(grd_prcpinfo);
  841. model.setValue("/root/send/data/hdruginfo", update);
  842. var update = getGridUpdateData(grd_druginfo);
  843. model.setValue("/root/send/data/druginfo", update);
  844. model.makeValue("/root/send/data/adrinfo/formrecseq", model.getValue("/root/send/searchitem/formrecseq"));
  845. //model.makeValue("/root/send/data/adrinfo/cnstdd", model.getValue("/root/send/searchitem/cnstdd"));
  846. //model.makeValue("/root/send/data/adrinfo/cnstseqno", model.getValue("/root/main/baseinfo/adrinfo2/cnstseqno"));
  847. model.makeValue("/root/send/data/adrinfo/statflag", "D"); //저장
  848. model.makeValue("/root/send/data/adrinfo/cnststat", "22"); //회신임시
  849. var success = submit("TXADC00601");
  850. if(success) {
  851. if ( model.getValue("/root/send/searchitem/rgstseqno") == "" ) {
  852. model.setValue("/root/send/searchitem/rgstseqno", model.getValue("/root/hidden/return/ret/rgstseqno"));
  853. }
  854. model.makeValue("/root/hidden/ret/saverslt", 'Y');
  855. submit("TRADC00601");
  856. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  857. model.resetInstanceNode("root/send/data");
  858. } else {
  859. model.makeValue("/root/hidden/ret/saverslt", 'N');
  860. }
  861. return success;
  862. }
  863. /*
  864. @ 회신약의 유해증상을 유해증상번호와 유해증상내용으로 구분한다.
  865. */
  866. function fDivDrugInfoSymp() {
  867. var sSymp = "";
  868. var aSymp = "";
  869. for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/druginfo") ; iNo++) {
  870. sSymp = model.getValue("/root/main/baseinfo/druginfo["+ iNo +"]/symp");
  871. aSymp = sSymp.split("^");
  872. if(aSymp.length > 1) {
  873. model.makeValue("/root/main/baseinfo/druginfo["+ iNo +"]/sympcnts", aSymp[1]);
  874. model.makeValue("/root/main/baseinfo/druginfo["+ iNo +"]/sympno", aSymp[0]);
  875. } else {
  876. model.makeValue("/root/main/baseinfo/druginfo["+ iNo +"]/sympcnts", sSymp);
  877. }
  878. }
  879. grd_druginfo.refresh();
  880. fChkSymp();
  881. }
  882. /*
  883. @ 유해증상 변경가능 여부 체크
  884. */
  885. function fChkSymp() {
  886. var sSympNo = "";
  887. cmb_cnstcnts2.disabled = false;
  888. cmb_cnstcnts3.disabled = false;
  889. ipt_cnstcnts22.disabled = false;
  890. cmb_cnstcnts4.disabled = false;
  891. cmb_cnstcnts5.disabled = false;
  892. ipt_cnstcnts23.disabled = false;
  893. cmb_cnstcnts6.disabled = false;
  894. cmb_cnstcnts7.disabled = false;
  895. ipt_cnstcnts24.disabled = false;
  896. cmb_cnstcnts8.disabled = false;
  897. cmb_cnstcnts9.disabled = false;
  898. ipt_cnstcnts25.disabled = false;
  899. cmb_cnstcnts10.disabled = false;
  900. cmb_cnstcnts11.disabled = false;
  901. ipt_cnstcnts26.disabled = false;
  902. for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/druginfo") ; iNo++) {
  903. sSympNo = model.getValue("/root/main/baseinfo/druginfo["+ iNo +"]/sympno");
  904. if( sSympNo != "") {
  905. if(sSympNo == "1") {
  906. cmb_cnstcnts2.disabled = true;
  907. cmb_cnstcnts3.disabled = true;
  908. ipt_cnstcnts22.disabled = true;
  909. } else if (sSympNo == "2") {
  910. cmb_cnstcnts4.disabled = true;
  911. cmb_cnstcnts5.disabled = true;
  912. ipt_cnstcnts23.disabled = true;
  913. } else if (sSympNo == "3") {
  914. cmb_cnstcnts6.disabled = true;
  915. cmb_cnstcnts7.disabled = true;
  916. ipt_cnstcnts24.disabled = true;
  917. } else if (sSympNo == "4") {
  918. cmb_cnstcnts8.disabled = true;
  919. cmb_cnstcnts9.disabled = true;
  920. ipt_cnstcnts25.disabled = true;
  921. } else if (sSympNo == "5") {
  922. cmb_cnstcnts10.disabled = true;
  923. cmb_cnstcnts11.disabled = true;
  924. ipt_cnstcnts26.disabled = true;
  925. }
  926. }
  927. }
  928. cmb_cnstcnts2.refresh();
  929. cmb_cnstcnts3.refresh();
  930. ipt_cnstcnts22.refresh();
  931. cmb_cnstcnts4.refresh();
  932. cmb_cnstcnts5.refresh();
  933. ipt_cnstcnts23.refresh();
  934. cmb_cnstcnts6.refresh();
  935. cmb_cnstcnts7.refresh();
  936. ipt_cnstcnts24.refresh();
  937. cmb_cnstcnts8.refresh();
  938. cmb_cnstcnts9.refresh();
  939. ipt_cnstcnts25.refresh();
  940. cmb_cnstcnts10.refresh();
  941. cmb_cnstcnts11.refresh();
  942. ipt_cnstcnts26.refresh();
  943. }
  944. ]]>
  945. </script>
  946. <submission id="TRADC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/baseinfo"/>
  947. <submission id="TXADC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/return"/>
  948. <submission id="TRADC00602" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/temp/cdlist"/>
  949. <submission id="TRADC00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchgrupid" replace="instance" resultref="/root/temp/cdlist/smacodelist"/>
  950. <submission id="TRADC00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchgrupid" replace="instance" resultref="/root/temp/drugcdlist"/>
  951. <submission id="TRZBC00101"/>
  952. <submission id="TRADB00001"/>
  953. <submission id="TRADC62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden/cnststatinfo"/>
  954. <submission id="TRADC20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/temp/medirecinfo"/>
  955. <submission id="TRADC00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/laprslt" replace="instance" resultref="/root/temp/laplist"/>
  956. <submission id="TXADC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/laprslt" replace="instance" resultref="/root/temp/rgsttemp"/>
  957. <submission id="TRASB01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/resultref"/>
  958. <submission id="TRADC00607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/temp/adrflag"/>
  959. </model>
  960. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  961. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  962. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  963. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  964. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  965. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  966. <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SPADC62200.js"/>
  967. <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
  968. </xhtml:head>
  969. <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  970. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  971. <line id="line12" class="line_2" style="x1:0px; y1:584px; x2:1195px; y2:584px; "/>
  972. <textarea id="tar_cmt" ref="/root/main/baseinfo/adrinfo/cmt" navindex="41" style="left:685px; top:564px; width:509px; height:48px; "/>
  973. <input id="inp_pastadvsdrug" ref="/root/main/baseinfo/adrinfo/pastreqdrugnm" class="input_default" style="left:908px; top:490px; width:284px; height:19px; "/>
  974. <line id="line8" class="line_1" style="x1:0px; y1:458px; x2:1194px; y2:458px; "/>
  975. <line id="line9" class="line_2" style="x1:0px; y1:510px; x2:1194px; y2:510px; "/>
  976. <line id="line10" class="line_1" style="x1:0px; y1:558px; x2:1194px; y2:558px; "/>
  977. <line id="line34" class="line_3" style="x1:0px; y1:253px; x2:1194px; y2:253px; "/>
  978. <caption id="caption32" class="cell_1" visibility="hidden" style="left:933px; top:573px; width:52px; height:48px; vertical-align:middle; ">증상발현정도</caption>
  979. <line id="line13" class="line_3" style="x1:0px; y1:614px; x2:1194px; y2:614px; "/>
  980. <caption id="caption1" class="tit_2" style="left:3px; top:262px; width:169px; height:13px; ">현재발생유해반응</caption>
  981. <group id="group2" style="left:0px; top:4px; width:1194px; height:101px; vertical-align:top; ">
  982. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:100px; background-color:#fffbf2; border-color:#ffd799; "/>
  983. <caption id="caption13" class="search_name" style="left:6px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
  984. <caption id="caption30" class="search_name" style="left:6px; top:30px; width:86px; height:17px; ">입원일 :</caption>
  985. <caption id="caption34" class="search_name" style="left:6px; top:52px; width:86px; height:17px; ">병동병실 :</caption>
  986. <caption id="caption14" class="search_name" style="left:217px; top:52px; width:87px; height:17px; ">체중(kg) :</caption>
  987. <caption id="caption16" class="search_name" style="left:217px; top:74px; width:90px; height:17px; ">신장(cm) :</caption>
  988. <caption id="caption31" class="search_name" style="left:217px; top:8px; width:86px; height:17px; ">성명 :</caption>
  989. <input id="pidInput" ref="/root/main/baseinfo/patinfolist/pid" class="input_search" navindex="1" style="left:94px; top:8px; width:112px; height:19px; ">
  990. <script type="javascript" ev:event="onkeyup">
  991. <![CDATA[
  992. //inputEnterKey("btn_sea","DOMActivate");
  993. ]]>
  994. </script>
  995. </input>
  996. <output id="input9" ref="/root/main/baseinfo/patinfolist/orddd" class="output_search" format="yyyy-mm-dd" appearance="output" style="left:94px; top:30px; width:112px; height:19px; text-align:center; "/>
  997. <output id="input10" ref="/root/main/baseinfo/patinfolist/wardcd" class="output_search" appearance="output" style="left:94px; top:52px; width:66px; height:19px; "/>
  998. <output id="input11" ref="/root/main/baseinfo/patinfolist/hngnm" class="output_search" appearance="output" style="left:310px; top:8px; width:72px; height:19px; "/>
  999. <output id="input12" ref="/root/main/baseinfo/patinfolist/wt" class="output_search" appearance="output" style="left:310px; top:52px; width:112px; height:19px; "/>
  1000. <output id="input14" ref="/root/main/baseinfo/patinfolist/sna" class="output_search" appearance="output" style="left:385px; top:8px; width:37px; height:19px; "/>
  1001. <output id="output2" ref="/root/main/baseinfo/patinfolist/ht" class="output_search" style="left:310px; top:74px; width:112px; height:19px; "/>
  1002. <caption id="caption35" class="search_name" style="left:429px; top:8px; width:87px; height:17px; ">의뢰일 :</caption>
  1003. <output id="input13" ref="/root/main/baseinfo/patinfolist/cnstdd" class="output_search" format="yyyy-mm-dd hh:nn" appearance="output" style="left:521px; top:8px; width:112px; height:19px; "/>
  1004. <output id="input15" ref="/root/main/baseinfo/patinfolist/cnstdrnm" class="output_search" appearance="output" style="left:521px; top:30px; width:112px; height:19px; "/>
  1005. <caption id="caption36" class="search_name" style="left:429px; top:30px; width:90px; height:17px; ">의뢰자 :</caption>
  1006. <caption id="caption37" class="search_name" style="left:641px; top:8px; width:90px; height:17px; ">상병정보 :</caption>
  1007. <datagrid id="datagrid3" nodeset="/root/main/baseinfo/diaginfolist" caption="상병코드^영문상병명^한글상병명" colsep="^" colwidth="77, 180, 163" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:729px; top:5px; width:461px; height:90px; text-align:center; vertical-align:middle; ">
  1008. <col ref="diagcd"/>
  1009. <col ref="diagengnm"/>
  1010. <col ref="diaghngnm"/>
  1011. </datagrid>
  1012. <output id="output1" ref="/root/main/baseinfo/patinfolist/cnstdeptnm" class="output_search" appearance="output" style="left:94px; top:74px; width:112px; height:19px; "/>
  1013. <caption id="caption39" class="search_name" style="left:6px; top:74px; width:86px; height:17px; ">진료과 :</caption>
  1014. <output id="output3" ref="/root/main/baseinfo/patinfolist/chosflag" class="output_search" appearance="output" style="left:310px; top:30px; width:112px; height:19px; "/>
  1015. <caption id="caption40" class="search_name" style="left:217px; top:30px; width:86px; height:17px; ">환자구분 :</caption>
  1016. <output id="output4" ref="/root/main/baseinfo/patinfolist/repldd" class="output_search" format="yyyy-mm-dd hh:nn" appearance="output" style="left:521px; top:52px; width:112px; height:19px; "/>
  1017. <caption id="caption41" class="search_name" style="left:429px; top:52px; width:90px; height:17px; ">보고일 :</caption>
  1018. <output id="output5" ref="/root/main/baseinfo/patinfolist/repluserid" class="output_search" appearance="output" style="left:521px; top:74px; width:112px; height:19px; "/>
  1019. <caption id="caption42" class="search_name" style="left:429px; top:74px; width:90px; height:17px; ">보고약사 :</caption>
  1020. <output id="output6" ref="/root/main/baseinfo/patinfolist/roomcd" class="output_search" appearance="output" style="left:162px; top:52px; width:44px; height:19px; "/>
  1021. <group id="grp_savebtn" visibility="hidden" style="left:1001px; top:0px; width:115px; height:85px; ">
  1022. <button id="btn_save" class="btn4_letter4" style="left:6px; top:5px; width:80px; height:22px; ">
  1023. <caption>임시저장</caption>
  1024. <script type="javascript" ev:event="DOMActivate">
  1025. <![CDATA[
  1026. model.makeValue("/root/main/baseinfo/patinfolist/fstvaluyn", "N");
  1027. if (fExeSave()) {
  1028. model.makeValue("/root/hidden/ret/saverslt", 'Y');
  1029. submit("TRADC00601");
  1030. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  1031. model.resetInstanceNode("root/send/data");
  1032. grp_savebtn.visible = false;
  1033. } else {
  1034. model.makeValue("/root/hidden/ret/saverslt", 'N');
  1035. }
  1036. ]]>
  1037. </script>
  1038. </button>
  1039. <button id="button19" class="btn4_letter6" style="left:6px; top:30px; width:104px; height:22px; ">
  1040. <caption>1차평가 완료</caption>
  1041. <script type="javascript" ev:event="DOMActivate">
  1042. <![CDATA[
  1043. if(model.getValue("/root/main/baseinfo/patinfolist/fstvaluid") != "") {
  1044. if(messageBox("이미 1차평가 완료된 보고서 입니다.", "Q003") != "6") {
  1045. return;
  1046. }
  1047. }
  1048. model.makeValue("/root/temp/popupdata/receivedatargst", "");
  1049. model.setValue("/root/temp/popupdata/repltype", "tdmS"); //저장자
  1050. model.makeValue("/root/temp/popupdata/rgstid", getUserInfo("userid"));
  1051. modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
  1052. var replid = model.getValue("/root/temp/popupdata/receivedatargst");
  1053. if(replid != "" ) {
  1054. model.makeValue("/root/main/baseinfo/patinfolist/fstvaluyn", "Y");
  1055. model.makeValue("/root/main/baseinfo/patinfolist/fstvaluid", replid);
  1056. if (fExeSave()) {
  1057. model.makeValue("/root/hidden/ret/saverslt", 'Y');
  1058. submit("TRADC00601");
  1059. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  1060. model.resetInstanceNode("root/send/data");
  1061. grp_savebtn.visible = false;
  1062. } else {
  1063. model.makeValue("/root/hidden/ret/saverslt", 'N');
  1064. }
  1065. }
  1066. ]]>
  1067. </script>
  1068. </button>
  1069. <button id="button18" class="btn4_letter6" style="left:6px; top:55px; width:104px; height:22px; ">
  1070. <caption>추가평가 수정</caption>
  1071. <script type="javascript" ev:event="DOMActivate">
  1072. <![CDATA[
  1073. model.makeValue("/root/temp/popupdata/receivedatargst", "");
  1074. model.setValue("/root/temp/popupdata/repltype", "tdmS"); //저장자
  1075. model.makeValue("/root/temp/popupdata/rgstid", getUserInfo("userid"));
  1076. modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
  1077. var replid = model.getValue("/root/temp/popupdata/receivedatargst");
  1078. if(replid != "" ) {
  1079. model.makeValue("/root/main/baseinfo/patinfolist/fstvaluyn", "Y");
  1080. model.makeValue("/root/main/baseinfo/patinfolist/fstvaluid", replid);
  1081. if (fExeSaveRe()) {
  1082. model.makeValue("/root/hidden/ret/saverslt", 'Y');
  1083. submit("TRADC00601");
  1084. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  1085. model.resetInstanceNode("root/send/data");
  1086. grp_savebtn.visible = false;
  1087. } else {
  1088. model.makeValue("/root/hidden/ret/saverslt", 'N');
  1089. }
  1090. }
  1091. ]]>
  1092. </script>
  1093. </button>
  1094. </group>
  1095. </group>
  1096. <caption id="caption33" class="cell_1" visibility="hidden" style="left:698px; top:573px; width:52px; height:23px; vertical-align:middle; ">심각도</caption>
  1097. <caption id="caption22" class="cell_1" style="left:770px; top:488px; width:137px; height:23px; vertical-align:middle; ">과거유해반응 원인약물</caption>
  1098. <caption id="caption3" class="cell_1" style="left:845px; top:642px; width:107px; height:48px; vertical-align:top; padding-top:5; ">
  1099. <![CDATA[약물유해반응
  1100. 내용요약]]>
  1101. </caption>
  1102. <caption id="caption23" class="tit_2" style="left:3px; top:542px; width:169px; height:13px; ">코멘트</caption>
  1103. <caption id="caption24" class="cell_1" style="left:0px; top:563px; width:80px; height:51px; vertical-align:middle; ">유해사례의 내용</caption>
  1104. <caption id="caption4" class="tit_2" style="left:3px; top:442px; width:169px; height:13px; ">과거유해반응</caption>
  1105. <line id="line17" class="line_1" style="x1:0px; y1:637px; x2:1194px; y2:637px; "/>
  1106. <caption id="caption25" class="cell_1" style="left:547px; top:564px; width:137px; height:50px; vertical-align:middle; ">유해사례와 약물의 인과관계에 대한 소견 등 기타의견</caption>
  1107. <line id="line1" class="line_1" style="x1:0px; y1:127px; x2:1194px; y2:127px; "/>
  1108. <line id="line18" class="line_3" style="x1:0px; y1:740px; x2:1194px; y2:740px; "/>
  1109. <caption id="caption26" class="tit_2" style="left:1px; top:621px; width:169px; height:13px; ">회신내역</caption>
  1110. <button id="button10" class="btn2_letter2" style="left:1057px; top:107px; width:42px; height:19px; ">
  1111. <caption>약력</caption>
  1112. <script type="javascript" ev:event="DOMActivate">
  1113. <![CDATA[
  1114. open("SMADB10100",0,0,0,"SMADB10100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
  1115. ]]>
  1116. </script>
  1117. </button>
  1118. <caption id="caption7" class="tit_2" style="left:3px; top:112px; width:169px; height:13px; ">최종처방정보</caption>
  1119. <caption id="caption28" class="cell_1" style="left:0px; top:642px; width:70px; height:98px; vertical-align:top; padding-top:5; ">의심약물</caption>
  1120. <textarea id="tar_adrcntssmm" ref="/root/main/baseinfo/adrinfo/adrcntssmm" navindex="44" style="left:955px; top:643px; width:239px; height:45px; "/>
  1121. <caption id="caption29" class="cell_1" style="left:845px; top:692px; width:107px; height:48px; vertical-align:top; padding-top:5; ">문헌검색내용</caption>
  1122. <select1 id="rao_pastadvs" ref="/root/main/baseinfo/adrinfo/pastadvs" navindex="37" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:908px; top:464px; width:195px; height:20px; border-style:none; ">
  1123. <choices>
  1124. <item>
  1125. <label>유</label>
  1126. <value>1</value>
  1127. </item>
  1128. <item>
  1129. <label>무</label>
  1130. <value>2</value>
  1131. </item>
  1132. <item>
  1133. <label>확인불가</label>
  1134. <value>3</value>
  1135. </item>
  1136. </choices>
  1137. </select1>
  1138. <caption id="caption9" class="cell_1" style="left:770px; top:464px; width:137px; height:23px; vertical-align:middle; ">과거유해반응여부</caption>
  1139. <textarea id="tar_srchcnts" ref="/root/main/baseinfo/adrinfo/srchcnts" navindex="45" style="left:955px; top:694px; width:239px; height:44px; "/>
  1140. <line id="line7" class="line_3" style="x1:0px; y1:536px; x2:1195px; y2:536px; "/>
  1141. <line id="line11" class="line_2" style="x1:0px; y1:485px; x2:1194px; y2:485px; "/>
  1142. <caption id="caption38" class="cell_1" style="left:770px; top:513px; width:137px; height:23px; vertical-align:middle; ">발생시기</caption>
  1143. <caption id="caption8" class="cell_1" style="left:0px; top:463px; width:80px; height:74px; vertical-align:middle; ">과거유해증상</caption>
  1144. <button id="button5" class="btn2_letter3" style="left:10px; top:685px; width:42px; height:19px; ">
  1145. <caption>행삭제</caption>
  1146. <script type="javascript" ev:event="DOMActivate">
  1147. <![CDATA[
  1148. if(grd_druginfo.rowStatus(grd_druginfo.row) == 1 || grd_druginfo.rowStatus(grd_druginfo.row) == 3){
  1149. grd_druginfo.deleteRow(grd_druginfo.row);
  1150. }else{
  1151. grd_druginfo.addStatus(grd_druginfo.row,"delete");
  1152. //grd_druginfo.rowHidden( grd_druginfo.row )=true;
  1153. }
  1154. fChkSymp();
  1155. ]]>
  1156. </script>
  1157. </button>
  1158. <button id="button7" class="btn2_letter3" style="left:10px; top:665px; width:42px; height:19px; ">
  1159. <caption>행추가</caption>
  1160. <script type="javascript" ev:event="DOMActivate">
  1161. <![CDATA[
  1162. grd_druginfo.addRow(true, true);
  1163. ]]>
  1164. </script>
  1165. </button>
  1166. <button id="button6" class="btn2_letter2" style="left:10px; top:705px; width:48px; height:19px; ">
  1167. <caption>확대</caption>
  1168. <script type="javascript" ev:event="DOMActivate">
  1169. <![CDATA[
  1170. if (grd_druginfo.attribute("height")==95 ){
  1171. grd_druginfo.attribute("top")=443;
  1172. grd_druginfo.attribute("height")=295;
  1173. tar_advscnts.visible = false;
  1174. } else {
  1175. grd_druginfo.attribute("top")=643;
  1176. grd_druginfo.attribute("height")=95;
  1177. tar_advscnts.visible = true;
  1178. }
  1179. ]]>
  1180. </script>
  1181. </button>
  1182. <button id="button11" class="btn2_letter2" style="left:905px; top:665px; width:42px; height:19px; ">
  1183. <caption>확대</caption>
  1184. <script type="javascript" ev:event="DOMActivate">
  1185. <![CDATA[
  1186. if (tar_adrcntssmm.attribute("height")==45 ){
  1187. tar_adrcntssmm.attribute("height")=95;
  1188. tar_srchcnts.visible = false;
  1189. } else {
  1190. tar_adrcntssmm.attribute("height")=45;
  1191. tar_srchcnts.visible = true;
  1192. }
  1193. ]]>
  1194. </script>
  1195. </button>
  1196. <button id="button12" class="btn2_letter2" style="left:905px; top:715px; width:42px; height:19px; ">
  1197. <caption>확대</caption>
  1198. <script type="javascript" ev:event="DOMActivate">
  1199. <![CDATA[
  1200. if (tar_srchcnts.attribute("height")==44 ){
  1201. tar_srchcnts.attribute("height")=95;
  1202. tar_srchcnts.attribute("top")=643;
  1203. } else {
  1204. tar_srchcnts.attribute("height")=44;
  1205. tar_srchcnts.attribute("top")=694;
  1206. }
  1207. ]]>
  1208. </script>
  1209. </button>
  1210. <button id="button13" class="btn2_letter2" style="left:35px; top:594px; width:42px; height:19px; ">
  1211. <caption>확대</caption>
  1212. <script type="javascript" ev:event="DOMActivate">
  1213. <![CDATA[
  1214. if (tar_advscnts.attribute("height")==48 ){
  1215. tar_advscnts.attribute("height")=180;
  1216. } else {
  1217. tar_advscnts.attribute("height")=48;
  1218. }
  1219. ]]>
  1220. </script>
  1221. </button>
  1222. <button id="button14" class="btn2_letter2" style="left:635px; top:594px; width:42px; height:19px; ">
  1223. <caption>확대</caption>
  1224. <script type="javascript" ev:event="DOMActivate">
  1225. <![CDATA[
  1226. if (tar_cmt.attribute("height")==48 ){
  1227. tar_cmt.attribute("height")=180;
  1228. } else {
  1229. tar_cmt.attribute("height")=48;
  1230. }
  1231. ]]>
  1232. </script>
  1233. </button>
  1234. <button id="button15" class="btn2_letter2" style="left:1010px; top:107px; width:42px; height:19px; ">
  1235. <caption>확대</caption>
  1236. <script type="javascript" ev:event="DOMActivate">
  1237. <![CDATA[
  1238. if (grd_prcpinfo.attribute("height")==130 ){
  1239. grd_prcpinfo.attribute("height")=366;
  1240. } else {
  1241. grd_prcpinfo.attribute("height")=130;
  1242. }
  1243. ]]>
  1244. </script>
  1245. </button>
  1246. <input id="com_pastmnftdd" ref="/root/main/baseinfo/adrinfo/pastmnftdd" class="input_default" navindex="39" inputtype="date" style="left:908px; top:514px; width:100px; height:19px; text-align:center; "/>
  1247. <input id="input2" ref="/root/main/baseinfo/oldsympinfo/cnstcnts22" navindex="30" visibility="hidden" style="left:445px; top:464px; width:322px; height:19px; "/>
  1248. <input id="input3" ref="/root/main/baseinfo/oldsympinfo/cnstcnts23" navindex="33" visibility="hidden" style="left:445px; top:490px; width:322px; height:19px; "/>
  1249. <input id="input4" ref="/root/main/baseinfo/oldsympinfo/cnstcnts24" navindex="36" visibility="hidden" style="left:445px; top:515px; width:322px; height:19px; "/>
  1250. <select1 id="combo1" ref="/root/main/baseinfo/oldsympinfo/cnstcnts2" class="combo_essential" navindex="28" appearance="minimal" style="left:84px; top:465px; width:171px; height:19px; ">
  1251. <choices>
  1252. <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
  1253. <label ref="cdnm"/>
  1254. <value ref="cdid"/>
  1255. </itemset>
  1256. </choices>
  1257. <script type="javascript" ev:event="xforms-select">
  1258. <![CDATA[
  1259. if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts2") != ""){
  1260. combo2.visible = true;
  1261. }else{
  1262. combo2.visible = false;
  1263. }
  1264. model.setValue("/root/main/baseinfo/oldsympinfo/cnstcnts3", "");
  1265. var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts2");
  1266. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  1267. if (icode != ""){
  1268. model.removeNodeset("/root/init/baseinfo/initcnst");
  1269. model.makeNode("/root/init/baseinfo/initcnst");
  1270. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  1271. submit("TRZBC00101");
  1272. copyNodesetType("/root/init/codelist/smlcd6", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  1273. }
  1274. model.refresh();
  1275. ]]>
  1276. </script>
  1277. </select1>
  1278. <select1 id="combo2" ref="/root/main/baseinfo/oldsympinfo/cnstcnts3" class="combo_essential" navindex="29" visibility="hidden" appearance="minimal" style="left:260px; top:465px; width:180px; height:19px; ">
  1279. <choices>
  1280. <itemset nodeset="/root/init/codelist/smlcd6">
  1281. <label ref="cdnm"/>
  1282. <value ref="cdid"/>
  1283. </itemset>
  1284. </choices>
  1285. <script type="javascript" ev:event="xforms-select">
  1286. <![CDATA[
  1287. fSmlComboChg("input2");
  1288. ]]>
  1289. </script>
  1290. </select1>
  1291. <select1 id="combo3" ref="/root/main/baseinfo/oldsympinfo/cnstcnts4" class="combo_default" navindex="31" appearance="minimal" style="left:84px; top:490px; width:171px; height:19px; ">
  1292. <choices>
  1293. <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
  1294. <label ref="cdnm"/>
  1295. <value ref="cdid"/>
  1296. </itemset>
  1297. </choices>
  1298. <script type="javascript" ev:event="xforms-select">
  1299. <![CDATA[
  1300. if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts4") != ""){
  1301. combo4.visible = true;
  1302. }else{
  1303. combo4.visible = false;
  1304. }
  1305. model.setValue("/root/main/baseinfo/oldsympinfo/cnstcnts5", "");
  1306. var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts4");
  1307. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  1308. if (icode != ""){
  1309. model.removeNodeset("/root/init/baseinfo/initcnst");
  1310. model.makeNode("/root/init/baseinfo/initcnst");
  1311. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  1312. submit("TRZBC00101");
  1313. copyNodesetType("/root/init/codelist/smlcd7", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  1314. }
  1315. model.refresh();
  1316. ]]>
  1317. </script>
  1318. </select1>
  1319. <select1 id="combo4" ref="/root/main/baseinfo/oldsympinfo/cnstcnts5" class="combo_default" navindex="32" visibility="hidden" appearance="minimal" style="left:260px; top:490px; width:180px; height:19px; ">
  1320. <choices>
  1321. <itemset nodeset="/root/init/codelist/smlcd7">
  1322. <label ref="cdnm"/>
  1323. <value ref="cdid"/>
  1324. </itemset>
  1325. </choices>
  1326. <script type="javascript" ev:event="xforms-select">
  1327. <![CDATA[
  1328. fSmlComboChg("input3");
  1329. ]]>
  1330. </script>
  1331. </select1>
  1332. <select1 id="combo5" ref="/root/main/baseinfo/oldsympinfo/cnstcnts6" class="combo_default" navindex="34" appearance="minimal" style="left:84px; top:515px; width:171px; height:19px; ">
  1333. <choices>
  1334. <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
  1335. <label ref="cdnm"/>
  1336. <value ref="cdid"/>
  1337. </itemset>
  1338. </choices>
  1339. <script type="javascript" ev:event="xforms-select">
  1340. <![CDATA[
  1341. if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts6") != ""){
  1342. combo6.visible = true;
  1343. }else{
  1344. combo6.visible = false;
  1345. }
  1346. model.setValue("/root/main/baseinfo/oldsympinfo/cnstcnts7", "");
  1347. var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts6");
  1348. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  1349. if (icode != ""){
  1350. model.removeNodeset("/root/init/baseinfo/initcnst");
  1351. model.makeNode("/root/init/baseinfo/initcnst");
  1352. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  1353. submit("TRZBC00101");
  1354. copyNodesetType("/root/init/codelist/smlcd8", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  1355. }
  1356. model.refresh();
  1357. ]]>
  1358. </script>
  1359. </select1>
  1360. <select1 id="combo6" ref="/root/main/baseinfo/oldsympinfo/cnstcnts7" class="combo_default" navindex="35" visibility="hidden" appearance="minimal" style="left:260px; top:515px; width:180px; height:19px; ">
  1361. <choices>
  1362. <itemset nodeset="/root/init/codelist/smlcd8">
  1363. <label ref="cdnm"/>
  1364. <value ref="cdid"/>
  1365. </itemset>
  1366. </choices>
  1367. <script type="javascript" ev:event="xforms-select">
  1368. <![CDATA[
  1369. fSmlComboChg("input4");
  1370. ]]>
  1371. </script>
  1372. </select1>
  1373. <datagrid id="grd_prcpinfo" nodeset="/root/main/baseinfo/hdruginfo" class="datagrid2" caption="약품명^처방시간^1일&#xA;용량^단위^수량^단위^분할&#xA;투여횟수^일수^최초복용일시^최종복용일시^투여경로^제조회사^과거&#xA;사용유무^진료과^caption1^caption4^caption3^caption5^caption6^caption2^caption7^seqno" colsep="^" colwidth="233, 118, 45, 42, 38, 44, 58, 36, 100, 100, 93, 125, 62, 80, 48, 43, 37, 20, 30, 39, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:130px; width:1194px; height:122px; ">
  1374. <col ref="prcpnm"/>
  1375. <col ref="rgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1376. <col ref="prcpvol" style="text-align:right; "/>
  1377. <col ref="prcpvolunit" style="text-align:center; "/>
  1378. <col ref="prcpqty" style="text-align:right; "/>
  1379. <col ref="prcpqtyunit" style="text-align:center; "/>
  1380. <col ref="prcptims" style="text-align:right; "/>
  1381. <col ref="prcpdayno" style="text-align:center; "/>
  1382. <col ref="fsttakedt" type="input" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1383. <col ref="lsttakedt" type="input" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  1384. <col ref="prcpclscd" type="combo" style="text-align:center; ">
  1385. <choices>
  1386. <itemset nodeset="/root/init/baseinfo/initprcpclscd/M0005">
  1387. <label ref="cdnm"/>
  1388. <value ref="cdid"/>
  1389. </itemset>
  1390. </choices>
  1391. </col>
  1392. <col ref="prodcmpynm"/>
  1393. <col checkvalue="Y,N" ref="preyn" type="checkbox"/>
  1394. <col ref="orddeptnm"/>
  1395. <col ref="orddeptcd" visibility="hidden"/>
  1396. <col ref="rgstseqno" visibility="hidden"/>
  1397. <col ref="formrecseq" visibility="hidden"/>
  1398. <col ref="prcpcd" visibility="hidden"/>
  1399. <col ref="prcpno" visibility="hidden"/>
  1400. <col ref="execprcphistcd" visibility="hidden"/>
  1401. <col ref="pid" visibility="hidden"/>
  1402. <col ref="seqno" visibility="hidden"/>
  1403. </datagrid>
  1404. <datagrid id="grd_druginfo" nodeset="/root/main/baseinfo/druginfo" caption="처방코드^약물명^성분명^제조회사^제조회사코드^유해증상^인과관계^인과관계^인과관계^심각도^증상발현정도^caption1^caption2^caption3^seqno^adrseqno^symp^comflag" colsep="^" colwidth="96, 86, 100, 81, 28, 100, 104, 20, 22, 75, 82, 38, 36, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="46" style="left:73px; top:643px; width:770px; height:95px; ">
  1405. <col editable="false" ref="drugcd" type="inputbutton"/>
  1406. <col ref="drugnm" type="input"/>
  1407. <col ref="comnm" type="input"/>
  1408. <col ref="prodcmpynm" type="inputbutton"/>
  1409. <col ref="prodcmpycd" visibility="hidden"/>
  1410. <col editable="false" ref="sympcnts" type="inputbutton"/>
  1411. <col ref="casrslt" type="combo">
  1412. <choices>
  1413. <item>
  1414. <label>Default</label>
  1415. <value>0</value>
  1416. </item>
  1417. <item>
  1418. <label>Possible</label>
  1419. <value>1</value>
  1420. </item>
  1421. <item>
  1422. <label>Probable</label>
  1423. <value>2</value>
  1424. </item>
  1425. <item>
  1426. <label>Definite</label>
  1427. <value>3</value>
  1428. </item>
  1429. <item>
  1430. <label>Certain</label>
  1431. <value>4</value>
  1432. </item>
  1433. <item>
  1434. <label>probable/likely</label>
  1435. <value>5</value>
  1436. </item>
  1437. <item>
  1438. <label>possible</label>
  1439. <value>6</value>
  1440. </item>
  1441. <item>
  1442. <label>unlikely</label>
  1443. <value>7</value>
  1444. </item>
  1445. <item>
  1446. <label>conditional/unclassified</label>
  1447. <value>8</value>
  1448. </item>
  1449. <item>
  1450. <label>unassessible/unclassifiable</label>
  1451. <value>9</value>
  1452. </item>
  1453. </choices>
  1454. </col>
  1455. <col ref="casrsltbtn" type="inputbutton"/>
  1456. <col editable="false" ref="koralgo" type="inputbutton"/>
  1457. <col ref="serigrde" type="combo">
  1458. <choices>
  1459. <item>
  1460. <label>serious</label>
  1461. <value>S</value>
  1462. </item>
  1463. <item>
  1464. <label>non-serious</label>
  1465. <value>N</value>
  1466. </item>
  1467. </choices>
  1468. </col>
  1469. <col ref="sympmnftgrde" type="combo">
  1470. <choices>
  1471. <item>
  1472. <label>경증</label>
  1473. <value>1</value>
  1474. </item>
  1475. <item>
  1476. <label>중등증</label>
  1477. <value>2</value>
  1478. </item>
  1479. <item>
  1480. <label>중증</label>
  1481. <value>3</value>
  1482. </item>
  1483. </choices>
  1484. </col>
  1485. <col ref="totscr" visibility="hidden"/>
  1486. <col ref="naranjocmt" visibility="hidden"/>
  1487. <col ref="casrslt2" visibility="hidden"/>
  1488. <col ref="seqno" visibility="hidden"/>
  1489. <col ref="adrseqno" visibility="hidden"/>
  1490. <col ref="symp" visibility="hidden"/>
  1491. <col ref="comflag" visibility="hidden"/>
  1492. <script type="javascript" ev:event="onbuttonclick">
  1493. <![CDATA[
  1494. if ( grd_druginfo.col== grd_druginfo.colRef("casrsltbtn") ){
  1495. var sNaranjocmt = model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/naranjocmt");
  1496. var comArray = sNaranjocmt.split("^");
  1497. //2010-01-26 'Naranjo Algorithm' -> 'WHO-UMC causality category' 변경
  1498. //(WHO-UMC causality category 값에는 첫번째 배열에 "who" 삽입)
  1499. if(comArray[0] == "who" || comArray[0] == "") {
  1500. //WHO-UMC causality category
  1501. model.makeValue("/root/hidden/casrslt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/casrslt"));
  1502. //model.makeValue("/root/hidden/totscr", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/totscr"));
  1503. model.makeValue("/root/hidden/naranjocmt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/naranjocmt"));
  1504. model.setValue("/root/popdata1/casrslt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/casrslt"));
  1505. //model.setValue("/root/popdata1/totscr", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/totscr"));
  1506. model.setValue("/root/popdata1/naranjocmt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/naranjocmt"));
  1507. modal("SPADC62600",0,200,300,"SPADC62600","/root/popdata1","/root/popdata");
  1508. model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/casrslt" , model.getValue("/root/hidden/casrslt") );
  1509. //model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/totscr" , model.getValue("/root/hidden/totscr") );
  1510. model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/naranjocmt" , model.getValue("/root/hidden/naranjocmt") );
  1511. grd_druginfo.addStatus(grd_druginfo.row, "update");
  1512. model.refresh();
  1513. } else {
  1514. //Naranjo Algorithm
  1515. model.makeValue("/root/hidden/casrslt","");
  1516. model.makeValue("/root/hidden/totscr","");
  1517. model.makeValue("/root/hidden/naranjocmt","");
  1518. model.setValue("/root/popdata1/casrslt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/casrslt"));
  1519. model.setValue("/root/popdata1/totscr", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/totscr"));
  1520. model.setValue("/root/popdata1/naranjocmt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/naranjocmt"));
  1521. modal("SPADC61600",0,200,300,"SPADC61600","/root/popdata1","/root/popdata");
  1522. if ( model.getValue("/root/hidden/casrslt") != ""){
  1523. model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/casrslt" , model.getValue("/root/hidden/casrslt") );
  1524. model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/totscr" , model.getValue("/root/hidden/totscr") );
  1525. model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/naranjocmt" , model.getValue("/root/hidden/naranjocmt") );
  1526. grd_druginfo.addStatus(grd_druginfo.row, "update");
  1527. model.refresh();
  1528. }
  1529. }
  1530. } else if (grd_druginfo.col== grd_druginfo.colRef("koralgo")){
  1531. model.makeValue("/root/hidden/koralgo", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/koralgo"));
  1532. model.makeValue("/root/hidden/totscr", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/totscr"));
  1533. model.makeValue("/root/popdata1/koralgo", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/koralgo"));
  1534. modal("SPADC62800",0,200,300,"SPADC62800","/root/popdata1","/root/popdata");
  1535. model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/koralgo" , model.getValue("/root/hidden/koralgo") );
  1536. model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/totscr" , model.getValue("/root/hidden/totscr") );
  1537. grd_druginfo.addStatus(grd_druginfo.row, "update");
  1538. } else if (grd_druginfo.col== grd_druginfo.colRef("drugcd")){
  1539. //DIF검색
  1540. model.makeValue("/root/temp/reqdata/send/receiveref", "/root/temp/receivedata/receiveref");
  1541. model.makeValue("/root/temp/reqdata/send/receivedrugpnm", "/root/temp/receivedata/receivedrugpnm");
  1542. model.makeValue("/root/temp/reqdata/send/receivedrugflag", "/root/temp/receivedata/receivedrugflag");
  1543. model.makeValue("/root/temp/reqdata/send/receivedrugcom", "/root/temp/receivedata/receivedrugcom");
  1544. model.makeValue("/root/temp/reqdata/send/reqpid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1545. model.resetInstanceNode("/root/temp/receivedata");
  1546. modal("SPMMD03400",0,100,150,"SPMMD03400","/root/temp/reqdata/send","/root/temp/receivedata");
  1547. //modal("SPMMD03400",0,100,150,"SPMMD03400","/root/temp/receivedata","/root/temp/receivedata");
  1548. if( instance1.selectSingleNode("/root/temp/receivedata/receiveref") ){
  1549. if( !isNull(model.getValue("/root/temp/receivedata/receiveref")) ){
  1550. var drugcd = model.getValue("/root/temp/receivedata/receiveref");
  1551. var drugcdnm = model.getValue("/root/temp/receivedata/receivedrugpnm");
  1552. var sReceivedrugflag = model.getValue("/root/temp/receivedata/receivedrugflag");
  1553. if(sReceivedrugflag != "") {
  1554. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag", sReceivedrugflag);
  1555. } else {
  1556. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag", "C");
  1557. }
  1558. model.setValue("/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/drugcd", drugcd);
  1559. if(model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag") != "O") {
  1560. model.setValue("/root/temp/srchgrupid/drugcd", drugcd);
  1561. model.setValue("/root/temp/srchgrupid/comflag", model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag"));
  1562. submit("TRADC00604");
  1563. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/drugnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
  1564. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/comdesc"));
  1565. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/prodcmpycd" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpycd"));
  1566. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/prodcmpynm" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpynm"));
  1567. } else {
  1568. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/drugnm" , drugcdnm);
  1569. }
  1570. }
  1571. }
  1572. /*
  1573. 원내약 검색
  1574. model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
  1575. model.setValue("/root/temp/receivedata/srchflag", "");
  1576. model.setValue("/root/temp/receivedata/srchcnts", "");
  1577. model.setValue("/root/temp/receivedata/drugkind","");
  1578. model.makeValue("/root/temp/receivedata/receiveref", "/root/hidden/drugcd");
  1579. model.makeNode("/root/hidden/drugcd");
  1580. modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
  1581. if (model.getValue("/root/hidden/drugcd") !=""){
  1582. model.setValue("/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/drugcd", model.getValue("/root/hidden/drugcd"));
  1583. model.setValue("/root/temp/srchgrupid/drugcd", model.getValue("/root/hidden/drugcd"));
  1584. //alert (model.getValue("/root/temp/srchgrupid/drugcd"));
  1585. submit("TRADC00604");
  1586. //alert (model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
  1587. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/drugnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
  1588. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/comdesc"));
  1589. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/prodcmpycd" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpycd"));
  1590. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/prodcmpynm" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpynm"));
  1591. }
  1592. */
  1593. model.refresh();
  1594. } else if (grd_druginfo.col== grd_druginfo.colRef("sympcnts")){
  1595. //인스턴스 초기화
  1596. model.removenode("/root/temp/returnsymp");
  1597. model.makeNode("/root/temp/returnsymp/symp");
  1598. model.makeNode("/root/temp/returnsymp/sympcnts");
  1599. model.makeNode("/root/temp/returnsymp/cnfmyn");
  1600. model.removenode("/root/temp/tempsymp");
  1601. model.makeNode("/root/temp/tempsymp");
  1602. //자식창에 유해증상내용을 넘김.
  1603. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[1]/chk", "N");
  1604. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[1]/symp1", cmb_cnstcnts2.label);
  1605. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[1]/symp2", cmb_cnstcnts3.label);
  1606. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[1]/symp3", ipt_cnstcnts22.label);
  1607. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[2]/chk", "N");
  1608. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[2]/symp1", cmb_cnstcnts4.label);
  1609. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[2]/symp2", cmb_cnstcnts5.label);
  1610. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[2]/symp3", ipt_cnstcnts23.label);
  1611. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[3]/chk", "N");
  1612. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[3]/symp1", cmb_cnstcnts6.label);
  1613. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[3]/symp2", cmb_cnstcnts7.label);
  1614. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[3]/symp3", ipt_cnstcnts24.label);
  1615. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[4]/chk", "N");
  1616. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[4]/symp1", cmb_cnstcnts8.label);
  1617. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[4]/symp2", cmb_cnstcnts9.label);
  1618. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[4]/symp3", ipt_cnstcnts25.label);
  1619. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[5]/chk", "N");
  1620. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[5]/symp1", cmb_cnstcnts10.label);
  1621. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[5]/symp2", cmb_cnstcnts11.label);
  1622. model.makeValue("/root/temp/tempsymp/symplist/sympinfo[5]/symp3", ipt_cnstcnts26.label);
  1623. model.makeValue("/root/temp/tempsymp/symp", model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/symp"));
  1624. if (model.getValue("/root/temp/adrflag/adr/newflag") == "Y") {
  1625. modal("SPADC62901",0,100,150,"SPADC62901","/root/temp/tempsymp","/root/hidden/tempsymp");
  1626. } else {
  1627. modal("SPADC62900",0,100,150,"SPADC62900","/root/temp/tempsymp","/root/hidden/tempsymp");
  1628. }
  1629. //팝어창에서 정상적으로 확인을 하였을 경우만 set 한다.(닫기 버튼 눌렀을 경우 제외)
  1630. if(model.getValue("/root/temp/returnsymp/cnfmyn") == "Y"){
  1631. if(model.getValue("/root/temp/returnsymp/symp") == "") {
  1632. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/symp", "");
  1633. model.makeValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/sympcnts", "");
  1634. model.makeValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/sympno", "");
  1635. } else {
  1636. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/symp", model.getValue("/root/temp/returnsymp/symp") + "^" + model.getValue("/root/temp/returnsymp/sympcnts"));
  1637. model.makeValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/sympcnts", model.getValue("/root/temp/returnsymp/sympcnts"));
  1638. model.makeValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/sympno", model.getValue("/root/temp/returnsymp/symp") );
  1639. }
  1640. grd_druginfo.addStatus(grd_druginfo.row, "update");
  1641. fChkSymp();
  1642. }
  1643. }
  1644. ]]>
  1645. </script>
  1646. <script type="javascript" ev:event="xforms-value-changed">
  1647. <![CDATA[
  1648. if (grd_druginfo.col== grd_druginfo.colRef("casrslt")){
  1649. if(model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt") == "0"
  1650. || model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt") == "1"
  1651. || model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt") == "2"
  1652. || model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt") == "3" ) {
  1653. messageBox("Naranjo Algorithm의 인과관계는 선택하실 수 없습니다.", "E999", "");
  1654. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt", model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/bfcasrslt"));
  1655. model.refresh();
  1656. }
  1657. } else if(grd_druginfo.col== grd_druginfo.colRef("serigrde")) {
  1658. if(grd_druginfo.row == 1) {
  1659. model.setValue("/root/main/baseinfo/adrinfo/serigrde", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/serigrde"));
  1660. }
  1661. } else if(grd_druginfo.col== grd_druginfo.colRef("sympmnftgrde")) {
  1662. if(grd_druginfo.row == 1) {
  1663. model.setValue("/root/main/baseinfo/adrinfo/sympmnftgrde", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/sympmnftgrde"));
  1664. }
  1665. } else if (grd_druginfo.col== grd_druginfo.colRef("drugnm")){
  1666. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/drugcd", "unKnown");
  1667. model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag", "-");
  1668. }
  1669. ]]>
  1670. </script>
  1671. </datagrid>
  1672. <textarea id="tar_advscnts" ref="/root/main/baseinfo/adrinfo/advscnts" navindex="40" style="left:83px; top:564px; width:462px; height:48px; "/>
  1673. <button id="button1" class="btn2_letter3" style="left:951px; top:107px; width:53px; height:19px; ">
  1674. <caption>행삭제</caption>
  1675. <script type="javascript" ev:event="DOMActivate">
  1676. <![CDATA[
  1677. if(grd_prcpinfo.rowStatus(grd_prcpinfo.row) == 1 || grd_prcpinfo.rowStatus(grd_prcpinfo.row) == 3){
  1678. grd_prcpinfo.deleteRow(grd_prcpinfo.row);
  1679. }else{
  1680. grd_prcpinfo.addStatus(grd_prcpinfo.row,"delete");
  1681. //grd_druginfo.rowHidden( grd_druginfo.row )=true;
  1682. }
  1683. ]]>
  1684. </script>
  1685. </button>
  1686. <button id="button8" class="btn2_letter6" style="left:1105px; top:107px; width:86px; height:19px; ">
  1687. <caption>약품실시이력</caption>
  1688. <script type="javascript" ev:event="DOMActivate">
  1689. <![CDATA[
  1690. //open("SMADB10100",0,0,0,"SMADB10100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
  1691. open("SMADC20100",0,0,0,"SMADC20100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
  1692. ]]>
  1693. </script>
  1694. </button>
  1695. <datagrid id="grd_medirec" nodeset="/root/main/medirecinfo/row" class="datagrid2" visibility="hidden" caption="입원&#xA;/외래^약품코드^처방명^용법^진료/입원일^실시일자^ioflag^등록번호" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:860px; top:200px; width:200px; height:135px; ">
  1696. <col ref="ioflagnm" style="text-align:center; "/>
  1697. <col ref="prcpcd"/>
  1698. <col ref="prcpnm"/>
  1699. <col ref="drugmthdspccd"/>
  1700. <col ref="orddd"/>
  1701. <col ref="exectm"/>
  1702. <col ref="ioflag"/>
  1703. <script type="javascript" ev:event="ondblclick">
  1704. <![CDATA[
  1705. fCnfm();
  1706. ]]>
  1707. </script>
  1708. </datagrid>
  1709. <group id="group5" visibility="hidden" style="left:425px; top:0px; width:345px; height:330px; ">
  1710. <button id="btn_addpic" class="btn2_letter3" navindex="20" visibility="hidden" style="left:227px; top:55px; width:53px; height:19px; ">
  1711. <caption>행추가</caption>
  1712. <script type="javascript" ev:event="DOMActivate">
  1713. <![CDATA[
  1714. grd_prtnimg.addRow(true);
  1715. ]]>
  1716. </script>
  1717. </button>
  1718. <button id="btn_delpic" class="btn2_letter3" navindex="20" visibility="hidden" style="left:282px; top:55px; width:53px; height:19px; ">
  1719. <caption>행삭제</caption>
  1720. <script type="javascript" ev:event="DOMActivate">
  1721. <![CDATA[
  1722. grd_prtnimg.deleteRow(grd_prtnimg.row);
  1723. ]]>
  1724. </script>
  1725. </button>
  1726. <line id="line14" class="line_1" style="x1:10px; y1:75px; x2:335px; y2:75px; "/>
  1727. <caption id="caption44" class="tit_2" style="left:10px; top:60px; width:204px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">Lab</caption>
  1728. <button id="btn_cls" class="btn4_letter2" style="left:280px; top:298px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1729. <caption>닫기</caption>
  1730. <script type="javascript" ev:event="onclick">
  1731. <![CDATA[
  1732. group5.visible = false;
  1733. ]]>
  1734. </script>
  1735. </button>
  1736. <button id="button16" class="btn6_letter5" style="left:129px; top:298px; width:92px; height:22px; ">
  1737. <caption>평가서출력</caption>
  1738. <script type="javascript" ev:event="DOMActivate">
  1739. <![CDATA[
  1740. var sPrtnColNm = "";
  1741. var sColnm = "";
  1742. var sPrtnDispNm = 1;
  1743. var iDrugRowNo = 1;
  1744. var ikoralgo = 1;
  1745. var aKoralgo = "";
  1746. var ilapSeq = 1;
  1747. var sTemp = "";
  1748. //-------------------------------------------
  1749. //Lap 결과 조회.
  1750. for(iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/lapinfo") ; iNo++) {
  1751. model.setValue("/root/main/baseinfo/lapinfo["+ iNo +"]/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1752. if(model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/chk") == "Y") {
  1753. grd_laplist.addStatus(iNo, "insert");
  1754. } else {
  1755. grd_laplist.addStatus(iNo, "update");
  1756. }
  1757. }
  1758. model.makeNode("/root/temp/laplist");
  1759. model.makeValue("/root/send/laprslt", grd_laplist.getUpdateData("insert"));
  1760. submit("TRADC00606");
  1761. //-------------------------------------------
  1762. fGetDrugExecInfo();
  1763. model.refresh();
  1764. model.removenode("/root/temp/valuprintinfo");
  1765. model.makeValue("/root/temp/valuprintinfo/usernm", getUserName());
  1766. model.makeValue("/root/temp/valuprintinfo/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1767. model.makeValue("/root/temp/valuprintinfo/agesex", model.getValue("/root/main/baseinfo/patinfolist/sna"));
  1768. model.makeValue("/root/temp/valuprintinfo/pathngnm", model.getValue("/root/main/baseinfo/patinfolist/hngnm"));
  1769. model.makeValue("/root/temp/valuprintinfo/advscnts", model.getValue("/root/main/baseinfo/adrinfo/advscnts")); //history
  1770. model.makeValue("/root/temp/valuprintinfo/fstrgstrnm", model.getValue("/root/main/baseinfo/patinfolist/fstrgstrnm"));
  1771. model.makeValue("/root/temp/valuprintinfo/reqdrnm", model.getValue("/root/init/reqdrnm"));
  1772. model.makeValue("/root/temp/valuprintinfo/whoalgocmt", "<" + model.getValue("/root/init/whoalgocmt") + ">");
  1773. model.makeValue("/root/temp/valuprintinfo/koralgocmt", "<" + model.getValue("/root/init/koralgocmt") + ">");
  1774. model.makeValue("/root/temp/valuprintinfo/fstvalunm", model.getValue("/root/main/baseinfo/patinfolist/fstvalunm"));
  1775. sTemp = model.getValue("/root/main/baseinfo/patinfolist/fstvaludd");
  1776. if(sTemp != "") {
  1777. sTemp = sTemp.substr(0, 4) + "-" + sTemp.substr(4, 2) + "-" + sTemp.substr(6, 2);
  1778. } else {
  1779. sTemp = "";
  1780. }
  1781. model.makeValue("/root/temp/valuprintinfo/fstvaludd", sTemp);
  1782. sTemp = model.getValue("/root/main/baseinfo/patinfolist/fstvalutm");
  1783. if(sTemp != "") {
  1784. sTemp = sTemp.substr(0, 2) + ":" + sTemp.substr(2, 2);
  1785. } else {
  1786. sTemp = "";
  1787. }
  1788. model.makeValue("/root/temp/valuprintinfo/fstvalutm", sTemp);
  1789. //문헌조사결과
  1790. fSetPrtnDiv(model.getValue("/root/main/baseinfo/adrinfo/srchcnts"), "/root/temp/valuprintinfo/srchcnts/srchcntsinfo");
  1791. //의견
  1792. fSetPrtnDiv(model.getValue("/root/main/baseinfo/adrinfo/cmt"), "/root/temp/valuprintinfo/cmt/cmtinfo");
  1793. //복용내역
  1794. model.makeNode("/root/temp/valuprintinfo/durgexeclist");
  1795. model.copyNode("/root/temp/valuprintinfo/durgexeclist", "/root/main/medirecinfo");
  1796. sPrtnColNm = model.getValue("/root/main/medirecinfo/header/caption");
  1797. sColnm = sPrtnColNm.split("^");
  1798. for(var ArrNo = 0; ArrNo < sColnm.length ; ArrNo++) {
  1799. if(ArrNo != 0 && ArrNo != 1 && ArrNo != 3 && ArrNo != 4 && ArrNo != 5 && ArrNo != 6) {
  1800. model.makeValue("/root/temp/valuprintinfo/"+ "col" + sPrtnDispNm, sColnm[ ArrNo]);
  1801. sPrtnDispNm++;
  1802. }
  1803. }
  1804. model.makeValue("/root/temp/valuprintinfo/colcount", (sColnm.length)-6); //컬럼갯수
  1805. //이미지 정보
  1806. if(model.getValue("/root/main/prtnimglist/prtnimginfo/img") != "") {
  1807. model.makeValue("/root/temp/valuprintinfo/picviewyn", "Y"); //이미지 섹션 표시여부
  1808. } else{
  1809. model.makeValue("/root/temp/valuprintinfo/picviewyn", "N"); //이미지 섹션 표시여부
  1810. }
  1811. model.makeNode("/root/temp/valuprintinfo/prtnimglist");
  1812. model.copyNode("/root/temp/valuprintinfo/prtnimglist", "/root/main/prtnimglist");
  1813. //의심약물 & 한국형알고리즘.
  1814. for(var iRowNo = 1 ; iRowNo <= getNodesetCount("/root/main/baseinfo/druginfo") ; iRowNo++) {
  1815. if((model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/casrslt") != "") && (model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/casrslt") > "3")) {
  1816. model.makeValue("/root/temp/valuprintinfo/druglist/druginfo["+ iDrugRowNo +"]/drugnm", model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/drugnm"));
  1817. model.makeValue("/root/temp/valuprintinfo/druglist/druginfo["+ iDrugRowNo +"]/casrslt", model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/casrslt"));
  1818. iDrugRowNo++;
  1819. }
  1820. if(model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/koralgo") != "") {
  1821. model.makeValue("/root/temp/valuprintinfo/koralgolist/koralgoinfo["+ ikoralgo +"]/drugnm", model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/drugnm"));
  1822. model.makeValue("/root/temp/valuprintinfo/koralgolist/koralgoinfo["+ ikoralgo +"]/totscr", model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/totscr"));
  1823. aKoralgo = (model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/koralgo")).split("^");
  1824. for(iNo = 1 ; iNo < aKoralgo.length ; iNo++) {
  1825. model.makeValue("/root/temp/valuprintinfo/koralgolist/koralgoinfo["+ ikoralgo +"]/ans" + iNo, aKoralgo[iNo]);
  1826. }
  1827. ikoralgo++;
  1828. }
  1829. }
  1830. //lap결과
  1831. for(iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/lapinfo") ; iNo++) {
  1832. if(model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/chk") == "Y") {
  1833. ilapSeq = 1;
  1834. for(iRowNo = 1 ; iRowNo <= getNodesetCount("/root/temp/laplist/lapinfo") ; iRowNo++) {
  1835. if(model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/testcd") == model.getValue("/root/temp/laplist/lapinfo["+ iRowNo +"]/testcd")) {
  1836. model.makeNode("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo + "/lapinfo[" + ilapSeq + "]");
  1837. model.copyNode("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo + "/lapinfo[" + ilapSeq + "]", "/root/temp/laplist/lapinfo["+ iRowNo +"]");
  1838. model.makeValue("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo + "/lapinfo[" + ilapSeq + "]/testnm", model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/testnm"));
  1839. //model.makeValue("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo + "/lapinfo[" + ilapSeq + "]/cmt", model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/cmt"));
  1840. ilapSeq++;
  1841. }
  1842. }
  1843. }
  1844. model.makeValue("/root/temp/valuprintinfo/laprslt" + iNo, model.getValue("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo +"/lapinfo/reptrslt"));
  1845. }
  1846. exeReportPreview("RPADC00603", "XMLSTR", "", "", "false","","","","","false");
  1847. ]]>
  1848. </script>
  1849. </button>
  1850. <input id="input6" ref="/root/init/reqdrnm" style="left:10px; top:30px; width:250px; height:19px; "/>
  1851. <line id="line15" class="line_1" style="x1:10px; y1:25px; x2:335px; y2:25px; "/>
  1852. <caption id="caption45" class="tit_2" style="left:10px; top:10px; width:115px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검토 의사</caption>
  1853. <line id="line16" class="line_1" style="x1:10px; y1:215px; x2:335px; y2:215px; "/>
  1854. <caption id="caption46" class="tit_2" style="left:10px; top:200px; width:210px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">WHO-UMC causality category</caption>
  1855. <input id="input7" ref="/root/init/whoalgocmt" style="left:20px; top:220px; width:305px; height:19px; "/>
  1856. <input id="input8" ref="/root/init/koralgocmt" style="left:20px; top:270px; width:305px; height:19px; "/>
  1857. <line id="line20" class="line_1" style="x1:10px; y1:265px; x2:335px; y2:265px; "/>
  1858. <caption id="caption47" class="tit_2" style="left:10px; top:250px; width:204px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">한국형 알고리즘 V 2.0</caption>
  1859. <caption id="caption48" style="left:10px; top:220px; width:20px; height:20px; font-weight:bold; ">
  1860. <![CDATA[<]]>
  1861. </caption>
  1862. <caption id="caption49" style="left:10px; top:270px; width:20px; height:20px; font-weight:bold; ">
  1863. <![CDATA[<]]>
  1864. </caption>
  1865. <caption id="caption50" style="left:325px; top:220px; width:15px; height:20px; font-weight:bold; ">
  1866. <![CDATA[>]]>
  1867. </caption>
  1868. <caption id="caption51" style="left:325px; top:270px; width:15px; height:20px; font-weight:bold; ">
  1869. <![CDATA[>]]>
  1870. </caption>
  1871. <caption id="caption52" style="left:265px; top:30px; width:70px; height:20px; ">선생님 귀하</caption>
  1872. <datagrid id="grd_prtnimg" nodeset="/root/main/prtnimglist/prtnimginfo" visibility="hidden" caption="이미지^코멘트" colsep="^" colwidth="72, 231" mergecellsfixedrows="bycolrec" rowsep="|" style="left:135px; top:15px; width:70px; height:60px; ">
  1873. <col ref="img" type="inputbutton"/>
  1874. <col ref="cmt" type="input"/>
  1875. <script type="javascript" ev:event="onbuttonclick">
  1876. <![CDATA[
  1877. var file = window.fileDialog("open","",true,"","jpg","이미지 파일|*.bmp;*.jpg;*.gif|Jpeg Files(*.jpg)|*.jpg|Bitmap Files(*.bmp)|*.bmp|TIFF Files(*.tif)|*.tif|All Files (*.*)|*.*|");
  1878. if (file != "") {
  1879. PreView.LoadImage(file);
  1880. PreView.SetViewMode("0"); // 0 : 원본사이즈
  1881. var strBase64 = PreView.SaveImageBase64();
  1882. model.setValue("/root/main/prtnimglist/prtnimginfo["+ grd_prtnimg.row +"]/img", strBase64);
  1883. }
  1884. ]]>
  1885. </script>
  1886. </datagrid>
  1887. <datagrid id="grd_laplist" nodeset="/root/main/baseinfo/lapinfo" caption="선택^검사명^기준일자^기준일자^cmt^testcd^pid^rgstseqno" colsep="^" colwidth="34, 103, 85, 85, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:80px; width:325px; height:110px; ">
  1888. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  1889. <col ref="testnm"/>
  1890. <col ref="srchfromdd" type="inputdate"/>
  1891. <col ref="srchdd" type="inputdate"/>
  1892. <col ref="cmt" visibility="hidden"/>
  1893. <col ref="testcd" visibility="hidden"/>
  1894. <col ref="pid" visibility="hidden"/>
  1895. <col ref="rgstseqno" visibility="hidden"/>
  1896. </datagrid>
  1897. <button id="button17" class="btn4_letter2" style="left:223px; top:298px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1898. <caption>저장</caption>
  1899. <script type="javascript" ev:event="onclick">
  1900. <![CDATA[
  1901. var iCnt = 0;
  1902. if(model.getValue("/root/main/baseinfo/adrinfo/rgstseqno") != "") {
  1903. for(iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/lapinfo") ; iNo++) {
  1904. model.setValue("/root/main/baseinfo/lapinfo["+ iNo +"]/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1905. model.setValue("/root/main/baseinfo/lapinfo["+ iNo +"]/rgstseqno", model.getValue("/root/main/baseinfo/adrinfo/rgstseqno"));
  1906. if(model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/chk") == "Y") {
  1907. grd_laplist.addStatus(iNo, "insert");
  1908. iCnt++;
  1909. } else {
  1910. grd_laplist.addStatus(iNo, "update");
  1911. }
  1912. }
  1913. //삭제
  1914. if(iCnt == 0) {
  1915. model.setValue("/root/main/baseinfo/lapinfo["+ 1 +"]/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  1916. model.setValue("/root/main/baseinfo/lapinfo["+ 1 +"]/rgstseqno", model.getValue("/root/main/baseinfo/adrinfo/rgstseqno"));
  1917. model.setValue("/root/main/baseinfo/lapinfo["+ 1 +"]/testcd", "");
  1918. grd_laplist.addStatus(1, "insert");
  1919. }
  1920. model.makeNode("/root/temp/laplist");
  1921. model.makeValue("/root/send/laprslt", grd_laplist.getUpdateData("insert"));
  1922. submit("TXADC00602");
  1923. }
  1924. ]]>
  1925. </script>
  1926. </button>
  1927. </group>
  1928. <object id="PreView" clsid="{72e5d9ed-0d6a-46e8-aead-23144bfef878}" style="left:45px; top:185px; width:65px; height:65px; "/>
  1929. <select1 id="rdo_serious" ref="/root/main/baseinfo/adrinfo/serigrde" navindex="42" visibility="hidden" appearance="full" cellspacing="10" cols="2" rows="1" overflow="visible" style="left:755px; top:575px; width:165px; height:20px; border-style:none; ">
  1930. <choices>
  1931. <item>
  1932. <label>serious</label>
  1933. <value>S</value>
  1934. </item>
  1935. <item>
  1936. <label>non-serious</label>
  1937. <value>N</value>
  1938. </item>
  1939. </choices>
  1940. </select1>
  1941. <switch id="switch1" style="left:0px; top:278px; width:1193px; height:162px; border-color:#c7a3cf; border-style:solid; ">
  1942. <case id="case1">
  1943. <input id="inp_doubdrug" ref="/root/main/baseinfo/adrinfo/doubdrug" class="input_default" style="left:853px; top:31px; width:100px; height:19px; "/>
  1944. <input id="car_enddd" ref="/root/main/baseinfo/adrinfo/enddd" class="input_default" navindex="7" inputtype="date" style="left:1068px; top:6px; width:112px; height:19px; text-align:center; "/>
  1945. <select1 id="rao_smok" ref="/root/main/baseinfo/adrinfo/smok" navindex="4" appearance="full" cellspacing="5" cols="2" rows="1" overflow="visible" style="left:542px; top:8px; width:75px; height:20px; border-style:none; ">
  1946. <choices>
  1947. <item>
  1948. <label>유</label>
  1949. <value>Y</value>
  1950. </item>
  1951. <item>
  1952. <label>무</label>
  1953. <value>N</value>
  1954. </item>
  1955. </choices>
  1956. </select1>
  1957. <caption id="caption10" class="cell_1" style="left:469px; top:5px; width:71px; height:23px; vertical-align:middle; ">흡연</caption>
  1958. <input id="inp_phx" ref="/root/main/baseinfo/adrinfo/phx" class="input_default" navindex="2" style="left:83px; top:6px; width:144px; height:19px; "/>
  1959. <caption id="caption2" class="cell_1" style="left:0px; top:5px; width:80px; height:23px; vertical-align:middle; ">과거병력</caption>
  1960. <caption id="caption5" class="cell_1" style="left:620px; top:5px; width:71px; height:23px; vertical-align:middle; ">음주</caption>
  1961. <line id="line29" class="line_2" style="x1:0px; y1:28px; x2:1185px; y2:28px; "/>
  1962. <caption id="caption15" class="cell_1" style="left:770px; top:5px; width:80px; height:23px; vertical-align:middle; ">증상발현일</caption>
  1963. <select1 id="rao_drink" ref="/root/main/baseinfo/adrinfo/drink" navindex="5" appearance="full" cellspacing="5" cols="2" rows="1" overflow="visible" style="left:694px; top:6px; width:75px; height:20px; border-style:none; ">
  1964. <choices>
  1965. <item>
  1966. <label>유</label>
  1967. <value>Y</value>
  1968. </item>
  1969. <item>
  1970. <label>무</label>
  1971. <value>N</value>
  1972. </item>
  1973. </choices>
  1974. </select1>
  1975. <caption id="caption6" class="cell_1" style="left:230px; top:5px; width:80px; height:23px; vertical-align:middle; ">가족병력</caption>
  1976. <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:1190px; y2:0px; "/>
  1977. <caption id="caption17" class="cell_1" style="left:985px; top:5px; width:80px; height:23px; vertical-align:middle; ">종료일</caption>
  1978. <input id="inp_fhx" ref="/root/main/baseinfo/adrinfo/fhx" class="input_default" navindex="3" style="left:313px; top:6px; width:153px; height:19px; "/>
  1979. <input id="car_sympmnftdd" ref="/root/main/baseinfo/adrinfo/sympmnftdd" class="input_default" navindex="6" inputtype="date" style="left:853px; top:6px; width:125px; height:19px; text-align:center; "/>
  1980. <line id="line30" class="line_2" style="x1:0px; y1:53px; x2:1185px; y2:53px; "/>
  1981. <select1 id="rao_advsmnftgrde" ref="/root/main/baseinfo/adrinfo/advsmnftgrde" navindex="9" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:885px; top:58px; width:195px; height:20px; border-style:none; ">
  1982. <choices>
  1983. <item>
  1984. <label>경증</label>
  1985. <value>1</value>
  1986. </item>
  1987. <item>
  1988. <label>중등증</label>
  1989. <value>2</value>
  1990. </item>
  1991. <item>
  1992. <label>중증</label>
  1993. <value>3</value>
  1994. </item>
  1995. </choices>
  1996. </select1>
  1997. <caption id="caption20" class="cell_1" style="left:770px; top:130px; width:165px; height:23px; vertical-align:middle; ">재투여시 유해사례 발현여부</caption>
  1998. <input id="ipt_cnstcnts22" ref="/root/main/baseinfo/sympinfo/cnstcnts22" navindex="15" visibility="hidden" style="left:444px; top:32px; width:322px; height:19px; "/>
  1999. <select1 id="rao_redrugadvsmnft" ref="/root/main/baseinfo/adrinfo/redrugadvsmnft" navindex="12" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:941px; top:132px; width:195px; height:20px; border-style:none; ">
  2000. <choices>
  2001. <item>
  2002. <label>Y</label>
  2003. <value>Y</value>
  2004. </item>
  2005. <item>
  2006. <label>N</label>
  2007. <value>N</value>
  2008. </item>
  2009. <item>
  2010. <label>X</label>
  2011. <value>X</value>
  2012. </item>
  2013. </choices>
  2014. </select1>
  2015. <caption id="caption43" class="cell_1" style="left:1085px; top:105px; width:40px; height:23px; vertical-align:middle; ">일수</caption>
  2016. <select1 id="com_meascnts" ref="/root/main/baseinfo/adrinfo/meascnts" class="combo_default" navindex="10" appearance="minimal" style="left:883px; top:82px; width:297px; height:19px; ">
  2017. <choices>
  2018. <item>
  2019. <label>없음</label>
  2020. <value>0</value>
  2021. </item>
  2022. <item>
  2023. <label>투약중지</label>
  2024. <value>1</value>
  2025. </item>
  2026. <item>
  2027. <label>약품투여변경(용량변경)</label>
  2028. <value>2</value>
  2029. </item>
  2030. <item>
  2031. <label>약품투여변경(용법/투여경로변경)</label>
  2032. <value>3</value>
  2033. </item>
  2034. <item>
  2035. <label>약품투여변경(약물변경)</label>
  2036. <value>4</value>
  2037. </item>
  2038. <item>
  2039. <label>기타(직접입력)</label>
  2040. <value>5</value>
  2041. </item>
  2042. </choices>
  2043. </select1>
  2044. <caption id="caption21" class="cell_1" style="left:770px; top:105px; width:110px; height:23px; vertical-align:middle; ">유해사례 진행결과</caption>
  2045. <input id="ipt_cnstcnts23" ref="/root/main/baseinfo/sympinfo/cnstcnts23" navindex="18" visibility="hidden" style="left:444px; top:57px; width:322px; height:19px; "/>
  2046. <caption id="caption11" class="cell_1" style="left:770px; top:30px; width:80px; height:23px; vertical-align:middle; ">의심약물</caption>
  2047. <input id="ipt_cnstcnts24" ref="/root/main/baseinfo/sympinfo/cnstcnts24" navindex="21" visibility="hidden" style="left:444px; top:82px; width:322px; height:19px; "/>
  2048. <select1 id="cmb_cnstcnts2" ref="/root/main/baseinfo/sympinfo/cnstcnts2" class="combo_essential" navindex="13" appearance="minimal" style="left:83px; top:32px; width:171px; height:19px; ">
  2049. <choices>
  2050. <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
  2051. <label ref="cdnm"/>
  2052. <value ref="cdid"/>
  2053. </itemset>
  2054. </choices>
  2055. <script type="javascript" ev:event="xforms-select">
  2056. <![CDATA[
  2057. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts2") != ""){
  2058. cmb_cnstcnts3.visible = true;
  2059. }else{
  2060. cmb_cnstcnts3.visible = false;
  2061. }
  2062. model.setValue("/root/main/baseinfo/sympinfo/cnstcnts3", "");
  2063. var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts2");
  2064. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  2065. if (icode != ""){
  2066. model.removeNodeset("/root/init/baseinfo/initcnst");
  2067. model.makeNode("/root/init/baseinfo/initcnst");
  2068. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  2069. submit("TRZBC00101");
  2070. copyNodesetType("/root/init/codelist/smlcd1", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  2071. }
  2072. model.refresh();
  2073. ]]>
  2074. </script>
  2075. </select1>
  2076. <caption id="caption12" class="cell_1" style="left:770px; top:55px; width:110px; height:23px; vertical-align:middle; ">유해사례 발현정도</caption>
  2077. <input id="ipt_cnstcnts25" ref="/root/main/baseinfo/sympinfo/cnstcnts25" navindex="24" visibility="hidden" style="left:444px; top:107px; width:322px; height:19px; "/>
  2078. <select1 id="cmb_cnstcnts3" ref="/root/main/baseinfo/sympinfo/cnstcnts3" class="combo_essential" navindex="14" visibility="hidden" appearance="minimal" style="left:259px; top:32px; width:180px; height:19px; ">
  2079. <choices>
  2080. <itemset nodeset="/root/init/codelist/smlcd1">
  2081. <label ref="cdnm"/>
  2082. <value ref="cdid"/>
  2083. </itemset>
  2084. </choices>
  2085. <script type="javascript" ev:event="xforms-select">
  2086. <![CDATA[
  2087. fSmlComboChg("ipt_cnstcnts22");
  2088. ]]>
  2089. </script>
  2090. </select1>
  2091. <input id="ipt_cnstcnts26" ref="/root/main/baseinfo/sympinfo/cnstcnts26" navindex="27" visibility="hidden" style="left:444px; top:132px; width:322px; height:19px; "/>
  2092. <select1 id="cmb_cnstcnts4" ref="/root/main/baseinfo/sympinfo/cnstcnts4" class="combo_default" navindex="16" appearance="minimal" style="left:83px; top:57px; width:171px; height:19px; ">
  2093. <choices>
  2094. <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
  2095. <label ref="cdnm"/>
  2096. <value ref="cdid"/>
  2097. </itemset>
  2098. </choices>
  2099. <script type="javascript" ev:event="xforms-select">
  2100. <![CDATA[
  2101. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts4") != ""){
  2102. cmb_cnstcnts5.visible = true;
  2103. }else{
  2104. cmb_cnstcnts5.visible = false;
  2105. }
  2106. model.setValue("/root/main/baseinfo/sympinfo/cnstcnts5", "");
  2107. var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts4");
  2108. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  2109. if (icode != ""){
  2110. model.removeNodeset("/root/init/baseinfo/initcnst");
  2111. model.makeNode("/root/init/baseinfo/initcnst");
  2112. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  2113. submit("TRZBC00101");
  2114. copyNodesetType("/root/init/codelist/smlcd2", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  2115. }
  2116. model.refresh();
  2117. ]]>
  2118. </script>
  2119. </select1>
  2120. <select1 id="cmb_cnstcnts5" ref="/root/main/baseinfo/sympinfo/cnstcnts5" class="combo_default" navindex="17" visibility="hidden" appearance="minimal" style="left:259px; top:57px; width:180px; height:19px; ">
  2121. <choices>
  2122. <itemset nodeset="/root/init/codelist/smlcd2">
  2123. <label ref="cdnm"/>
  2124. <value ref="cdid"/>
  2125. </itemset>
  2126. </choices>
  2127. <script type="javascript" ev:event="xforms-select">
  2128. <![CDATA[
  2129. fSmlComboChg("ipt_cnstcnts23");
  2130. ]]>
  2131. </script>
  2132. </select1>
  2133. <line id="line2" class="line_3" style="x1:0px; y1:153px; x2:1185px; y2:153px; "/>
  2134. <input id="input1" ref="/root/main/baseinfo/adrinfo/reqdrugnm" navindex="8" style="left:853px; top:31px; width:327px; height:19px; "/>
  2135. <select1 id="cmb_cnstcnts6" ref="/root/main/baseinfo/sympinfo/cnstcnts6" class="combo_default" navindex="19" appearance="minimal" style="left:83px; top:82px; width:171px; height:19px; ">
  2136. <choices>
  2137. <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
  2138. <label ref="cdnm"/>
  2139. <value ref="cdid"/>
  2140. </itemset>
  2141. </choices>
  2142. <script type="javascript" ev:event="xforms-select">
  2143. <![CDATA[
  2144. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts6") != ""){
  2145. cmb_cnstcnts7.visible = true;
  2146. }else{
  2147. cmb_cnstcnts7.visible = false;
  2148. }
  2149. model.setValue("/root/main/baseinfo/sympinfo/cnstcnts7", "");
  2150. var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts6");
  2151. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  2152. if (icode != ""){
  2153. model.removeNodeset("/root/init/baseinfo/initcnst");
  2154. model.makeNode("/root/init/baseinfo/initcnst");
  2155. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  2156. submit("TRZBC00101");
  2157. copyNodesetType("/root/init/codelist/smlcd3", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  2158. }
  2159. model.refresh();
  2160. ]]>
  2161. </script>
  2162. </select1>
  2163. <select1 id="com_advsprcsrslt" ref="/root/main/baseinfo/adrinfo/advsprcsrslt" class="combo_default" navindex="11" appearance="minimal" style="left:883px; top:107px; width:197px; height:19px; ">
  2164. <choices>
  2165. <item>
  2166. <label>자연회복</label>
  2167. <value>1</value>
  2168. </item>
  2169. <item>
  2170. <label>처치 후 회복(통원)</label>
  2171. <value>2</value>
  2172. </item>
  2173. <item>
  2174. <label>처치 후 회복(입원)</label>
  2175. <value>3</value>
  2176. </item>
  2177. <item>
  2178. <label>처치 후 회복(입원연장)</label>
  2179. <value>4</value>
  2180. </item>
  2181. <item>
  2182. <label>회복되지 않음(중대한 불구)</label>
  2183. <value>5</value>
  2184. </item>
  2185. <item>
  2186. <label>회복되지 않음(선천적 기형)</label>
  2187. <value>6</value>
  2188. </item>
  2189. <item>
  2190. <label>회복되지 않음(생명위험)</label>
  2191. <value>7</value>
  2192. </item>
  2193. <item>
  2194. <label>회복되지 않음(사망)</label>
  2195. <value>8</value>
  2196. </item>
  2197. </choices>
  2198. </select1>
  2199. <select1 id="cmb_cnstcnts7" ref="/root/main/baseinfo/sympinfo/cnstcnts7" class="combo_default" navindex="20" visibility="hidden" appearance="minimal" style="left:259px; top:82px; width:180px; height:19px; ">
  2200. <choices>
  2201. <itemset nodeset="/root/init/codelist/smlcd3">
  2202. <label ref="cdnm"/>
  2203. <value ref="cdid"/>
  2204. </itemset>
  2205. </choices>
  2206. <script type="javascript" ev:event="xforms-select">
  2207. <![CDATA[
  2208. fSmlComboChg("ipt_cnstcnts24");
  2209. ]]>
  2210. </script>
  2211. </select1>
  2212. <caption id="caption27" class="cell_1" style="left:0px; top:30px; width:80px; height:123px; vertical-align:middle; ">유해증상</caption>
  2213. <select1 id="cmb_cnstcnts8" ref="/root/main/baseinfo/sympinfo/cnstcnts8" class="combo_default" navindex="22" appearance="minimal" style="left:83px; top:107px; width:171px; height:19px; ">
  2214. <choices>
  2215. <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
  2216. <label ref="cdnm"/>
  2217. <value ref="cdid"/>
  2218. </itemset>
  2219. </choices>
  2220. <script type="javascript" ev:event="xforms-select">
  2221. <![CDATA[
  2222. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts8") != ""){
  2223. cmb_cnstcnts9.visible = true;
  2224. }else{
  2225. cmb_cnstcnts9.visible = false;
  2226. }
  2227. model.setValue("/root/main/baseinfo/sympinfo/cnstcnts9", "");
  2228. var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts8");
  2229. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  2230. if (icode != ""){
  2231. model.removeNodeset("/root/init/baseinfo/initcnst");
  2232. model.makeNode("/root/init/baseinfo/initcnst");
  2233. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  2234. submit("TRZBC00101");
  2235. copyNodesetType("/root/init/codelist/smlcd4", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  2236. }
  2237. model.refresh();
  2238. ]]>
  2239. </script>
  2240. </select1>
  2241. <caption id="caption18" class="cell_1" style="left:770px; top:80px; width:110px; height:23px; vertical-align:middle; ">조치내용</caption>
  2242. <select1 id="cmb_cnstcnts9" ref="/root/main/baseinfo/sympinfo/cnstcnts9" class="combo_default" navindex="23" visibility="hidden" appearance="minimal" style="left:259px; top:107px; width:180px; height:19px; ">
  2243. <choices>
  2244. <itemset nodeset="/root/init/codelist/smlcd4">
  2245. <label ref="cdnm"/>
  2246. <value ref="cdid"/>
  2247. </itemset>
  2248. </choices>
  2249. <script type="javascript" ev:event="xforms-select">
  2250. <![CDATA[
  2251. fSmlComboChg("ipt_cnstcnts25");
  2252. ]]>
  2253. </script>
  2254. </select1>
  2255. <input id="input5" ref="/root/main/baseinfo/adrinfo/ilsu" format="999" style="left:1128px; top:107px; width:52px; height:19px; text-align:center; "/>
  2256. <select1 id="cmb_cnstcnts10" ref="/root/main/baseinfo/sympinfo/cnstcnts10" class="combo_default" navindex="25" appearance="minimal" style="left:83px; top:132px; width:171px; height:19px; ">
  2257. <choices>
  2258. <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
  2259. <label ref="cdnm"/>
  2260. <value ref="cdid"/>
  2261. </itemset>
  2262. </choices>
  2263. <script type="javascript" ev:event="xforms-select">
  2264. <![CDATA[
  2265. if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts10") != ""){
  2266. cmb_cnstcnts11.visible = true;
  2267. }else{
  2268. cmb_cnstcnts11.visible = false;
  2269. }
  2270. model.setValue("/root/main/baseinfo/sympinfo/cnstcnts11", "");
  2271. var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts10");
  2272. var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
  2273. if (icode != ""){
  2274. model.removeNodeset("/root/init/baseinfo/initcnst");
  2275. model.makeNode("/root/init/baseinfo/initcnst");
  2276. zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
  2277. submit("TRZBC00101");
  2278. copyNodesetType("/root/init/codelist/smlcd5", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
  2279. }
  2280. model.refresh();
  2281. ]]>
  2282. </script>
  2283. </select1>
  2284. <select1 id="cmb_cnstcnts11" ref="/root/main/baseinfo/sympinfo/cnstcnts11" class="combo_default" navindex="26" visibility="hidden" appearance="minimal" style="left:259px; top:132px; width:180px; height:19px; ">
  2285. <choices>
  2286. <itemset nodeset="/root/init/codelist/smlcd5">
  2287. <label ref="cdnm"/>
  2288. <value ref="cdid"/>
  2289. </itemset>
  2290. </choices>
  2291. <script type="javascript" ev:event="xforms-select">
  2292. <![CDATA[
  2293. fSmlComboChg("ipt_cnstcnts26");
  2294. ]]>
  2295. </script>
  2296. </select1>
  2297. <line id="line31" class="line_2" style="x1:0px; y1:78px; x2:1185px; y2:78px; "/>
  2298. <line id="line4" class="line_2" style="x1:0px; y1:103px; x2:1185px; y2:103px; "/>
  2299. <line id="line5" class="line_2" style="x1:0px; y1:128px; x2:1185px; y2:128px; "/>
  2300. </case>
  2301. <case id="case2" selected="true" style="left:0px; top:0px; width:1191px; height:475px; ">
  2302. <input id="input17" ref="/root/main/baseinfo/adrinfo/doubdrug" class="input_default" style="left:764px; top:98px; width:57px; height:19px; "/>
  2303. <input id="input26" ref="/root/main/baseinfo/adrinfo/doubdrug5" class="input_default" style="left:763px; top:138px; width:57px; height:19px; "/>
  2304. <input id="input28" ref="/root/main/baseinfo/adrinfo/doubdrug3" class="input_default" style="left:763px; top:118px; width:57px; height:19px; "/>
  2305. <input id="input24" ref="/root/main/baseinfo/adrinfo/doubdrug4" class="input_default" style="left:1003px; top:118px; width:57px; height:19px; "/>
  2306. <input id="input22" ref="/root/main/baseinfo/adrinfo/doubdrug2" class="input_default" style="left:1003px; top:98px; width:57px; height:19px; "/>
  2307. <input id="input20" ref="/root/main/baseinfo/adrinfo/reqdrugnm" navindex="8" style="left:763px; top:98px; width:180px; height:19px; "/>
  2308. <select id="chk_blood" ref="/root/main/baseinfo/sympinfo/cnstcnts10" overflow="visible" appearance="full" cellspacing="5" cols="1" vcellspacing="3" style="left:62px; top:96px; width:80px; height:57px; line-spacing:-5; border-style:none; ">
  2309. <choices>
  2310. <item>
  2311. <label>빈혈</label>
  2312. <value>51</value>
  2313. </item>
  2314. <item>
  2315. <label>혈소판감소</label>
  2316. <value>52</value>
  2317. </item>
  2318. <item>
  2319. <label>백혈구감소</label>
  2320. <value>53</value>
  2321. </item>
  2322. <item>
  2323. <label>호산구증가</label>
  2324. <value>54</value>
  2325. </item>
  2326. </choices>
  2327. </select>
  2328. <select id="chk_breth" ref="/root/main/baseinfo/sympinfo/cnstcnts7" overflow="visible" appearance="full" cellspacing="-3" cols="3" vcellspacing="3" style="left:703px; top:49px; width:183px; height:47px; line-spacing:-5; border-style:none; ">
  2329. <choices>
  2330. <item>
  2331. <label>천명</label>
  2332. <value>22</value>
  2333. </item>
  2334. <item>
  2335. <label>호흡곤란</label>
  2336. <value>21</value>
  2337. </item>
  2338. <item>
  2339. <label>기침</label>
  2340. <value>23</value>
  2341. </item>
  2342. <item>
  2343. <label>재채기</label>
  2344. <value>25</value>
  2345. </item>
  2346. <item>
  2347. <label>콧물</label>
  2348. <value>24</value>
  2349. </item>
  2350. <item>
  2351. <label>객담증가</label>
  2352. <value>27</value>
  2353. </item>
  2354. <item>
  2355. <label>코막힘</label>
  2356. <value>26</value>
  2357. </item>
  2358. <item>
  2359. <label>쉰목소리</label>
  2360. <value>28</value>
  2361. </item>
  2362. </choices>
  2363. </select>
  2364. <caption id="caption53" class="cell_1" style="left:5px; top:4px; width:58px; height:42px; ">피부병변</caption>
  2365. <caption id="caption54" class="cell_1" style="left:893px; top:48px; width:58px; height:45px; "/>
  2366. <caption id="caption55" class="cell_1" style="left:324px; top:4px; width:58px; height:42px; ">소화기계</caption>
  2367. <caption id="caption56" class="cell_1" style="left:645px; top:4px; width:58px; height:42px; ">심혈관계</caption>
  2368. <caption id="caption57" class="cell_1" style="left:5px; top:48px; width:58px; height:45px; ">전신증상</caption>
  2369. <caption id="caption58" class="cell_1" style="left:645px; top:48px; width:58px; height:45px; ">호흡기계</caption>
  2370. <select id="checkbox3" ref="/root/main/baseinfo/sympinfo/cnstcnts31" overflow="visible" appearance="full" cellspacing="5" cols="3" vcellspacing="4" style="left:954px; top:47px; width:232px; height:30px; line-spacing:-5; border-style:none; ">
  2371. <choices>
  2372. <item>
  2373. <label>성욕감퇴</label>
  2374. <value>A1</value>
  2375. </item>
  2376. <item>
  2377. <label>성기능장애</label>
  2378. <value>A2</value>
  2379. </item>
  2380. <item>
  2381. <label>청력장애</label>
  2382. <value>A3</value>
  2383. </item>
  2384. <item>
  2385. <label>이명</label>
  2386. <value>A4</value>
  2387. </item>
  2388. <item>
  2389. <label>시력장애</label>
  2390. <value>A5</value>
  2391. </item>
  2392. </choices>
  2393. </select>
  2394. <textarea id="textarea1" ref="/root/main/baseinfo/sympinfo/cnstcnts23" disabled="false" style="left:954px; top:77px; width:198px; height:20px; "/>
  2395. <select id="chk_skin" ref="/root/main/baseinfo/sympinfo/cnstcnts6" overflow="visible" appearance="full" cellspacing="-1" cols="4" vcellspacing="3" style="left:63px; top:5px; width:255px; height:45px; line-spacing:-5; border-style:none; ">
  2396. <choices>
  2397. <item>
  2398. <label>발진:(</label>
  2399. <value>11</value>
  2400. </item>
  2401. <item>
  2402. <label>전신</label>
  2403. <value>1A</value>
  2404. </item>
  2405. <item>
  2406. <label>국소)</label>
  2407. <value>1B</value>
  2408. </item>
  2409. <item>
  2410. <label>농포</label>
  2411. <value>14</value>
  2412. </item>
  2413. <item>
  2414. <label>가려움:(</label>
  2415. <value>13</value>
  2416. </item>
  2417. <item>
  2418. <label>전신</label>
  2419. <value>1C</value>
  2420. </item>
  2421. <item>
  2422. <label>국소)</label>
  2423. <value>1D</value>
  2424. </item>
  2425. <item>
  2426. <label>수포</label>
  2427. <value>16</value>
  2428. </item>
  2429. <item>
  2430. <label>두드러기</label>
  2431. <value>12</value>
  2432. </item>
  2433. <item>
  2434. <label>혈관부종</label>
  2435. <value>15</value>
  2436. </item>
  2437. <item>
  2438. <label>과색소침착</label>
  2439. <value>17</value>
  2440. </item>
  2441. <item>
  2442. <label>탈모</label>
  2443. <value>18</value>
  2444. </item>
  2445. </choices>
  2446. </select>
  2447. <select id="chk_heart" ref="/root/main/baseinfo/sympinfo/cnstcnts9" overflow="visible" appearance="full" cellspacing="-3" cols="3" vcellspacing="3" style="left:703px; top:5px; width:159px; height:45px; line-spacing:-5; border-style:none; ">
  2448. <choices>
  2449. <item>
  2450. <label>저혈압</label>
  2451. <value>41</value>
  2452. </item>
  2453. <item>
  2454. <label>쇽</label>
  2455. <value>43</value>
  2456. </item>
  2457. <item>
  2458. <label>부정맥</label>
  2459. <value>42</value>
  2460. </item>
  2461. <item>
  2462. <label>빈맥</label>
  2463. <value>44</value>
  2464. </item>
  2465. <item>
  2466. <label>서맥</label>
  2467. <value>45</value>
  2468. </item>
  2469. <item>
  2470. <label>실신</label>
  2471. <value>46</value>
  2472. </item>
  2473. <item>
  2474. <label>가슴통증</label>
  2475. <value>47</value>
  2476. </item>
  2477. </choices>
  2478. </select>
  2479. <select id="chk_stom" ref="/root/main/baseinfo/sympinfo/cnstcnts8" overflow="visible" appearance="full" cellspacing="-2" cols="4" vcellspacing="3" style="left:382px; top:5px; width:263px; height:45px; line-spacing:-5; border-style:none; ">
  2480. <choices>
  2481. <item>
  2482. <label>설사</label>
  2483. <value>31</value>
  2484. </item>
  2485. <item>
  2486. <label>오심(메시꺼움)</label>
  2487. <value>33</value>
  2488. </item>
  2489. <item>
  2490. <label>복통</label>
  2491. <value>32</value>
  2492. </item>
  2493. <item>
  2494. <label>소화불량</label>
  2495. <value>36</value>
  2496. </item>
  2497. <item>
  2498. <label>구토</label>
  2499. <value>35</value>
  2500. </item>
  2501. <item>
  2502. <label>간기능이상</label>
  2503. <value>34</value>
  2504. </item>
  2505. <item>
  2506. <label>변비</label>
  2507. <value>39</value>
  2508. </item>
  2509. <item>
  2510. <label>혈변</label>
  2511. <value>38</value>
  2512. </item>
  2513. <item>
  2514. <label>황달</label>
  2515. <value>3A</value>
  2516. </item>
  2517. <item>
  2518. <label>위장관출혈(상부)</label>
  2519. <value>37</value>
  2520. </item>
  2521. </choices>
  2522. </select>
  2523. <select id="chk_body" ref="/root/main/baseinfo/sympinfo/cnstcnts11" overflow="visible" appearance="full" cellspacing="-3" cols="4" rows="4" vcellspacing="3" style="left:63px; top:49px; width:261px; height:47px; line-spacing:-5; border-style:none; ">
  2524. <choices>
  2525. <item>
  2526. <label>어지러움</label>
  2527. <value>62</value>
  2528. </item>
  2529. <item>
  2530. <label>발열</label>
  2531. <value>61</value>
  2532. </item>
  2533. <item>
  2534. <label>의식소실</label>
  2535. <value>63</value>
  2536. </item>
  2537. <item>
  2538. <label>관절통</label>
  2539. <value>67</value>
  2540. </item>
  2541. <item>
  2542. <label>체중증가</label>
  2543. <value>64</value>
  2544. </item>
  2545. <item>
  2546. <label>식욕감퇴</label>
  2547. <value>65</value>
  2548. </item>
  2549. <item>
  2550. <label>전신부종</label>
  2551. <value>66</value>
  2552. </item>
  2553. <item>
  2554. <label>근육통</label>
  2555. <value>68</value>
  2556. </item>
  2557. <item>
  2558. <label>림프절병증</label>
  2559. <value>69</value>
  2560. </item>
  2561. <item>
  2562. <label>전신쇠약</label>
  2563. <value>6A</value>
  2564. </item>
  2565. </choices>
  2566. </select>
  2567. <line id="line19" class="line_1" style="x1:0px; y1:0px; x2:1190px; y2:0px; "/>
  2568. <input id="input16" ref="/root/main/baseinfo/adrinfo/enddd" class="input_default" navindex="7" inputtype="date" style="left:503px; top:98px; width:97px; height:19px; text-align:center; "/>
  2569. <select1 id="radio1" ref="/root/main/baseinfo/adrinfo/advsmnftgrde" navindex="9" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:249px; top:137px; width:165px; height:20px; border-style:none; ">
  2570. <choices>
  2571. <item>
  2572. <label>경증</label>
  2573. <value>1</value>
  2574. </item>
  2575. <item>
  2576. <label>중등증</label>
  2577. <value>2</value>
  2578. </item>
  2579. <item>
  2580. <label>중증</label>
  2581. <value>3</value>
  2582. </item>
  2583. </choices>
  2584. </select1>
  2585. <caption id="caption60" class="cell_1" style="left:418px; top:137px; width:145px; height:19px; vertical-align:middle; ">재투여시 유해 발현여부</caption>
  2586. <line id="line6" class="line_3" style="x1:0px; y1:159px; x2:1185px; y2:159px; "/>
  2587. <caption id="caption61" class="cell_1" style="left:418px; top:117px; width:40px; height:19px; vertical-align:middle; ">일수</caption>
  2588. <caption id="caption62" class="cell_1" style="left:188px; top:117px; width:58px; height:19px; vertical-align:middle; ">진행결과</caption>
  2589. <select1 id="combo7" ref="/root/main/baseinfo/adrinfo/meascnts" class="combo_default" navindex="10" appearance="minimal" style="left:568px; top:118px; width:130px; height:19px; ">
  2590. <choices>
  2591. <item>
  2592. <label>선택</label>
  2593. <value>A</value>
  2594. </item>
  2595. <item>
  2596. <label>투여중지</label>
  2597. <value>B</value>
  2598. </item>
  2599. <item>
  2600. <label>용량감량</label>
  2601. <value>C</value>
  2602. </item>
  2603. <item>
  2604. <label>용량유지</label>
  2605. <value>D</value>
  2606. </item>
  2607. <item>
  2608. <label>모름</label>
  2609. <value>E</value>
  2610. </item>
  2611. <item>
  2612. <label>해당없음</label>
  2613. <value>F</value>
  2614. </item>
  2615. <item>
  2616. <label>없음(사용불가)</label>
  2617. <value>0</value>
  2618. </item>
  2619. <item>
  2620. <label>투약중지(사용불가)</label>
  2621. <value>1</value>
  2622. </item>
  2623. <item>
  2624. <label>약품투여변경(용량변경)(사용불가)</label>
  2625. <value>2</value>
  2626. </item>
  2627. <item>
  2628. <label>약품투여변경(용법/투여경로변경)(사용불가)</label>
  2629. <value>3</value>
  2630. </item>
  2631. <item>
  2632. <label>약품투여변경(약물변경)(사용불가)</label>
  2633. <value>4</value>
  2634. </item>
  2635. <item>
  2636. <label>기타(직접입력)(사용불가)</label>
  2637. <value>5</value>
  2638. </item>
  2639. </choices>
  2640. </select1>
  2641. <caption id="caption63" class="cell_1" style="left:705px; top:97px; width:55px; height:60px; vertical-align:middle; ">의심약물</caption>
  2642. <caption id="caption64" class="cell_1" style="left:188px; top:137px; width:58px; height:19px; vertical-align:middle; ">발현정도</caption>
  2643. <caption id="caption65" class="cell_1" style="left:150px; top:97px; width:96px; height:19px; vertical-align:middle; ">증상발현일</caption>
  2644. <select1 id="combo8" ref="/root/main/baseinfo/adrinfo/advsprcsrslt" class="combo_default" navindex="11" appearance="minimal" style="left:248px; top:118px; width:152px; height:19px; ">
  2645. <choices>
  2646. <item>
  2647. <label>회복됨</label>
  2648. <value>A</value>
  2649. </item>
  2650. <item>
  2651. <label>회복중</label>
  2652. <value>B</value>
  2653. </item>
  2654. <item>
  2655. <label>회복되지 않음</label>
  2656. <value>C</value>
  2657. </item>
  2658. <item>
  2659. <label>휴유증을 동반한 회복</label>
  2660. <value>D</value>
  2661. </item>
  2662. <item>
  2663. <label>치명적 손상</label>
  2664. <value>E</value>
  2665. </item>
  2666. <item>
  2667. <label>사망</label>
  2668. <value>F</value>
  2669. </item>
  2670. <item>
  2671. <label>모름</label>
  2672. <value>G</value>
  2673. </item>
  2674. <item>
  2675. <label>자연회복(사용불가)</label>
  2676. <value>1</value>
  2677. </item>
  2678. <item>
  2679. <label>처치 후 회복(통원)(사용불가)</label>
  2680. <value>2</value>
  2681. </item>
  2682. <item>
  2683. <label>처치 후 회복(입원)(사용불가)</label>
  2684. <value>3</value>
  2685. </item>
  2686. <item>
  2687. <label>처치 후 회복(입원연장)(사용불가)</label>
  2688. <value>4</value>
  2689. </item>
  2690. <item>
  2691. <label>회복되지 않음(중대한 불구)(사용불가)</label>
  2692. <value>5</value>
  2693. </item>
  2694. <item>
  2695. <label>회복되지 않음(선천적 기형)(사용불가)</label>
  2696. <value>6</value>
  2697. </item>
  2698. <item>
  2699. <label>회복되지 않음(생명위험)(사용불가)</label>
  2700. <value>7</value>
  2701. </item>
  2702. <item>
  2703. <label>회복되지 않음(사망)(사용불가)</label>
  2704. <value>8</value>
  2705. </item>
  2706. </choices>
  2707. </select1>
  2708. <caption id="caption66" class="cell_1" style="left:418px; top:97px; width:82px; height:19px; vertical-align:middle; ">종료일</caption>
  2709. <caption id="caption67" class="cell_1" style="left:503px; top:117px; width:62px; height:19px; vertical-align:middle; ">조치내용</caption>
  2710. <input id="input18" ref="/root/main/baseinfo/adrinfo/ilsu" format="999" style="left:461px; top:118px; width:39px; height:19px; text-align:center; "/>
  2711. <input id="input19" ref="/root/main/baseinfo/adrinfo/sympmnftdd" class="input_default" navindex="6" inputtype="date" style="left:249px; top:98px; width:97px; height:19px; text-align:center; "/>
  2712. <input id="input21" ref="/root/main/baseinfo/adrinfo/reqdrugnm2" navindex="8" style="left:1003px; top:98px; width:180px; height:19px; "/>
  2713. <input id="input23" ref="/root/main/baseinfo/adrinfo/reqdrugnm4" navindex="8" style="left:1003px; top:118px; width:180px; height:19px; "/>
  2714. <input id="input25" ref="/root/main/baseinfo/adrinfo/reqdrugnm5" navindex="8" style="left:763px; top:138px; width:180px; height:19px; "/>
  2715. <input id="input27" ref="/root/main/baseinfo/adrinfo/reqdrugnm3" navindex="8" style="left:763px; top:118px; width:180px; height:19px; "/>
  2716. <caption id="caption68" class="cell_1" style="left:944px; top:98px; width:55px; height:40px; vertical-align:middle; ">의심약물</caption>
  2717. <caption id="caption69" class="cell_1" style="left:944px; top:138px; width:55px; height:20px; vertical-align:middle; ">기타약물</caption>
  2718. <input id="input29" ref="/root/main/baseinfo/adrinfo/reqdrugnm6" navindex="8" style="left:1003px; top:138px; width:180px; height:19px; "/>
  2719. <select id="checkbox2" ref="/root/main/baseinfo/sympinfo/cnstcnts25" overflow="visible" appearance="full" cellspacing="5" cols="1" vcellspacing="3" style="left:922px; top:5px; width:70px; height:45px; line-spacing:-5; border-style:none; ">
  2720. <choices>
  2721. <item>
  2722. <label>섬망</label>
  2723. <value>81</value>
  2724. </item>
  2725. <item>
  2726. <label>불안</label>
  2727. <value>82</value>
  2728. </item>
  2729. <item>
  2730. <label>행동과다</label>
  2731. <value>83</value>
  2732. </item>
  2733. </choices>
  2734. </select>
  2735. <select id="checkbox1" ref="/root/main/baseinfo/sympinfo/cnstcnts24" overflow="visible" appearance="full" cellspacing="-2" cols="4" rows="2" vcellspacing="3" style="left:382px; top:49px; width:258px; height:47px; line-spacing:-5; border-style:none; ">
  2736. <choices>
  2737. <item>
  2738. <label>의식저하</label>
  2739. <value>71</value>
  2740. </item>
  2741. <item>
  2742. <label>어지러움</label>
  2743. <value>73</value>
  2744. </item>
  2745. <item>
  2746. <label>손발떨림</label>
  2747. <value>75</value>
  2748. </item>
  2749. <item>
  2750. <label>두통</label>
  2751. <value>72</value>
  2752. </item>
  2753. <item>
  2754. <label>손발저림</label>
  2755. <value>76</value>
  2756. </item>
  2757. <item>
  2758. <label>운동이상증</label>
  2759. <value>77</value>
  2760. </item>
  2761. <item>
  2762. <label>보행장애</label>
  2763. <value>78</value>
  2764. </item>
  2765. <item>
  2766. <label>졸림</label>
  2767. <value>74</value>
  2768. </item>
  2769. <item>
  2770. <label>수면장애</label>
  2771. <value>79</value>
  2772. </item>
  2773. <item>
  2774. <label>기억력장애</label>
  2775. <value>7B</value>
  2776. </item>
  2777. <item>
  2778. <label>언어장애</label>
  2779. <value>7A</value>
  2780. </item>
  2781. </choices>
  2782. </select>
  2783. <caption id="caption71" class="cell_1" style="left:324px; top:48px; width:58px; height:45px; ">신경계</caption>
  2784. <select id="checkbox4" ref="/root/main/baseinfo/sympinfo/cnstcnts26" overflow="visible" appearance="full" cellspacing="-3" cols="2" vcellspacing="4" style="left:1052px; top:4px; width:134px; height:45px; line-spacing:-5; border-style:none; ">
  2785. <choices>
  2786. <item>
  2787. <label>혈뇨</label>
  2788. <value>91</value>
  2789. </item>
  2790. <item>
  2791. <label>신기능이상</label>
  2792. <value>92</value>
  2793. </item>
  2794. <item>
  2795. <label>신부전</label>
  2796. <value>93</value>
  2797. </item>
  2798. <item>
  2799. <label>배뇨장애</label>
  2800. <value>95</value>
  2801. </item>
  2802. <item>
  2803. <label>당뇨</label>
  2804. <value>94</value>
  2805. </item>
  2806. </choices>
  2807. </select>
  2808. <caption id="caption72" class="cell_1" style="left:993px; top:4px; width:58px; height:42px; ">신장이상</caption>
  2809. <caption id="caption73" class="cell_1" style="left:5px; top:95px; width:58px; height:60px; ">혈액이상</caption>
  2810. <caption id="caption74" class="cell_1" style="left:864px; top:4px; width:58px; height:42px; ">정신증상</caption>
  2811. <caption id="caption59" class="cell_1" style="left:150px; top:117px; width:35px; height:39px; vertical-align:middle; line-spacing:5; ">
  2812. <![CDATA[유해사례]]>
  2813. </caption>
  2814. <select1 id="combo9" ref="/root/main/baseinfo/adrinfo/redrugadvsmnft" class="combo_default" navindex="10" appearance="minimal" style="left:567px; top:139px; width:130px; height:19px; ">
  2815. <choices>
  2816. <item>
  2817. <label>선택</label>
  2818. <value>U</value>
  2819. </item>
  2820. <item>
  2821. <label>발현</label>
  2822. <value>Y</value>
  2823. </item>
  2824. <item>
  2825. <label>발현안됨</label>
  2826. <value>N</value>
  2827. </item>
  2828. <item>
  2829. <label>재투여하지않음</label>
  2830. <value>X</value>
  2831. </item>
  2832. <item>
  2833. <label>모름</label>
  2834. <value>V</value>
  2835. </item>
  2836. <item>
  2837. <label>해당없음</label>
  2838. <value>Z</value>
  2839. </item>
  2840. </choices>
  2841. </select1>
  2842. <select id="checkbox5" ref="/root/main/baseinfo/sympinfo/cnstcnts32" overflow="visible" appearance="full" style="left:901px; top:75px; width:44px; height:20px; border-style:none; ">
  2843. <choices>
  2844. <item>
  2845. <label>기타</label>
  2846. <value>99</value>
  2847. </item>
  2848. </choices>
  2849. </select>
  2850. <caption id="caption70" style="left:906px; top:54px; width:37px; height:16px; ">기타</caption>
  2851. </case>
  2852. </switch>
  2853. <select1 id="rdo_sympmnftgrde" ref="/root/main/baseinfo/adrinfo/sympmnftgrde" navindex="43" visibility="hidden" appearance="full" cellspacing="10" cols="3" rows="1" overflow="visible" style="left:990px; top:585px; width:170px; height:20px; border-style:none; ">
  2854. <choices>
  2855. <item>
  2856. <label>경증</label>
  2857. <value>1</value>
  2858. </item>
  2859. <item>
  2860. <label>중등증</label>
  2861. <value>2</value>
  2862. </item>
  2863. <item>
  2864. <label>중증</label>
  2865. <value>3</value>
  2866. </item>
  2867. </choices>
  2868. </select1>
  2869. </group>
  2870. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  2871. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">약물유해반응 보고서작성</caption>
  2872. </group>
  2873. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  2874. <button id="button26" class="btn3_letter7" style="left:0px; top:5px; width:92px; height:22px; ">
  2875. <caption>ADR의뢰서작성</caption>
  2876. <script type="javascript" ev:event="onclick">
  2877. <![CDATA[
  2878. setParameter("SPADC60900_USEYN", "Y");
  2879. modal("SPADC60900");
  2880. setParameter("SPADC60900_USEYN", "N");
  2881. ]]>
  2882. </script>
  2883. </button>
  2884. <button id="button28" class="btn6_letter5" visibility="hidden" style="left:680px; top:5px; width:92px; height:22px; ">
  2885. <caption>보고서출력</caption>
  2886. </button>
  2887. <button id="button3" class="btn6_letter5" style="left:332px; top:5px; width:92px; height:22px; ">
  2888. <caption>회신서출력</caption>
  2889. <script type="javascript" ev:event="DOMActivate">
  2890. <![CDATA[
  2891. if (model.getValue("/root/main/baseinfo/adrinfo/statflag") !="Z" ) { // 회신
  2892. messageBox("회신후 회신서를 출력하시기 바랍니다.", "E999", "");
  2893. return;
  2894. }
  2895. //현재발생유해반응 - 주증상
  2896. var cnstcnts="";
  2897. if ( ipt_cnstcnts22.label !="" ) { //첫번째 유해증상
  2898. cnstcnts += ipt_cnstcnts22.label + " " ;
  2899. }else if ( cmb_cnstcnts3.label !="" ) {
  2900. cnstcnts += cmb_cnstcnts3.label + " " ;
  2901. }else{
  2902. cnstcnts += cmb_cnstcnts2.label + " " ;
  2903. }
  2904. if ( ipt_cnstcnts23.label !="" ) { //두번째 유해증상
  2905. cnstcnts += ipt_cnstcnts23.label + " " ;
  2906. }else if ( cmb_cnstcnts5.label !="" ) {
  2907. cnstcnts += cmb_cnstcnts5.label + " " ;
  2908. }else{
  2909. cnstcnts += cmb_cnstcnts4.label + " " ;
  2910. }
  2911. if ( ipt_cnstcnts24.label !="" ) { //세번째 유해증상
  2912. cnstcnts += ipt_cnstcnts24.label + " " ;
  2913. }else if ( cmb_cnstcnts7.label !="" ) {
  2914. cnstcnts += cmb_cnstcnts7.label + " " ;
  2915. }else{
  2916. cnstcnts += cmb_cnstcnts6.label + " " ;
  2917. }
  2918. if ( ipt_cnstcnts25.label !="" ) { //네번째 유해증상
  2919. cnstcnts += ipt_cnstcnts25.label + " " ;
  2920. }else if ( cmb_cnstcnts9.label !="" ) {
  2921. cnstcnts += cmb_cnstcnts9.label + " " ;
  2922. }else{
  2923. cnstcnts += cmb_cnstcnts8.label + " " ;
  2924. }
  2925. if ( ipt_cnstcnts26.label !="" ) { //다번째 유해증상
  2926. cnstcnts += ipt_cnstcnts26.label + " " ;
  2927. }else if ( cmb_cnstcnts11.label !="" ) {
  2928. cnstcnts += cmb_cnstcnts11.label + " " ;
  2929. }else{
  2930. cnstcnts += cmb_cnstcnts10.label + " " ;
  2931. }
  2932. //의심약물- 인과관계
  2933. var temp = new Array();
  2934. temp[0]="";
  2935. temp[1]="";
  2936. temp[2]="";
  2937. temp[3]="";
  2938. temp[4]="";
  2939. temp[5]="";
  2940. for(var i = 1 ; i < grd_druginfo.rows;i++) {
  2941. if (grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 0 || grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 7) temp[0] += grd_druginfo.labelMatrix(i,1) + " ";
  2942. if (grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 1 || grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 6) temp[1] += grd_druginfo.labelMatrix(i,1) + " ";
  2943. if (grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 2 || grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 5) temp[2] += grd_druginfo.labelMatrix(i,1) + " ";
  2944. if (grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 3 || grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 4) temp[3] += grd_druginfo.labelMatrix(i,1) + " ";
  2945. if (grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 8 ) temp[4] += grd_druginfo.labelMatrix(i,1) + " ";
  2946. if (grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 9 ) temp[5] += grd_druginfo.labelMatrix(i,1) + " ";
  2947. }
  2948. model.makeValue("/root/hidden/prntdata/instcd", getUserInfo("dutplceinstcd"));
  2949. model.makeValue("/root/hidden/prntdata/pid", model.getValue("/root/main/baseinfo/patinfolist/pid")); //pid
  2950. model.makeValue("/root/hidden/prntdata/hngnm", model.getValue("/root/main/baseinfo/patinfolist/hngnm")); //성명
  2951. model.makeValue("/root/hidden/prntdata/roomcd", model.getValue("/root/main/baseinfo/patinfolist/roomcd")); //병실
  2952. model.makeValue("/root/hidden/prntdata/sna", model.getValue("/root/main/baseinfo/patinfolist/sna")); //성별/나이
  2953. model.makeValue("/root/hidden/prntdata/chosflag", model.getValue("/root/main/baseinfo/patinfolist/chosflag")); //환자구분
  2954. model.makeValue("/root/hidden/prntdata/cnstdeptnm", model.getValue("/root/main/baseinfo/patinfolist/cnstdeptnm")); //의뢰과
  2955. model.makeValue("/root/hidden/prntdata/cnstdrnm", model.getValue("/root/main/baseinfo/patinfolist/cnstdrnm")); //의뢰자
  2956. model.makeValue("/root/hidden/prntdata/cnstdd", model.getValue("/root/main/baseinfo/patinfolist/cnstdd")); //의뢰일
  2957. model.makeValue("/root/hidden/prntdata/diagengnm", model.getValue("/root/main/baseinfo/diaginfolist["+ 1 + "]/diagengnm")); //진단명
  2958. model.makeValue("/root/hidden/prntdata/cnstcnts", cnstcnts); //주증상
  2959. model.makeValue("/root/hidden/prntdata/adrcntssmm", model.getValue("/root/main/baseinfo/adrinfo/adrcntssmm")); //약물유해반응내용요약
  2960. model.makeValue("/root/hidden/prntdata/doubdrugnm", model.getValue("/root/main/baseinfo/adrinfo/doubdrugnm")); //의심약물
  2961. model.makeValue("/root/hidden/prntdata/sympmnftgrde", model.getValue("/root/main/baseinfo/adrinfo/sympmnftgrde")); //증상 발현정도
  2962. model.makeValue("/root/hidden/prntdata/serigrde", model.getValue("/root/main/baseinfo/adrinfo/serigrde")); //심각도
  2963. model.makeValue("/root/hidden/prntdata/casrslt1", temp[3]); //인과관계 Definite
  2964. model.makeValue("/root/hidden/prntdata/casrslt2", temp[2]); //인과관계 Probable
  2965. model.makeValue("/root/hidden/prntdata/casrslt3", temp[1]); //인과관계 Possible
  2966. model.makeValue("/root/hidden/prntdata/casrslt4", temp[0]); //인과관계 Default
  2967. model.makeValue("/root/hidden/prntdata/casrslt5", temp[4]); //인과관계
  2968. model.makeValue("/root/hidden/prntdata/casrslt6", temp[5]); //인과관계
  2969. for(var i = 1 ; i < grd_druginfo.rows;i++) {
  2970. model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/doubdrugnm", grd_druginfo.labelMatrix(i, grd_druginfo.colRef("drugnm"))); //의심약물
  2971. model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/sympmnftgrde", grd_druginfo.valueMatrix(i, grd_druginfo.colRef("sympmnftgrde"))); //증상 발현정도
  2972. model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/serigrde", grd_druginfo.valueMatrix(i, grd_druginfo.colRef("serigrde"))); //심각도
  2973. model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/symp", grd_druginfo.labelMatrix(i, grd_druginfo.colRef("sympcnts"))); //유해증상
  2974. model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/casrslt", grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt"))); //인과관계 Definite
  2975. }
  2976. //model.setValue("/root/hidden/prntdata/srchcnts", model.getValue("/root/main/baseinfo/adrinfo/srchcnts")); //문헌검색내용
  2977. fSetPrtnDiv(model.getValue("/root/main/baseinfo/adrinfo/srchcnts"), "/root/hidden/prntdata/srchcntslist/srchcntslistinfo"); //문헌검색내용
  2978. model.makeValue("/root/hidden/prntdata/rfadc00601", model.getValue("/root/main/baseinfo/patinfolist/rfadc00601")); //약물 유해반응 모니터링팀(TEL...)
  2979. // exeReportPreview("RFADC00601", "XML", "/root/hidden","","true");
  2980. exeReportPreview("RFADC00601", "XMLSTR", "", "", "false","","","","","false");
  2981. model.removeNodeset("/root/hidden/prntdata/druginfo");
  2982. ]]>
  2983. </script>
  2984. </button>
  2985. <button id="btn_repl" class="btn4_letter2" style="left:1072px; top:5px; width:56px; height:22px; ">
  2986. <caption>회신</caption>
  2987. <script type="javascript" ev:event="DOMActivate">
  2988. <![CDATA[
  2989. var sTemp = "";
  2990. var sCPTitle = "";
  2991. var sCPDruginfo = "";
  2992. var sCPadrcntssmm = "";
  2993. var sCPsrchcnts = "";
  2994. model.makeValue("/root/main/baseinfo/patinfolist/fstvaluyn", "N");
  2995. //회신전 저장함.
  2996. if(!(fExeSave()) || (model.getValue("/root/send/searchitem/rgstseqno") == "")) {
  2997. messageBox("회신 내용이 저장되지 않아 회신할 수 없습니다.","E999");
  2998. submit("TRADC00601");
  2999. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  3000. model.resetInstanceNode("root/send/data");
  3001. return;
  3002. }
  3003. if (datacheck() == false){
  3004. return;
  3005. }
  3006. if(submit("TRADC62202")){
  3007. var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
  3008. if(cnststat == "04"){
  3009. messageBox("[취소] 더이상 수정하실 수","I004");
  3010. return ;
  3011. }else if (cnststat == "30"){
  3012. messageBox("[회신확정] 더이상 수정하실 수","I004");
  3013. return;
  3014. }
  3015. }
  3016. /*
  3017. var temp = new Array();
  3018. temp[0]=""; // 확실함
  3019. temp[1]=""; // 상당히 확실함
  3020. temp[2]=""; // 가능함
  3021. temp[3]=""; // 가능성 적음
  3022. temp[4]="";
  3023. temp[5]="";
  3024. for(var i = 1 ; i < grd_druginfo.rows;i++) {
  3025. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 0 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 7) {
  3026. if(temp[0].length != "") temp[0] += ", ";
  3027. temp[0] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
  3028. }
  3029. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 1 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 6) {
  3030. if(temp[1].length != "") temp[1] += ", ";
  3031. temp[1] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
  3032. }
  3033. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 2 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 5) {
  3034. if(temp[2].length != "") temp[2] += ", ";
  3035. temp[2] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
  3036. }
  3037. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 3 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 4) {
  3038. if(temp[3].length != "") temp[3] += ", ";
  3039. temp[3] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
  3040. }
  3041. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 8 ) {
  3042. if(temp[4].length != "") temp[4] += ", ";
  3043. temp[4] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
  3044. }
  3045. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 9 ) {
  3046. if(temp[5].length != "") temp[5] += ", ";
  3047. temp[5] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
  3048. }
  3049. }
  3050. */
  3051. //회신내역
  3052. var title = "\n\t\t\t\t약물 유해반응[ADR] 검토 회신서\n" ;
  3053. var cnsttitle = "";
  3054. var Citem1 = "";
  3055. var Citem2 = "";
  3056. var Citem2 = "";
  3057. var Citem = cnsttitle + Citem1 + Citem2;
  3058. var Ritem1 = "\n\n* 약물 유해반응 내용 요약";
  3059. var Ritem2 = "\n" + model.getValue("/root/main/baseinfo/adrinfo/adrcntssmm");
  3060. sTemp = "";
  3061. for(var i = 1 ; i < grd_druginfo.rows;i++) {
  3062. sTemp += "\n\n* 검토결과" + i;
  3063. sTemp += "\n\n\t1. 의심약물 : " + grd_druginfo.labelMatrix(i, grd_druginfo.colRef("drugnm"));
  3064. sTemp += "\n\n\t2. 유해증상 : " + grd_druginfo.labelMatrix(i, grd_druginfo.colRef("sympcnts"));
  3065. sTemp += "\n\n\t3. 증상 발현정도 : " + grd_druginfo.labelMatrix(i, grd_druginfo.colRef("sympmnftgrde"));
  3066. sTemp += "\n\n\t4. 심각도(seriousness) : " + grd_druginfo.labelMatrix(i, grd_druginfo.colRef("serigrde"));
  3067. sTemp += "\n\n\t5. 인과관계 : " ; //+ grd_druginfo.labelMatrix(i, grd_druginfo.colRef("casrslt"));
  3068. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 0 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 7) {
  3069. sTemp += "가능성 적음(unlikely)";
  3070. }
  3071. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 1 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 6) {
  3072. sTemp += "가능함(possible)";
  3073. }
  3074. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 2 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 5) {
  3075. sTemp += "상당히 확실함(probalbe/likely)";
  3076. }
  3077. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 3 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 4) {
  3078. sTemp += "확실함(Certain)";
  3079. }
  3080. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 8 ) {
  3081. sTemp += "평가곤란(conditional/unclassified)";
  3082. }
  3083. if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 9 ) {
  3084. sTemp += "평가불가(unassessible/unclassifiable)";
  3085. }
  3086. }
  3087. /*
  3088. var Ritem3 = "\n\n* 검토결과"
  3089. var Ritem4 = "\n\n1. 의심약물 : " + model.getValue("/root/main/baseinfo/adrinfo/doubdrugnm");
  3090. var Ritem5 = "\n\n2. 증상 발현정도 : " + rdo_sympmnftgrde.label;
  3091. var Ritem6 = "\n\n3. 심각도(seriousness) : " + rdo_serious.label;
  3092. var Ritem7 = "\n\n4. 인과관계 : " ;
  3093. var Chek = "[V] ";
  3094. var Sp = " "; // 공백
  3095. for(var spCnt = 0; spCnt <= Chek.length; spCnt++) {Sp += " ";}
  3096. if ( temp[3] !="" ) {
  3097. var Ritem8 = "\n\n\t"+Chek+"확실함(Certain) : " + temp[3];
  3098. }else {
  3099. var Ritem8 = "\n\n\t"+Sp+"확실함(Certain) : " +temp[3];
  3100. }
  3101. if (temp[2] !="" ) {
  3102. var Ritem9 = "\n\n\t"+Chek+"상당히 확실함(probalbe/likely) :" + temp[2];
  3103. }else {
  3104. var Ritem9 = "\n\n\t"+Sp+"상당히 확실함(probalbe/likely) : " + temp[2];
  3105. }
  3106. if (temp[1] !="" ) {
  3107. var Ritem10 = "\n\n\t"+Chek+"가능함(possible) : " + temp[1];
  3108. }else {
  3109. var Ritem10 = "\n\n\t"+Sp+"가능함(possible) : " + temp[1];
  3110. }
  3111. if (temp[0] !="" ) {
  3112. var Ritem11 = "\n\n\t"+Chek+"가능성 적음(unlikely) : " + temp[0];
  3113. }else {
  3114. var Ritem11 = "\n\n\t"+Sp+"가능성 적음(unlikely) : " + temp[0];
  3115. }
  3116. if (temp[4] !="" ) {
  3117. var Ritem12 = "\n\n\t"+Chek+"평가곤란(conditional/unclassified) : " + temp[4];
  3118. }else {
  3119. var Ritem12 = "\n\n\t"+Sp+"평가곤란(conditional/unclassified) : " + temp[4];
  3120. }
  3121. if (temp[5] !="" ) {
  3122. var Ritem13 = "\n\n\t"+Chek+"평가불가(unassessible/unclassifiable) : " + temp[5];
  3123. }else {
  3124. var Ritem13 = "\n\n\t"+Sp+"평가불가(unassessible/unclassifiable) : " + temp[5];
  3125. }
  3126. */
  3127. //var Ritem12 = "\n\n\t"+Sp+"평가곤란(conditional/unclassified) : ";
  3128. //var Ritem13 = "\n\n\t"+Sp+"평가불가(unassessible/unclassifiable) : ";
  3129. var Ritem14 = "\n\n\n* 문헌검색 내용 "
  3130. var Ritem15 = "\n\n" + model.getValue("/root/main/baseinfo/adrinfo/srchcnts");
  3131. //var Ritem = Ritem1 + Ritem2 + Ritem3 + Ritem4 + Ritem5 + Ritem6 + Ritem7 + Ritem8 + Ritem9 + Ritem10 + Ritem11 + Ritem12+ Ritem13 + Ritem14+ Ritem15;
  3132. var Ritem = Ritem1 + Ritem2 + sTemp + Ritem14+ Ritem15;
  3133. var replcnts = title + Citem + Ritem;
  3134. //CarePlan 저장.
  3135. sCPTitle = title + Citem;
  3136. sCPDruginfo = sTemp;
  3137. sCPadrcntssmm = Ritem1 + Ritem2;
  3138. sCPsrchcnts = Ritem14+ Ritem15;
  3139. // 회신내역 서식 팝업 - SPADC62200 - 2008/09/04 김귀남
  3140. var sel = fSendReplForm(replcnts);
  3141. if(sel == "cfm"){
  3142. //저장
  3143. model.makeNode("/root/main/baseinfo/adrinfo/replid");
  3144. model.setValue("/root/temp/popupdata/repltype","adr");
  3145. modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
  3146. var replid = model.getValue("/root/main/baseinfo/adrinfo/replid");
  3147. if(replid != ""){
  3148. // if ( model.getValue("/root/hidden/ret/saverslt") == 'Y' ) {
  3149. model.copyNode("/root/send/data/patinfolist", "/root/main/baseinfo/patinfolist");
  3150. model.makeValue("/root/send/data/patinfolist/rgstseqno", model.getValue("/root/send/searchitem/rgstseqno"));
  3151. model.makeValue("/root/send/data/patinfolist/cnstseqno", model.getValue("/root/temp/cnstinfo/cnstseqno"));
  3152. // 20110124_laboru_경북대병원_과거유해반응 원인약물 저장 되게 수정
  3153. model.setValue("/root/main/baseinfo/adrinfo/pastadvsdrug", model.getValue("/root/main/baseinfo/adrinfo/pastreqdrugnm"));
  3154. model.copyNode("/root/send/data/adrinfo", "/root/main/baseinfo/adrinfo");
  3155. model.setValue("/root/send/data/sympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/sympinfo" )));
  3156. model.setValue("/root/send/data/oldsympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/oldsympinfo" )));
  3157. var update = getGridUpdateData(grd_prcpinfo);
  3158. model.setValue("/root/send/data/hdruginfo", update);
  3159. for(var iNo = 1 ; iNo<= getNodesetCount("/root/main/baseinfo/druginfo") ; iNo++) {
  3160. grd_druginfo.addStatus(iNo, "insert");
  3161. }
  3162. var update = grd_druginfo.getUpdateData("insert");
  3163. model.setValue("/root/send/data/druginfo", update);
  3164. grd_druginfo.clearStatus();
  3165. model.makeValue("/root/send/data/adrinfo/formrecseq", model.getValue("/root/send/searchitem/formrecseq"));
  3166. model.makeValue("/root/send/data/adrinfo/statflag", "Z"); //회신
  3167. model.makeValue("/root/send/data/adrinfo/cnststat", "22"); //회신
  3168. model.makeNode("/root/send/data/adrinfo/replcnts"); // 회신내역 노드생성
  3169. model.setValue("/root/send/data/adrinfo/replcnts", replcnts); // 회신내역 변수설정
  3170. model.makeValue("/root/send/data/adrinfo/cptitle", sCPTitle); // CarePlan타이틀
  3171. model.makeValue("/root/send/data/adrinfo/cpadrcntssmm", sCPadrcntssmm); // CarePlan유해반응내용
  3172. model.makeValue("/root/send/data/adrinfo/cpdruginfo", sCPDruginfo); // CarePlan의심약물
  3173. model.makeValue("/root/send/data/adrinfo/cpsrchcnts", sCPsrchcnts); // CarePlan문헌검색내용
  3174. model.makeValue("/root/send/data/adrinfo/jciyn", model.getValue("/root/init/cmblist/jciyn/JCI1[2]/cdid")); // CarePlan전송여부 Y:전송
  3175. // model.makeValue("/root/send/data/adrinfo/repluserid", replid); //adchcnstinfo / mmrhcnstinfo 회신자 처리
  3176. model.makeValue("/root/send/data/patinfolist/repluserid", replid); //adchcnstinfo / mmrhcnstinfo 회신자 처리
  3177. var success = submit("TXADC00601");
  3178. if (success) {
  3179. model.setValue("/root/main/baseinfo/adrinfo/statflag","Z"); // 회신상태
  3180. if ( model.getValue("/root/send/searchitem/rgstseqno") == "" ) {
  3181. model.setValue("/root/send/searchitem/rgstseqno", model.getValue("/root/hidden/return/ret/rgstseqno"));
  3182. }
  3183. model.makeValue("/root/hidden/ret/saverslt", 'Y');
  3184. submit("TRADC00601");
  3185. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  3186. }else{
  3187. model.makeValue("/root/hidden/ret/saverslt", 'N');
  3188. }
  3189. // }
  3190. }
  3191. model.refresh();
  3192. }
  3193. ]]>
  3194. </script>
  3195. </button>
  3196. <button id="btn_save2" class="btn4_letter2" style="left:1007px; top:5px; width:56px; height:22px; ">
  3197. <caption>저장</caption>
  3198. <script type="javascript" ev:event="DOMActivate">
  3199. <![CDATA[
  3200. if(grp_savebtn.visible) {
  3201. grp_savebtn.visible = false;
  3202. } else {
  3203. grp_savebtn.visible = true;
  3204. }
  3205. //grp_savebtn.refresh();
  3206. ]]>
  3207. </script>
  3208. </button>
  3209. <button id="button25" class="btn3_letter6" style="left:119px; top:5px; width:104px; height:22px; ">
  3210. <caption>통합결과조회</caption>
  3211. <script type="javascript" ev:event="DOMActivate">
  3212. <![CDATA[
  3213. modal("SMAER00800 ","","","","","/root/main/baseinfo/patinfolist/pid","/root/send/data/singdata/srchpid");
  3214. ]]>
  3215. </script>
  3216. </button>
  3217. <button id="btn_del" class="btn4_letter2" style="left:1136px; top:5px; width:56px; height:22px; ">
  3218. <caption>삭제</caption>
  3219. <script type="javascript" ev:event="DOMActivate">
  3220. <![CDATA[
  3221. if(messageBox("보고서 내용이 삭제 됩니다.", "Q003") != "6") {
  3222. return;
  3223. }
  3224. model.makeValue("/root/main/baseinfo/adrinfo/m", "D"); //삭제flag
  3225. model.makeValue("/root/main/baseinfo/adrinfo/cnstseqno", model.getValue("/root/main/baseinfo/adrinfo2/cnstseqno"));
  3226. model.makeValue("/root/main/baseinfo/adrinfo/formrecseq", model.getValue("/root/main/baseinfo/adrinfo2/formrecseq"));
  3227. model.copyNode("/root/send/data/adrinfo", "/root/main/baseinfo/adrinfo");
  3228. model.copyNode("/root/send/data/patinfolist", "/root/main/baseinfo/patinfolist");
  3229. // 20110124_laboru_경북대병원_과거유해반응 원인약물 저장 되게 수정
  3230. //model.setValue("/root/main/baseinfo/adrinfo/pastadvsdrug", model.getValue("/root/main/baseinfo/adrinfo/pastreqdrugnm"));
  3231. var success = submit("TXADC00601");
  3232. if (success) {
  3233. model.setValue("/root/send/searchitem/rgstseqno", "");
  3234. submit("TRADC00601");
  3235. fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
  3236. }
  3237. ]]>
  3238. </script>
  3239. </button>
  3240. <button id="button4" class="btn3_letter6" style="left:225px; top:5px; width:104px; height:22px; ">
  3241. <caption>통합기록조회</caption>
  3242. <script type="javascript" ev:event="DOMActivate">
  3243. <![CDATA[
  3244. setParameter("SMMRI00400_param_pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
  3245. //modal("SMMRI00400", 0,100,100,"SMMRI00400","","");
  3246. open("SMMRI00400", 0,100,100,"SMMRI00400","","");
  3247. ]]>
  3248. </script>
  3249. </button>
  3250. <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:945px; top:5px; width:56px; height:22px; ">
  3251. <caption>조회</caption>
  3252. <script type="javascript" ev:event="DOMActivate">
  3253. <![CDATA[
  3254. model.removeNodeset("/root/main/baseinfo/sympinfo");
  3255. model.removeNodeset("/root/main/baseinfo/oldsympinfo");
  3256. model.setValue("/root/send/searchitem/pid", pidInput.value);
  3257. submit("TRADC00601");
  3258. ]]>
  3259. </script>
  3260. </button>
  3261. <button id="button9" class="btn6_letter9" style="left:426px; top:5px; width:140px; height:22px; ">
  3262. <caption>이상반응검토평가서</caption>
  3263. <script type="javascript" ev:event="DOMActivate">
  3264. <![CDATA[
  3265. group5.visible = true;
  3266. ]]>
  3267. </script>
  3268. </button>
  3269. </group>
  3270. <button id="button2" class="btn2_letter9" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:880px; top:18px; width:119px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  3271. <caption>유해사례보고서출력</caption>
  3272. <script type="javascript" ev:event="DOMActivate">
  3273. <![CDATA[
  3274. model.makeValue("/root/send/searchitem/instcd", getUserInfo("dutplceinstcd"));
  3275. exeReportPreview("RFADC00602", "XML", "/root/send/searchitem");
  3276. ]]>
  3277. </script>
  3278. </button>
  3279. </xhtml:body>
  3280. </xhtml:html>