1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>ADR보고서작성</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <baseinfo>
- <patinfolist>
- <pid/>
- <orddd/>
- <wardcd/>
- <roomcd/>
- <cnstdeptcd/>
- <hngnm/>
- <sna/>
- <cnstdd/>
- <cnstdrid/>
- <ht/>
- <wt/>
- <repluserid/>
- <repldd/>
- <chosflag/>
- <cnstdeptnm/>
- <cnstdrnm/>
- <sex/>
- <age/>
- <adrseqno/>
- <fstrgstrnm/>
- <cretno/>
- <fstvaluid/>
- <fstvalunm/>
- <fstvaluidd/>
- <fstvalutm/>
- </patinfolist>
- <diaginfolist>
- <diagcd/>
- <diagengnm/>
- <diaghngnm/>
- </diaginfolist>
- <adrinfo>
- <pid/>
- <rgstseqno/>
- <statflag/>
- <phx/>
- <fhx/>
- <smok/>
- <drink/>
- <advsmnftgrde/>
- <meascnts/>
- <advsprcsrslt/>
- <redrugadvsmnft/>
- <pastmnftdd/>
- <cmt/>
- <serigrde/>
- <sympmnftgrde/>
- <adrcntssmm/>
- <srchcnts/>
- <sympmnftdd/>
- <enddd/>
- <doubdrug/>
- <doubdrugnm/>
- <pastadvs/>
- <pastadvsdrug/>
- <advscnts/>
- <ilsu/>
- <reqdrugnm/>
- <pastreqdrugnm/>
- <doubdrug/>
- <doubdrug2/>
- <doubdrug3/>
- <doubdrug4/>
- <doubdrug5/>
- <reqdrugnm2/>
- <reqdrugnm3/>
- <reqdrugnm4/>
- <reqdrugnm5/>
- <reqdrugnm6/>
- </adrinfo>
- <adrinfo2>
- <pid/>
- <rgstseqno/>
- <cnstseqno/>
- <formrecseq/>
- <sympmnftdd/>
- <enddd/>
- <doubdrug/>
- <doubdrugnm/>
- <pastadvs/>
- <pastadvsdrug/>
- <advscnts/>
- </adrinfo2>
- <prcpinfo>
- <item/>
- </prcpinfo>
- <sympinfo>
- <pid/>
- <rgstseqno/>
- <flag/>
- <cnstcnts2/>
- <cnstcnts3/>
- <cnstcnts4/>
- <cnstcnts5/>
- <cnstcnts6/>
- <cnstcnts7/>
- <cnstcnts8/>
- <cnstcnts9/>
- <cnstcnts10/>
- <cnstcnts11/>
- <cnstcnts22/>
- <cnstcnts23/>
- <cnstcnts24/>
- <cnstcnts25/>
- <cnstcnts26/>
- <cnstcnts31/>
- <etccd/>
- <cnstcnts32/>
- </sympinfo>
- <druginfo>
- <pid/>
- <rgstseqno/>
- <drugcd/>
- <drugnm/>
- <comnm/>
- <prodcmpynm/>
- <prodcmpycd/>
- <casrslt/>
- <casrsltbtn/>
- <totscr/>
- <naranjocmt/>
- <serigrde/>
- <sympmnftgrde/>
- <symp/>
- <koralgo/>
- <sympcnts/>
- </druginfo>
- <oldsympinfo>
- <pid/>
- <rgstseqno/>
- <flag/>
- <cnstcnts2/>
- <cnstcnts3/>
- <cnstcnts4/>
- <cnstcnts5/>
- <cnstcnts6/>
- <cnstcnts7/>
- <cnstcnts22/>
- <cnstcnts23/>
- <cnstcnts24/>
- </oldsympinfo>
- <hdruginfo>
- <prcpnm/>
- <rgstdt/>
- <prcpvol/>
- <prcpvolunit/>
- <prcpqty/>
- <prcpqtyunit/>
- <prcptims/>
- <prcpdayno/>
- <fsttakedt/>
- <lsttakedt/>
- <prcpclscd/>
- <prodcmpynm/>
- <preyn/>
- <orddeptnm/>
- <orddeptcd/>
- <rgstseqno/>
- <formrecseq/>
- <prcpcd/>
- <prcpno/>
- <execprcphistcd/>
- <pid/>
- <seqno/>
- </hdruginfo>
- <lapinfo>
- <chk/>
- <testnm/>
- <srchdd/>
- <cmt/>
- <testcd/>
- <pid/>
- <rgstseqno/>
- <srchfromdd/>
- </lapinfo>
- </baseinfo>
- <medirecinfo>
- <row/>
- <header/>
- </medirecinfo>
- <prtnimglist>
- <prtnimginfo>
- <img/>
- <cmt/>
- </prtnimginfo>
- </prtnimglist>
- <adrflag>
- <adr>
- <newflag/>
- </adr>
- </adrflag>
- </main>
- <send>
- <searchitem>
- <pid/>
- <orddd/>
- <cretno/>
- <prcpgenrflag/>
- <rgstseqno/>
- <cnstdd/>
- <formrecseq/>
- <ioflag/>
- <prcpno/>
- <scrnflag/>
- </searchitem>
- <data>
- <patinfolist/>
- <adrinfo/>
- <sympinfo/>
- <oldsympinfo/>
- <druginfo/>
- <hdruginfo/>
- <pastadvsdrug/>
- </data>
- <srchdruglist/>
- <reqdata>
- <drugcd/>
- </reqdata>
- </send>
- <init>
- <baseinfo>
- <initprcpclscd/>
- <initcnst/>
- </baseinfo>
- <codelist>
- <smlcd1/>
- <smlcd2/>
- <smlcd3/>
- <smlcd4/>
- <smlcd5/>
- <smlcd6/>
- <smlcd7/>
- <smlcd8/>
- </codelist>
- <reqdrnm/>
- <whoalgocmt/>
- <koralgocmt/>
- <cmblist>
- <jciyn/>
- </cmblist>
- </init>
- <hidden>
- <casrslt/>
- <receivedrugcd>/root/hidden/drugcd</receivedrugcd>
- <drugcd/>
- <prntdata>
- <pid/>
- <hngnm/>
- <roomcd/>
- <sna/>
- <chosflag/>
- <cnstdeptnm/>
- <cnstdrnm/>
- <cnstdd/>
- <diagengnm/>
- <cnstcnts/>
- <adrcntssmm/>
- <doubdrugnm/>
- <sympmnftgrde/>
- <serigrde/>
- <casrslt/>
- <srchcnts/>
- </prntdata>
- <koralgo/>
- <return/>
- <return/>
- <cnststatinfo/>
- <resultref>
- <info/>
- </resultref>
- </hidden>
- <temp>
- <receivedata>
- <receiveref/>
- <srchflag/>
- <srchcnts/>
- <drugkind/>
- <receivedrugpnm/>
- <receivedrugflag/>
- <receivedrugcom/>
- </receivedata>
- <cnstinfo/>
- <replform>
- <replcnts/>
- <sel/>
- </replform>
- <cdlist>
- <bigcode>
- <cdgrupnm/>
- <cdgrupid/>
- </bigcode>
- <smacodelist>
- <smacode>
- <cdnm/>
- <cdid/>
- </smacode>
- </smacodelist>
- </cdlist>
- <srchgrupid>
- <initgrupid/>
- <drugcd/>
- <comflag/>
- </srchgrupid>
- <drugcdlist>
- <drugcdlist>
- <drugcd/>
- <drugnm/>
- <comdesc/>
- <prodcmpycd/>
- <prodcmpynm/>
- </drugcdlist>
- </drugcdlist>
- <data>
- <symplist>
- <sympinfo/>
- </symplist>
- </data>
- <popupdata>
- <repltype/>
- <receivedata>/root/main/baseinfo/adrinfo/replid</receivedata>
- </popupdata>
- <valuprintinfo/>
- <medirecinfo/>
- <laplist/>
- <rgsttemp/>
- <tempsymp/>
- <returnsymp>
- <symp/>
- <sympcnts/>
- </returnsymp>
- </temp>
- <popdata>
- <poplist>
- <pid/>
- <prcpcd/>
- <prcpno/>
- <execprcphistcd/>
- </poplist>
- </popdata>
- <popdata1>
- <casrslt/>
- <totscr/>
- <naranjocmt/>
- <koralgo/>
- </popdata1>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- document.controls("PreView").attribute("visibility") = "hidden";
- // 유해 약물 대분류 DB에서 가지고 오기
- //submit("TRADC00602");
- pharmacyGetCodeList( new Array("P030"), new Array("/root/temp/srchgrupid/initgrupid") );
-
- grd_druginfo.removeRow(false); // 의심약물 그리드 초기화
-
- submit("TRADB00001");
-
- pharmacyGetCodeList( new Array("JCI1"), new Array("/root/init/cmblist/jciyn") );
-
- var formrecseq = model.getValue("/root/temp/cnstinfo/formrecseq");
- if (model.getValue("/root/popdata/poplist[" + 1 + "]/pid") != ""){
- var pid = model.getValue("/root/popdata/poplist[" + 1 + "]/pid");
- }else{
- var pid = model.getValue("/root/temp/cnstinfo/pid");
- }
-
- zbcfGetCodeList( new Array("M0005"), new Array("/root/init/baseinfo/initprcpclscd") );
- var cretno = model.getValue("/root/temp/cnstinfo/cretno");
- var orddd = model.getValue("/root/temp/cnstinfo/orddd");
- var prcpgenrflag = model.getValue("/root/temp/cnstinfo/prcpgenrflag");
- var rgstseqno= model.getValue("/root/temp/cnstinfo/rgstseqno");
- var cnstseqno= model.getValue("/root/temp/cnstinfo/cnstseqno");
- var cnstdd= model.getValue("/root/temp/cnstinfo/cnstdd");
- model.removeNodeset("/root/main/baseinfo/hdruginfo");
-
-
-
- if ( pid != "") {
- model.setValue("/root/send/searchitem/formrecseq", formrecseq);
- model.makeValue("/root/send/searchitem/cnstseqno", cnstseqno);
- model.setValue("/root/send/searchitem/pid", pid);
- model.setValue("/root/send/searchitem/cretno", cretno);
- model.setValue("/root/send/searchitem/orddd", orddd);
- model.setValue("/root/send/searchitem/prcpgenrflag", prcpgenrflag);
- model.setValue("/root/send/searchitem/rgstseqno", rgstseqno);
- model.setValue("/root/send/searchitem/cnstdd", cnstdd);
-
- model.refresh();
-
- submit("TRADC00607");
-
- var newflag = model.getValue("/root/temp/adrflag/adr/newflag");
-
- // alert(newflag);
- if ( newflag == "Y" ) {
- model.toggle("case2");
- } else {
- model.toggle("case1");
- }
-
- var success = submit("TRADC00601");
-
- if (success == false) {
- model.resetInstanceNode("/root/main/baseinfo");
- model.refresh();
- }
- // model.toggle("case1");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- }
-
- fComboSet();
-
- //---------------(20091024)
- // var sjobkindcd = getUserInfo("jobkindcd");
- // //직종이 약사인경우만
- // //alert( sjobkindcd.substr(0,2) ) ;
- //
- // if ( sjobkindcd.substr(0,2) != "12" ) {
- // btn_save.disabled = true ; //저장
- // btn_repl.disabled = true ; //회신
- // btn_del.disabled = true ; //삭제
- // }
- //---------------(20091024)
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- var ColFlagNm = "column"; // 일반컬럼과 실시이력에 대한 구분을 위한 구분값
-
- //회신상태에 따라 버튼 활성화 처리
- function fBtnDisabled() {
- if (model.getValue("/root/main/baseinfo/adrinfo/statflag") == "Z" ) {
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- button19.disabled = true;
- } else {
- btn_save.disabled = false;
-
- //1차평가완료가 되지 않으면 회신 하지 못도록 수정.
- if(model.getValue("/root/main/baseinfo/patinfolist/fstvaluid") != "") {
- btn_repl.disabled = false;
- } else {
- btn_repl.disabled = true;
- }
-
- btn_del.disabled = false;
- button19.disabled = false;
- }
-
- if(model.getValue("/root/temp/cnstinfo/btnreplflag") == "Y") {
- // 20100118_laboru_회신완료 상태일때 회신버튼 비활성화 위해서
- btn_repl.disabled = true;
- }
-
- if(model.getValue("/root/temp/cnstinfo/pidchkflag") == "Y") {
- // 20100119_laboru_약사 이외의 사용자인 경우
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- button19.disabled = true;
- }
-
- //회신약의 유해증상을 유해증상번호와 유해증상내용으로 구분한다.
- fDivDrugInfoSymp();
- }
- function fSmlComboChg(trg_control){
- var src_combo = document.all(event.currentTarget).label;
- var etc_control = document.controls(trg_control);
- if(src_combo == "기타"){
- etc_control.attribute("visibility") = "visible";
- }else {
- etc_control.attribute("visibility") = "hidden";
- var node = etc_control.attribute("ref");
- model.setValue(node,"");
- }
- model.refresh();
- }
- function fComboSet(){
- var iname = "";
- var icode = "";
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts2") != ""){
- cmb_cnstcnts3.visible = true;
- }else{
- cmb_cnstcnts3.visible = false;
- }
-
- iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts2");
- icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101", false);
- copyNodesetType("/root/init/codelist/smlcd1", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts4") != ""){
- cmb_cnstcnts5.visible = true;
- }else{
- cmb_cnstcnts5.visible = false;
- }
- iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts4");
- icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101", false);
- copyNodesetType("/root/init/codelist/smlcd2", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts6") != ""){
- cmb_cnstcnts7.visible = true;
- }else{
- cmb_cnstcnts7.visible = false;
- }
- iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts6");
- icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101", false);
- copyNodesetType("/root/init/codelist/smlcd3", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts8") != ""){
- cmb_cnstcnts9.visible = true;
- }else{
- cmb_cnstcnts9.visible = false;
- }
- iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts8");
- icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101", false);
- copyNodesetType("/root/init/codelist/smlcd4", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts10") != ""){
- cmb_cnstcnts11.visible = true;
- }else{
- cmb_cnstcnts11.visible = false;
- }
- iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts10");
- icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101", false);
- copyNodesetType("/root/init/codelist/smlcd5", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
- if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts2") != ""){
- combo2.visible = true;
- }else{
- combo2.visible = false;
- }
- var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts2");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101", false);
- copyNodesetType("/root/init/codelist/smlcd6", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts4") != ""){
- combo4.visible = true;
- }else{
- combo4.visible = false;
- }
- var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts4");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101", false);
- copyNodesetType("/root/init/codelist/smlcd7", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts6") != ""){
- combo6.visible = true;
- }else{
- combo6.visible = false;
- }
- var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts6");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101", false);
- copyNodesetType("/root/init/codelist/smlcd8", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
-
- // if (cmb_cnstcnts3.label == "기타"){
- // ipt_cnstcnts22.visible = true;
- // }else{
- // ipt_cnstcnts22.visible = false;
- // }
- // if (cmb_cnstcnts5.label == "기타"){
- // ipt_cnstcnts23.visible = true;
- // }else{
- // ipt_cnstcnts23.visible = false;
- // }
- // if (cmb_cnstcnts7.label == "기타"){
- // ipt_cnstcnts24.visible = true;
- // }else{
- // ipt_cnstcnts24.visible = false;
- // }
- // if (cmb_cnstcnts9.label == "기타"){
- // ipt_cnstcnts25.visible = true;
- // }else{
- // ipt_cnstcnts25.visible = false;
- // }
- // if (cmb_cnstcnts11.label == "기타"){
- // ipt_cnstcnts26.visible = true;
- // }else{
- // ipt_cnstcnts26.visible = false;
- // }
-
- // if (combo2.label == "기타"){
- // input2.visible = true;
- // }else{
- // input2.visible = false;
- // }
- // if (combo4.label == "기타"){
- // input3.visible = true;
- // }else{
- // input3.visible = false;
- // }
- // if (combo6.label == "기타"){
- // input4.visible = true;
- // }else{
- // input4.visible = false;
- // }
- // model.refresh();
- }
- function datacheck(){
- var srsrvdt = "";
- var trsrvdt = "";
- for (var i = 1; i < grd_prcpinfo.rows ; i++) {
- var srsrvdt = model.getValue("/root/main/baseinfo/hdruginfo["+i+"]/fsttakedt");
- if (srsrvdt != ""){
- if (isValidDateTime(srsrvdt, "YYYYMMDDhhmm") == false){
- messageBox("최초복용일시 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
- return false;
- }
- }
- var trsrvdt = model.getValue("/root/main/baseinfo/hdruginfo["+i+"]/lsttakedt");
- if (trsrvdt != ""){
- if (isValidDateTime(trsrvdt, "YYYYMMDDhhmm") == false){
- messageBox("최종복용일시 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
- return false;
- }
- }
- if (srsrvdt != "" && trsrvdt != ""){
- if (srsrvdt > trsrvdt){
- messageBox("최초복용일시와 최종복용일시의 일자가 잘못 입력되었습니다.", "E999", "");
- return false;
- }
- }
- }
- srsrvdt = model.getValue("/root/main/baseinfo/adrinfo/sympmnftdd");
- if (srsrvdt != ""){
- if (isValidDateTime(srsrvdt, "YYYYMMDD") == false){
- messageBox("증상발현일 일자 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
- return false;
- }
- }
- trsrvdt = model.getValue("/root/main/baseinfo/adrinfo/enddd");
- if (trsrvdt != ""){
- if (isValidDateTime(trsrvdt, "YYYYMMDD") == false){
- messageBox("종료일일 일자 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
- return false;
- }
- }
- if (srsrvdt != "" && trsrvdt != ""){
- if (srsrvdt > trsrvdt){
- messageBox("증상발현일과 종료일의 일자가 잘못 입력되었습니다.", "E999", "");
- return false;
- }
- }
- srsrvdt = model.getValue("/root/main/baseinfo/adrinfo/pastmnftdd");
- if (srsrvdt != ""){
- if (isValidDateTime(srsrvdt, "YYYYMMDD") == false){
- messageBox("발생시기 일자 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
- return false;
- }
- }
- for (var i = 1; i < grd_druginfo.rows; i ++){
- if (model.getValue("/root/main/baseinfo/druginfo[" + i + "]/drugcd") == ""){
- messageBox(i + "번째 처방코드는 필수 선택항목입니다.", "E999", "");
- return false;
- }
- }
- }
-
- /*
- @ 결과 그리드 컬럼 초기화
- */
- function fSetGrdInit(){
-
- model.resetInstanceNode("/root/main/medirecinfo");
-
- var cols = grd_medirec.cols-grd_medirec.fixedCols;
- var rows = grd_medirec.rows-grd_medirec.fixedRows;
- for( var i = 0; i < cols; i++ ) {
- grd_medirec.removeColumn(false);
- }
- for( var i = 0; i < rows; i++ ) {
- grd_medirec.removeRow(false);
- }
-
- model.removeNodeSet("/root/main/");
- model.refresh();
- }
-
- /*
- @ 약품실시정보 조회
- */
- function fGetDrugExecInfo() {
-
- var sPrcpNo = "";
-
- grd_medirec.clearStatus();
-
- /*
- @ 그리드 설정 초기화
- */
- fSetGrdInit();
-
- model.setValue("/root/send/searchitem/ioflag", "T");
- model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
-
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/hdruginfo") ; iNo++) {
- if(sPrcpNo == "") {
- sPrcpNo = model.getValue("/root/main/baseinfo/hdruginfo["+ iNo +"]/prcpno");
- } else {
- sPrcpNo += "|" + model.getValue("/root/main/baseinfo/hdruginfo["+ iNo +"]/prcpno");
- }
- }
- model.setValue("/root/send/searchitem/prcpno", sPrcpNo);
- model.setValue("/root/send/searchitem/scrnflag", "SMADC00600");
-
- submit("TRADC20101", false);
-
- var grdCaption = model.getValue("/root/temp/medirecinfo/header/caption");
- var grdColref = model.getValue("/root/temp/medirecinfo/header/colref");
- var grdHidden = model.getValue("/root/temp/medirecinfo/header/hidden");
- var grdAttribute = "";
-
- if(getNodesetCount("/root/temp/medirecinfo/row") == 0){
- return;
- }
-
- var grdColrefArray = grdColref.split("^");
- var grdHiddenArray = grdHidden.split("^");
-
- for (var i = 0; i < grdColrefArray.length; i++){
- if(grdColrefArray[i] != "") grdAttribute += "ref:"+ grdColrefArray[i]+";";
- if(isSearchString(grdColrefArray[i],ColFlagNm)) grdAttribute += "style:text-align:center;";
- grd_medirec.addColumn(grdAttribute,false);
- }
-
- grd_medirec.colWidth(grd_medirec.colRef("ioflagnm")) = "40";
- grd_medirec.colWidth(grd_medirec.colRef("prcpcd")) = "100";
- grd_medirec.colWidth(grd_medirec.colRef("prcpnm")) = "250";
- grd_medirec.colWidth(grd_medirec.colRef("drugmthdspccd")) = "250"
-
- grd_medirec.colHidden(grd_medirec.colRef("ioflag")) = true;
- grd_medirec.colHidden(grd_medirec.colRef("orddd")) = true;
- grd_medirec.colHidden(grd_medirec.colRef("exectm")) = true;
-
- model.copyNode("/root/main/medirecinfo","/root/temp/medirecinfo");
- grd_medirec.caption = grdCaption;
-
-
- /*
- @ 약품실시이력 cell 색상 변경
- 약품실시이력에 데이터가 존재시 색상변경
- */
- for(var i = grd_medirec.fixedCols; i < grd_medirec.cols; i++){
- var colnm = grd_medirec.colAttribute(parseInt(i), "ref");
- var col = parseInt(i);
- if(isSearchString(colnm, ColFlagNm)){
- for(var j = grd_medirec.fixedRows; j < grd_medirec.rows; j++){
- var row = parseInt(j);
- if(grd_medirec.valueMatrix(row, col) != ""){
- grd_medirec.cellStyle("background-color",row,col) = "#ffff99";
- }
- }
- }
- }
- grd_medirec.selectionMode = "free";
- grd_medirec.rebuild();
-
- }
-
- /*
- @ 출력물에서 하나의 노드가 한장 이상일 경우는 출력 못하기 때문에 개행문자를 기준으로 노드를 분리.
- */
- function fSetPrtnDiv(pCnts, pRefNode) {
-
- var iStartPos = 0;
- var iRowNum = 1;
- var sRsltcnts = pCnts;
-
- for(var iLeng = 1 ; iLeng <= sRsltcnts.length ; iLeng++) {
- if("\n" == sRsltcnts.substr(iLeng, 1)) {
-
- model.makeValue(pRefNode + "["+ iRowNum +"]/cnts", sRsltcnts.substring(iStartPos, iLeng), true);
- iRowNum++;
- iStartPos = Number(iLeng) + 1;
- } else {
- if(sRsltcnts.length == iLeng){
- model.makeValue(pRefNode + "["+ iRowNum +"]/cnts", sRsltcnts.substring(iStartPos, iLeng), true);
- }
- }
- }
- }
-
-
- /*
- @ 저장
- */
- function fExeSave() {
- if (datacheck() == false){
- return;
- }
- model.copyNode("/root/send/data/patinfolist", "/root/main/baseinfo/patinfolist");
- model.makeValue("/root/send/data/patinfolist/rgstseqno", model.getValue("/root/send/searchitem/rgstseqno"));
- model.makeValue("/root/send/data/patinfolist/cnstseqno", model.getValue("/root/temp/cnstinfo/cnstseqno"));
- // 20110124_laboru_경북대병원_과거유해반응 원인약물 저장 되게 수정
- model.setValue("/root/main/baseinfo/adrinfo/pastadvsdrug", model.getValue("/root/main/baseinfo/adrinfo/pastreqdrugnm"));
- model.copyNode("/root/send/data/adrinfo", "/root/main/baseinfo/adrinfo");
- model.setValue("/root/send/data/sympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/sympinfo" )));
- //model.copyNode("/root/send/data/oldsympinfo", "/root/main/baseinfo/oldsympinfo");
- model.setValue("/root/send/data/oldsympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/oldsympinfo" )));
- var update = getGridUpdateData(grd_prcpinfo);
- model.setValue("/root/send/data/hdruginfo", update);
-
- var update = getGridUpdateData(grd_druginfo);
- model.setValue("/root/send/data/druginfo", update);
-
- model.makeValue("/root/send/data/adrinfo/formrecseq", model.getValue("/root/send/searchitem/formrecseq"));
- //model.makeValue("/root/send/data/adrinfo/cnstdd", model.getValue("/root/send/searchitem/cnstdd"));
- //model.makeValue("/root/send/data/adrinfo/cnstseqno", model.getValue("/root/main/baseinfo/adrinfo2/cnstseqno"));
- model.makeValue("/root/send/data/adrinfo/statflag", "D"); //저장
- model.makeValue("/root/send/data/adrinfo/cnststat", "21"); //회신임시
-
-
- var success = submit("TXADC00601");
-
- if(success) {
- if ( model.getValue("/root/send/searchitem/rgstseqno") == "" ) {
- model.setValue("/root/send/searchitem/rgstseqno", model.getValue("/root/hidden/return/ret/rgstseqno"));
- }
- model.makeValue("/root/hidden/ret/saverslt", 'Y');
- submit("TRADC00601");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- model.resetInstanceNode("root/send/data");
- } else {
- model.makeValue("/root/hidden/ret/saverslt", 'N');
- }
-
- return success;
- }
- /*
- @ 저장
- */
- function fExeSaveRe() {
- if (datacheck() == false){
- return;
- }
- model.copyNode("/root/send/data/patinfolist", "/root/main/baseinfo/patinfolist");
- model.makeValue("/root/send/data/patinfolist/rgstseqno", model.getValue("/root/send/searchitem/rgstseqno"));
- model.makeValue("/root/send/data/patinfolist/cnstseqno", model.getValue("/root/temp/cnstinfo/cnstseqno"));
- // 20110124_laboru_경북대병원_과거유해반응 원인약물 저장 되게 수정
- model.setValue("/root/main/baseinfo/adrinfo/pastadvsdrug", model.getValue("/root/main/baseinfo/adrinfo/pastreqdrugnm"));
- model.copyNode("/root/send/data/adrinfo", "/root/main/baseinfo/adrinfo");
- model.setValue("/root/send/data/sympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/sympinfo" )));
- //model.copyNode("/root/send/data/oldsympinfo", "/root/main/baseinfo/oldsympinfo");
- model.setValue("/root/send/data/oldsympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/oldsympinfo" )));
- var update = getGridUpdateData(grd_prcpinfo);
- model.setValue("/root/send/data/hdruginfo", update);
-
- var update = getGridUpdateData(grd_druginfo);
- model.setValue("/root/send/data/druginfo", update);
-
- model.makeValue("/root/send/data/adrinfo/formrecseq", model.getValue("/root/send/searchitem/formrecseq"));
- //model.makeValue("/root/send/data/adrinfo/cnstdd", model.getValue("/root/send/searchitem/cnstdd"));
- //model.makeValue("/root/send/data/adrinfo/cnstseqno", model.getValue("/root/main/baseinfo/adrinfo2/cnstseqno"));
- model.makeValue("/root/send/data/adrinfo/statflag", "D"); //저장
- model.makeValue("/root/send/data/adrinfo/cnststat", "22"); //회신임시
-
-
- var success = submit("TXADC00601");
-
- if(success) {
- if ( model.getValue("/root/send/searchitem/rgstseqno") == "" ) {
- model.setValue("/root/send/searchitem/rgstseqno", model.getValue("/root/hidden/return/ret/rgstseqno"));
- }
- model.makeValue("/root/hidden/ret/saverslt", 'Y');
- submit("TRADC00601");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- model.resetInstanceNode("root/send/data");
- } else {
- model.makeValue("/root/hidden/ret/saverslt", 'N');
- }
-
- return success;
- }
- /*
- @ 회신약의 유해증상을 유해증상번호와 유해증상내용으로 구분한다.
- */
- function fDivDrugInfoSymp() {
-
- var sSymp = "";
- var aSymp = "";
-
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/druginfo") ; iNo++) {
- sSymp = model.getValue("/root/main/baseinfo/druginfo["+ iNo +"]/symp");
- aSymp = sSymp.split("^");
- if(aSymp.length > 1) {
- model.makeValue("/root/main/baseinfo/druginfo["+ iNo +"]/sympcnts", aSymp[1]);
- model.makeValue("/root/main/baseinfo/druginfo["+ iNo +"]/sympno", aSymp[0]);
- } else {
- model.makeValue("/root/main/baseinfo/druginfo["+ iNo +"]/sympcnts", sSymp);
- }
- }
- grd_druginfo.refresh();
-
- fChkSymp();
- }
-
- /*
- @ 유해증상 변경가능 여부 체크
- */
- function fChkSymp() {
- var sSympNo = "";
-
- cmb_cnstcnts2.disabled = false;
- cmb_cnstcnts3.disabled = false;
- ipt_cnstcnts22.disabled = false;
- cmb_cnstcnts4.disabled = false;
- cmb_cnstcnts5.disabled = false;
- ipt_cnstcnts23.disabled = false;
- cmb_cnstcnts6.disabled = false;
- cmb_cnstcnts7.disabled = false;
- ipt_cnstcnts24.disabled = false;
- cmb_cnstcnts8.disabled = false;
- cmb_cnstcnts9.disabled = false;
- ipt_cnstcnts25.disabled = false;
- cmb_cnstcnts10.disabled = false;
- cmb_cnstcnts11.disabled = false;
- ipt_cnstcnts26.disabled = false;
-
- for(var iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/druginfo") ; iNo++) {
- sSympNo = model.getValue("/root/main/baseinfo/druginfo["+ iNo +"]/sympno");
-
- if( sSympNo != "") {
- if(sSympNo == "1") {
- cmb_cnstcnts2.disabled = true;
- cmb_cnstcnts3.disabled = true;
- ipt_cnstcnts22.disabled = true;
- } else if (sSympNo == "2") {
- cmb_cnstcnts4.disabled = true;
- cmb_cnstcnts5.disabled = true;
- ipt_cnstcnts23.disabled = true;
- } else if (sSympNo == "3") {
- cmb_cnstcnts6.disabled = true;
- cmb_cnstcnts7.disabled = true;
- ipt_cnstcnts24.disabled = true;
- } else if (sSympNo == "4") {
- cmb_cnstcnts8.disabled = true;
- cmb_cnstcnts9.disabled = true;
- ipt_cnstcnts25.disabled = true;
- } else if (sSympNo == "5") {
- cmb_cnstcnts10.disabled = true;
- cmb_cnstcnts11.disabled = true;
- ipt_cnstcnts26.disabled = true;
- }
- }
- }
-
- cmb_cnstcnts2.refresh();
- cmb_cnstcnts3.refresh();
- ipt_cnstcnts22.refresh();
- cmb_cnstcnts4.refresh();
- cmb_cnstcnts5.refresh();
- ipt_cnstcnts23.refresh();
- cmb_cnstcnts6.refresh();
- cmb_cnstcnts7.refresh();
- ipt_cnstcnts24.refresh();
- cmb_cnstcnts8.refresh();
- cmb_cnstcnts9.refresh();
- ipt_cnstcnts25.refresh();
- cmb_cnstcnts10.refresh();
- cmb_cnstcnts11.refresh();
- ipt_cnstcnts26.refresh();
- }
- ]]>
- </script>
- <submission id="TRADC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/baseinfo"/>
- <submission id="TXADC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/return"/>
- <submission id="TRADC00602" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/temp/cdlist"/>
- <submission id="TRADC00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchgrupid" replace="instance" resultref="/root/temp/cdlist/smacodelist"/>
- <submission id="TRADC00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/srchgrupid" replace="instance" resultref="/root/temp/drugcdlist"/>
- <submission id="TRZBC00101"/>
- <submission id="TRADB00001"/>
- <submission id="TRADC62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/hidden/cnststatinfo"/>
- <submission id="TRADC20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/temp/medirecinfo"/>
- <submission id="TRADC00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/laprslt" replace="instance" resultref="/root/temp/laplist"/>
- <submission id="TXADC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/laprslt" replace="instance" resultref="/root/temp/rgsttemp"/>
- <submission id="TRASB01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/resultref"/>
- <submission id="TRADC00607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/temp/adrflag"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SPADC62200.js"/>
- <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <line id="line12" class="line_2" style="x1:0px; y1:584px; x2:1195px; y2:584px; "/>
- <textarea id="tar_cmt" ref="/root/main/baseinfo/adrinfo/cmt" navindex="41" style="left:685px; top:564px; width:509px; height:48px; "/>
- <input id="inp_pastadvsdrug" ref="/root/main/baseinfo/adrinfo/pastreqdrugnm" class="input_default" style="left:908px; top:490px; width:284px; height:19px; "/>
- <line id="line8" class="line_1" style="x1:0px; y1:458px; x2:1194px; y2:458px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:510px; x2:1194px; y2:510px; "/>
- <line id="line10" class="line_1" style="x1:0px; y1:558px; x2:1194px; y2:558px; "/>
- <line id="line34" class="line_3" style="x1:0px; y1:253px; x2:1194px; y2:253px; "/>
- <caption id="caption32" class="cell_1" visibility="hidden" style="left:933px; top:573px; width:52px; height:48px; vertical-align:middle; ">증상발현정도</caption>
- <line id="line13" class="line_3" style="x1:0px; y1:614px; x2:1194px; y2:614px; "/>
- <caption id="caption1" class="tit_2" style="left:3px; top:262px; width:169px; height:13px; ">현재발생유해반응</caption>
- <group id="group2" style="left:0px; top:4px; width:1194px; height:101px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:100px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption13" class="search_name" style="left:6px; top:8px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption30" class="search_name" style="left:6px; top:30px; width:86px; height:17px; ">입원일 :</caption>
- <caption id="caption34" class="search_name" style="left:6px; top:52px; width:86px; height:17px; ">병동병실 :</caption>
- <caption id="caption14" class="search_name" style="left:217px; top:52px; width:87px; height:17px; ">체중(kg) :</caption>
- <caption id="caption16" class="search_name" style="left:217px; top:74px; width:90px; height:17px; ">신장(cm) :</caption>
- <caption id="caption31" class="search_name" style="left:217px; top:8px; width:86px; height:17px; ">성명 :</caption>
- <input id="pidInput" ref="/root/main/baseinfo/patinfolist/pid" class="input_search" navindex="1" style="left:94px; top:8px; width:112px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <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; "/>
- <output id="input10" ref="/root/main/baseinfo/patinfolist/wardcd" class="output_search" appearance="output" style="left:94px; top:52px; width:66px; height:19px; "/>
- <output id="input11" ref="/root/main/baseinfo/patinfolist/hngnm" class="output_search" appearance="output" style="left:310px; top:8px; width:72px; height:19px; "/>
- <output id="input12" ref="/root/main/baseinfo/patinfolist/wt" class="output_search" appearance="output" style="left:310px; top:52px; width:112px; height:19px; "/>
- <output id="input14" ref="/root/main/baseinfo/patinfolist/sna" class="output_search" appearance="output" style="left:385px; top:8px; width:37px; height:19px; "/>
- <output id="output2" ref="/root/main/baseinfo/patinfolist/ht" class="output_search" style="left:310px; top:74px; width:112px; height:19px; "/>
- <caption id="caption35" class="search_name" style="left:429px; top:8px; width:87px; height:17px; ">의뢰일 :</caption>
- <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; "/>
- <output id="input15" ref="/root/main/baseinfo/patinfolist/cnstdrnm" class="output_search" appearance="output" style="left:521px; top:30px; width:112px; height:19px; "/>
- <caption id="caption36" class="search_name" style="left:429px; top:30px; width:90px; height:17px; ">의뢰자 :</caption>
- <caption id="caption37" class="search_name" style="left:641px; top:8px; width:90px; height:17px; ">상병정보 :</caption>
- <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; ">
- <col ref="diagcd"/>
- <col ref="diagengnm"/>
- <col ref="diaghngnm"/>
- </datagrid>
- <output id="output1" ref="/root/main/baseinfo/patinfolist/cnstdeptnm" class="output_search" appearance="output" style="left:94px; top:74px; width:112px; height:19px; "/>
- <caption id="caption39" class="search_name" style="left:6px; top:74px; width:86px; height:17px; ">진료과 :</caption>
- <output id="output3" ref="/root/main/baseinfo/patinfolist/chosflag" class="output_search" appearance="output" style="left:310px; top:30px; width:112px; height:19px; "/>
- <caption id="caption40" class="search_name" style="left:217px; top:30px; width:86px; height:17px; ">환자구분 :</caption>
- <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; "/>
- <caption id="caption41" class="search_name" style="left:429px; top:52px; width:90px; height:17px; ">보고일 :</caption>
- <output id="output5" ref="/root/main/baseinfo/patinfolist/repluserid" class="output_search" appearance="output" style="left:521px; top:74px; width:112px; height:19px; "/>
- <caption id="caption42" class="search_name" style="left:429px; top:74px; width:90px; height:17px; ">보고약사 :</caption>
- <output id="output6" ref="/root/main/baseinfo/patinfolist/roomcd" class="output_search" appearance="output" style="left:162px; top:52px; width:44px; height:19px; "/>
- <group id="grp_savebtn" visibility="hidden" style="left:1001px; top:0px; width:115px; height:85px; ">
- <button id="btn_save" class="btn4_letter4" style="left:6px; top:5px; width:80px; height:22px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeValue("/root/main/baseinfo/patinfolist/fstvaluyn", "N");
-
- if (fExeSave()) {
-
- model.makeValue("/root/hidden/ret/saverslt", 'Y');
- submit("TRADC00601");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- model.resetInstanceNode("root/send/data");
-
- grp_savebtn.visible = false;
-
- } else {
- model.makeValue("/root/hidden/ret/saverslt", 'N');
- }
- ]]>
- </script>
- </button>
- <button id="button19" class="btn4_letter6" style="left:6px; top:30px; width:104px; height:22px; ">
- <caption>1차평가 완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/main/baseinfo/patinfolist/fstvaluid") != "") {
- if(messageBox("이미 1차평가 완료된 보고서 입니다.", "Q003") != "6") {
- return;
- }
- }
-
- model.makeValue("/root/temp/popupdata/receivedatargst", "");
- model.setValue("/root/temp/popupdata/repltype", "tdmS"); //저장자
- model.makeValue("/root/temp/popupdata/rgstid", getUserInfo("userid"));
- modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
- var replid = model.getValue("/root/temp/popupdata/receivedatargst");
- if(replid != "" ) {
- model.makeValue("/root/main/baseinfo/patinfolist/fstvaluyn", "Y");
- model.makeValue("/root/main/baseinfo/patinfolist/fstvaluid", replid);
-
- if (fExeSave()) {
-
- model.makeValue("/root/hidden/ret/saverslt", 'Y');
- submit("TRADC00601");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- model.resetInstanceNode("root/send/data");
-
- grp_savebtn.visible = false;
-
- } else {
- model.makeValue("/root/hidden/ret/saverslt", 'N');
- }
- }
- ]]>
- </script>
- </button>
- <button id="button18" class="btn4_letter6" style="left:6px; top:55px; width:104px; height:22px; ">
- <caption>추가평가 수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/temp/popupdata/receivedatargst", "");
- model.setValue("/root/temp/popupdata/repltype", "tdmS"); //저장자
- model.makeValue("/root/temp/popupdata/rgstid", getUserInfo("userid"));
- modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
- var replid = model.getValue("/root/temp/popupdata/receivedatargst");
- if(replid != "" ) {
- model.makeValue("/root/main/baseinfo/patinfolist/fstvaluyn", "Y");
- model.makeValue("/root/main/baseinfo/patinfolist/fstvaluid", replid);
- if (fExeSaveRe()) {
-
- model.makeValue("/root/hidden/ret/saverslt", 'Y');
- submit("TRADC00601");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- model.resetInstanceNode("root/send/data");
-
- grp_savebtn.visible = false;
-
- } else {
- model.makeValue("/root/hidden/ret/saverslt", 'N');
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </group>
- <caption id="caption33" class="cell_1" visibility="hidden" style="left:698px; top:573px; width:52px; height:23px; vertical-align:middle; ">심각도</caption>
- <caption id="caption22" class="cell_1" style="left:770px; top:488px; width:137px; height:23px; vertical-align:middle; ">과거유해반응 원인약물</caption>
- <caption id="caption3" class="cell_1" style="left:845px; top:642px; width:107px; height:48px; vertical-align:top; padding-top:5; ">
- <![CDATA[약물유해반응
- 내용요약]]>
- </caption>
- <caption id="caption23" class="tit_2" style="left:3px; top:542px; width:169px; height:13px; ">코멘트</caption>
- <caption id="caption24" class="cell_1" style="left:0px; top:563px; width:80px; height:51px; vertical-align:middle; ">유해사례의 내용</caption>
- <caption id="caption4" class="tit_2" style="left:3px; top:442px; width:169px; height:13px; ">과거유해반응</caption>
- <line id="line17" class="line_1" style="x1:0px; y1:637px; x2:1194px; y2:637px; "/>
- <caption id="caption25" class="cell_1" style="left:547px; top:564px; width:137px; height:50px; vertical-align:middle; ">유해사례와 약물의 인과관계에 대한 소견 등 기타의견</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:127px; x2:1194px; y2:127px; "/>
- <line id="line18" class="line_3" style="x1:0px; y1:740px; x2:1194px; y2:740px; "/>
- <caption id="caption26" class="tit_2" style="left:1px; top:621px; width:169px; height:13px; ">회신내역</caption>
- <button id="button10" class="btn2_letter2" style="left:1057px; top:107px; width:42px; height:19px; ">
- <caption>약력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- open("SMADB10100",0,0,0,"SMADB10100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
-
- ]]>
- </script>
- </button>
- <caption id="caption7" class="tit_2" style="left:3px; top:112px; width:169px; height:13px; ">최종처방정보</caption>
- <caption id="caption28" class="cell_1" style="left:0px; top:642px; width:70px; height:98px; vertical-align:top; padding-top:5; ">의심약물</caption>
- <textarea id="tar_adrcntssmm" ref="/root/main/baseinfo/adrinfo/adrcntssmm" navindex="44" style="left:955px; top:643px; width:239px; height:45px; "/>
- <caption id="caption29" class="cell_1" style="left:845px; top:692px; width:107px; height:48px; vertical-align:top; padding-top:5; ">문헌검색내용</caption>
- <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; ">
- <choices>
- <item>
- <label>유</label>
- <value>1</value>
- </item>
- <item>
- <label>무</label>
- <value>2</value>
- </item>
- <item>
- <label>확인불가</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:770px; top:464px; width:137px; height:23px; vertical-align:middle; ">과거유해반응여부</caption>
- <textarea id="tar_srchcnts" ref="/root/main/baseinfo/adrinfo/srchcnts" navindex="45" style="left:955px; top:694px; width:239px; height:44px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:536px; x2:1195px; y2:536px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:485px; x2:1194px; y2:485px; "/>
- <caption id="caption38" class="cell_1" style="left:770px; top:513px; width:137px; height:23px; vertical-align:middle; ">발생시기</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:463px; width:80px; height:74px; vertical-align:middle; ">과거유해증상</caption>
- <button id="button5" class="btn2_letter3" style="left:10px; top:685px; width:42px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_druginfo.rowStatus(grd_druginfo.row) == 1 || grd_druginfo.rowStatus(grd_druginfo.row) == 3){
- grd_druginfo.deleteRow(grd_druginfo.row);
- }else{
- grd_druginfo.addStatus(grd_druginfo.row,"delete");
- //grd_druginfo.rowHidden( grd_druginfo.row )=true;
- }
- fChkSymp();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:10px; top:665px; width:42px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_druginfo.addRow(true, true);
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" style="left:10px; top:705px; width:48px; height:19px; ">
- <caption>확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (grd_druginfo.attribute("height")==95 ){
- grd_druginfo.attribute("top")=443;
- grd_druginfo.attribute("height")=295;
- tar_advscnts.visible = false;
- } else {
- grd_druginfo.attribute("top")=643;
- grd_druginfo.attribute("height")=95;
- tar_advscnts.visible = true;
- }
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter2" style="left:905px; top:665px; width:42px; height:19px; ">
- <caption>확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (tar_adrcntssmm.attribute("height")==45 ){
- tar_adrcntssmm.attribute("height")=95;
- tar_srchcnts.visible = false;
- } else {
- tar_adrcntssmm.attribute("height")=45;
- tar_srchcnts.visible = true;
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter2" style="left:905px; top:715px; width:42px; height:19px; ">
- <caption>확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (tar_srchcnts.attribute("height")==44 ){
- tar_srchcnts.attribute("height")=95;
- tar_srchcnts.attribute("top")=643;
- } else {
- tar_srchcnts.attribute("height")=44;
- tar_srchcnts.attribute("top")=694;
- }
- ]]>
- </script>
- </button>
- <button id="button13" class="btn2_letter2" style="left:35px; top:594px; width:42px; height:19px; ">
- <caption>확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (tar_advscnts.attribute("height")==48 ){
- tar_advscnts.attribute("height")=180;
- } else {
- tar_advscnts.attribute("height")=48;
- }
- ]]>
- </script>
- </button>
- <button id="button14" class="btn2_letter2" style="left:635px; top:594px; width:42px; height:19px; ">
- <caption>확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (tar_cmt.attribute("height")==48 ){
- tar_cmt.attribute("height")=180;
- } else {
- tar_cmt.attribute("height")=48;
- }
- ]]>
- </script>
- </button>
- <button id="button15" class="btn2_letter2" style="left:1010px; top:107px; width:42px; height:19px; ">
- <caption>확대</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_prcpinfo.attribute("height")==130 ){
- grd_prcpinfo.attribute("height")=366;
- } else {
- grd_prcpinfo.attribute("height")=130;
- }
- ]]>
- </script>
- </button>
- <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; "/>
- <input id="input2" ref="/root/main/baseinfo/oldsympinfo/cnstcnts22" navindex="30" visibility="hidden" style="left:445px; top:464px; width:322px; height:19px; "/>
- <input id="input3" ref="/root/main/baseinfo/oldsympinfo/cnstcnts23" navindex="33" visibility="hidden" style="left:445px; top:490px; width:322px; height:19px; "/>
- <input id="input4" ref="/root/main/baseinfo/oldsympinfo/cnstcnts24" navindex="36" visibility="hidden" style="left:445px; top:515px; width:322px; height:19px; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts2") != ""){
- combo2.visible = true;
- }else{
- combo2.visible = false;
- }
- model.setValue("/root/main/baseinfo/oldsympinfo/cnstcnts3", "");
- var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts2");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/codelist/smlcd6", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/codelist/smlcd6">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSmlComboChg("input2");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts4") != ""){
- combo4.visible = true;
- }else{
- combo4.visible = false;
- }
- model.setValue("/root/main/baseinfo/oldsympinfo/cnstcnts5", "");
- var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts4");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/codelist/smlcd7", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/codelist/smlcd7">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSmlComboChg("input3");
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts6") != ""){
- combo6.visible = true;
- }else{
- combo6.visible = false;
- }
- model.setValue("/root/main/baseinfo/oldsympinfo/cnstcnts7", "");
- var iname = model.getValue("/root/main/baseinfo/oldsympinfo/cnstcnts6");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/codelist/smlcd8", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/codelist/smlcd8">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSmlComboChg("input4");
- ]]>
- </script>
- </select1>
- <datagrid id="grd_prcpinfo" nodeset="/root/main/baseinfo/hdruginfo" class="datagrid2" caption="약품명^처방시간^1일
용량^단위^수량^단위^분할
투여횟수^일수^최초복용일시^최종복용일시^투여경로^제조회사^과거
사용유무^진료과^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; ">
- <col ref="prcpnm"/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="prcpvol" style="text-align:right; "/>
- <col ref="prcpvolunit" style="text-align:center; "/>
- <col ref="prcpqty" style="text-align:right; "/>
- <col ref="prcpqtyunit" style="text-align:center; "/>
- <col ref="prcptims" style="text-align:right; "/>
- <col ref="prcpdayno" style="text-align:center; "/>
- <col ref="fsttakedt" type="input" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="lsttakedt" type="input" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcpclscd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initprcpclscd/M0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prodcmpynm"/>
- <col checkvalue="Y,N" ref="preyn" type="checkbox"/>
- <col ref="orddeptnm"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="rgstseqno" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="prcpcd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="execprcphistcd" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- </datagrid>
- <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; ">
- <col editable="false" ref="drugcd" type="inputbutton"/>
- <col ref="drugnm" type="input"/>
- <col ref="comnm" type="input"/>
- <col ref="prodcmpynm" type="inputbutton"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <col editable="false" ref="sympcnts" type="inputbutton"/>
- <col ref="casrslt" type="combo">
- <choices>
- <item>
- <label>Default</label>
- <value>0</value>
- </item>
- <item>
- <label>Possible</label>
- <value>1</value>
- </item>
- <item>
- <label>Probable</label>
- <value>2</value>
- </item>
- <item>
- <label>Definite</label>
- <value>3</value>
- </item>
- <item>
- <label>Certain</label>
- <value>4</value>
- </item>
- <item>
- <label>probable/likely</label>
- <value>5</value>
- </item>
- <item>
- <label>possible</label>
- <value>6</value>
- </item>
- <item>
- <label>unlikely</label>
- <value>7</value>
- </item>
- <item>
- <label>conditional/unclassified</label>
- <value>8</value>
- </item>
- <item>
- <label>unassessible/unclassifiable</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="casrsltbtn" type="inputbutton"/>
- <col editable="false" ref="koralgo" type="inputbutton"/>
- <col ref="serigrde" type="combo">
- <choices>
- <item>
- <label>serious</label>
- <value>S</value>
- </item>
- <item>
- <label>non-serious</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="sympmnftgrde" type="combo">
- <choices>
- <item>
- <label>경증</label>
- <value>1</value>
- </item>
- <item>
- <label>중등증</label>
- <value>2</value>
- </item>
- <item>
- <label>중증</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="totscr" visibility="hidden"/>
- <col ref="naranjocmt" visibility="hidden"/>
- <col ref="casrslt2" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="adrseqno" visibility="hidden"/>
- <col ref="symp" visibility="hidden"/>
- <col ref="comflag" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_druginfo.col== grd_druginfo.colRef("casrsltbtn") ){
-
- var sNaranjocmt = model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/naranjocmt");
- var comArray = sNaranjocmt.split("^");
-
- //2010-01-26 'Naranjo Algorithm' -> 'WHO-UMC causality category' 변경
- //(WHO-UMC causality category 값에는 첫번째 배열에 "who" 삽입)
- if(comArray[0] == "who" || comArray[0] == "") {
- //WHO-UMC causality category
- model.makeValue("/root/hidden/casrslt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/casrslt"));
- //model.makeValue("/root/hidden/totscr", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/totscr"));
- model.makeValue("/root/hidden/naranjocmt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/naranjocmt"));
- model.setValue("/root/popdata1/casrslt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/casrslt"));
- //model.setValue("/root/popdata1/totscr", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/totscr"));
- model.setValue("/root/popdata1/naranjocmt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/naranjocmt"));
-
- modal("SPADC62600",0,200,300,"SPADC62600","/root/popdata1","/root/popdata");
- model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/casrslt" , model.getValue("/root/hidden/casrslt") );
- //model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/totscr" , model.getValue("/root/hidden/totscr") );
- model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/naranjocmt" , model.getValue("/root/hidden/naranjocmt") );
- grd_druginfo.addStatus(grd_druginfo.row, "update");
- model.refresh();
-
- } else {
- //Naranjo Algorithm
- model.makeValue("/root/hidden/casrslt","");
- model.makeValue("/root/hidden/totscr","");
- model.makeValue("/root/hidden/naranjocmt","");
- model.setValue("/root/popdata1/casrslt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/casrslt"));
- model.setValue("/root/popdata1/totscr", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/totscr"));
- model.setValue("/root/popdata1/naranjocmt", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/naranjocmt"));
-
- modal("SPADC61600",0,200,300,"SPADC61600","/root/popdata1","/root/popdata");
- if ( model.getValue("/root/hidden/casrslt") != ""){
- model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/casrslt" , model.getValue("/root/hidden/casrslt") );
- model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/totscr" , model.getValue("/root/hidden/totscr") );
- model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/naranjocmt" , model.getValue("/root/hidden/naranjocmt") );
- grd_druginfo.addStatus(grd_druginfo.row, "update");
- model.refresh();
- }
- }
-
-
- } else if (grd_druginfo.col== grd_druginfo.colRef("koralgo")){
-
- model.makeValue("/root/hidden/koralgo", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/koralgo"));
- model.makeValue("/root/hidden/totscr", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/totscr"));
- model.makeValue("/root/popdata1/koralgo", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/koralgo"));
- modal("SPADC62800",0,200,300,"SPADC62800","/root/popdata1","/root/popdata");
- model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/koralgo" , model.getValue("/root/hidden/koralgo") );
- model.setValue( "/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/totscr" , model.getValue("/root/hidden/totscr") );
- grd_druginfo.addStatus(grd_druginfo.row, "update");
-
- } else if (grd_druginfo.col== grd_druginfo.colRef("drugcd")){
-
- //DIF검색
- model.makeValue("/root/temp/reqdata/send/receiveref", "/root/temp/receivedata/receiveref");
- model.makeValue("/root/temp/reqdata/send/receivedrugpnm", "/root/temp/receivedata/receivedrugpnm");
- model.makeValue("/root/temp/reqdata/send/receivedrugflag", "/root/temp/receivedata/receivedrugflag");
- model.makeValue("/root/temp/reqdata/send/receivedrugcom", "/root/temp/receivedata/receivedrugcom");
- model.makeValue("/root/temp/reqdata/send/reqpid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- model.resetInstanceNode("/root/temp/receivedata");
-
- modal("SPMMD03400",0,100,150,"SPMMD03400","/root/temp/reqdata/send","/root/temp/receivedata");
- //modal("SPMMD03400",0,100,150,"SPMMD03400","/root/temp/receivedata","/root/temp/receivedata");
- if( instance1.selectSingleNode("/root/temp/receivedata/receiveref") ){
- if( !isNull(model.getValue("/root/temp/receivedata/receiveref")) ){
- var drugcd = model.getValue("/root/temp/receivedata/receiveref");
- var drugcdnm = model.getValue("/root/temp/receivedata/receivedrugpnm");
- var sReceivedrugflag = model.getValue("/root/temp/receivedata/receivedrugflag");
-
- if(sReceivedrugflag != "") {
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag", sReceivedrugflag);
- } else {
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag", "C");
- }
- model.setValue("/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/drugcd", drugcd);
-
- if(model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag") != "O") {
- model.setValue("/root/temp/srchgrupid/drugcd", drugcd);
- model.setValue("/root/temp/srchgrupid/comflag", model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag"));
- submit("TRADC00604");
-
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/drugnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/comdesc"));
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/prodcmpycd" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpycd"));
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/prodcmpynm" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpynm"));
- } else {
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/drugnm" , drugcdnm);
- }
- }
- }
-
- /*
- 원내약 검색
- model.setValue("/root/temp/receivedata/receiveref", model.getValue("/root/hidden/receivedrugcd"));
- model.setValue("/root/temp/receivedata/srchflag", "");
- model.setValue("/root/temp/receivedata/srchcnts", "");
- model.setValue("/root/temp/receivedata/drugkind","");
- model.makeValue("/root/temp/receivedata/receiveref", "/root/hidden/drugcd");
- model.makeNode("/root/hidden/drugcd");
- modal("SPADB60100",0,100,150,"SPADB60100","/root/temp/receivedata","/root/temp/receivedata");
- if (model.getValue("/root/hidden/drugcd") !=""){
- model.setValue("/root/main/baseinfo/druginfo["+grd_druginfo.row+"]/drugcd", model.getValue("/root/hidden/drugcd"));
- model.setValue("/root/temp/srchgrupid/drugcd", model.getValue("/root/hidden/drugcd"));
- //alert (model.getValue("/root/temp/srchgrupid/drugcd"));
- submit("TRADC00604");
- //alert (model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/drugnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/drugnm"));
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comnm" , model.getValue("/root/temp/drugcdlist/drugcdlist/comdesc"));
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/prodcmpycd" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpycd"));
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/prodcmpynm" , model.getValue("/root/temp/drugcdlist/drugcdlist/prodcmpynm"));
- }
- */
- model.refresh();
- } else if (grd_druginfo.col== grd_druginfo.colRef("sympcnts")){
-
- //인스턴스 초기화
- model.removenode("/root/temp/returnsymp");
- model.makeNode("/root/temp/returnsymp/symp");
- model.makeNode("/root/temp/returnsymp/sympcnts");
- model.makeNode("/root/temp/returnsymp/cnfmyn");
- model.removenode("/root/temp/tempsymp");
- model.makeNode("/root/temp/tempsymp");
-
- //자식창에 유해증상내용을 넘김.
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[1]/chk", "N");
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[1]/symp1", cmb_cnstcnts2.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[1]/symp2", cmb_cnstcnts3.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[1]/symp3", ipt_cnstcnts22.label);
-
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[2]/chk", "N");
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[2]/symp1", cmb_cnstcnts4.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[2]/symp2", cmb_cnstcnts5.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[2]/symp3", ipt_cnstcnts23.label);
-
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[3]/chk", "N");
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[3]/symp1", cmb_cnstcnts6.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[3]/symp2", cmb_cnstcnts7.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[3]/symp3", ipt_cnstcnts24.label);
-
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[4]/chk", "N");
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[4]/symp1", cmb_cnstcnts8.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[4]/symp2", cmb_cnstcnts9.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[4]/symp3", ipt_cnstcnts25.label);
-
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[5]/chk", "N");
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[5]/symp1", cmb_cnstcnts10.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[5]/symp2", cmb_cnstcnts11.label);
- model.makeValue("/root/temp/tempsymp/symplist/sympinfo[5]/symp3", ipt_cnstcnts26.label);
-
- model.makeValue("/root/temp/tempsymp/symp", model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/symp"));
-
- if (model.getValue("/root/temp/adrflag/adr/newflag") == "Y") {
- modal("SPADC62901",0,100,150,"SPADC62901","/root/temp/tempsymp","/root/hidden/tempsymp");
- } else {
- modal("SPADC62900",0,100,150,"SPADC62900","/root/temp/tempsymp","/root/hidden/tempsymp");
- }
-
- //팝어창에서 정상적으로 확인을 하였을 경우만 set 한다.(닫기 버튼 눌렀을 경우 제외)
- if(model.getValue("/root/temp/returnsymp/cnfmyn") == "Y"){
- if(model.getValue("/root/temp/returnsymp/symp") == "") {
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/symp", "");
- model.makeValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/sympcnts", "");
- model.makeValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/sympno", "");
- } else {
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/symp", model.getValue("/root/temp/returnsymp/symp") + "^" + model.getValue("/root/temp/returnsymp/sympcnts"));
- model.makeValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/sympcnts", model.getValue("/root/temp/returnsymp/sympcnts"));
- model.makeValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/sympno", model.getValue("/root/temp/returnsymp/symp") );
- }
- grd_druginfo.addStatus(grd_druginfo.row, "update");
-
- fChkSymp();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_druginfo.col== grd_druginfo.colRef("casrslt")){
- if(model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt") == "0"
- || model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt") == "1"
- || model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt") == "2"
- || model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt") == "3" ) {
- messageBox("Naranjo Algorithm의 인과관계는 선택하실 수 없습니다.", "E999", "");
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/casrslt", model.getValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/bfcasrslt"));
- model.refresh();
- }
-
- } else if(grd_druginfo.col== grd_druginfo.colRef("serigrde")) {
- if(grd_druginfo.row == 1) {
- model.setValue("/root/main/baseinfo/adrinfo/serigrde", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/serigrde"));
- }
- } else if(grd_druginfo.col== grd_druginfo.colRef("sympmnftgrde")) {
- if(grd_druginfo.row == 1) {
- model.setValue("/root/main/baseinfo/adrinfo/sympmnftgrde", model.getValue("/root/main/baseinfo/druginfo[" + grd_druginfo.row + "]/sympmnftgrde"));
- }
-
- } else if (grd_druginfo.col== grd_druginfo.colRef("drugnm")){
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/drugcd", "unKnown");
- model.setValue("/root/main/baseinfo/druginfo["+ grd_druginfo.row +"]/comflag", "-");
- }
-
- ]]>
- </script>
- </datagrid>
- <textarea id="tar_advscnts" ref="/root/main/baseinfo/adrinfo/advscnts" navindex="40" style="left:83px; top:564px; width:462px; height:48px; "/>
- <button id="button1" class="btn2_letter3" style="left:951px; top:107px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_prcpinfo.rowStatus(grd_prcpinfo.row) == 1 || grd_prcpinfo.rowStatus(grd_prcpinfo.row) == 3){
- grd_prcpinfo.deleteRow(grd_prcpinfo.row);
- }else{
- grd_prcpinfo.addStatus(grd_prcpinfo.row,"delete");
- //grd_druginfo.rowHidden( grd_druginfo.row )=true;
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter6" style="left:1105px; top:107px; width:86px; height:19px; ">
- <caption>약품실시이력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //open("SMADB10100",0,0,0,"SMADB10100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
- open("SMADC20100",0,0,0,"SMADC20100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
- ]]>
- </script>
- </button>
- <datagrid id="grd_medirec" nodeset="/root/main/medirecinfo/row" class="datagrid2" visibility="hidden" caption="입원
/외래^약품코드^처방명^용법^진료/입원일^실시일자^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; ">
- <col ref="ioflagnm" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="drugmthdspccd"/>
- <col ref="orddd"/>
- <col ref="exectm"/>
- <col ref="ioflag"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fCnfm();
- ]]>
- </script>
- </datagrid>
- <group id="group5" visibility="hidden" style="left:425px; top:0px; width:345px; height:330px; ">
- <button id="btn_addpic" class="btn2_letter3" navindex="20" visibility="hidden" style="left:227px; top:55px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_prtnimg.addRow(true);
- ]]>
- </script>
- </button>
- <button id="btn_delpic" class="btn2_letter3" navindex="20" visibility="hidden" style="left:282px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_prtnimg.deleteRow(grd_prtnimg.row);
- ]]>
- </script>
- </button>
- <line id="line14" class="line_1" style="x1:10px; y1:75px; x2:335px; y2:75px; "/>
- <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>
- <button id="btn_cls" class="btn4_letter2" style="left:280px; top:298px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- group5.visible = false;
- ]]>
- </script>
- </button>
- <button id="button16" class="btn6_letter5" style="left:129px; top:298px; width:92px; height:22px; ">
- <caption>평가서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sPrtnColNm = "";
- var sColnm = "";
- var sPrtnDispNm = 1;
- var iDrugRowNo = 1;
- var ikoralgo = 1;
- var aKoralgo = "";
- var ilapSeq = 1;
- var sTemp = "";
-
- //-------------------------------------------
- //Lap 결과 조회.
- for(iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/lapinfo") ; iNo++) {
- model.setValue("/root/main/baseinfo/lapinfo["+ iNo +"]/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- if(model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/chk") == "Y") {
- grd_laplist.addStatus(iNo, "insert");
- } else {
- grd_laplist.addStatus(iNo, "update");
- }
- }
- model.makeNode("/root/temp/laplist");
- model.makeValue("/root/send/laprslt", grd_laplist.getUpdateData("insert"));
- submit("TRADC00606");
- //-------------------------------------------
-
- fGetDrugExecInfo();
- model.refresh();
-
- model.removenode("/root/temp/valuprintinfo");
- model.makeValue("/root/temp/valuprintinfo/usernm", getUserName());
- model.makeValue("/root/temp/valuprintinfo/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- model.makeValue("/root/temp/valuprintinfo/agesex", model.getValue("/root/main/baseinfo/patinfolist/sna"));
- model.makeValue("/root/temp/valuprintinfo/pathngnm", model.getValue("/root/main/baseinfo/patinfolist/hngnm"));
- model.makeValue("/root/temp/valuprintinfo/advscnts", model.getValue("/root/main/baseinfo/adrinfo/advscnts")); //history
- model.makeValue("/root/temp/valuprintinfo/fstrgstrnm", model.getValue("/root/main/baseinfo/patinfolist/fstrgstrnm"));
- model.makeValue("/root/temp/valuprintinfo/reqdrnm", model.getValue("/root/init/reqdrnm"));
- model.makeValue("/root/temp/valuprintinfo/whoalgocmt", "<" + model.getValue("/root/init/whoalgocmt") + ">");
- model.makeValue("/root/temp/valuprintinfo/koralgocmt", "<" + model.getValue("/root/init/koralgocmt") + ">");
-
- model.makeValue("/root/temp/valuprintinfo/fstvalunm", model.getValue("/root/main/baseinfo/patinfolist/fstvalunm"));
-
- sTemp = model.getValue("/root/main/baseinfo/patinfolist/fstvaludd");
- if(sTemp != "") {
- sTemp = sTemp.substr(0, 4) + "-" + sTemp.substr(4, 2) + "-" + sTemp.substr(6, 2);
- } else {
- sTemp = "";
- }
- model.makeValue("/root/temp/valuprintinfo/fstvaludd", sTemp);
-
- sTemp = model.getValue("/root/main/baseinfo/patinfolist/fstvalutm");
- if(sTemp != "") {
- sTemp = sTemp.substr(0, 2) + ":" + sTemp.substr(2, 2);
- } else {
- sTemp = "";
- }
- model.makeValue("/root/temp/valuprintinfo/fstvalutm", sTemp);
-
-
- //문헌조사결과
- fSetPrtnDiv(model.getValue("/root/main/baseinfo/adrinfo/srchcnts"), "/root/temp/valuprintinfo/srchcnts/srchcntsinfo");
-
- //의견
- fSetPrtnDiv(model.getValue("/root/main/baseinfo/adrinfo/cmt"), "/root/temp/valuprintinfo/cmt/cmtinfo");
-
- //복용내역
- model.makeNode("/root/temp/valuprintinfo/durgexeclist");
- model.copyNode("/root/temp/valuprintinfo/durgexeclist", "/root/main/medirecinfo");
- sPrtnColNm = model.getValue("/root/main/medirecinfo/header/caption");
- sColnm = sPrtnColNm.split("^");
- for(var ArrNo = 0; ArrNo < sColnm.length ; ArrNo++) {
- if(ArrNo != 0 && ArrNo != 1 && ArrNo != 3 && ArrNo != 4 && ArrNo != 5 && ArrNo != 6) {
- model.makeValue("/root/temp/valuprintinfo/"+ "col" + sPrtnDispNm, sColnm[ ArrNo]);
- sPrtnDispNm++;
- }
- }
- model.makeValue("/root/temp/valuprintinfo/colcount", (sColnm.length)-6); //컬럼갯수
-
- //이미지 정보
- if(model.getValue("/root/main/prtnimglist/prtnimginfo/img") != "") {
- model.makeValue("/root/temp/valuprintinfo/picviewyn", "Y"); //이미지 섹션 표시여부
- } else{
- model.makeValue("/root/temp/valuprintinfo/picviewyn", "N"); //이미지 섹션 표시여부
- }
- model.makeNode("/root/temp/valuprintinfo/prtnimglist");
- model.copyNode("/root/temp/valuprintinfo/prtnimglist", "/root/main/prtnimglist");
-
- //의심약물 & 한국형알고리즘.
- for(var iRowNo = 1 ; iRowNo <= getNodesetCount("/root/main/baseinfo/druginfo") ; iRowNo++) {
- if((model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/casrslt") != "") && (model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/casrslt") > "3")) {
- model.makeValue("/root/temp/valuprintinfo/druglist/druginfo["+ iDrugRowNo +"]/drugnm", model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/drugnm"));
- model.makeValue("/root/temp/valuprintinfo/druglist/druginfo["+ iDrugRowNo +"]/casrslt", model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/casrslt"));
- iDrugRowNo++;
- }
-
- if(model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/koralgo") != "") {
- model.makeValue("/root/temp/valuprintinfo/koralgolist/koralgoinfo["+ ikoralgo +"]/drugnm", model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/drugnm"));
- model.makeValue("/root/temp/valuprintinfo/koralgolist/koralgoinfo["+ ikoralgo +"]/totscr", model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/totscr"));
- aKoralgo = (model.getValue("/root/main/baseinfo/druginfo["+ iRowNo +"]/koralgo")).split("^");
-
- for(iNo = 1 ; iNo < aKoralgo.length ; iNo++) {
- model.makeValue("/root/temp/valuprintinfo/koralgolist/koralgoinfo["+ ikoralgo +"]/ans" + iNo, aKoralgo[iNo]);
- }
-
- ikoralgo++;
- }
- }
-
- //lap결과
- for(iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/lapinfo") ; iNo++) {
-
- if(model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/chk") == "Y") {
-
- ilapSeq = 1;
- for(iRowNo = 1 ; iRowNo <= getNodesetCount("/root/temp/laplist/lapinfo") ; iRowNo++) {
- if(model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/testcd") == model.getValue("/root/temp/laplist/lapinfo["+ iRowNo +"]/testcd")) {
- model.makeNode("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo + "/lapinfo[" + ilapSeq + "]");
- model.copyNode("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo + "/lapinfo[" + ilapSeq + "]", "/root/temp/laplist/lapinfo["+ iRowNo +"]");
- model.makeValue("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo + "/lapinfo[" + ilapSeq + "]/testnm", model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/testnm"));
- //model.makeValue("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo + "/lapinfo[" + ilapSeq + "]/cmt", model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/cmt"));
- ilapSeq++;
- }
- }
-
- }
-
- model.makeValue("/root/temp/valuprintinfo/laprslt" + iNo, model.getValue("/root/temp/valuprintinfo/laplist/laprsltlist" + iNo +"/lapinfo/reptrslt"));
- }
-
- exeReportPreview("RPADC00603", "XMLSTR", "", "", "false","","","","","false");
-
- ]]>
- </script>
- </button>
- <input id="input6" ref="/root/init/reqdrnm" style="left:10px; top:30px; width:250px; height:19px; "/>
- <line id="line15" class="line_1" style="x1:10px; y1:25px; x2:335px; y2:25px; "/>
- <caption id="caption45" class="tit_2" style="left:10px; top:10px; width:115px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검토 의사</caption>
- <line id="line16" class="line_1" style="x1:10px; y1:215px; x2:335px; y2:215px; "/>
- <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>
- <input id="input7" ref="/root/init/whoalgocmt" style="left:20px; top:220px; width:305px; height:19px; "/>
- <input id="input8" ref="/root/init/koralgocmt" style="left:20px; top:270px; width:305px; height:19px; "/>
- <line id="line20" class="line_1" style="x1:10px; y1:265px; x2:335px; y2:265px; "/>
- <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>
- <caption id="caption48" style="left:10px; top:220px; width:20px; height:20px; font-weight:bold; ">
- <![CDATA[<]]>
- </caption>
- <caption id="caption49" style="left:10px; top:270px; width:20px; height:20px; font-weight:bold; ">
- <![CDATA[<]]>
- </caption>
- <caption id="caption50" style="left:325px; top:220px; width:15px; height:20px; font-weight:bold; ">
- <![CDATA[>]]>
- </caption>
- <caption id="caption51" style="left:325px; top:270px; width:15px; height:20px; font-weight:bold; ">
- <![CDATA[>]]>
- </caption>
- <caption id="caption52" style="left:265px; top:30px; width:70px; height:20px; ">선생님 귀하</caption>
- <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; ">
- <col ref="img" type="inputbutton"/>
- <col ref="cmt" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var file = window.fileDialog("open","",true,"","jpg","이미지 파일|*.bmp;*.jpg;*.gif|Jpeg Files(*.jpg)|*.jpg|Bitmap Files(*.bmp)|*.bmp|TIFF Files(*.tif)|*.tif|All Files (*.*)|*.*|");
- if (file != "") {
- PreView.LoadImage(file);
- PreView.SetViewMode("0"); // 0 : 원본사이즈
- var strBase64 = PreView.SaveImageBase64();
-
- model.setValue("/root/main/prtnimglist/prtnimginfo["+ grd_prtnimg.row +"]/img", strBase64);
- }
- ]]>
- </script>
- </datagrid>
- <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; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="testnm"/>
- <col ref="srchfromdd" type="inputdate"/>
- <col ref="srchdd" type="inputdate"/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="rgstseqno" visibility="hidden"/>
- </datagrid>
- <button id="button17" class="btn4_letter2" style="left:223px; top:298px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iCnt = 0;
-
- if(model.getValue("/root/main/baseinfo/adrinfo/rgstseqno") != "") {
- for(iNo = 1 ; iNo <= getNodesetCount("/root/main/baseinfo/lapinfo") ; iNo++) {
- model.setValue("/root/main/baseinfo/lapinfo["+ iNo +"]/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- model.setValue("/root/main/baseinfo/lapinfo["+ iNo +"]/rgstseqno", model.getValue("/root/main/baseinfo/adrinfo/rgstseqno"));
- if(model.getValue("/root/main/baseinfo/lapinfo["+ iNo +"]/chk") == "Y") {
- grd_laplist.addStatus(iNo, "insert");
- iCnt++;
- } else {
- grd_laplist.addStatus(iNo, "update");
- }
- }
-
- //삭제
- if(iCnt == 0) {
- model.setValue("/root/main/baseinfo/lapinfo["+ 1 +"]/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- model.setValue("/root/main/baseinfo/lapinfo["+ 1 +"]/rgstseqno", model.getValue("/root/main/baseinfo/adrinfo/rgstseqno"));
- model.setValue("/root/main/baseinfo/lapinfo["+ 1 +"]/testcd", "");
- grd_laplist.addStatus(1, "insert");
- }
-
- model.makeNode("/root/temp/laplist");
- model.makeValue("/root/send/laprslt", grd_laplist.getUpdateData("insert"));
- submit("TXADC00602");
- }
- ]]>
- </script>
- </button>
- </group>
- <object id="PreView" clsid="{72e5d9ed-0d6a-46e8-aead-23144bfef878}" style="left:45px; top:185px; width:65px; height:65px; "/>
- <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; ">
- <choices>
- <item>
- <label>serious</label>
- <value>S</value>
- </item>
- <item>
- <label>non-serious</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <switch id="switch1" style="left:0px; top:278px; width:1193px; height:162px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1">
- <input id="inp_doubdrug" ref="/root/main/baseinfo/adrinfo/doubdrug" class="input_default" style="left:853px; top:31px; width:100px; height:19px; "/>
- <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; "/>
- <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; ">
- <choices>
- <item>
- <label>유</label>
- <value>Y</value>
- </item>
- <item>
- <label>무</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption10" class="cell_1" style="left:469px; top:5px; width:71px; height:23px; vertical-align:middle; ">흡연</caption>
- <input id="inp_phx" ref="/root/main/baseinfo/adrinfo/phx" class="input_default" navindex="2" style="left:83px; top:6px; width:144px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:0px; top:5px; width:80px; height:23px; vertical-align:middle; ">과거병력</caption>
- <caption id="caption5" class="cell_1" style="left:620px; top:5px; width:71px; height:23px; vertical-align:middle; ">음주</caption>
- <line id="line29" class="line_2" style="x1:0px; y1:28px; x2:1185px; y2:28px; "/>
- <caption id="caption15" class="cell_1" style="left:770px; top:5px; width:80px; height:23px; vertical-align:middle; ">증상발현일</caption>
- <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; ">
- <choices>
- <item>
- <label>유</label>
- <value>Y</value>
- </item>
- <item>
- <label>무</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption6" class="cell_1" style="left:230px; top:5px; width:80px; height:23px; vertical-align:middle; ">가족병력</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:1190px; y2:0px; "/>
- <caption id="caption17" class="cell_1" style="left:985px; top:5px; width:80px; height:23px; vertical-align:middle; ">종료일</caption>
- <input id="inp_fhx" ref="/root/main/baseinfo/adrinfo/fhx" class="input_default" navindex="3" style="left:313px; top:6px; width:153px; height:19px; "/>
- <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; "/>
- <line id="line30" class="line_2" style="x1:0px; y1:53px; x2:1185px; y2:53px; "/>
- <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; ">
- <choices>
- <item>
- <label>경증</label>
- <value>1</value>
- </item>
- <item>
- <label>중등증</label>
- <value>2</value>
- </item>
- <item>
- <label>중증</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption20" class="cell_1" style="left:770px; top:130px; width:165px; height:23px; vertical-align:middle; ">재투여시 유해사례 발현여부</caption>
- <input id="ipt_cnstcnts22" ref="/root/main/baseinfo/sympinfo/cnstcnts22" navindex="15" visibility="hidden" style="left:444px; top:32px; width:322px; height:19px; "/>
- <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; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>X</label>
- <value>X</value>
- </item>
- </choices>
- </select1>
- <caption id="caption43" class="cell_1" style="left:1085px; top:105px; width:40px; height:23px; vertical-align:middle; ">일수</caption>
- <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; ">
- <choices>
- <item>
- <label>없음</label>
- <value>0</value>
- </item>
- <item>
- <label>투약중지</label>
- <value>1</value>
- </item>
- <item>
- <label>약품투여변경(용량변경)</label>
- <value>2</value>
- </item>
- <item>
- <label>약품투여변경(용법/투여경로변경)</label>
- <value>3</value>
- </item>
- <item>
- <label>약품투여변경(약물변경)</label>
- <value>4</value>
- </item>
- <item>
- <label>기타(직접입력)</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <caption id="caption21" class="cell_1" style="left:770px; top:105px; width:110px; height:23px; vertical-align:middle; ">유해사례 진행결과</caption>
- <input id="ipt_cnstcnts23" ref="/root/main/baseinfo/sympinfo/cnstcnts23" navindex="18" visibility="hidden" style="left:444px; top:57px; width:322px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:770px; top:30px; width:80px; height:23px; vertical-align:middle; ">의심약물</caption>
- <input id="ipt_cnstcnts24" ref="/root/main/baseinfo/sympinfo/cnstcnts24" navindex="21" visibility="hidden" style="left:444px; top:82px; width:322px; height:19px; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts2") != ""){
- cmb_cnstcnts3.visible = true;
- }else{
- cmb_cnstcnts3.visible = false;
- }
- model.setValue("/root/main/baseinfo/sympinfo/cnstcnts3", "");
- var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts2");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/codelist/smlcd1", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="cell_1" style="left:770px; top:55px; width:110px; height:23px; vertical-align:middle; ">유해사례 발현정도</caption>
- <input id="ipt_cnstcnts25" ref="/root/main/baseinfo/sympinfo/cnstcnts25" navindex="24" visibility="hidden" style="left:444px; top:107px; width:322px; height:19px; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/codelist/smlcd1">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSmlComboChg("ipt_cnstcnts22");
- ]]>
- </script>
- </select1>
- <input id="ipt_cnstcnts26" ref="/root/main/baseinfo/sympinfo/cnstcnts26" navindex="27" visibility="hidden" style="left:444px; top:132px; width:322px; height:19px; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts4") != ""){
- cmb_cnstcnts5.visible = true;
- }else{
- cmb_cnstcnts5.visible = false;
- }
- model.setValue("/root/main/baseinfo/sympinfo/cnstcnts5", "");
- var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts4");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/codelist/smlcd2", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/codelist/smlcd2">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSmlComboChg("ipt_cnstcnts23");
- ]]>
- </script>
- </select1>
- <line id="line2" class="line_3" style="x1:0px; y1:153px; x2:1185px; y2:153px; "/>
- <input id="input1" ref="/root/main/baseinfo/adrinfo/reqdrugnm" navindex="8" style="left:853px; top:31px; width:327px; height:19px; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts6") != ""){
- cmb_cnstcnts7.visible = true;
- }else{
- cmb_cnstcnts7.visible = false;
- }
- model.setValue("/root/main/baseinfo/sympinfo/cnstcnts7", "");
- var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts6");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/codelist/smlcd3", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>자연회복</label>
- <value>1</value>
- </item>
- <item>
- <label>처치 후 회복(통원)</label>
- <value>2</value>
- </item>
- <item>
- <label>처치 후 회복(입원)</label>
- <value>3</value>
- </item>
- <item>
- <label>처치 후 회복(입원연장)</label>
- <value>4</value>
- </item>
- <item>
- <label>회복되지 않음(중대한 불구)</label>
- <value>5</value>
- </item>
- <item>
- <label>회복되지 않음(선천적 기형)</label>
- <value>6</value>
- </item>
- <item>
- <label>회복되지 않음(생명위험)</label>
- <value>7</value>
- </item>
- <item>
- <label>회복되지 않음(사망)</label>
- <value>8</value>
- </item>
- </choices>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/codelist/smlcd3">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSmlComboChg("ipt_cnstcnts24");
- ]]>
- </script>
- </select1>
- <caption id="caption27" class="cell_1" style="left:0px; top:30px; width:80px; height:123px; vertical-align:middle; ">유해증상</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts8") != ""){
- cmb_cnstcnts9.visible = true;
- }else{
- cmb_cnstcnts9.visible = false;
- }
- model.setValue("/root/main/baseinfo/sympinfo/cnstcnts9", "");
- var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts8");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/codelist/smlcd4", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption18" class="cell_1" style="left:770px; top:80px; width:110px; height:23px; vertical-align:middle; ">조치내용</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/codelist/smlcd4">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSmlComboChg("ipt_cnstcnts25");
- ]]>
- </script>
- </select1>
- <input id="input5" ref="/root/main/baseinfo/adrinfo/ilsu" format="999" style="left:1128px; top:107px; width:52px; height:19px; text-align:center; "/>
- <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; ">
- <choices>
- <itemset nodeset="/root/temp/srchgrupid/initgrupid/P030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/sympinfo/cnstcnts10") != ""){
- cmb_cnstcnts11.visible = true;
- }else{
- cmb_cnstcnts11.visible = false;
- }
- model.setValue("/root/main/baseinfo/sympinfo/cnstcnts11", "");
- var iname = model.getValue("/root/main/baseinfo/sympinfo/cnstcnts10");
- var icode = model.getValue("/root/temp/srchgrupid/initgrupid/P030[cdid='" + iname + "']/cmt");
- if (icode != ""){
- model.removeNodeset("/root/init/baseinfo/initcnst");
- model.makeNode("/root/init/baseinfo/initcnst");
- zbcfGetCodeList( new Array(icode), new Array("/root/init/baseinfo/initcnst") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/codelist/smlcd5", "/root/init/baseinfo/initcnst" + "/" + icode, "replace", model, model);
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <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; ">
- <choices>
- <itemset nodeset="/root/init/codelist/smlcd5">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSmlComboChg("ipt_cnstcnts26");
- ]]>
- </script>
- </select1>
- <line id="line31" class="line_2" style="x1:0px; y1:78px; x2:1185px; y2:78px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:103px; x2:1185px; y2:103px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:128px; x2:1185px; y2:128px; "/>
- </case>
- <case id="case2" selected="true" style="left:0px; top:0px; width:1191px; height:475px; ">
- <input id="input17" ref="/root/main/baseinfo/adrinfo/doubdrug" class="input_default" style="left:764px; top:98px; width:57px; height:19px; "/>
- <input id="input26" ref="/root/main/baseinfo/adrinfo/doubdrug5" class="input_default" style="left:763px; top:138px; width:57px; height:19px; "/>
- <input id="input28" ref="/root/main/baseinfo/adrinfo/doubdrug3" class="input_default" style="left:763px; top:118px; width:57px; height:19px; "/>
- <input id="input24" ref="/root/main/baseinfo/adrinfo/doubdrug4" class="input_default" style="left:1003px; top:118px; width:57px; height:19px; "/>
- <input id="input22" ref="/root/main/baseinfo/adrinfo/doubdrug2" class="input_default" style="left:1003px; top:98px; width:57px; height:19px; "/>
- <input id="input20" ref="/root/main/baseinfo/adrinfo/reqdrugnm" navindex="8" style="left:763px; top:98px; width:180px; height:19px; "/>
- <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; ">
- <choices>
- <item>
- <label>빈혈</label>
- <value>51</value>
- </item>
- <item>
- <label>혈소판감소</label>
- <value>52</value>
- </item>
- <item>
- <label>백혈구감소</label>
- <value>53</value>
- </item>
- <item>
- <label>호산구증가</label>
- <value>54</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>천명</label>
- <value>22</value>
- </item>
- <item>
- <label>호흡곤란</label>
- <value>21</value>
- </item>
- <item>
- <label>기침</label>
- <value>23</value>
- </item>
- <item>
- <label>재채기</label>
- <value>25</value>
- </item>
- <item>
- <label>콧물</label>
- <value>24</value>
- </item>
- <item>
- <label>객담증가</label>
- <value>27</value>
- </item>
- <item>
- <label>코막힘</label>
- <value>26</value>
- </item>
- <item>
- <label>쉰목소리</label>
- <value>28</value>
- </item>
- </choices>
- </select>
- <caption id="caption53" class="cell_1" style="left:5px; top:4px; width:58px; height:42px; ">피부병변</caption>
- <caption id="caption54" class="cell_1" style="left:893px; top:48px; width:58px; height:45px; "/>
- <caption id="caption55" class="cell_1" style="left:324px; top:4px; width:58px; height:42px; ">소화기계</caption>
- <caption id="caption56" class="cell_1" style="left:645px; top:4px; width:58px; height:42px; ">심혈관계</caption>
- <caption id="caption57" class="cell_1" style="left:5px; top:48px; width:58px; height:45px; ">전신증상</caption>
- <caption id="caption58" class="cell_1" style="left:645px; top:48px; width:58px; height:45px; ">호흡기계</caption>
- <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; ">
- <choices>
- <item>
- <label>성욕감퇴</label>
- <value>A1</value>
- </item>
- <item>
- <label>성기능장애</label>
- <value>A2</value>
- </item>
- <item>
- <label>청력장애</label>
- <value>A3</value>
- </item>
- <item>
- <label>이명</label>
- <value>A4</value>
- </item>
- <item>
- <label>시력장애</label>
- <value>A5</value>
- </item>
- </choices>
- </select>
- <textarea id="textarea1" ref="/root/main/baseinfo/sympinfo/cnstcnts23" disabled="false" style="left:954px; top:77px; width:198px; height:20px; "/>
- <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; ">
- <choices>
- <item>
- <label>발진:(</label>
- <value>11</value>
- </item>
- <item>
- <label>전신</label>
- <value>1A</value>
- </item>
- <item>
- <label>국소)</label>
- <value>1B</value>
- </item>
- <item>
- <label>농포</label>
- <value>14</value>
- </item>
- <item>
- <label>가려움:(</label>
- <value>13</value>
- </item>
- <item>
- <label>전신</label>
- <value>1C</value>
- </item>
- <item>
- <label>국소)</label>
- <value>1D</value>
- </item>
- <item>
- <label>수포</label>
- <value>16</value>
- </item>
- <item>
- <label>두드러기</label>
- <value>12</value>
- </item>
- <item>
- <label>혈관부종</label>
- <value>15</value>
- </item>
- <item>
- <label>과색소침착</label>
- <value>17</value>
- </item>
- <item>
- <label>탈모</label>
- <value>18</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>저혈압</label>
- <value>41</value>
- </item>
- <item>
- <label>쇽</label>
- <value>43</value>
- </item>
- <item>
- <label>부정맥</label>
- <value>42</value>
- </item>
- <item>
- <label>빈맥</label>
- <value>44</value>
- </item>
- <item>
- <label>서맥</label>
- <value>45</value>
- </item>
- <item>
- <label>실신</label>
- <value>46</value>
- </item>
- <item>
- <label>가슴통증</label>
- <value>47</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>설사</label>
- <value>31</value>
- </item>
- <item>
- <label>오심(메시꺼움)</label>
- <value>33</value>
- </item>
- <item>
- <label>복통</label>
- <value>32</value>
- </item>
- <item>
- <label>소화불량</label>
- <value>36</value>
- </item>
- <item>
- <label>구토</label>
- <value>35</value>
- </item>
- <item>
- <label>간기능이상</label>
- <value>34</value>
- </item>
- <item>
- <label>변비</label>
- <value>39</value>
- </item>
- <item>
- <label>혈변</label>
- <value>38</value>
- </item>
- <item>
- <label>황달</label>
- <value>3A</value>
- </item>
- <item>
- <label>위장관출혈(상부)</label>
- <value>37</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>어지러움</label>
- <value>62</value>
- </item>
- <item>
- <label>발열</label>
- <value>61</value>
- </item>
- <item>
- <label>의식소실</label>
- <value>63</value>
- </item>
- <item>
- <label>관절통</label>
- <value>67</value>
- </item>
- <item>
- <label>체중증가</label>
- <value>64</value>
- </item>
- <item>
- <label>식욕감퇴</label>
- <value>65</value>
- </item>
- <item>
- <label>전신부종</label>
- <value>66</value>
- </item>
- <item>
- <label>근육통</label>
- <value>68</value>
- </item>
- <item>
- <label>림프절병증</label>
- <value>69</value>
- </item>
- <item>
- <label>전신쇠약</label>
- <value>6A</value>
- </item>
- </choices>
- </select>
- <line id="line19" class="line_1" style="x1:0px; y1:0px; x2:1190px; y2:0px; "/>
- <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; "/>
- <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; ">
- <choices>
- <item>
- <label>경증</label>
- <value>1</value>
- </item>
- <item>
- <label>중등증</label>
- <value>2</value>
- </item>
- <item>
- <label>중증</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption60" class="cell_1" style="left:418px; top:137px; width:145px; height:19px; vertical-align:middle; ">재투여시 유해 발현여부</caption>
- <line id="line6" class="line_3" style="x1:0px; y1:159px; x2:1185px; y2:159px; "/>
- <caption id="caption61" class="cell_1" style="left:418px; top:117px; width:40px; height:19px; vertical-align:middle; ">일수</caption>
- <caption id="caption62" class="cell_1" style="left:188px; top:117px; width:58px; height:19px; vertical-align:middle; ">진행결과</caption>
- <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; ">
- <choices>
- <item>
- <label>선택</label>
- <value>A</value>
- </item>
- <item>
- <label>투여중지</label>
- <value>B</value>
- </item>
- <item>
- <label>용량감량</label>
- <value>C</value>
- </item>
- <item>
- <label>용량유지</label>
- <value>D</value>
- </item>
- <item>
- <label>모름</label>
- <value>E</value>
- </item>
- <item>
- <label>해당없음</label>
- <value>F</value>
- </item>
- <item>
- <label>없음(사용불가)</label>
- <value>0</value>
- </item>
- <item>
- <label>투약중지(사용불가)</label>
- <value>1</value>
- </item>
- <item>
- <label>약품투여변경(용량변경)(사용불가)</label>
- <value>2</value>
- </item>
- <item>
- <label>약품투여변경(용법/투여경로변경)(사용불가)</label>
- <value>3</value>
- </item>
- <item>
- <label>약품투여변경(약물변경)(사용불가)</label>
- <value>4</value>
- </item>
- <item>
- <label>기타(직접입력)(사용불가)</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <caption id="caption63" class="cell_1" style="left:705px; top:97px; width:55px; height:60px; vertical-align:middle; ">의심약물</caption>
- <caption id="caption64" class="cell_1" style="left:188px; top:137px; width:58px; height:19px; vertical-align:middle; ">발현정도</caption>
- <caption id="caption65" class="cell_1" style="left:150px; top:97px; width:96px; height:19px; vertical-align:middle; ">증상발현일</caption>
- <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; ">
- <choices>
- <item>
- <label>회복됨</label>
- <value>A</value>
- </item>
- <item>
- <label>회복중</label>
- <value>B</value>
- </item>
- <item>
- <label>회복되지 않음</label>
- <value>C</value>
- </item>
- <item>
- <label>휴유증을 동반한 회복</label>
- <value>D</value>
- </item>
- <item>
- <label>치명적 손상</label>
- <value>E</value>
- </item>
- <item>
- <label>사망</label>
- <value>F</value>
- </item>
- <item>
- <label>모름</label>
- <value>G</value>
- </item>
- <item>
- <label>자연회복(사용불가)</label>
- <value>1</value>
- </item>
- <item>
- <label>처치 후 회복(통원)(사용불가)</label>
- <value>2</value>
- </item>
- <item>
- <label>처치 후 회복(입원)(사용불가)</label>
- <value>3</value>
- </item>
- <item>
- <label>처치 후 회복(입원연장)(사용불가)</label>
- <value>4</value>
- </item>
- <item>
- <label>회복되지 않음(중대한 불구)(사용불가)</label>
- <value>5</value>
- </item>
- <item>
- <label>회복되지 않음(선천적 기형)(사용불가)</label>
- <value>6</value>
- </item>
- <item>
- <label>회복되지 않음(생명위험)(사용불가)</label>
- <value>7</value>
- </item>
- <item>
- <label>회복되지 않음(사망)(사용불가)</label>
- <value>8</value>
- </item>
- </choices>
- </select1>
- <caption id="caption66" class="cell_1" style="left:418px; top:97px; width:82px; height:19px; vertical-align:middle; ">종료일</caption>
- <caption id="caption67" class="cell_1" style="left:503px; top:117px; width:62px; height:19px; vertical-align:middle; ">조치내용</caption>
- <input id="input18" ref="/root/main/baseinfo/adrinfo/ilsu" format="999" style="left:461px; top:118px; width:39px; height:19px; text-align:center; "/>
- <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; "/>
- <input id="input21" ref="/root/main/baseinfo/adrinfo/reqdrugnm2" navindex="8" style="left:1003px; top:98px; width:180px; height:19px; "/>
- <input id="input23" ref="/root/main/baseinfo/adrinfo/reqdrugnm4" navindex="8" style="left:1003px; top:118px; width:180px; height:19px; "/>
- <input id="input25" ref="/root/main/baseinfo/adrinfo/reqdrugnm5" navindex="8" style="left:763px; top:138px; width:180px; height:19px; "/>
- <input id="input27" ref="/root/main/baseinfo/adrinfo/reqdrugnm3" navindex="8" style="left:763px; top:118px; width:180px; height:19px; "/>
- <caption id="caption68" class="cell_1" style="left:944px; top:98px; width:55px; height:40px; vertical-align:middle; ">의심약물</caption>
- <caption id="caption69" class="cell_1" style="left:944px; top:138px; width:55px; height:20px; vertical-align:middle; ">기타약물</caption>
- <input id="input29" ref="/root/main/baseinfo/adrinfo/reqdrugnm6" navindex="8" style="left:1003px; top:138px; width:180px; height:19px; "/>
- <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; ">
- <choices>
- <item>
- <label>섬망</label>
- <value>81</value>
- </item>
- <item>
- <label>불안</label>
- <value>82</value>
- </item>
- <item>
- <label>행동과다</label>
- <value>83</value>
- </item>
- </choices>
- </select>
- <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; ">
- <choices>
- <item>
- <label>의식저하</label>
- <value>71</value>
- </item>
- <item>
- <label>어지러움</label>
- <value>73</value>
- </item>
- <item>
- <label>손발떨림</label>
- <value>75</value>
- </item>
- <item>
- <label>두통</label>
- <value>72</value>
- </item>
- <item>
- <label>손발저림</label>
- <value>76</value>
- </item>
- <item>
- <label>운동이상증</label>
- <value>77</value>
- </item>
- <item>
- <label>보행장애</label>
- <value>78</value>
- </item>
- <item>
- <label>졸림</label>
- <value>74</value>
- </item>
- <item>
- <label>수면장애</label>
- <value>79</value>
- </item>
- <item>
- <label>기억력장애</label>
- <value>7B</value>
- </item>
- <item>
- <label>언어장애</label>
- <value>7A</value>
- </item>
- </choices>
- </select>
- <caption id="caption71" class="cell_1" style="left:324px; top:48px; width:58px; height:45px; ">신경계</caption>
- <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; ">
- <choices>
- <item>
- <label>혈뇨</label>
- <value>91</value>
- </item>
- <item>
- <label>신기능이상</label>
- <value>92</value>
- </item>
- <item>
- <label>신부전</label>
- <value>93</value>
- </item>
- <item>
- <label>배뇨장애</label>
- <value>95</value>
- </item>
- <item>
- <label>당뇨</label>
- <value>94</value>
- </item>
- </choices>
- </select>
- <caption id="caption72" class="cell_1" style="left:993px; top:4px; width:58px; height:42px; ">신장이상</caption>
- <caption id="caption73" class="cell_1" style="left:5px; top:95px; width:58px; height:60px; ">혈액이상</caption>
- <caption id="caption74" class="cell_1" style="left:864px; top:4px; width:58px; height:42px; ">정신증상</caption>
- <caption id="caption59" class="cell_1" style="left:150px; top:117px; width:35px; height:39px; vertical-align:middle; line-spacing:5; ">
- <![CDATA[유해사례]]>
- </caption>
- <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; ">
- <choices>
- <item>
- <label>선택</label>
- <value>U</value>
- </item>
- <item>
- <label>발현</label>
- <value>Y</value>
- </item>
- <item>
- <label>발현안됨</label>
- <value>N</value>
- </item>
- <item>
- <label>재투여하지않음</label>
- <value>X</value>
- </item>
- <item>
- <label>모름</label>
- <value>V</value>
- </item>
- <item>
- <label>해당없음</label>
- <value>Z</value>
- </item>
- </choices>
- </select1>
- <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; ">
- <choices>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- </select>
- <caption id="caption70" style="left:906px; top:54px; width:37px; height:16px; ">기타</caption>
- </case>
- </switch>
- <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; ">
- <choices>
- <item>
- <label>경증</label>
- <value>1</value>
- </item>
- <item>
- <label>중등증</label>
- <value>2</value>
- </item>
- <item>
- <label>중증</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">약물유해반응 보고서작성</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button26" class="btn3_letter7" style="left:0px; top:5px; width:92px; height:22px; ">
- <caption>ADR의뢰서작성</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setParameter("SPADC60900_USEYN", "Y");
- modal("SPADC60900");
- setParameter("SPADC60900_USEYN", "N");
- ]]>
- </script>
- </button>
- <button id="button28" class="btn6_letter5" visibility="hidden" style="left:680px; top:5px; width:92px; height:22px; ">
- <caption>보고서출력</caption>
- </button>
- <button id="button3" class="btn6_letter5" style="left:332px; top:5px; width:92px; height:22px; ">
- <caption>회신서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/adrinfo/statflag") !="Z" ) { // 회신
- messageBox("회신후 회신서를 출력하시기 바랍니다.", "E999", "");
- return;
- }
- //현재발생유해반응 - 주증상
- var cnstcnts="";
- if ( ipt_cnstcnts22.label !="" ) { //첫번째 유해증상
- cnstcnts += ipt_cnstcnts22.label + " " ;
- }else if ( cmb_cnstcnts3.label !="" ) {
- cnstcnts += cmb_cnstcnts3.label + " " ;
- }else{
- cnstcnts += cmb_cnstcnts2.label + " " ;
- }
-
- if ( ipt_cnstcnts23.label !="" ) { //두번째 유해증상
- cnstcnts += ipt_cnstcnts23.label + " " ;
- }else if ( cmb_cnstcnts5.label !="" ) {
- cnstcnts += cmb_cnstcnts5.label + " " ;
- }else{
- cnstcnts += cmb_cnstcnts4.label + " " ;
- }
- if ( ipt_cnstcnts24.label !="" ) { //세번째 유해증상
- cnstcnts += ipt_cnstcnts24.label + " " ;
- }else if ( cmb_cnstcnts7.label !="" ) {
- cnstcnts += cmb_cnstcnts7.label + " " ;
- }else{
- cnstcnts += cmb_cnstcnts6.label + " " ;
- }
- if ( ipt_cnstcnts25.label !="" ) { //네번째 유해증상
- cnstcnts += ipt_cnstcnts25.label + " " ;
- }else if ( cmb_cnstcnts9.label !="" ) {
- cnstcnts += cmb_cnstcnts9.label + " " ;
- }else{
- cnstcnts += cmb_cnstcnts8.label + " " ;
- }
- if ( ipt_cnstcnts26.label !="" ) { //다번째 유해증상
- cnstcnts += ipt_cnstcnts26.label + " " ;
- }else if ( cmb_cnstcnts11.label !="" ) {
- cnstcnts += cmb_cnstcnts11.label + " " ;
- }else{
- cnstcnts += cmb_cnstcnts10.label + " " ;
- }
- //의심약물- 인과관계
- var temp = new Array();
- temp[0]="";
- temp[1]="";
- temp[2]="";
- temp[3]="";
- temp[4]="";
- temp[5]="";
- for(var i = 1 ; i < grd_druginfo.rows;i++) {
- 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) + " ";
- 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) + " ";
- 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) + " ";
- 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) + " ";
-
- if (grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 8 ) temp[4] += grd_druginfo.labelMatrix(i,1) + " ";
- if (grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt")) == 9 ) temp[5] += grd_druginfo.labelMatrix(i,1) + " ";
- }
- model.makeValue("/root/hidden/prntdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/hidden/prntdata/pid", model.getValue("/root/main/baseinfo/patinfolist/pid")); //pid
- model.makeValue("/root/hidden/prntdata/hngnm", model.getValue("/root/main/baseinfo/patinfolist/hngnm")); //성명
- model.makeValue("/root/hidden/prntdata/roomcd", model.getValue("/root/main/baseinfo/patinfolist/roomcd")); //병실
- model.makeValue("/root/hidden/prntdata/sna", model.getValue("/root/main/baseinfo/patinfolist/sna")); //성별/나이
- model.makeValue("/root/hidden/prntdata/chosflag", model.getValue("/root/main/baseinfo/patinfolist/chosflag")); //환자구분
- model.makeValue("/root/hidden/prntdata/cnstdeptnm", model.getValue("/root/main/baseinfo/patinfolist/cnstdeptnm")); //의뢰과
- model.makeValue("/root/hidden/prntdata/cnstdrnm", model.getValue("/root/main/baseinfo/patinfolist/cnstdrnm")); //의뢰자
- model.makeValue("/root/hidden/prntdata/cnstdd", model.getValue("/root/main/baseinfo/patinfolist/cnstdd")); //의뢰일
- model.makeValue("/root/hidden/prntdata/diagengnm", model.getValue("/root/main/baseinfo/diaginfolist["+ 1 + "]/diagengnm")); //진단명
- model.makeValue("/root/hidden/prntdata/cnstcnts", cnstcnts); //주증상
- model.makeValue("/root/hidden/prntdata/adrcntssmm", model.getValue("/root/main/baseinfo/adrinfo/adrcntssmm")); //약물유해반응내용요약
-
- model.makeValue("/root/hidden/prntdata/doubdrugnm", model.getValue("/root/main/baseinfo/adrinfo/doubdrugnm")); //의심약물
- model.makeValue("/root/hidden/prntdata/sympmnftgrde", model.getValue("/root/main/baseinfo/adrinfo/sympmnftgrde")); //증상 발현정도
- model.makeValue("/root/hidden/prntdata/serigrde", model.getValue("/root/main/baseinfo/adrinfo/serigrde")); //심각도
- model.makeValue("/root/hidden/prntdata/casrslt1", temp[3]); //인과관계 Definite
- model.makeValue("/root/hidden/prntdata/casrslt2", temp[2]); //인과관계 Probable
- model.makeValue("/root/hidden/prntdata/casrslt3", temp[1]); //인과관계 Possible
- model.makeValue("/root/hidden/prntdata/casrslt4", temp[0]); //인과관계 Default
- model.makeValue("/root/hidden/prntdata/casrslt5", temp[4]); //인과관계
- model.makeValue("/root/hidden/prntdata/casrslt6", temp[5]); //인과관계
-
- for(var i = 1 ; i < grd_druginfo.rows;i++) {
- model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/doubdrugnm", grd_druginfo.labelMatrix(i, grd_druginfo.colRef("drugnm"))); //의심약물
- model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/sympmnftgrde", grd_druginfo.valueMatrix(i, grd_druginfo.colRef("sympmnftgrde"))); //증상 발현정도
- model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/serigrde", grd_druginfo.valueMatrix(i, grd_druginfo.colRef("serigrde"))); //심각도
- model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/symp", grd_druginfo.labelMatrix(i, grd_druginfo.colRef("sympcnts"))); //유해증상
- model.makeValue("/root/hidden/prntdata/druginfo["+ i +"]/casrslt", grd_druginfo.valueMatrix(i, grd_druginfo.colRef("casrslt"))); //인과관계 Definite
-
- }
-
- //model.setValue("/root/hidden/prntdata/srchcnts", model.getValue("/root/main/baseinfo/adrinfo/srchcnts")); //문헌검색내용
- fSetPrtnDiv(model.getValue("/root/main/baseinfo/adrinfo/srchcnts"), "/root/hidden/prntdata/srchcntslist/srchcntslistinfo"); //문헌검색내용
-
- model.makeValue("/root/hidden/prntdata/rfadc00601", model.getValue("/root/main/baseinfo/patinfolist/rfadc00601")); //약물 유해반응 모니터링팀(TEL...)
-
- // exeReportPreview("RFADC00601", "XML", "/root/hidden","","true");
- exeReportPreview("RFADC00601", "XMLSTR", "", "", "false","","","","","false");
- model.removeNodeset("/root/hidden/prntdata/druginfo");
- ]]>
- </script>
- </button>
- <button id="btn_repl" class="btn4_letter2" style="left:1072px; top:5px; width:56px; height:22px; ">
- <caption>회신</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sTemp = "";
-
- var sCPTitle = "";
- var sCPDruginfo = "";
- var sCPadrcntssmm = "";
- var sCPsrchcnts = "";
-
- model.makeValue("/root/main/baseinfo/patinfolist/fstvaluyn", "N");
-
- //회신전 저장함.
- if(!(fExeSave()) || (model.getValue("/root/send/searchitem/rgstseqno") == "")) {
- messageBox("회신 내용이 저장되지 않아 회신할 수 없습니다.","E999");
- submit("TRADC00601");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- model.resetInstanceNode("root/send/data");
- return;
- }
-
- if (datacheck() == false){
- return;
- }
-
- if(submit("TRADC62202")){
- var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
- if(cnststat == "04"){
- messageBox("[취소] 더이상 수정하실 수","I004");
- return ;
- }else if (cnststat == "30"){
- messageBox("[회신확정] 더이상 수정하실 수","I004");
- return;
- }
- }
-
- /*
- var temp = new Array();
- temp[0]=""; // 확실함
- temp[1]=""; // 상당히 확실함
- temp[2]=""; // 가능함
- temp[3]=""; // 가능성 적음
- temp[4]="";
- temp[5]="";
- for(var i = 1 ; i < grd_druginfo.rows;i++) {
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 0 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 7) {
- if(temp[0].length != "") temp[0] += ", ";
- temp[0] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 1 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 6) {
- if(temp[1].length != "") temp[1] += ", ";
- temp[1] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 2 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 5) {
- if(temp[2].length != "") temp[2] += ", ";
- temp[2] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 3 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 4) {
- if(temp[3].length != "") temp[3] += ", ";
- temp[3] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
- }
-
-
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 8 ) {
- if(temp[4].length != "") temp[4] += ", ";
- temp[4] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 9 ) {
- if(temp[5].length != "") temp[5] += ", ";
- temp[5] += grd_druginfo.labelMatrix(i,grd_druginfo.colRef("drugcd"));
- }
- }
- */
-
- //회신내역
- var title = "\n\t\t\t\t약물 유해반응[ADR] 검토 회신서\n" ;
- var cnsttitle = "";
- var Citem1 = "";
- var Citem2 = "";
- var Citem2 = "";
- var Citem = cnsttitle + Citem1 + Citem2;
- var Ritem1 = "\n\n* 약물 유해반응 내용 요약";
- var Ritem2 = "\n" + model.getValue("/root/main/baseinfo/adrinfo/adrcntssmm");
-
- sTemp = "";
- for(var i = 1 ; i < grd_druginfo.rows;i++) {
-
- sTemp += "\n\n* 검토결과" + i;
- sTemp += "\n\n\t1. 의심약물 : " + grd_druginfo.labelMatrix(i, grd_druginfo.colRef("drugnm"));
- sTemp += "\n\n\t2. 유해증상 : " + grd_druginfo.labelMatrix(i, grd_druginfo.colRef("sympcnts"));
- sTemp += "\n\n\t3. 증상 발현정도 : " + grd_druginfo.labelMatrix(i, grd_druginfo.colRef("sympmnftgrde"));
- sTemp += "\n\n\t4. 심각도(seriousness) : " + grd_druginfo.labelMatrix(i, grd_druginfo.colRef("serigrde"));
- sTemp += "\n\n\t5. 인과관계 : " ; //+ grd_druginfo.labelMatrix(i, grd_druginfo.colRef("casrslt"));
-
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 0 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 7) {
- sTemp += "가능성 적음(unlikely)";
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 1 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 6) {
- sTemp += "가능함(possible)";
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 2 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 5) {
- sTemp += "상당히 확실함(probalbe/likely)";
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 3 || grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 4) {
- sTemp += "확실함(Certain)";
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 8 ) {
- sTemp += "평가곤란(conditional/unclassified)";
- }
- if (grd_druginfo.valueMatrix(i,grd_druginfo.colRef("casrslt")) == 9 ) {
- sTemp += "평가불가(unassessible/unclassifiable)";
- }
- }
-
- /*
- var Ritem3 = "\n\n* 검토결과"
- var Ritem4 = "\n\n1. 의심약물 : " + model.getValue("/root/main/baseinfo/adrinfo/doubdrugnm");
- var Ritem5 = "\n\n2. 증상 발현정도 : " + rdo_sympmnftgrde.label;
- var Ritem6 = "\n\n3. 심각도(seriousness) : " + rdo_serious.label;
- var Ritem7 = "\n\n4. 인과관계 : " ;
- var Chek = "[V] ";
- var Sp = " "; // 공백
- for(var spCnt = 0; spCnt <= Chek.length; spCnt++) {Sp += " ";}
- if ( temp[3] !="" ) {
- var Ritem8 = "\n\n\t"+Chek+"확실함(Certain) : " + temp[3];
- }else {
- var Ritem8 = "\n\n\t"+Sp+"확실함(Certain) : " +temp[3];
- }
- if (temp[2] !="" ) {
- var Ritem9 = "\n\n\t"+Chek+"상당히 확실함(probalbe/likely) :" + temp[2];
- }else {
- var Ritem9 = "\n\n\t"+Sp+"상당히 확실함(probalbe/likely) : " + temp[2];
- }
- if (temp[1] !="" ) {
- var Ritem10 = "\n\n\t"+Chek+"가능함(possible) : " + temp[1];
- }else {
- var Ritem10 = "\n\n\t"+Sp+"가능함(possible) : " + temp[1];
- }
- if (temp[0] !="" ) {
- var Ritem11 = "\n\n\t"+Chek+"가능성 적음(unlikely) : " + temp[0];
- }else {
- var Ritem11 = "\n\n\t"+Sp+"가능성 적음(unlikely) : " + temp[0];
- }
-
- if (temp[4] !="" ) {
- var Ritem12 = "\n\n\t"+Chek+"평가곤란(conditional/unclassified) : " + temp[4];
- }else {
- var Ritem12 = "\n\n\t"+Sp+"평가곤란(conditional/unclassified) : " + temp[4];
- }
-
- if (temp[5] !="" ) {
- var Ritem13 = "\n\n\t"+Chek+"평가불가(unassessible/unclassifiable) : " + temp[5];
- }else {
- var Ritem13 = "\n\n\t"+Sp+"평가불가(unassessible/unclassifiable) : " + temp[5];
- }
- */
-
- //var Ritem12 = "\n\n\t"+Sp+"평가곤란(conditional/unclassified) : ";
- //var Ritem13 = "\n\n\t"+Sp+"평가불가(unassessible/unclassifiable) : ";
-
- var Ritem14 = "\n\n\n* 문헌검색 내용 "
- var Ritem15 = "\n\n" + model.getValue("/root/main/baseinfo/adrinfo/srchcnts");
-
- //var Ritem = Ritem1 + Ritem2 + Ritem3 + Ritem4 + Ritem5 + Ritem6 + Ritem7 + Ritem8 + Ritem9 + Ritem10 + Ritem11 + Ritem12+ Ritem13 + Ritem14+ Ritem15;
- var Ritem = Ritem1 + Ritem2 + sTemp + Ritem14+ Ritem15;
- var replcnts = title + Citem + Ritem;
-
- //CarePlan 저장.
- sCPTitle = title + Citem;
- sCPDruginfo = sTemp;
- sCPadrcntssmm = Ritem1 + Ritem2;
- sCPsrchcnts = Ritem14+ Ritem15;
-
- // 회신내역 서식 팝업 - SPADC62200 - 2008/09/04 김귀남
- var sel = fSendReplForm(replcnts);
- if(sel == "cfm"){
- //저장
- model.makeNode("/root/main/baseinfo/adrinfo/replid");
- model.setValue("/root/temp/popupdata/repltype","adr");
- modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
- var replid = model.getValue("/root/main/baseinfo/adrinfo/replid");
- if(replid != ""){
- // if ( model.getValue("/root/hidden/ret/saverslt") == 'Y' ) {
- model.copyNode("/root/send/data/patinfolist", "/root/main/baseinfo/patinfolist");
- model.makeValue("/root/send/data/patinfolist/rgstseqno", model.getValue("/root/send/searchitem/rgstseqno"));
- model.makeValue("/root/send/data/patinfolist/cnstseqno", model.getValue("/root/temp/cnstinfo/cnstseqno"));
- // 20110124_laboru_경북대병원_과거유해반응 원인약물 저장 되게 수정
- model.setValue("/root/main/baseinfo/adrinfo/pastadvsdrug", model.getValue("/root/main/baseinfo/adrinfo/pastreqdrugnm"));
- model.copyNode("/root/send/data/adrinfo", "/root/main/baseinfo/adrinfo");
- model.setValue("/root/send/data/sympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/sympinfo" )));
- model.setValue("/root/send/data/oldsympinfo", getNodeListCSV (model.instances(0).selectNodes( "/root/main/baseinfo/oldsympinfo" )));
- var update = getGridUpdateData(grd_prcpinfo);
- model.setValue("/root/send/data/hdruginfo", update);
-
- for(var iNo = 1 ; iNo<= getNodesetCount("/root/main/baseinfo/druginfo") ; iNo++) {
- grd_druginfo.addStatus(iNo, "insert");
- }
- var update = grd_druginfo.getUpdateData("insert");
- model.setValue("/root/send/data/druginfo", update);
- grd_druginfo.clearStatus();
-
- model.makeValue("/root/send/data/adrinfo/formrecseq", model.getValue("/root/send/searchitem/formrecseq"));
- model.makeValue("/root/send/data/adrinfo/statflag", "Z"); //회신
- model.makeValue("/root/send/data/adrinfo/cnststat", "22"); //회신
-
- model.makeNode("/root/send/data/adrinfo/replcnts"); // 회신내역 노드생성
- model.setValue("/root/send/data/adrinfo/replcnts", replcnts); // 회신내역 변수설정
-
- model.makeValue("/root/send/data/adrinfo/cptitle", sCPTitle); // CarePlan타이틀
- model.makeValue("/root/send/data/adrinfo/cpadrcntssmm", sCPadrcntssmm); // CarePlan유해반응내용
- model.makeValue("/root/send/data/adrinfo/cpdruginfo", sCPDruginfo); // CarePlan의심약물
- model.makeValue("/root/send/data/adrinfo/cpsrchcnts", sCPsrchcnts); // CarePlan문헌검색내용
- model.makeValue("/root/send/data/adrinfo/jciyn", model.getValue("/root/init/cmblist/jciyn/JCI1[2]/cdid")); // CarePlan전송여부 Y:전송
-
- // model.makeValue("/root/send/data/adrinfo/repluserid", replid); //adchcnstinfo / mmrhcnstinfo 회신자 처리
- model.makeValue("/root/send/data/patinfolist/repluserid", replid); //adchcnstinfo / mmrhcnstinfo 회신자 처리
-
-
- var success = submit("TXADC00601");
-
- if (success) {
- model.setValue("/root/main/baseinfo/adrinfo/statflag","Z"); // 회신상태
-
- if ( model.getValue("/root/send/searchitem/rgstseqno") == "" ) {
- model.setValue("/root/send/searchitem/rgstseqno", model.getValue("/root/hidden/return/ret/rgstseqno"));
- }
- model.makeValue("/root/hidden/ret/saverslt", 'Y');
- submit("TRADC00601");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- }else{
- model.makeValue("/root/hidden/ret/saverslt", 'N');
- }
- // }
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_save2" class="btn4_letter2" style="left:1007px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grp_savebtn.visible) {
- grp_savebtn.visible = false;
- } else {
- grp_savebtn.visible = true;
- }
- //grp_savebtn.refresh();
- ]]>
- </script>
- </button>
- <button id="button25" class="btn3_letter6" style="left:119px; top:5px; width:104px; height:22px; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMAER00800 ","","","","","/root/main/baseinfo/patinfolist/pid","/root/send/data/singdata/srchpid");
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:1136px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(messageBox("보고서 내용이 삭제 됩니다.", "Q003") != "6") {
- return;
- }
-
- model.makeValue("/root/main/baseinfo/adrinfo/m", "D"); //삭제flag
- model.makeValue("/root/main/baseinfo/adrinfo/cnstseqno", model.getValue("/root/main/baseinfo/adrinfo2/cnstseqno"));
- model.makeValue("/root/main/baseinfo/adrinfo/formrecseq", model.getValue("/root/main/baseinfo/adrinfo2/formrecseq"));
- model.copyNode("/root/send/data/adrinfo", "/root/main/baseinfo/adrinfo");
- model.copyNode("/root/send/data/patinfolist", "/root/main/baseinfo/patinfolist");
-
- // 20110124_laboru_경북대병원_과거유해반응 원인약물 저장 되게 수정
- //model.setValue("/root/main/baseinfo/adrinfo/pastadvsdrug", model.getValue("/root/main/baseinfo/adrinfo/pastreqdrugnm"));
-
- var success = submit("TXADC00601");
-
- if (success) {
- model.setValue("/root/send/searchitem/rgstseqno", "");
- submit("TRADC00601");
- fBtnDisabled(); //회신상태에 따라 버튼 활성화 처리
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter6" style="left:225px; top:5px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMMRI00400_param_pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- //modal("SMMRI00400", 0,100,100,"SMMRI00400","","");
- open("SMMRI00400", 0,100,100,"SMMRI00400","","");
- ]]>
- </script>
- </button>
- <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:945px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/baseinfo/sympinfo");
- model.removeNodeset("/root/main/baseinfo/oldsympinfo");
- model.setValue("/root/send/searchitem/pid", pidInput.value);
- submit("TRADC00601");
- ]]>
- </script>
- </button>
- <button id="button9" class="btn6_letter9" style="left:426px; top:5px; width:140px; height:22px; ">
- <caption>이상반응검토평가서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group5.visible = true;
- ]]>
- </script>
- </button>
- </group>
- <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; ">
- <caption>유해사례보고서출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/searchitem/instcd", getUserInfo("dutplceinstcd"));
- exeReportPreview("RFADC00602", "XML", "/root/send/searchitem");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|