123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527 |
- <?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>환자별영양관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <maindata>
- <nutrstatjudg>
- <execprcpuniqno/>
- <pid/>
- <formrecseq/>
- <cnststat/>
- <reqpsn/>
- <reqdd/>
- <reqresn/>
- <reccnts/>
- <execdd/>
- <nutrmngtkind/>
- <ordcd/>
- <ioflag/>
- <indd/>
- <prcpdd/>
- <sickcd/>
- <bodysympchoi/>
- <bodysymprem/>
- <dietprobchoi/>
- <dietprobrem/>
- <diethistchoi/>
- <healsuppfood/>
- <cofftims/>
- <smoktims/>
- <eatouttims/>
- <eatoutrem/>
- <drunktims/>
- <drunkvol/>
- <drunkrem/>
- <diethistetc/>
- <intkstatmainmeal/>
- <intkstatsubmeal/>
- <intkstatetc/>
- <actgrdechoi/>
- <actgrdeexer/>
- <actgrdeetc/>
- <physmeasbdht/>
- <physmeasbdwt/>
- <physmeasubw/>
- <physmeasibw/>
- <physmeasibwperc/>
- <physmeasabw/>
- <bdwtupdtqty/>
- <bdwtupdtrate/>
- <bdwtupdtterm/>
- <testrsltalb/>
- <testrslttlc/>
- <testrslthbhct/>
- <testrslthbhct2/>
- <testrslttrf/>
- <testrsltrem/>
- <chrgdieter/>
- <intndieter/>
- <chrgdr/>
- <chrgnurs/>
- <repldd/>
- <druginfo/>
- <replcnts/>
- <nutrstatjudgcd/>
- <nutrstatjudgrem/>
- <nutrtplan/>
- <cnstpurs/>
- <nutrstatvalucd/>
- <nutrstatvalucnts/>
- <srchdd/>
- <return/>
- <cretno/>
- <careplan/>
- </nutrstatjudg>
- <cnstreq>
- <execprcpuniqno/>
- <pid/>
- <execdd/>
- <nutrmngtkind/>
- <cnstflag1/>
- <stndbdwtflag1/>
- <stndbdwt1/>
- <calrflag1/>
- <adoptlawcalr1/>
- <hbcalr11/>
- <hbcalr21/>
- <dialqty1/>
- <protqty1/>
- <nutrreqqty1/>
- <cnstpsn1/>
- <unstdgrde1/>
- <calrintk1/>
- <calrintkqty1/>
- <protintk1/>
- <protintkqty1/>
- <intkqtyetc1/>
- <dietercmt1/>
- <optcalr1/>
- <optcalradopt1/>
- <optcalrhb1/>
- <optprotqty1/>
- <optprotadopt1/>
- <nutrstatvalucd1/>
- <nutrstatvalucnts1/>
- <cnstcd/>
- <cnstcnts/>
- <review/>
- </cnstreq>
- <pursmngt>
- <execprcpuniqno/>
- <pid/>
- <execdd/>
- <nutrmngtkind/>
- <cnstflag2/>
- <stndbdwtflag2/>
- <stndbdwt2/>
- <calrflag2/>
- <adoptlawcalr2/>
- <hbcalr12/>
- <hbcalr22/>
- <dialqty2/>
- <protqty2/>
- <nutrreqqty2/>
- <calrintk2/>
- <calrintkqty2/>
- <protintk2/>
- <protintkqty2/>
- <intkqtyetc2/>
- <dietercmt2/>
- <optcalr2/>
- <optcalradopt2/>
- <optcalrhb2/>
- <optprotqty2/>
- <optprotadopt2/>
- <nutrstatvalucd2/>
- <nutrstatvalucnts2/>
- <review/>
- </pursmngt>
- <repl>
- <pastreplcnts/>
- </repl>
- <patbaseinfo>
- <pid/>
- <hngnm/>
- <cretno/>
- <brthdd/>
- <sex/>
- <age/>
- <hometel/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <detladdr/>
- <ioflag/>
- <inout/>
- <indd/>
- <orddeptcd/>
- <orddeptnm/>
- <atdoctid/>
- <atdoctnm/>
- <wt/>
- <ht/>
- <flag/>
- </patbaseinfo>
- <diag>
- <diagnm/>
- </diag>
- <inmotv>
- <inmotvcnts/>
- </inmotv>
- <dietprcp>
- <prcpdd/>
- <dietmeal/>
- <dietnm/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <prcpgenrflag/>
- </dietprcp>
- <nutrmngt>
- <pid/>
- <execdd/>
- <nutrmngtkind/>
- <dieter/>
- <ioflag/>
- <indd/>
- <formrecseq/>
- <cnststatnm/>
- <chrgdieternm/>
- <intndieternm/>
- </nutrmngt>
- <nutrsrchrslt>
- <pid/>
- <fnexamflag/>
- <execdd/>
- <nutrmngtkind/>
- <srchrslt/>
- <insrslt/>
- <indd/>
- <formrecseq/>
- <dieter/>
- <cnststatnm/>
- <chrgdieternm/>
- <intndieternm/>
- </nutrsrchrslt>
- <cureplan>
- <nutrstatjudg>
- <pid/>
- <execdd/>
- <nutrmngtkind/>
- <cnstpurs/>
- <cureplancd/>
- <cureplancnts/>
- </nutrstatjudg>
- <cnstreq>
- <pid/>
- <execdd/>
- <nutrmngtkind/>
- <cnstpurs/>
- <cureplancd/>
- <cureplancnts/>
- </cnstreq>
- <pursmngt>
- <pid/>
- <execdd/>
- <nutrmngtkind/>
- <cnstpurs/>
- <cureplancd/>
- <cureplancnts/>
- </pursmngt>
- </cureplan>
- </maindata>
- <testrslt>
- <lis>
- <alb/>
- <wbc/>
- <lymphocytes/>
- <tlc/>
- <hb/>
- <hct/>
- <trf/>
- </lis>
- </testrslt>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <receivedata>
- <flag/>
- <flag2/>
- <pid/>
- <hngnm/>
- <reqdd/>
- <reqpsn/>
- <orddrid/>
- <educreqcnts/>
- <reccnts/>
- <h_cretno/>
- <h_orddeptcd/>
- <h_prcpgenrflag/>
- <h_orddd/>
- <h_formrecseq/>
- <execprcpuniqno/>
- <nutrmngtkind/>
- <execdd/>
- <srchdd/>
- </receivedata>
- <receivedatacopy/>
- </main>
- <send>
- <searchitem>
- <flag/>
- <pid/>
- <nutrmngtkind/>
- <execdd/>
- <pastexecdd/>
- <hngnm/>
- <sex/>
- <age/>
- <wt/>
- <ht/>
- <ibw/>
- <calrrecmqty/>
- <protrecmqty/>
- <cnstflag/>
- <calrintk/>
- <calrintkqty/>
- <protintk/>
- <protintkqty/>
- <intkqtyetc/>
- <dietercmt/>
- <execprcpuniqno/>
- <reqdd/>
- <reqpsn/>
- <reqresn/>
- <reccnts/>
- <formrecseq/>
- <cretno/>
- <orddeptcd/>
- <prcpgenrflag/>
- <orddd/>
- <dieter/>
- <intndieter/>
- <chrgdieternm/>
- <intndieternm/>
- <careplanflag/>
- </searchitem>
- <data>
- <maindata>
- <nutrstatjudg/>
- <cnstreq/>
- <pursmngt/>
- <cureplan/>
- </maindata>
- </data>
- <cureplancnts/>
- </send>
- <hidden>
- <ret>
- <count/>
- </ret>
- </hidden>
- <init>
- <basecode>
- <nutrmngtkind>
- <A0060>
- <cdid/>
- <cdnm/>
- </A0060>
- </nutrmngtkind>
- <sickcd>
- <A0059>
- <cdid/>
- <cdnm/>
- </A0059>
- </sickcd>
- <dieter>
- <dieter>
- <cdid/>
- <cdnm/>
- </dieter>
- <intndieter>
- <cdid/>
- <cdnm/>
- </intndieter>
- </dieter>
- </basecode>
- <nutrjudgbase>
- <data>
- <cd/>
- <dngrcd/>
- <min/>
- <max/>
- </data>
- </nutrjudgbase>
- <baseinfo>
- <nutrstatvalucd/>
- <cnstcd/>
- <cureplancd1/>
- <cureplancd2/>
- <cureplancd3/>
- </baseinfo>
- </init>
- <temp>
- <save>
- <msg/>
- </save>
- <cnst>
- <cnst>
- <cnststat/>
- <formrecseq/>
- </cnst>
- </cnst>
- <return>N</return>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- fPrcpDataSrch();
- fTestRsltSrch(); //가장 최근 검사결과 조회
- model.removeNodeset("/root/main/maindata/cureplan/nutrstatjudg");
- model.removeNodeset("/root/main/maindata/cureplan/cnstreq");
- model.removeNodeset("/root/main/maindata/cureplan/pursmngt");
- submit("TRANC00102"); //영양판정기준표 조회
- submit("TRANC00202"); //영양사 조회
- model.setFocus("ipt_pid");
- btn_search.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_cnstrepl.disabled = !checkAuth("X"); //회신
- btn_del.disabled = !checkAuth("X");
- btn_cnstreplcncl.disabled = !checkAuth("X");
- btn_cnstrepl.disabled = true; //회신버튼 비활성화
- // btn_cnstreplcncl.disabled = true; //회신취소버튼 비활성화
-
- delPatientInfos(); // 상단정보 clear 2018.02.07 김금련
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 화면 초기화
- function finit() {
- //화면open시 영양관리유형, 질환명에 코드를 setting해준다.
- zbcfGetCodeList( new Array( "A0060", "A0059" ), new Array("/root/init/basecode/nutrmngtkind", "/root/init/basecode/sickcd" ) );
- astGetComboList( new Array("A501","A502","A503","A504","A505"),
- new Array("/root/init/baseinfo/nutrstatvalucd","/root/init/baseinfo/cnstcd"
- ,"/root/init/baseinfo/cureplancd1","/root/init/baseinfo/cureplancd2","/root/init/baseinfo/cureplancd3") );
- model.removeNodeset("/root/main/maindata/diag");
- model.removeNodeset("/root/main/maindata/inmotv");
- model.removeNodeset("/root/main/maindata/dietprcp");
- model.removeNodeset("/root/main/maindata/nutrmngt");
- model.removeNodeset("/root/main/maindata/nutrsrchrslt");
- model.removeNodeset("/root/main/maindata/cureplan/nutrstatjudg");
- model.removeNodeset("/root/main/maindata/cureplan/cnstreq");
- model.removeNodeset("/root/main/maindata/cureplan/pursmngt");
- model.resetInstanceNode("/root/main/maindata");
- model.resetInstanceNode("/root/send/data/maindata");
- model.setValue("/root/send/searchitem/execdd", getCurrentDate());
- model.setValue("/root/send/searchitem/dieter", getUserInfo("userid"));
- //화면open시 환자기본정보 숨김.
- grp_patinfo.attribute("visibility")="visible";
- btn_patinfo.dispatch("onclick"); //환자기본정보
- model.refresh();
- }
-
-
- // 영양교육관리 or 영양검색결과조회 or 환자관리(전화영양상담탭) 화면에서 호출된 경우 자동 조회
- function fPrcpDataSrch() {
-
- if (model.getValue("/root/main/receivedata/pid") != "") {
- //flag=B는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)만 조회한다는 뜻임.
- model.setValue("/root/send/searchitem/flag", 'B');
- model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/receivedata/pid"));
- model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/receivedata/hngnm"));
- // model.setValue("/root/send/searchitem/reqdd", model.getValue("/root/main/receivedata/reqdd"));
- // model.setValue("/root/send/searchitem/reqpsn", model.getValue("/root/main/receivedata/reqpsn"));
- // model.setValue("/root/send/searchitem/reqresn", model.getValue("/root/main/receivedata/educreqcnts"));
- // model.setValue("/root/send/searchitem/reccnts", model.getValue("/root/main/receivedata/reccnts"));
- // model.setValue("/root/send/searchitem/formrecseq", model.getValue("/root/main/receivedata/h_formrecseq"));
- model.setValue("/root/send/searchitem/execprcpuniqno", model.getValue("/root/main/receivedata/execprcpuniqno"));
- model.setValue("/root/send/searchitem/cretno", model.getValue("/root/main/receivedata/h_cretno"));
- model.setValue("/root/send/searchitem/orddeptcd", model.getValue("/root/main/receivedata/h_orddeptcd"));
- model.setValue("/root/send/searchitem/prcpgenrflag", model.getValue("/root/main/receivedata/h_prcpgenrflag"));
- model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/receivedata/h_orddd"));
- model.setValue("/root/send/searchitem/nutrmngtkind", model.getValue("/root/main/receivedata/nutrmngtkind"));
- model.setValue("/root/send/searchitem/pastexecdd", model.getValue("/root/main/receivedata/execdd"));
- //model.setValue("/root/send/searchitem/orddrid", model.getValue("/root/main/receivedata/orddrid"));
- }
-
- //영양검색결과조회 화면에서 호출된 경우 영양관리유형,수행일자가 null값임.
- if (model.getValue("/root/main/receivedata/flag") == "R") {
- //신환검색일 경우 영양관리유형을 '초기영양검색(01)'으로 자동setting
- if (model.getValue("/root/main/receivedata/flag2") == "F") {
- model.setValue("/root/send/searchitem/nutrmngtkind", "01");
- }
- //재검색일 경우 영양관리유형을 '일반추구관리(05)'로 자동setting
- else if (model.getValue("/root/main/receivedata/flag2") == "I") {
- model.setValue("/root/send/searchitem/nutrmngtkind", "05");
- }
- }
-
- model.copyNode("root/main/receivedatacopy", "root/main/receivedata");
- model.refresh();
- btn_search.dispatch("DOMActivate"); //조회
- }
-
-
- //가장 최근 검사결과 조회
- function fTestRsltSrch() {
- model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/maindata/patbaseinfo/indd"));
- model.setValue("/root/send/searchitem/prcpgenrflag", model.getValue("/root/main/maindata/patbaseinfo/ioflag"));
- submit("TRANC00303");
- var tlc = model.getValue("/root/main/testrslt/lis/tlc");
- if ( tlc != "" ) {
- tlc = tlc.toString().getRound(-2, "HALF_UP");
- model.setValue("/root/main/testrslt/lis/tlc", tlc);
- }
- ipt_testrslttlc.refresh();
- }
-
-
- // 협진의뢰나 추구관리 탭화면 클릭시 영양상태판정Review 표시
- function fNutrStatJudgReview() {
- var bodysymp = "";
- var dietprob = "";
- var cureplan = "";
- var temp = "";
- var review = "";
- //신체증후의 체크된 항목들을 콤마로 연결
- for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
- if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_bodysymp.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- bodysymp = bodysymp + ", ";
- } else {
- bodysymp = bodysymp + temp.substr(i,1);
- }
- }
- //식사시 문제점의 체크된 항목들을 콤마로 연결
- temp = "";
- for ( i = 0; i < chk_dietprob.label.length; i++ ) {
- if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_dietprob.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- dietprob = dietprob + ", ";
- } else {
- dietprob = dietprob + temp.substr(i,1);
- }
- }
- temp = "";
- //2011.08.31 하드코드 공통코드로 수정
- var cureplancd = "";
- var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd1/A503" ).length + 1;
- //영양치료계획/권장 그리드의 항목들을 콤마로 연결
- if ( grd_nutrstatjudg.rows-1 > 0 ) {
- for ( i = 1; i <= grd_nutrstatjudg.rows-1; i++ ) {
- //2011.08.31 하드코드 공통코드로 수정
- cureplancd = model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd");
- if (cureplancd != "") {
- for(var j = 1; j < cureplanrow ; j++){
- var cdid = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdid");
- var cdnm = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdnm");
- if(cureplancd == cdid){
- var temp = " ο " + cdnm + "\n";
- }
- }
- cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
- temp = "";
- }
- }
- }
-
- var item1 = "[영양상태판정]" +"\n";
- var item2 = "1. 기본정보" +"\n";
- if ( bodysymp != "" ) {
- var item3 = " ο 신체증후 : " + bodysymp;
- if ( ipt_bodysymprem.value != "" ) {
- item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
- } else {
- item3 = item3 + "\n";
- }
- } else {
- if ( ipt_bodysymprem.value != "" ) {
- var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
- } else {
- var item3 = "";
- }
- }
- if ( dietprob != "" ) {
- var item4 = " ο 식사시 문제점 : " + dietprob;
- if ( ipt_dietprobrem.value != "" ) {
- item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
- } else {
- item4 = item4 + "\n";
- }
- } else {
- if ( ipt_dietprobrem.value != "" ) {
- var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
- } else {
- var item4 = "";
- }
- }
- if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
- var item5 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
- if ( ipt_intkstatetc.value != "" ) {
- item5 = item5 + " 기타 : " + ipt_intkstatetc.value;
- }
- item5 = item5 +"\n";
- } else {
- var item5 = "";
- }
- if ( item5 == "" && ipt_intkstatetc.value != "" ) {
- var item6 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
- } else {
- var item6 = "";
- }
- var item7 = "\n" + "2. 신체계측 결과" +"\n";
- if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
- var item8 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
- } else {
- var item8 = "";
- }
- if ( ipt_bdwtupdtqty.value != "" ) {
- var item9 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
- } else {
- var item9 = "";
- }
- var item10 = "\n" + "3. 검사 결과" +"\n";
- // if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" || tar_testrsltrem.value != "" ) {
- // var item10 = "\n" + "3. 검사 결과" +"\n";
- // } else {
- // var item10 = "\n";
- // }
- var item11 = "";
- if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
- if ( ipt_testrsltalb.value != "" ) {
- item11 = " ο Alb : " + ipt_testrsltalb.value;
- }
- if ( ipt_testrslttlc.value != "" && item11 == "" ) {
- item11 = " ο TLC : " + ipt_testrslttlc.value;
- } else if ( ipt_testrslttlc.value != "" && item11 != "" ) {
- item11 = item11 + ", TLC : " + ipt_testrslttlc.value;
- }
- if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
- item11 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 == "" ) {
- item11 = " ο Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
- item11 = " ο Hct : " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
- item11 = item11 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 != "" ) {
- item11 = item11 + ", Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
- item11 = item11 + ", Hct : " + ipt_testrslthbhct2.value;
- }
- if ( ipt_testrslttrf.value != "" && item11 == "" ) {
- item11 = " ο TRF : " + ipt_testrslttrf.value;
- } else if ( ipt_testrslttrf.value != "" && item11 != "" ) {
- item11 = item11 + ", TRF : " + ipt_testrslttrf.value;
- }
- item11 = item11 + "\n";
- }
- if ( item11 != "" && tar_testrsltrem.value != "" ) {
- var item12 = " 기타 : " + tar_testrsltrem.value +"\n";
- } else if ( item11 == "" && tar_testrsltrem.value != "" ) {
- var item12 = " ο 기타 : " + tar_testrsltrem.value +"\n";
- } else {
- var item12 = "";
- }
- var item13 = "\n" + "4. 영양상태" +"\n";
- if ( cmb_nutrstatvalu.label != "" ) {
- var item14 = " ο " + cmb_nutrstatvalu.label + "\n";
- } else {
- var item14 = "";
- }
- if ( item14 != "" && tar_nutrstatvalu.value != "" ) {
- var item15 = " 기타 : " + tar_nutrstatvalu.value +"\n";
- } else if ( item14 == "" && tar_nutrstatvalu.value != "" ) {
- var item15 = " ο 기타 : " + tar_nutrstatvalu.value +"\n";
- } else {
- var item15 = "";
- }
- //var item16 = "\n" + "5. 영양치료 계획/권장" +"\n";
- if ( cureplan != "" ) {
- var item16 = "\n" + "5. 영양치료 계획/권장" +"\n";
- //var item17 = " ο " + cureplan + "\n";
- var item17 = cureplan + "\n";
- } else {
- var item16 = "";
- var item17 = "";
- }
- if ( cmb_intndieter.label != "" ) {
- var item18 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
- } else {
- var item18 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
- }
-
- review = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 + item9 + item10 +
- item11 + item12 + item13 + item14 + item15 + item16 + item17 + item18;
- model.setValue("/root/main/maindata/cnstreq/review", review);
- model.setValue("/root/main/maindata/pursmngt/review", review);
- model.refresh();
- }
-
-
- //회신 탭버튼 클릭시 (1)
- //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
- //영양상태판정 + 협진의뢰 탭의 내용을 조합하여 회신내용 생성
- function fReplCntsCnstreq() {
- var bodysymp = "";
- var dietprob = "";
- var cureplan = "";
- var temp = "";
- var replcnts = "";
- //신체증후의 체크된 항목들을 콤마로 연결
- for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
- if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_bodysymp.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- bodysymp = bodysymp + ", ";
- } else {
- bodysymp = bodysymp + temp.substr(i,1);
- }
- }
- //식사시 문제점의 체크된 항목들을 콤마로 연결
- temp = "";
- for ( i = 0; i < chk_dietprob.label.length; i++ ) {
- if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_dietprob.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- dietprob = dietprob + ", ";
- } else {
- dietprob = dietprob + temp.substr(i,1);
- }
- }
- temp = "";
- //2011.08.31 하드코드 공통코드로 수정
- var cureplancd = "";
- var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd1/A503" ).length + 1;
- //영양치료계획/권장 그리드의 항목들을 콤마로 연결
- if ( grd_nutrstatjudg.rows-1 > 0 ) {
- for ( i = 1; i <= grd_nutrstatjudg.rows-1; i++ ) {
- //2011.08.31 하드코드 공통코드로 수정
- cureplancd = model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd");
- if (cureplancd != "") {
- for(var j = 1; j < cureplanrow ; j++){
- var cdid = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdid");
- var cdnm = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdnm");
- if(cureplancd == cdid){
- var temp = " ο " + cdnm + "\n";
- }
- }
- cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
- temp = "";
- }
- // if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") != "") {
- // if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "1") {
- // temp = " ο 현재 식사 유지해 주십시오." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "2") {
- // temp = " ο 식사처방 변경 필요합니다." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "3") {
- // temp = " ο 영양교육 의뢰서 작성해 주십시오." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "4") {
- // temp = " ο 경장영양의뢰(EN)로 협진의뢰서 작성해 주십시오." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "5") {
- // temp = " ο F/U 예정입니다." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "9") {
- // temp = " ο 기타" +"\n";
- // }
- // cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
- // temp = "";
- // }
- //cureplan = cureplan + temp + ", ";
- //cureplan = cureplan + temp;
- }
- //cureplan = cureplan.substr(0,cureplan.length-2);
- }
-
- var item1 = "[영양상태판정]" +"\n";
- var item2 = "1. 기본정보" +"\n";
- if ( bodysymp != "" ) {
- var item3 = " ο 신체증후 : " + bodysymp;
- if ( ipt_bodysymprem.value != "" ) {
- item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
- } else {
- item3 = item3 + "\n";
- }
- } else {
- if ( ipt_bodysymprem.value != "" ) {
- var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
- } else {
- var item3 = "";
- }
- }
- if ( dietprob != "" ) {
- var item4 = " ο 식사시 문제점 : " + dietprob;
- if ( ipt_dietprobrem.value != "" ) {
- item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
- } else {
- item4 = item4 + "\n";
- }
- } else {
- if ( ipt_dietprobrem.value != "" ) {
- var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
- } else {
- var item4 = "";
- }
- }
- if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
- var item5 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
- if ( ipt_intkstatetc.value != "" ) {
- item5 = item5 + " 기타 : " + ipt_intkstatetc.value;
- }
- item5 = item5 +"\n";
- } else {
- var item5 = "";
- }
- if ( item5 == "" && ipt_intkstatetc.value != "" ) {
- var item6 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
- } else {
- var item6 = "";
- }
- var item7 = "\n" + "2. 신체계측 결과" +"\n";
- if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
- var item8 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
- } else {
- var item8 = "";
- }
- if ( ipt_bdwtupdtqty.value != "" ) {
- var item9 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
- } else {
- var item9 = "";
- }
- var item10 = "\n" + "3. 검사 결과" +"\n";
- var item11 = "";
- if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
- if ( ipt_testrsltalb.value != "" ) {
- item11 = " ο Alb : " + ipt_testrsltalb.value;
- }
- if ( ipt_testrslttlc.value != "" && item11 == "" ) {
- item11 = " ο TLC : " + ipt_testrslttlc.value;
- } else if ( ipt_testrslttlc.value != "" && item11 != "" ) {
- item11 = item11 + ", TLC : " + ipt_testrslttlc.value;
- }
- if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
- item11 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 == "" ) {
- item11 = " ο Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
- item11 = " ο Hct : " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
- item11 = item11 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 != "" ) {
- item11 = item11 + ", Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
- item11 = item11 + ", Hct : " + ipt_testrslthbhct2.value;
- }
- if ( ipt_testrslttrf.value != "" && item11 == "" ) {
- item11 = " ο TRF : " + ipt_testrslttrf.value;
- } else if ( ipt_testrslttrf.value != "" && item11 != "" ) {
- item11 = item11 + ", TRF : " + ipt_testrslttrf.value;
- }
- item11 = item11 + "\n";
- }
- if ( item11 != "" && tar_testrsltrem.value != "" ) {
- var item12 = " 기타 : " + tar_testrsltrem.value +"\n";
- } else if ( item11 == "" && tar_testrsltrem.value != "" ) {
- var item12 = " ο 기타 : " + tar_testrsltrem.value +"\n";
- } else {
- var item12 = "";
- }
- var item13 = "\n" + "4. 영양상태" +"\n";
- if ( cmb_nutrstatvalu.label != "" ) {
- var item14 = " ο " + cmb_nutrstatvalu.label + "\n";
- } else {
- var item14 = "";
- }
- if ( item14 != "" && tar_nutrstatvalu.value != "" ) {
- var item15 = " 기타 : " + tar_nutrstatvalu.value +"\n";
- } else if ( item14 == "" && tar_nutrstatvalu.value != "" ) {
- var item15 = " ο 기타 : " + tar_nutrstatvalu.value +"\n";
- } else {
- var item15 = "";
- }
- var calrintk = model.getValue("/root/main/maindata/cnstreq/calrintk1");
- var calrintkqty = model.getValue("/root/main/maindata/cnstreq/calrintkqty1");
- var protintk = model.getValue("/root/main/maindata/cnstreq/protintk1");
- var protintkqty = model.getValue("/root/main/maindata/cnstreq/protintkqty1");
- var intkqtyetc = model.getValue("/root/main/maindata/cnstreq/intkqtyetc1");
- if ( calrintkqty != "" || protintkqty != "" || intkqtyetc != "" ) {
- var item16 = "\n" + " ο 섭취량 분석 및 평가";
- if ( calrintkqty != "" ) {
- item16 = item16 + "\n" + " 열량 : " + calrintkqty + " kcal/day";
- if ( calrintk != "" ) {
- if (calrintk == '1') { calrintk = '상당히 부족';
- } else if (calrintk == '2') { calrintk = '약간 부족';
- } else if (calrintk == '3') { calrintk = '양호';
- } else if (calrintk == '4') { calrintk = '과다';
- }
- item16 = item16 + " (" + calrintk + ")";
- }
- }
- if ( protintkqty != "" ) {
- item16 = item16 + "\n" + " 단백질 : " + protintkqty + " g/day";
- if ( protintk != "" ) {
- if (protintk == '1') { protintk = '상당히 부족';
- } else if (protintk == '2') { protintk = '약간 부족';
- } else if (protintk == '3') { protintk = '양호';
- } else if (protintk == '4') { protintk = '과다';
- }
- item16 = item16 + " (" + protintk + ")";
- }
- }
- if ( intkqtyetc != "" ) {
- item16 = item16 + "\n" + " " + intkqtyetc;
- }
- } else {
- var item16 = "";
- }
-
- if ( item16 != "" ) {
- var item17 = "\n" + "\n" + "5. 영양요구량" +"\n";
- } else {
- var item17 = "\n" + "5. 영양요구량" +"\n";
- }
- if ( opt_calr.value != "" ) {
- if ( rdo_calrflag.label == "계수법" ) {
- var item18 = " * 열량 : " + opt_calr.value + " kcal/day ( " + rdo_stndbdwtflag.label + " * " + ipt_adoptlawcalr.value + " kcal/kg )" + "\n";
- } else if ( rdo_calrflag.label == "HB" ) {
- var item18 = " * 열량 : " + opt_calr.value + " kcal/day ( BEE : " + opt_calrhb.value + ", AF : " + ipt_hbcalr1.value + ", SF : " + ipt_hbcalr2.value + " )" + "\n";
- }
- } else {
- var item18 = "";
- }
- if ( opt_protqty.value != "" ) {
- var item19 = " * 단백질 : " + opt_protqty.value + " g/day ( " + rdo_stndbdwtflag.label + " * " + ipt_protqty.value + " g/kg )" + "\n";
- } else {
- var item19 = "";
- }
- if ( tar_nutrreqqty.value != "" ) {
- var item20 = " * 기타 : " + tar_nutrreqqty.value +"\n";
- } else {
- var item20 = "";
- }
-
- if ( cureplan != "" ) {
- var item21 = "\n" + "6. 영양치료 계획/권장" +"\n";
- //var item17 = " ◈ " + cureplan + "\n";
- var item22 = cureplan + "\n";
- } else {
- var item21 = "";
- var item22 = "";
- }
- /* if ( model.getValue("/root/send/searchitem/intndieternm") != "" ) {
- var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + model.getValue("/root/send/searchitem/chrgdieternm") + "/ " + model.getValue("/root/send/searchitem/intndieternm") + "\n";
- } else {
- var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + model.getValue("/root/send/searchitem/chrgdieternm")+ "\n";
- }*/
- if ( cmb_intndieter.label != "" ) {
- var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
- } else {
- var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
- }
-
- replcnts = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 + item9 + item10 + item11 + item12 +
- item13 + item14 + item15 + item16 + item17 + item18 + item19 + item20 + item21 + item22 + item23;
- model.setValue("/root/main/maindata/nutrstatjudg/replcnts", replcnts);
- model.setValue("/root/main/maindata/nutrstatjudg/careplan", cureplan);
- model.refresh();
- }
-
-
- //회신 탭버튼 클릭시 (2)
- //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
- //영양상태판정 + 추구관리 탭의 내용을 조합하여 회신내용 생성
- function fReplCntsPursmngt() {
- var bodysymp = "";
- var dietprob = "";
- var cureplan = "";
- var temp = "";
- var replcnts = "";
- //신체증후의 체크된 항목들을 콤마로 연결
- for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
- if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_bodysymp.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- bodysymp = bodysymp + ", ";
- } else {
- bodysymp = bodysymp + temp.substr(i,1);
- }
- }
- //식사시 문제점의 체크된 항목들을 콤마로 연결
- temp = "";
- for ( i = 0; i < chk_dietprob.label.length; i++ ) {
- if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_dietprob.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- dietprob = dietprob + ", ";
- } else {
- dietprob = dietprob + temp.substr(i,1);
- }
- }
- temp = "";
- //2011.08.31 하드코드 공통코드로 수정
- var cureplancd = "";
- var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd1/A503" ).length + 1;
- //영양치료계획/권장 그리드의 항목들을 콤마로 연결
- if ( grd_nutrstatjudg.rows-1 > 0 ) {
- for ( i = 1; i <= grd_nutrstatjudg.rows-1; i++ ) {
- //2011.08.31 하드코드 공통코드로 수정
- cureplancd = model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd");
- if (cureplancd != "") {
- for(var j = 1; j < cureplanrow ; j++){
- var cdid = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdid");
- var cdnm = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdnm");
- if(cureplancd == cdid){
- var temp = " ο " + cdnm + "\n";
- }
- }
- cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
- temp = "";
- }
- // if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") != "") {
- // if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "1") {
- // temp = " ο 현재 식사 유지해 주십시오." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "2") {
- // temp = " ο 식사처방 변경 필요합니다." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "3") {
- // temp = " ο 영양교육 의뢰서 작성해 주십시오." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "4") {
- // temp = " ο 경장영양의뢰(EN)로 협진의뢰서 작성해 주십시오." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "5") {
- // temp = " ο F/U 예정입니다." +"\n";
- // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "9") {
- // temp = " ο 기타" +"\n";
- // }
- // cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
- // temp = "";
- // }
- }
- }
-
- var item1 = "[영양상태판정]" +"\n";
- var item2 = "1. 기본정보" +"\n";
- if ( bodysymp != "" ) {
- var item3 = " ο 신체증후 : " + bodysymp;
- if ( ipt_bodysymprem.value != "" ) {
- item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
- } else {
- item3 = item3 + "\n";
- }
- } else {
- if ( ipt_bodysymprem.value != "" ) {
- var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
- } else {
- var item3 = "";
- }
- }
- if ( dietprob != "" ) {
- var item4 = " ο 식사시 문제점 : " + dietprob;
- if ( ipt_dietprobrem.value != "" ) {
- item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
- } else {
- item4 = item4 + "\n";
- }
- } else {
- if ( ipt_dietprobrem.value != "" ) {
- var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
- } else {
- var item4 = "";
- }
- }
- if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
- var item5 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
- if ( ipt_intkstatetc.value != "" ) {
- item5 = item5 + " 기타 : " + ipt_intkstatetc.value;
- }
- item5 = item5 +"\n";
- } else {
- var item5 = "";
- }
- if ( item5 == "" && ipt_intkstatetc.value != "" ) {
- var item6 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
- } else {
- var item6 = "";
- }
- var item7 = "\n" + "2. 신체계측 결과" +"\n";
- if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
- var item8 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
- } else {
- var item8 = "";
- }
- if ( ipt_bdwtupdtqty.value != "" ) {
- var item9 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
- } else {
- var item9 = "";
- }
- var item10 = "\n" + "3. 검사 결과" +"\n";
- var item11 = "";
- if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
- if ( ipt_testrsltalb.value != "" ) {
- item11 = " ο Alb : " + ipt_testrsltalb.value;
- }
- if ( ipt_testrslttlc.value != "" && item11 == "" ) {
- item11 = " ο TLC : " + ipt_testrslttlc.value;
- } else if ( ipt_testrslttlc.value != "" && item11 != "" ) {
- item11 = item11 + ", TLC : " + ipt_testrslttlc.value;
- }
- if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
- item11 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 == "" ) {
- item11 = " ο Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
- item11 = " ο Hct : " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
- item11 = item11 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 != "" ) {
- item11 = item11 + ", Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
- item11 = item11 + ", Hct : " + ipt_testrslthbhct2.value;
- }
- if ( ipt_testrslttrf.value != "" && item11 == "" ) {
- item11 = " ο TRF : " + ipt_testrslttrf.value;
- } else if ( ipt_testrslttrf.value != "" && item11 != "" ) {
- item11 = item11 + ", TRF : " + ipt_testrslttrf.value;
- }
- item11 = item11 + "\n";
- }
- if ( item11 != "" && tar_testrsltrem.value != "" ) {
- var item12 = " 기타 : " + tar_testrsltrem.value +"\n";
- } else if ( item11 == "" && tar_testrsltrem.value != "" ) {
- var item12 = " ο 기타 : " + tar_testrsltrem.value +"\n";
- } else {
- var item12 = "";
- }
- var item13 = "\n" + "4. 영양상태" +"\n";
- if ( cmb_nutrstatvalu.label != "" ) {
- var item14 = " ο " + cmb_nutrstatvalu.label + "\n";
- } else {
- var item14 = "";
- }
- if ( item14 != "" && tar_nutrstatvalu.value != "" ) {
- var item15 = " 기타 : " + tar_nutrstatvalu.value +"\n";
- } else if ( item14 == "" && tar_nutrstatvalu.value != "" ) {
- var item15 = " ο 기타 : " + tar_nutrstatvalu.value +"\n";
- } else {
- var item15 = "";
- }
- var calrintk = model.getValue("/root/main/maindata/pursmngt/calrintk2");
- var calrintkqty = model.getValue("/root/main/maindata/pursmngt/calrintkqty2");
- var protintk = model.getValue("/root/main/maindata/pursmngt/protintk2");
- var protintkqty = model.getValue("/root/main/maindata/pursmngt/protintkqty2");
- var intkqtyetc = model.getValue("/root/main/maindata/pursmngt/intkqtyetc2");
- if ( calrintkqty != "" || protintkqty != "" || intkqtyetc != "" ) {
- var item16 = "\n" + " ο 섭취량 분석 및 평가";
- if ( calrintkqty != "" ) {
- item16 = item16 + "\n" + " 열량 : " + calrintkqty + " kcal/day";
- if ( calrintk != "" ) {
- if (calrintk == '1') { calrintk = '상당히 부족';
- } else if (calrintk == '2') { calrintk = '약간 부족';
- } else if (calrintk == '3') { calrintk = '양호';
- } else if (calrintk == '4') { calrintk = '과다';
- }
- item16 = item16 + " (" + calrintk + ")";
- }
- }
- if ( protintkqty != "" ) {
- item16 = item16 + "\n" + " 단백질 : " + protintkqty + " g/day";
- if ( protintk != "" ) {
- if (protintk == '1') { protintk = '상당히 부족';
- } else if (protintk == '2') { protintk = '약간 부족';
- } else if (protintk == '3') { protintk = '양호';
- } else if (protintk == '4') { protintk = '과다';
- }
- item16 = item16 + " (" + protintk + ")";
- }
- }
- if ( intkqtyetc != "" ) {
- item16 = item16 + "\n" + " " + intkqtyetc;
- }
- } else {
- var item16 = "";
- }
-
- if ( item16 != "" ) {
- var item17 = "\n" + "\n" + "5. 영양요구량" +"\n";
- } else {
- var item17 = "\n" + "5. 영양요구량" +"\n";
- }
- if ( opt_calr2.value != "" ) {
- if ( rdo_calrflag2.label == "계수법" ) {
- var item18 = " * 열량 : " + opt_calr2.value + " kcal/day ( " + rdo_stndbdwtflag2.label + " * " + ipt_adoptlawcalr2.value + " kcal/kg )" + "\n";
- } else if ( rdo_calrflag2.label == "HB" ) {
- var item18 = " * 열량 : " + opt_calr2.value + " kcal/day ( BEE : " + opt_calrhb2.value + ", AF : " + ipt_hbcalr12.value + ", SF : " + ipt_hbcalr22.value + " )" + "\n";
- }
- } else {
- var item18 = "";
- }
- if ( opt_protqty2.value != "" ) {
- var item19 = " * 단백질 : " + opt_protqty2.value + " g/day ( " + rdo_stndbdwtflag2.label + " * " + ipt_protqty2.value + " g/kg )" + "\n";
- } else {
- var item19 = "";
- }
- if ( tar_nutrreqqty2.value != "" ) {
- var item20 = " * 기타 : " + tar_nutrreqqty2.value +"\n";
- } else {
- var item20 = "";
- }
-
- if ( cureplan != "" ) {
- var item21 = "\n" + "6. 영양치료 계획/권장" +"\n";
- var item22 = cureplan + "\n";
- } else {
- var item21 = "";
- var item22 = "";
- }
- /* if ( model.getValue("/root/send/searchitem/intndieternm") != "" ) {
- var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + model.getValue("/root/send/searchitem/chrgdieternm") + "/ " + model.getValue("/root/send/searchitem/intndieternm") + "\n";
- } else {
- var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + model.getValue("/root/send/searchitem/chrgdieternm") + "\n";
- }*/
- if ( cmb_intndieter.label != "" ) {
- var item23= "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
- } else {
- var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
- }
-
- replcnts = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 + item9 + item10 + item11 + item12 +
- item13 + item14 + item15 + item16 + item17 + item18 + item19 + item20 + item21 + item22 + item23;
- model.setValue("/root/main/maindata/nutrstatjudg/replcnts", replcnts);
- model.setValue("/root/main/maindata/nutrstatjudg/careplan", cureplan);
- model.refresh();
- }
-
-
-
-
-
- // SOAP 버튼 클릭시 (1)
- //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
- //영양상태판정 + 협진의뢰 탭의 내용을 조합하여 회신내용 생성
- function fSoapReplCntsCnstreq() {
- var bodysymp = "";
- var dietprob = "";
- var diethist = "";
- var actgrde = "";
- var cnstpsn = "";
- var cureplan = "";
- var temp = "";
- var replcnts = "";
- //신체증후의 체크된 항목들을 콤마로 연결
- for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
- if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_bodysymp.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- bodysymp = bodysymp + ", ";
- } else {
- bodysymp = bodysymp + temp.substr(i,1);
- }
- }
- //식사시 문제점의 체크된 항목들을 콤마로 연결
- temp = "";
- for ( i = 0; i < chk_dietprob.label.length; i++ ) {
- if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_dietprob.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- dietprob = dietprob + ", ";
- } else {
- dietprob = dietprob + temp.substr(i,1);
- }
- }
- //식사력의 체크된 항목들을 콤마로 연결
- temp = chk_diethist.value;
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,2) == "11" ) {
- diethist = diethist + "균형된 식사";
- } else if ( temp.substr(i,2) == "12" ) {
- diethist = diethist + "규칙적인 식사";
- } else if ( temp.substr(i,2) == "13" ) {
- diethist = diethist + "불규칙적인 식사";
- } else if ( temp.substr(i,2) == "14" ) {
- diethist = diethist + "빠른식사속도";
- } else if ( temp.substr(i,2) == "15" ) {
- diethist = diethist + "과식";
- } else if ( temp.substr(i,2) == "16" ) {
- diethist = diethist + "당질과다섭취";
- } else if ( temp.substr(i,2) == "17" ) {
- diethist = diethist + "지방과다섭취";
- } else if ( temp.substr(i,2) == "18" ) {
- diethist = diethist + "염분과다섭취";
- } else if ( (temp.substr(i,2) == "19") && (ipt_healsuppfood.value != "") ) {
- diethist = diethist + "건강보조식품 " + ipt_healsuppfood.value;
- } else if ( (temp.substr(i,2) == "20") && (ipt_cofftims.value != "") ) {
- diethist = diethist + "커피 " + ipt_cofftims.value + "잔/day";
- } else if ( (temp.substr(i,2) == "21") && (ipt_smoktims.value != "") ) {
- diethist = diethist + "흡연 " + ipt_smoktims.value + "pack/day";
- } else if ( (temp.substr(i,2) == "22") && (ipt_eatouttims.value != "") ) {
- diethist = diethist + "외식 " + ipt_eatouttims.value + "회/week";
- if (ipt_eatoutrem.value != "") {
- diethist = diethist + ipt_eatoutrem.value;
- }
- } else if ( (temp.substr(i,2) == "23") && (ipt_drunktims.value != "") ) {
- diethist = diethist + "음주 " + ipt_drunktims.value + "회/week";
- if (ipt_drunkvol.value != "") {
- diethist = diethist + "(1회 섭취량 " + ipt_drunkvol.value + ")";
- }
- if (ipt_drunkrem.value != "") {
- diethist = diethist + ipt_drunkrem.value;
- }
- } else if ( temp.substr(i,1) == "▦" ) {
- diethist = diethist + ", ";
- }
- }
- if ( diethist.substr(0,2) == ", " ) {
- diethist = diethist.substr(2,diethist.length-2);
- }
- if ( diethist.substr(diethist.length-2,2) == ", " ) {
- diethist = diethist.substr(0,diethist.length-2);
- }
- //활동정도의 체크된 항목들을 콤마로 연결
- temp = "";
- for ( i = 0; i < chk_actgrde.label.length; i++ ) {
- if ( chk_actgrde.label.substr(i,2) == "운동" || chk_actgrde.label.substr(i,3) == "▦운동" ) {
- break;
- } else {
- temp = temp + chk_actgrde.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- actgrde = actgrde + ", ";
- } else {
- actgrde = actgrde + temp.substr(i,1);
- }
- }
- //피상담자의 체크된 항목들을 콤마로 연결
- temp = chk_cnstpsn.label;
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- cnstpsn = cnstpsn + ", ";
- } else {
- cnstpsn = cnstpsn + temp.substr(i,1);
- }
- }
- //2011.08.31 하드코드 공통코드로 수정
- var cureplancd = "";
- var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd2/A504" ).length + 1;
-
- //영양치료계획/권장 그리드의 항목들을 콤마로 연결
- if ( grd_cnstreq.rows-1 > 0 ) {
- for ( i = 1; i <= grd_cnstreq.rows-1; i++ ) {
- //2011.08.31 하드코드 공통코드로 수정
- cureplancd = model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd");
- //alert(cureplancd);
- if (cureplancd != "") {
- for(var j = 1; j < cureplanrow ; j++){
- var cdid = model.getValue("/root/init/baseinfo/cureplancd2/A504["+j+"]/cdid");
- var cdnm = model.getValue("/root/init/baseinfo/cureplancd2/A504["+j+"]/cdnm");
- //alert("cdid"+cdid);
- if(cureplancd == cdid){
- var temp = cdnm
- }
- }
- cureplan = cureplan + temp + model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancnts") + ", ";
- temp = "";
- }
- // if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd") != "") {
- // if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd") == "1") {
- // temp = "전화영양상담 예정입니다.";
- //// if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancnts") != "") {
- //// temp = temp + model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancnts");
- //// }
- // } else if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd") == "2") {
- // temp = "식사처방 변경해 주십시오.";
- // } else if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd") == "9") {
- // temp = "기타";
- // }
- // cureplan = cureplan + temp + model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancnts") + ", ";
- // temp = "";
- // }
- }
- cureplan = cureplan.substr(0,cureplan.length-2);
- }
- var item1 = "의뢰항목: " + opt_reqresn.value + " 의뢰일자: " + opt_reqdd.value.substr(0,4) + "/" + opt_reqdd.value.substr(4,2) +
- "/" + opt_reqdd.value.substr(6,2) + " 처방의: " + opt_reqpsn.value +"\n" +"\n";
- var item2 = "S :" +"\n";
- if ( bodysymp != "" ) {
- var item3 = " ο 신체증후 : " + bodysymp;
- if ( ipt_bodysymprem.value != "" ) {
- item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
- } else {
- item3 = item3 + "\n";
- }
- } else {
- if ( ipt_bodysymprem.value != "" ) {
- var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
- } else {
- var item3 = "";
- }
- }
- if ( dietprob != "" ) {
- var item4 = " ο 식사시 문제점 : " + dietprob;
- if ( ipt_dietprobrem.value != "" ) {
- item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
- } else {
- item4 = item4 + "\n";
- }
- } else {
- if ( ipt_dietprobrem.value != "" ) {
- var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
- } else {
- var item4 = "";
- }
- }
- if ( diethist != "" ) {
- var item5 = " ο 식사력 : " + diethist;
- if ( ipt_diethistetc.value != "" ) {
- item5 = item5 + ", " + ipt_diethistetc.value +"\n";
- } else {
- item5 = item5 + "\n";
- }
- } else {
- if ( ipt_diethistetc.value != "" ) {
- var item5 = " ο 식사력 : " + ipt_diethistetc.value +"\n";
- } else {
- var item5 = "";
- }
- }
- if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
- var item6 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
- if ( ipt_intkstatetc.value != "" ) {
- item6 = item6 + " 기타 : " + ipt_intkstatetc.value;
- }
- item6 = item6 +"\n";
- } else {
- var item6 = "";
- }
- if ( item6 == "" && ipt_intkstatetc.value != "" ) {
- var item7 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
- } else {
- var item7 = "";
- }
- if ( (chk_actgrde.value != "") || (tar_actgrdeetc.value != "") ) {
- var item8 = " ο 활동정도 : " + actgrde;
- if ( actgrde != "" && ipt_actgrdeexer.value != "" ) {
- item8 = item8 + ", " + ipt_actgrdeexer.value;
- } else if ( actgrde == "" && ipt_actgrdeexer.value != "" ) {
- item8 = item8 + ipt_actgrdeexer.value;
- }
- if ( (chk_actgrde.value != "") && (tar_actgrdeetc.value != "") ) {
- item8 = item8 + ", 기타 : " + tar_actgrdeetc.value +"\n";
- } else if ( (chk_actgrde.value == "") && (tar_actgrdeetc.value != "") ) {
- item8 = item8 + "기타 : " + tar_actgrdeetc.value +"\n";
- } else {
- item8 = item8 +"\n";
- }
- } else {
- var item8 = "";
- }
- var item10 = "\n" + "O :" +"\n";
- if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
- var item11 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
- } else {
- var item11 = "";
- }
- if ( ipt_bdwtupdtqty.value != "" ) {
- var item12 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
- } else {
- var item12 = "";
- }
- var item13 = "";
- if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
- if ( ipt_testrsltalb.value != "" ) {
- item13 = " ο Alb : " + ipt_testrsltalb.value;
- }
- if ( ipt_testrslttlc.value != "" && item13 == "" ) {
- item13 = " ο TLC : " + ipt_testrslttlc.value;
- } else if ( ipt_testrslttlc.value != "" && item13 != "" ) {
- item13 = item13 + ", TLC : " + ipt_testrslttlc.value;
- }
- if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item13 == "" ) {
- item13 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item13 == "" ) {
- item13 = " ο Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item13 == "" ) {
- item13 = " ο Hct : " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item13 != "" ) {
- item13 = item13 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item13 != "" ) {
- item13 = item13 + ", Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item13 != "" ) {
- item13 = item13 + ", Hct : " + ipt_testrslthbhct2.value;
- }
- if ( ipt_testrslttrf.value != "" && item13 == "" ) {
- item13 = " ο TRF : " + ipt_testrslttrf.value;
- } else if ( ipt_testrslttrf.value != "" && item13 != "" ) {
- item13 = item13 + ", TRF : " + ipt_testrslttrf.value;
- }
- item13 = item13 + "\n";
- }
- if ( item13 != "" && tar_testrsltrem.value != "" ) {
- var item14 = " 기타 : " + tar_testrsltrem.value +"\n";
- } else if ( item13 == "" && tar_testrsltrem.value != "" ) {
- var item14 = " ο 기타 : " + tar_testrsltrem.value +"\n";
- } else {
- var item14 = "";
- }
- var item15 = "\n" + "A :" +"\n";
- if ( cmb_nutrstatvalu1.label != "" ) {
- var item16 = " ο 영양상태 : " + cmb_nutrstatvalu1.label + "\n";
- } else {
- var item16 = "";
- }
- if ( item16 != "" && tar_nutrstatvalu1.value != "" ) {
- var item17 = " 기타 : " + tar_nutrstatvalu1.value +"\n";
- } else if ( item16 == "" && tar_nutrstatvalu1.value != "" ) {
- var item17 = " ο 영양상태 : 기타 : " + tar_nutrstatvalu1.value +"\n";
- } else {
- var item17 = "";
- }
- var calrintk = model.getValue("/root/main/maindata/cnstreq/calrintk1");
- var calrintkqty = model.getValue("/root/main/maindata/cnstreq/calrintkqty1");
- var protintk = model.getValue("/root/main/maindata/cnstreq/protintk1");
- var protintkqty = model.getValue("/root/main/maindata/cnstreq/protintkqty1");
- var intkqtyetc = model.getValue("/root/main/maindata/cnstreq/intkqtyetc1");
- if ( calrintkqty != "" || protintkqty != "" || intkqtyetc != "" ) {
- var item18 = "\n" + " 섭취량 분석 및 평가";
- if ( calrintkqty != "" ) {
- item18 = item18 + "\n" + " 열량 : " + calrintkqty + " kcal/day";
- if ( calrintk != "" ) {
- if (calrintk == '1') { calrintk = '상당히 부족';
- } else if (calrintk == '2') { calrintk = '약간 부족';
- } else if (calrintk == '3') { calrintk = '양호';
- } else if (calrintk == '4') { calrintk = '과다';
- }
- item18 = item18 + " (" + calrintk + ")";
- }
- }
- if ( protintkqty != "" ) {
- item18 = item18 + "\n" + " 단백질 : " + protintkqty + " g/day";
- if ( protintk != "" ) {
- if (protintk == '1') { protintk = '상당히 부족';
- } else if (protintk == '2') { protintk = '약간 부족';
- } else if (protintk == '3') { protintk = '양호';
- } else if (protintk == '4') { protintk = '과다';
- }
- item18 = item18 + " (" + protintk + ")";
- }
- }
- if ( intkqtyetc != "" ) {
- item18 = item18 + "\n" + " " + intkqtyetc;
- }
- } else {
- var item18 = "";
- }
- if ( item18 != "" ) {
- var item19 = "\n" + "\n" + " ο 영양요구량" +"\n";
- } else {
- var item19 = "\n" + " ο 영양요구량" +"\n";
- }
- if ( opt_calr.value != "" ) {
- if ( rdo_calrflag.label == "계수법" ) {
- var item20 = " * 열량 : " + opt_calr.value + " kcal/day ( " + rdo_stndbdwtflag.label + " * " + ipt_adoptlawcalr.value + " kcal/kg )" + "\n";
- } else if ( rdo_calrflag.label == "HB" ) {
- var item20 = " * 열량 : " + opt_calr.value + " kcal/day ( BEE : " + opt_calrhb.value + ", AF : " + ipt_hbcalr1.value + ", SF : " + ipt_hbcalr2.value + " )" + "\n";
- }
- } else {
- var item20 = "";
- }
- if ( opt_protqty.value != "" ) {
- var item21 = " * 단백질 : " + opt_protqty.value + " g/day ( " + rdo_stndbdwtflag.label + " * " + ipt_protqty.value + " g/kg )" + "\n";
- } else {
- var item21 = "";
- }
- if ( tar_nutrreqqty.value != "" ) {
- var item22 = " * 기타 : " + tar_nutrreqqty.value +"\n";
- } else {
- var item22 = "";
- }
- var item23 = "\n" + "P :" +"\n";
- if ( cnstpsn != "" && rdo_unstdgrde.label != "" ) {
- var item24 = " ο 피상담자 : " + cnstpsn + " 교육이해도 : " + rdo_unstdgrde.label +"\n";
- } else if ( cnstpsn != "" && rdo_unstdgrde.label == "" ) {
- var item24 = " ο 피상담자 : " + cnstpsn + "\n";
- } else if ( cnstpsn == "" && rdo_unstdgrde.label != "" ) {
- var item24 = " ο 교육이해도 : " + rdo_unstdgrde.label +"\n";
- } else {
- var item24 = "";
- }
- if ( cmb_cnstcd.label != "" && tar_cnstcnts.value == "" ) {
- var item25 = " ο 영양상담내용 : " + cmb_cnstcd.label + "\n";
- } else if ( cmb_cnstcd.label != "" && tar_cnstcnts.value != "" ) {
- var item25 = " ο 영양상담내용 : " + cmb_cnstcd.label + ", " + tar_cnstcnts.value + "\n";
- } else if ( cmb_cnstcd.label == "" && tar_cnstcnts.value != "" ) {
- var item25 = " ο 영양상담내용 : " + tar_cnstcnts.value + "\n";
- } else {
- var item25 = "";
- }
- if ( cureplan != "" ) {
- var item26 = " ο 영양치료 계획/권장 : " + cureplan + "\n";
- } else {
- var item26 = "";
- }
- if ( cmb_intndieter.label != "" ) {
- var item27 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
- } else {
- var item27 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
- }
-
- replcnts = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 +
- item10 + item11 + item12 + item13 +
- item14 + item15 + item16 + item17 + item18 + item19 + item20 +
- item21 + item22 + item23 + item24 + item25 + item26 + item27;
- model.setValue("/root/main/maindata/nutrstatjudg/replcnts", replcnts);
- model.setValue("/root/main/maindata/nutrstatjudg/careplan", cureplan);
- model.refresh();
- //btn_repl.dispatch("DOMActivate"); //회신 탭화면으로 이동
- //btn_repl.selected = true;
- }
-
-
- // SOAP 버튼 클릭시 (2)
- //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
- //영양상태판정 + 추구관리 탭의 내용을 조합하여 회신내용 생성
- function fSoapReplCntsPursmngt() {
- var bodysymp = "";
- var dietprob = "";
- var diethist = "";
- var actgrde = "";
- var cnstpsn = "";
- var cureplan = "";
- var temp = "";
- var replcnts = "";
- //신체증후의 체크된 항목들을 콤마로 연결
- for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
- if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_bodysymp.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- bodysymp = bodysymp + ", ";
- } else {
- bodysymp = bodysymp + temp.substr(i,1);
- }
- }
- //식사시 문제점의 체크된 항목들을 콤마로 연결
- temp = "";
- for ( i = 0; i < chk_dietprob.label.length; i++ ) {
- if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
- break;
- } else {
- temp = temp + chk_dietprob.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- dietprob = dietprob + ", ";
- } else {
- dietprob = dietprob + temp.substr(i,1);
- }
- }
- //식사력의 체크된 항목들을 콤마로 연결
- temp = chk_diethist.value;
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,2) == "11" ) {
- diethist = diethist + "균형된 식사";
- } else if ( temp.substr(i,2) == "12" ) {
- diethist = diethist + "규칙적인 식사";
- } else if ( temp.substr(i,2) == "13" ) {
- diethist = diethist + "불규칙적인 식사";
- } else if ( temp.substr(i,2) == "14" ) {
- diethist = diethist + "빠른식사속도";
- } else if ( temp.substr(i,2) == "15" ) {
- diethist = diethist + "과식";
- } else if ( temp.substr(i,2) == "16" ) {
- diethist = diethist + "당질과다섭취";
- } else if ( temp.substr(i,2) == "17" ) {
- diethist = diethist + "지방과다섭취";
- } else if ( temp.substr(i,2) == "18" ) {
- diethist = diethist + "염분과다섭취";
- } else if ( (temp.substr(i,2) == "19") && (ipt_healsuppfood.value != "") ) {
- diethist = diethist + "건강보조식품 " + ipt_healsuppfood.value;
- } else if ( (temp.substr(i,2) == "20") && (ipt_cofftims.value != "") ) {
- diethist = diethist + "커피 " + ipt_cofftims.value + "잔/day";
- } else if ( (temp.substr(i,2) == "21") && (ipt_smoktims.value != "") ) {
- diethist = diethist + "흡연 " + ipt_smoktims.value + "pack/day";
- } else if ( (temp.substr(i,2) == "22") && (ipt_eatouttims.value != "") ) {
- diethist = diethist + "외식 " + ipt_eatouttims.value + "회/week";
- if (ipt_eatoutrem.value != "") {
- diethist = diethist + ipt_eatoutrem.value;
- }
- } else if ( (temp.substr(i,2) == "23") && (ipt_drunktims.value != "") ) {
- diethist = diethist + "음주 " + ipt_drunktims.value + "회/week";
- if (ipt_drunkvol.value != "") {
- diethist = diethist + "(1회 섭취량 " + ipt_drunkvol.value + ")";
- }
- if (ipt_drunkrem.value != "") {
- diethist = diethist + ipt_drunkrem.value;
- }
- } else if ( temp.substr(i,1) == "▦" ) {
- diethist = diethist + ", ";
- }
- }
- if ( diethist.substr(0,2) == ", " ) {
- diethist = diethist.substr(2,diethist.length-2);
- }
- if ( diethist.substr(diethist.length-2,2) == ", " ) {
- diethist = diethist.substr(0,diethist.length-2);
- }
- //활동정도의 체크된 항목들을 콤마로 연결
- temp = "";
- for ( i = 0; i < chk_actgrde.label.length; i++ ) {
- if ( chk_actgrde.label.substr(i,2) == "운동" || chk_actgrde.label.substr(i,3) == "▦운동" ) {
- break;
- } else {
- temp = temp + chk_actgrde.label.substr(i,1);
- }
- }
- for ( i = 0; i < temp.length; i++ ) {
- if ( temp.substr(i,1) == "▦" ) {
- actgrde = actgrde + ", ";
- } else {
- actgrde = actgrde + temp.substr(i,1);
- }
- }
- //피상담자의 체크된 항목들을 콤마로 연결
- // temp = chk_cnstpsn.label;
- // for ( i = 0; i < temp.length; i++ ) {
- // if ( temp.substr(i,1) == "▦" ) {
- // cnstpsn = cnstpsn + ",";
- // } else {
- // cnstpsn = cnstpsn + temp.substr(i,1);
- // }
- // }
- //2011.08.31 하드코드 공통코드로 수정
- var cureplancd = "";
- var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd3/A505" ).length + 1;
- //alert("cureplanrow"+cureplanrow);
- //영양치료계획/권장 그리드의 항목들을 콤마로 연결
- if ( grd_pursmngt.rows-1 > 0 ) {
- for ( i = 1; i <= grd_pursmngt.rows-1; i++ ) {
- cureplancd = model.getValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/cureplancd");
- if (cureplancd != "") {
- for(var j = 1; j < cureplanrow ; j++){
- var cdid = model.getValue("/root/init/baseinfo/cureplancd3/A505["+j+"]/cdid");
- var cdnm = model.getValue("/root/init/baseinfo/cureplancd3/A505["+j+"]/cdnm");
- if(cureplancd == cdid){
- var temp = cdnm
- }
- }
- cureplan = cureplan + temp + model.getValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/cureplancnts") + ", ";
- temp = "";
- }
- }
- cureplan = cureplan.substr(0,cureplan.length-2);
- }
- alert(cureplan);////////////////////////////////////////////////////////
-
- var item1 = "의뢰항목: " + opt_reqresn.value + " 의뢰일자: " + opt_reqdd.value.substr(0,4) + "/" + opt_reqdd.value.substr(4,2) +
- "/" + opt_reqdd.value.substr(6,2) + " 처방의: " + opt_reqpsn.value +"\n" +"\n";
- var item2 = "S :" +"\n";
- if ( bodysymp != "" ) {
- var item3 = " ο 신체증후 : " + bodysymp;
- if ( ipt_bodysymprem.value != "" ) {
- item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
- } else {
- item3 = item3 + "\n";
- }
- } else {
- if ( ipt_bodysymprem.value != "" ) {
- var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
- } else {
- var item3 = "";
- }
- }
- if ( dietprob != "" ) {
- var item4 = " ο 식사시 문제점 : " + dietprob;
- if ( ipt_dietprobrem.value != "" ) {
- item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
- } else {
- item4 = item4 + "\n";
- }
- } else {
- if ( ipt_dietprobrem.value != "" ) {
- var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
- } else {
- var item4 = "";
- }
- }
- if ( diethist != "" ) {
- var item5 = " ο 식사력 : " + diethist;
- if ( ipt_diethistetc.value != "" ) {
- item5 = item5 + ", " + ipt_diethistetc.value +"\n";
- } else {
- item5 = item5 + "\n";
- }
- } else {
- if ( ipt_diethistetc.value != "" ) {
- var item5 = " ο 식사력 : " + ipt_diethistetc.value +"\n";
- } else {
- var item5 = "";
- }
- }
- if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
- var item6 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
- if ( ipt_intkstatetc.value != "" ) {
- item6 = item6 + " 기타 : " + ipt_intkstatetc.value;
- }
- item6 = item6 +"\n";
- } else {
- var item6 = "";
- }
- if ( item6 == "" && ipt_intkstatetc.value != "" ) {
- var item7 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
- } else {
- var item7 = "";
- }
- if ( (chk_actgrde.value != "") || (tar_actgrdeetc.value != "") ) {
- var item8 = " ο 활동정도 : " + actgrde;
- if ( actgrde != "" && ipt_actgrdeexer.value != "" ) {
- item8 = item8 + ", " + ipt_actgrdeexer.value;
- } else if ( actgrde == "" && ipt_actgrdeexer.value != "" ) {
- item8 = item8 + ipt_actgrdeexer.value;
- }
- if ( (chk_actgrde.value != "") && (tar_actgrdeetc.value != "") ) {
- item8 = item8 + ", 기타 : " + tar_actgrdeetc.value +"\n";
- } else if ( (chk_actgrde.value == "") && (tar_actgrdeetc.value != "") ) {
- item8 = item8 + "기타 : " + tar_actgrdeetc.value +"\n";
- } else {
- item8 = item8 +"\n";
- }
- } else {
- var item8 = "";
- }
- var item10 = "\n" + "O :" +"\n";
- if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
- var item11 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
- } else {
- var item11 = "";
- }
- if ( ipt_bdwtupdtqty.value != "" ) {
- var item12 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
- } else {
- var item12 = "";
- }
- var item13 = "";
- if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
- if ( ipt_testrsltalb.value != "" ) {
- item13 = " ο Alb : " + ipt_testrsltalb.value;
- }
- if ( ipt_testrslttlc.value != "" && item13 == "" ) {
- item13 = " ο TLC : " + ipt_testrslttlc.value;
- } else if ( ipt_testrslttlc.value != "" && item13 != "" ) {
- item13 = item13 + ", TLC : " + ipt_testrslttlc.value;
- }
- if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item13 == "" ) {
- item13 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item13 == "" ) {
- item13 = " ο Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item13 == "" ) {
- item13 = " ο Hct : " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item13 != "" ) {
- item13 = item13 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
- } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item13 != "" ) {
- item13 = item13 + ", Hb : " + ipt_testrslthbhct.value;
- } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item13 != "" ) {
- item13 = item13 + ", Hct : " + ipt_testrslthbhct2.value;
- }
- if ( ipt_testrslttrf.value != "" && item13 == "" ) {
- item13 = " ο TRF : " + ipt_testrslttrf.value;
- } else if ( ipt_testrslttrf.value != "" && item13 != "" ) {
- item13 = item13 + ", TRF : " + ipt_testrslttrf.value;
- }
- item13 = item13 + "\n";
- }
- if ( item13 != "" && tar_testrsltrem.value != "" ) {
- var item14 = " 기타 : " + tar_testrsltrem.value +"\n";
- } else if ( item13 == "" && tar_testrsltrem.value != "" ) {
- var item14 = " ο 기타 : " + tar_testrsltrem.value +"\n";
- } else {
- var item14 = "";
- }
- var item15 = "\n" + "A :" +"\n";
- if ( cmb_nutrstatvalu2.label != "" ) {
- var item16 = " ο 영양상태 : " + cmb_nutrstatvalu2.label + "\n";
- } else {
- var item16 = "";
- }
- if ( item16 != "" && tar_nutrstatvalu2.value != "" ) {
- var item17 = " 기타 : " + tar_nutrstatvalu2.value +"\n";
- } else if ( item16 == "" && tar_nutrstatvalu2.value != "" ) {
- var item17 = " ο 영양상태 : 기타 : " + tar_nutrstatvalu2.value +"\n";
- } else {
- var item17 = "";
- }
-
- var calrintk = model.getValue("/root/main/maindata/pursmngt/calrintk2");
- var calrintkqty = model.getValue("/root/main/maindata/pursmngt/calrintkqty2");
- var protintk = model.getValue("/root/main/maindata/pursmngt/protintk2");
- var protintkqty = model.getValue("/root/main/maindata/pursmngt/protintkqty2");
- var intkqtyetc = model.getValue("/root/main/maindata/pursmngt/intkqtyetc2");
- if ( calrintkqty != "" || protintkqty != "" || intkqtyetc != "" ) {
- var item18 = "\n" + " 섭취량 분석 및 평가";
- if ( calrintkqty != "" ) {
- item18 = item18 + "\n" + " 열량 : " + calrintkqty + " kcal/day";
- if ( calrintk != "" ) {
- if (calrintk == '1') { calrintk = '상당히 부족';
- } else if (calrintk == '2') { calrintk = '약간 부족';
- } else if (calrintk == '3') { calrintk = '양호';
- } else if (calrintk == '4') { calrintk = '과다';
- }
- item18 = item18 + " (" + calrintk + ")";
- }
- }
- if ( protintkqty != "" ) {
- item18 = item18 + "\n" + " 단백질 : " + protintkqty + " g/day";
- if ( protintk != "" ) {
- if (protintk == '1') { protintk = '상당히 부족';
- } else if (protintk == '2') { protintk = '약간 부족';
- } else if (protintk == '3') { protintk = '양호';
- } else if (protintk == '4') { protintk = '과다';
- }
- item18 = item18 + " (" + protintk + ")";
- }
- }
- if ( intkqtyetc != "" ) {
- item18 = item18 + "\n" + " " + intkqtyetc;
- }
- } else {
- var item18 = "";
- }
- if ( item18 != "" ) {
- var item19 = "\n" + "\n" + " ο 영양요구량" +"\n";
- } else {
- var item19 = "\n" + " ο 영양요구량" +"\n";
- }
- if ( opt_calr2.value != "" ) {
- if ( rdo_calrflag2.label == "계수법" ) {
- var item20 = " * 열량 : " + opt_calr2.value + " kcal/day ( " + rdo_stndbdwtflag2.label + " * " + ipt_adoptlawcalr2.value + " kcal/kg )" + "\n";
- } else if ( rdo_calrflag2.label == "HB" ) {
- var item20 = " * 열량 : " + opt_calr2.value + " kcal/day ( BEE : " + opt_calrhb2.value + ", AF : " + ipt_hbcalr12.value + ", SF : " + ipt_hbcalr22.value + " )" + "\n";
- }
- } else {
- var item20 = "";
- }
- if ( opt_protqty2.value != "" ) {
- var item21 = " * 단백질 : " + opt_protqty2.value + " g/day ( " + rdo_stndbdwtflag2.label + " * " + ipt_protqty2.value + " g/kg )" + "\n";
- } else {
- var item21 = "";
- }
- if ( tar_nutrreqqty2.value != "" ) {
- var item22 = " * 기타 : " + tar_nutrreqqty2.value +"\n";
- } else {
- var item22 = "";
- }
- var item23 = "\n" + "P :" +"\n";
- // if ( cnstpsn != "" && rdo_unstdgrde.label != "" ) {
- // var item24 = " ◈ 피상담자: " + cnstpsn + " 교육이해도: " + rdo_unstdgrde.label +"\n";
- // } else if ( cnstpsn != "" && rdo_unstdgrde.label == "" ) {
- // var item24 = " ◈ 피상담자: " + cnstpsn + "\n";
- // } else if ( cnstpsn == "" && rdo_unstdgrde.label != "" ) {
- // var item24 = " ◈ 교육이해도: " + rdo_unstdgrde.label +"\n";
- // } else {
- // var item24 = "";
- // }
- // if ( cmb_cnstcd.label != "" ) {
- // var item25 = " ◈ 영양상담내용: " + cmb_cnstcd.label + "\n";
- // } else {
- // var item25 = "";
- // }
- if ( cureplan != "" ) {
- var item26 = " ο 영양치료 계획/권장 : " + cureplan + "\n";
- } else {
- var item26 = "";
- }
- if ( cmb_intndieter.label != "" ) {
- var item27 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
- } else {
- var item27 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
- ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
- }
-
- replcnts = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 +
- item10 + item11 + item12 + item13 +
- item14 + item15 + item16 + item17 + item18 + item19 + item20 +
- item21 + item22 + item23 + item26 + item27;
- model.setValue("/root/main/maindata/nutrstatjudg/replcnts", replcnts);
- model.setValue("/root/main/maindata/nutrstatjudg/careplan", cureplan);
- model.refresh();
- }
-
-
- // 신체계측결과 계산
- function fPhysMeasRsltCalc() {
- if (model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht") <= 0 ||
- model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht") == "" ||
- model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt") <= 0 ||
- model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt") == "" ) {
- messageBox("키(Ht), 현재체중(Wt)을", "C001");
- return;
- }
- var sex = model.getValue("/root/main/maindata/patbaseinfo/sex"); // 성별
- var age = model.getValue("/root/main/maindata/patbaseinfo/age"); // 나이
- var ht = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"); // 키
- var wt = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"); // 현재체중
- var ubw = model.getValue("/root/main/maindata/nutrstatjudg/physmeasubw"); // 평소체중
- var ibw = model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"); // 표준체중
- var pibw = 0; // 표준체중 백분율
- var abw = 0; // 조정체중
- var changewt = 0; // 변경체중
- var changewtrate = 0; // 변경체중율
- // IBW, PIBW 계산
- if (ibw == "") {
- if (sex == "M") {
- ibw = ((ht/100)*(ht/100)*22);
- } else {
- ibw = ((ht/100)*(ht/100)*21);
- }
- }
- pibw = wt / ibw * 100;
- pibw = pibw.toString().getRound(-2, "HALF_UP");
-
- // ABW 계산
- if ( pibw >= 120 ) {
- //abw = ibw + (wt - ibw) * 0.25;
- abw = parseFloat(ibw) + parseFloat((wt - ibw) * 0.25);
- abw = abw.toString().getRound(-2, "HALF_UP");
- model.setValue("/root/main/maindata/nutrstatjudg/physmeasabw", abw);
- } else {
- // abw = "";
- // model.setValue("/root/main/maindata/nutrstatjudg/physmeasabw", abw);
- model.resetInstanceNode("/root/main/maindata/nutrstatjudg/physmeasabw");
- }
-
- // 협진의뢰,추구관리의 영양요구량의 기준체중을 '표준체중'으로 셋팅
- model.setValue("/root/main/maindata/cnstreq/stndbdwtflag1", "1");
- model.setValue("/root/main/maindata/cnstreq/stndbdwt1", ibw);
- model.setValue("/root/main/maindata/pursmngt/stndbdwtflag2", "1");
- model.setValue("/root/main/maindata/pursmngt/stndbdwt2", ibw);
-
- // 변경체중, 변경체중율 계산
- if ( ubw > 0 && ubw != "" ) {
- changewt = wt - ubw;
- changewtrate = ((wt - ubw)/ubw) * 100;
- changewtrate = changewtrate.toString().getRound(-2, "HALF_UP");
- } else {
- changewt = "";
- changewtrate = "";
- }
- ibw = ibw.toString().getRound(-2, "HALF_UP");
- model.setValue("/root/main/maindata/nutrstatjudg/physmeasibw", ibw);
- model.setValue("/root/main/maindata/nutrstatjudg/physmeasibwperc", pibw);
- if (pibw != "") {
- var ilen = pibw.length;
- if (ilen > 0){
- if (pibw.substr(ilen - 2, ilen - 1) == ".0"){
- ipt_physmeasibwperc.attribute("format") = "###";
- }else{
- ipt_physmeasibwperc.attribute("format") = "###.9";
- }
- }
- }
- // model.setValue("/root/main/maindata/nutrstatjudg/physmeasabw", abw);
- model.setValue("/root/main/maindata/nutrstatjudg/bdwtupdtqty", changewt);
- model.setValue("/root/main/maindata/nutrstatjudg/bdwtupdtrate", changewtrate);
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRANC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/maindata"/>
- <submission id="TRANC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/maindata/cureplan"/>
- <submission id="TRANC00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/testrslt"/>
- <submission id="TRANC00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/nutrstatjudg" resultref="/root/temp/cnst"/>
- <submission id="TRANC00102" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/nutrjudgbase"/>
- <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
- <submission id="TXANC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/nutrstatjudg" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXANC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/cnstreq" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXANC00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/pursmngt" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXANC00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata" resultref="/root/hidden"/>
- <submission id="TXANC00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/nutrstatjudg"/>
- <submission id="TRAAA00001"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1197;2,0;2,14;2,758;2,783;1,1346;">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">환자별 영양관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <button id="btn_patinfo" class="btn3_letter6" style="left:5px; top:46px; width:104px; height:22px; ">
- <caption>환자기본정보</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grp_patinfo.attribute("visibility")=="visible") {
- grp_patinfo.attribute("visibility")="hidden";
- grd_diag.attribute("visibility")="visible";
- caption42.attribute("visibility")="visible";
- line25.attribute("visibility")="visible";
- line24.attribute("visibility")="visible";
- caption43.attribute("visibility")="visible";
- line26.attribute("visibility")="visible";
- line27.attribute("visibility")="visible";
- grd_inmotv.attribute("visibility")="visible";
- } else if (grp_patinfo.attribute("visibility")=="hidden") {
- grp_patinfo.attribute("visibility")="visible";
- grd_diag.attribute("visibility")="hidden";
- caption42.attribute("visibility")="hidden";
- line25.attribute("visibility")="hidden";
- line24.attribute("visibility")="hidden";
- caption43.attribute("visibility")="hidden";
- line26.attribute("visibility")="hidden";
- line27.attribute("visibility")="hidden";
- grd_inmotv.attribute("visibility")="hidden";
- }
- ]]>
- </script>
- </button>
- <group id="grp_patinfo" style="left:0px; top:75px; width:315px; height:220px; ">
- <line id="line21" class="line_1" style="x1:0px; y1:0px; x2:315px; y2:0px; "/>
- <caption id="caption21" class="cell_1" style="left:159px; top:54px; width:65px; height:23px; vertical-align:middle; ">휴대전화</caption>
- <caption id="caption22" class="cell_1" style="left:0px; top:79px; width:65px; height:49px; vertical-align:middle; ">주소</caption>
- <caption id="caption23" class="cell_1" style="left:0px; top:4px; width:65px; height:23px; vertical-align:middle; ">환자명</caption>
- <caption id="caption24" class="cell_1" style="left:0px; top:130px; width:65px; height:23px; vertical-align:middle; ">입원/외래</caption>
- <caption id="caption33" class="cell_1" style="left:159px; top:4px; width:65px; height:23px; vertical-align:middle; ">생년월일</caption>
- <caption id="caption34" class="cell_1" style="left:0px; top:29px; width:65px; height:23px; vertical-align:middle; ">성별</caption>
- <caption id="caption35" class="cell_1" style="left:159px; top:29px; width:65px; height:23px; vertical-align:middle; ">나이</caption>
- <caption id="caption37" class="cell_1" style="left:0px; top:54px; width:65px; height:23px; vertical-align:middle; ">집전화</caption>
- <caption id="caption38" class="cell_1" style="left:0px; top:154px; width:65px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption39" class="cell_1" style="left:159px; top:154px; width:65px; height:23px; vertical-align:middle; ">전문의</caption>
- <caption id="caption40" class="cell_1" style="left:159px; top:130px; width:65px; height:23px; vertical-align:middle; ">입원일자</caption>
- <caption id="caption41" style="left:108px; top:81px; width:15px; height:20px; vertical-align:middle; ">-</caption>
- <output id="opt_hngnm" ref="/root/main/maindata/patbaseinfo/hngnm" class="output_fix" style="left:68px; top:6px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_brthdd" ref="/root/main/maindata/patbaseinfo/brthdd" class="output_fix" format="yyyy-mm-dd" style="left:227px; top:6px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_sex" ref="/root/main/maindata/patbaseinfo/sex" class="output_fix" style="left:68px; top:31px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_age" ref="/root/main/maindata/patbaseinfo/age" class="output_fix" style="left:227px; top:31px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_hometel" ref="/root/main/maindata/patbaseinfo/hometel" class="output_fix" style="left:68px; top:56px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_mpphontel" ref="/root/main/maindata/patbaseinfo/mpphontel" class="output_fix" style="left:227px; top:56px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_zipcd1" ref="/root/main/maindata/patbaseinfo/zipcd1" class="output_fix" style="left:68px; top:81px; width:37px; height:19px; text-align:center; "/>
- <output id="opt_zipcd2" ref="/root/main/maindata/patbaseinfo/zipcd2" class="output_fix" style="left:119px; top:81px; width:37px; height:19px; text-align:center; "/>
- <output id="opt_addr1" ref="/root/main/maindata/patbaseinfo/zipcdseq" class="output_fix" style="left:159px; top:81px; width:156px; height:19px; "/>
- <output id="opt_addr2" ref="/root/main/maindata/patbaseinfo/detladdr" class="output_fix" style="left:68px; top:106px; width:247px; height:19px; "/>
- <output id="opt_inout" ref="/root/main/maindata/patbaseinfo/inout" class="output_fix" style="left:68px; top:132px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_indd" ref="/root/main/maindata/patbaseinfo/indd" class="output_fix" format="yyyy-mm-dd" style="left:227px; top:132px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_orddept" ref="/root/main/maindata/patbaseinfo/orddeptnm" class="output_fix" style="left:68px; top:156px; width:88px; height:19px; text-align:center; "/>
- <output id="opt_atdoct" ref="/root/main/maindata/patbaseinfo/atdoctnm" class="output_fix" style="left:227px; top:156px; width:88px; height:19px; text-align:center; "/>
- <line id="line138" class="line_3" style="x1:0px; y1:180px; x2:315px; y2:180px; "/>
- </group>
- <group id="group5" style="left:0px; top:9px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:34px; background-color:#fffbf2; "/>
- <caption id="caption6" class="search_name" style="left:16px; top:8px; width:137px; height:17px; ">등록번호/환자명 :</caption>
- <caption id="caption20" class="search_name" style="left:387px; top:8px; width:89px; height:17px; ">의뢰일자 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRANC00301");
-
- if (model.getValue("/root/send/searchitem/flag") == 'A') {
- submit("TRANC00302"); //컨설팅별 영양치료계획 조회
- }
-
- // if ( model.getValue("/root/main/maindata/nutrstatjudg/pid") != "" ) {
- // cmb_nutrmngtkind.value = "";
- // cmb_sickcd.value = "";
- // }
-
- btn_nutrstatjudg.dispatch("DOMActivate"); //영양상태판정 탭화면으로 이동
- btn_nutrstatjudg.selected = true;
-
- //의뢰건인 경우 의뢰일자,의뢰자,서식기록번호,의뢰사유 보여주기
- // if ( model.getValue("/root/send/searchitem/flag") == 'B' ) {
- // model.setValue("/root/send/searchitem/reqdd", model.getValue("/root/main/receivedata/reqdd"));
- // model.setValue("/root/send/searchitem/reqpsn", model.getValue("/root/main/receivedata/reqpsn"));
- // model.setValue("/root/send/searchitem/reqresn", model.getValue("/root/main/receivedata/educreqcnts"));
- // model.setValue("/root/send/searchitem/formrecseq", model.getValue("/root/main/receivedata/h_formrecseq"));
- // } else {
- // model.setValue("/root/send/searchitem/reqdd", model.getValue("/root/main/maindata/nutrstatjudg/reqdd"));
- // model.setValue("/root/send/searchitem/reqpsn", model.getValue("/root/main/maindata/nutrstatjudg/reqpsn"));
- // model.setValue("/root/send/searchitem/reqresn", model.getValue("/root/main/maindata/nutrstatjudg/reqresn"));
- // model.setValue("/root/send/searchitem/formrecseq", model.getValue("/root/main/maindata/nutrstatjudg/formrecseq"));
- // }
- opt_reccnts.hint = model.getValue("/root/main/receivedata/reccnts");
- //검사결과 셋팅
- model.setValue("/root/main/testrslt/lis/alb", model.getValue("/root/main/maindata/nutrstatjudg/testrsltalb"));
- model.setValue("/root/main/testrslt/lis/tlc", model.getValue("/root/main/maindata/nutrstatjudg/testrslttlc"));
- model.setValue("/root/main/testrslt/lis/hb", model.getValue("/root/main/maindata/nutrstatjudg/testrslthbhct"));
- model.setValue("/root/main/testrslt/lis/hct", model.getValue("/root/main/maindata/nutrstatjudg/testrslthbhct2"));
- model.setValue("/root/main/testrslt/lis/trf", model.getValue("/root/main/maindata/nutrstatjudg/testrslttrf"));
-
- // 조회 후 저장된 키, 몸무게가 없으면 환자기본정보의 키, 몸무게를 신체계측결과의 Ht, Wt에 setting
- if ( model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht")=="" ) {
- model.setValue("/root/main/maindata/nutrstatjudg/physmeasbdht", model.getValue("/root/main/maindata/patbaseinfo/ht"));
- }
- if ( model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt")=="" ) {
- model.setValue("/root/main/maindata/nutrstatjudg/physmeasbdwt", model.getValue("/root/main/maindata/patbaseinfo/wt"));
- }
-
- //컨설트 수행후 화면을 닫지 않은 상태에서 바로 다른 환자의 등록번호를 입력후 조회할 경우
- if ( model.getValue("/root/send/searchitem/pid") != model.getValue("/root/main/receivedatacopy/pid") ) {
- model.resetInstanceNode("/root/main/receivedata");
- model.resetInstanceNode("/root/main/receivedatacopy");
- }
-
- //다른 화면에서 링크하지 않고 직접 환자의 등록번호를 입력후 조회할 경우 검사결과만 별도로 조회해온다.
- if (model.getValue("/root/send/searchitem/trflag") == 'T') {
- fTestRsltSrch(); //가장 최근 검사결과 조회
- }
-
- //저장, 삭제, 회신, 회신취소 버튼 활성화 여부
- //회신확정 상태일 경우
- // if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") == "30" ) {
- // btn_save.disabled = true; //저장버튼 비활성화
- // btn_del.disabled = true; //삭제버튼 비활성화
- // btn_cnstrepl.disabled = true; //회신버튼 비활성화
- // btn_cnstreplcncl.disabled = true; //회신취소버튼 비활성화
- // }
- //회신을 안한 상태일 경우
- // else if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") == "" ||
- // model.getValue("/root/main/maindata/nutrstatjudg/cnststat") < 21 ) {
- // btn_save.disabled = false; //저장버튼 활성화
- // btn_del.disabled = false; //삭제버튼 활성화
- // btn_cnstrepl.disabled = true; //회신버튼 비활성화
- // btn_cnstreplcncl.disabled = true; //회신취소버튼 비활성화
- // }
- //회신은 했지만 회신확정 상태가 아닐 경우
- // else if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") != "" &&
- // model.getValue("/root/main/maindata/nutrstatjudg/cnststat") < 30 ) {
- // btn_save.disabled = false; //저장버튼 활성화
- // btn_del.disabled = false; //삭제버튼 활성화
- // btn_cnstrepl.disabled = true; //회신버튼 비활성화
- // btn_cnstreplcncl.disabled = false; //회신취소버튼 활성화
- // }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line14" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
- <input id="ipt_pid" ref="/root/send/searchitem/pid" class="input_s_essential" autonext="false" maxlength="10" style="left:149px; top:7px; width:81px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- model.setValue("/root/send/searchitem/hngnm", "");
- model.setValue("/root/send/searchitem/pastexecdd", "");
- model.setValue("/root/send/searchitem/cretno", "");
- model.setValue("/root/send/searchitem/orddeptcd", "");
- model.setValue("/root/send/searchitem/prcpgenrflag", "");
- model.setValue("/root/send/searchitem/orddd", "");
- //flag=B는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)만 조회한다는 뜻임.
- model.setValue("/root/send/searchitem/flag", 'B');
- //flag=B는 화면 왼쪽의 공통정보만 조회하므로 trflag를 T로 셋팅하여 최근 검사결과를 추가로 조회한다.
- model.makeValue("/root/send/searchitem/trflag", 'T');
- inputEnterKey("btn_search", "DOMActivate"); //조회 이벤트 수행
- model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/maindata/patbaseinfo/hngnm"));
- opt_patnm.refresh();
- model.removenode("/root/send/searchitem/trflag");
- ]]>
- </script>
- </input>
- <output id="opt_reqdd" ref="/root/main/receivedata/reqdd" class="output_search" format="yyyy-mm-dd" style="left:475px; top:7px; width:85px; height:19px; text-align:center; "/>
- <button id="button11" class="icon_search" style="left:233px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
- model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- btn_search.dispatch("DOMActivate"); //조회 이벤트 수행
- ]]>
- </script>
- </button>
- <output id="opt_patnm" ref="/root/send/searchitem/hngnm" class="output_search" style="left:254px; top:7px; width:70px; height:19px; "/>
- <output id="opt_reccnts" ref="/root/main/receivedata/reccnts" class="output_search" style="left:823px; top:7px; width:273px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:737px; top:8px; width:88px; height:17px; ">의뢰내용 :</caption>
- <caption id="caption9" class="search_name" style="left:577px; top:8px; width:78px; height:17px; ">의뢰자 :</caption>
- <output id="opt_reqpsn" ref="/root/main/receivedata/reqpsn" class="output_search" style="left:650px; top:7px; width:70px; height:19px; text-align:center; "/>
- </group>
- <line id="line24" class="line_3" style="x1:0px; y1:198px; x2:315px; y2:198px; "/>
- <line id="line25" class="line_1" style="x1:0px; y1:91px; x2:315px; y2:91px; "/>
- <caption id="caption42" class="tit_2" style="left:5px; top:77px; width:95px; height:13px; ">진단명</caption>
- <line id="line26" class="line_3" style="x1:0px; y1:331px; x2:315px; y2:331px; "/>
- <line id="line27" class="line_1" style="x1:0px; y1:226px; x2:315px; y2:226px; "/>
- <caption id="caption43" class="tit_2" style="left:5px; top:210px; width:95px; height:13px; ">입원동기</caption>
- <datagrid id="grd_diag" nodeset="/root/main/maindata/diag" autoresize="true" caption="진단명" colsep="^" colwidth="310" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:96px; width:315px; height:99px; ">
- <col ref="diagnm"/>
- </datagrid>
- <line id="line34" class="line_1" style="x1:0px; y1:358px; x2:315px; y2:358px; "/>
- <caption id="caption44" class="tit_2" style="left:5px; top:342px; width:95px; height:13px; ">식사처방정보</caption>
- <datagrid id="grd_inmotv" nodeset="/root/main/maindata/inmotv" autoresize="true" caption="입원동기" colsep="^" colwidth="310" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:231px; width:315px; height:99px; ">
- <col ref="inmotvcnts"/>
- </datagrid>
- <line id="line35" class="line_3" style="x1:0px; y1:466px; x2:315px; y2:466px; "/>
- <datagrid id="grd_nutrmngthist" nodeset="/root/main/maindata/nutrmngt" autoresize="true" caption="등록번호^일자^영양관리유형^영양사^ioflag^indd^formrecseq^회신상태^chrgdieternm^intndieternm" colsep="^" colwidth="0, 70, 128, 52, 100, 100, 100, 60, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:498px; width:315px; height:97px; ">
- <col ref="pid"/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="nutrmngtkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/nutrmngtkind/A0060">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="dieter"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="cnststatnm"/>
- <col ref="chrgdieternm" visibility="hidden"/>
- <col ref="intndieternm" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( grd_nutrmngthist.isCell(event.target) && grd_nutrmngthist.row >= grd_nutrmngthist.fixedRows ) {
- var rowno = grd_nutrmngthist.row;
-
- model.setValue("/root/send/searchitem/dieter", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/chrgdieternm"));
- model.setValue("/root/send/searchitem/intndieter", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/intndieternm"));
-
- model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/pid"));
- model.setValue("/root/send/searchitem/pastexecdd", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/execdd"));
- model.setValue("/root/send/searchitem/nutrmngtkind", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/nutrmngtkind"));
- model.setValue("/root/send/searchitem/prcpgenrflag", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/ioflag"));
- model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/indd"));
- //flag=A는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)와 해당 컨설팅 정보를 조회한다는 뜻임.
- model.setValue("/root/send/searchitem/flag", 'A');
- model.setValue("/root/send/searchitem/careplanflag", 'N');
- btn_search.dispatch("DOMActivate");
- // model.setValue("/root/main/receivedata/pid", model.getValue("/root/main/maindata/nutrstatjudg/pid"));
- // model.setValue("/root/main/receivedata/reqdd", model.getValue("/root/main/maindata/nutrstatjudg/reqdd"));
- // model.setValue("/root/main/receivedata/reqpsn", model.getValue("/root/main/maindata/nutrstatjudg/reqpsn"));
- // model.setValue("/root/main/receivedata/educreqcnts", model.getValue("/root/main/maindata/nutrstatjudg/reqresn"));
- // model.setValue("/root/main/receivedata/reccnts", model.getValue("/root/main/maindata/nutrstatjudg/reccnts"));
- // model.setValue("/root/main/receivedata/h_formrecseq", model.getValue("/root/main/maindata/nutrstatjudg/formrecseq"));
- // model.refresh();
-
- //선택한 행 색깔 표시
- grd_nutrmngthist.isSelected(rowno) = true;
- grd_nutrmngthist.focusColor = "#ffccff";
-
-
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption45" class="tit_2" style="left:5px; top:476px; width:126px; height:13px; ">영양관리이력</caption>
- <line id="line36" class="line_1" style="x1:0px; y1:492px; x2:315px; y2:492px; "/>
- <line id="line37" class="line_3" style="x1:0px; y1:739px; x2:315px; y2:739px; "/>
- <switch id="switch2" style="left:320px; top:79px; width:875px; height:630px; ">
- <case id="case1">
- <datagrid id="grd_nutrstatjudg" nodeset="/root/main/maindata/cureplan/nutrstatjudg" autoresize="true" caption="등록번호^수행일자^영양관리유형^상담구분^코드^내용" colsep="^" colwidth="10, 10, 10, 10, 180, 197" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:468px; top:526px; width:399px; height:89px; ">
- <col ref="pid" visibility="hidden"/>
- <col ref="execdd" visibility="hidden"/>
- <col ref="nutrmngtkind" visibility="hidden"/>
- <col ref="cnstpurs" visibility="hidden"/>
- <col ref="cureplancd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cureplancd1/A503">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cureplancnts" type="inputbutton"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colidx = grd_nutrstatjudg.col;
- var rowidx = grd_nutrstatjudg.row;
-
- if(grd_nutrstatjudg.colAttribute(colidx, "ref") == "cureplancnts"){
- model.setValue("/root/send/cureplancnts", "");
- grp_cureplancnts.visible = true;
- var rownum = grd_nutrstatjudg.row;
- var cureplancnts = model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+rownum+"]/cureplancnts");
-
- model.setValue("/root/send/cureplancnts",cureplancnts);
- grd_nutrstatjudg.addStatus( grd_nutrstatjudg.row ,"update");
- //grd_nutrstatjudg.dispatch("xforms-value-changed");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_rowadd1" class="btn2_letter3" style="left:750px; top:500px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_nutrstatjudg.addRow();
- //model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ grd_nutrstatjudg.row +"]/pid", model.getValue("/root/main/tab/pridmenuwrite/list["+ prerow +"]/pridseq"));
- ]]>
- </script>
- </button>
- <button id="btn_rowdel1" class="btn2_letter3" style="left:805px; top:500px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_nutrstatjudg.deleteRow(grd_nutrstatjudg.row);
- grd_nutrstatjudg.addStatus(grd_nutrstatjudg.row, "delete");
- ]]>
- </script>
- </button>
- <caption id="caption46" class="tit_2" style="left:13px; top:118px; width:100px; height:13px; ">식사시 문제점</caption>
- <output id="ipt_testrsltalb" ref="/root/main/testrslt/lis/alb" class="output_fix" navindex="10" style="left:506px; top:137px; width:52px; height:19px; "/>
- <line id="line38" class="line_1" style="x1:468px; y1:386px; x2:867px; y2:386px; "/>
- <output id="ipt_testrslthbhct" ref="/root/main/testrslt/lis/hb" class="output_fix" navindex="12" style="left:706px; top:137px; width:30px; height:19px; "/>
- <caption id="caption47" class="tit_2" style="left:472px; top:505px; width:128px; height:13px; ">영양치료계획/권장</caption>
- <caption id="caption48" class="cell_1" style="left:468px; top:78px; width:74px; height:23px; vertical-align:middle; ">Wt.Change</caption>
- <button id="btn_childbasetable" class="btn2_letter5" style="left:791px; top:2px; width:75px; height:19px; ">
- <caption>소아기준표</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //modal("SPANC00305", 0,100,100,"SPANC00305","","","left:30; top:50; width:1400; height:1000;");
- modal("SPANC00305");
- ipt_physmeasibw.refresh();
- ]]>
- </script>
- </button>
- <line id="line39" class="line_2" style="x1:468px; y1:51px; x2:865px; y2:51px; "/>
- <line id="line40" class="line_2" style="x1:468px; y1:76px; x2:865px; y2:76px; "/>
- <select id="chk_dietprob" ref="/root/main/maindata/nutrstatjudg/dietprobchoi" overflow="visible" appearance="full" cellspacing="25" cols="4" sep="▦" vcellspacing="10" style="left:5px; top:137px; width:453px; height:83px; ">
- <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>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- </choices>
- </select>
- <input id="ipt_physmeasubw" ref="/root/main/maindata/nutrstatjudg/physmeasubw" class="input_search" navindex="3" autonext="false" maxlength="3" format="###.9" style="left:804px; top:29px; width:40px; height:19px; "/>
- <caption id="caption50" style="left:591px; top:28px; width:20px; height:20px; vertical-align:middle; ">cm</caption>
- <output id="ipt_testrslttlc" ref="/root/main/testrslt/lis/tlc" class="output_fix" navindex="11" style="left:598px; top:137px; width:52px; height:19px; "/>
- <line id="line41" class="line_1" style="x1:468px; y1:521px; x2:867px; y2:521px; "/>
- <line id="line42" class="line_3" style="x1:468px; y1:100px; x2:865px; y2:100px; "/>
- <caption id="caption51" class="cell_1" style="left:561px; top:135px; width:35px; height:23px; vertical-align:middle; ">TLC</caption>
- <output id="ipt_testrslttrf" ref="/root/main/testrslt/lis/trf" class="output_fix" navindex="14" style="left:820px; top:137px; width:47px; height:19px; "/>
- <caption id="caption52" class="cell_1" style="left:468px; top:53px; width:74px; height:23px; vertical-align:middle; ">IBW</caption>
- <caption id="caption53" style="left:718px; top:29px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
- <input id="ipt_physmeasbdht" ref="/root/main/maindata/nutrstatjudg/physmeasbdht" class="input_search" navindex="1" autonext="false" maxlength="3" format="###.9" style="left:545px; top:30px; width:45px; height:19px; "/>
- <caption id="caption54" class="cell_1" style="left:468px; top:28px; width:74px; height:23px; vertical-align:middle; ">Ht</caption>
- <caption id="caption55" style="left:847px; top:53px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
- <input id="ipt_bdwtupdtqty" ref="/root/main/maindata/nutrstatjudg/bdwtupdtqty" class="input_search" navindex="7" autonext="false" maxlength="4" format="(-)###.9" style="left:545px; top:80px; width:45px; height:19px; "/>
- <caption id="caption56" style="left:847px; top:28px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
- <caption id="caption62" class="tit_2" style="left:472px; top:370px; width:95px; height:13px; ">영양상태평가</caption>
- <line id="line44" class="line_3" style="x1:468px; y1:217px; x2:868px; y2:217px; "/>
- <line id="line45" class="line_3" style="x1:468px; y1:622px; x2:867px; y2:622px; "/>
- <line id="line46" class="line_1" style="x1:5px; y1:131px; x2:458px; y2:131px; "/>
- <caption id="caption72" class="cell_1" style="left:740px; top:53px; width:61px; height:23px; vertical-align:middle; ">ABW</caption>
- <input id="ipt_bdwtupdtrate" ref="/root/main/maindata/nutrstatjudg/bdwtupdtrate" class="input_search" navindex="8" autonext="false" maxlength="3" format="(-)##.9" style="left:627px; top:80px; width:40px; height:19px; "/>
- <caption id="caption73" class="cell_1" style="left:740px; top:28px; width:61px; height:23px; vertical-align:middle; ">UBW</caption>
- <caption id="caption74" class="cell_1" style="left:616px; top:28px; width:56px; height:23px; vertical-align:middle; ">Wt</caption>
- <input id="ipt_physmeasabw" ref="/root/main/maindata/nutrstatjudg/physmeasabw" class="input_search" navindex="6" autonext="false" maxlength="3" format="###.9" style="left:804px; top:54px; width:40px; height:19px; "/>
- <caption id="caption76" class="cell_1" style="left:616px; top:53px; width:56px; height:23px; vertical-align:middle; ">PIBW</caption>
- <line id="line76" class="line_1" style="x1:468px; y1:245px; x2:867px; y2:245px; "/>
- <caption id="caption77" style="left:591px; top:57px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
- <input id="ipt_physmeasibw" ref="/root/main/maindata/nutrstatjudg/physmeasibw" class="input_search" navindex="4" autonext="false" maxlength="3" format="###.9" style="left:545px; top:54px; width:45px; height:19px; "/>
- <caption id="caption79" class="cell_1" style="left:653px; top:135px; width:50px; height:23px; vertical-align:middle; ">Hb/Hct</caption>
- <caption id="caption80" style="left:718px; top:54px; width:20px; height:20px; vertical-align:middle; ">%</caption>
- <input id="ipt_physmeasibwperc" ref="/root/main/maindata/nutrstatjudg/physmeasibwperc" class="input_search" navindex="5" autonext="false" maxlength="3" format="###.9" style="left:675px; top:55px; width:40px; height:19px; "/>
- <caption id="caption83" style="left:591px; top:82px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
- <line id="line82" class="line_2" style="x1:467px; y1:158px; x2:872px; y2:158px; "/>
- <caption id="caption86" class="tit_2" style="left:472px; top:230px; width:95px; height:13px; ">약물정보</caption>
- <caption id="caption90" class="cell_1" style="left:782px; top:135px; width:35px; height:23px; vertical-align:middle; ">TRF</caption>
- <input id="ipt_physmeasbdwt" ref="/root/main/maindata/nutrstatjudg/physmeasbdwt" class="input_search" navindex="2" autonext="false" maxlength="3" format="###.9" style="left:675px; top:30px; width:40px; height:19px; "/>
- <caption id="caption91" class="cell_1" style="left:468px; top:135px; width:35px; height:23px; vertical-align:middle; ">Alb</caption>
- <textarea id="tar_testrsltrem" ref="/root/main/maindata/nutrstatjudg/testrsltrem" navindex="15" style="left:468px; top:160px; width:399px; height:56px; "/>
- <button id="btn_testrsltref" class="btn2_letter6" style="left:780px; top:111px; width:86px; height:19px; ">
- <caption>검사결과조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- open("SMAER00800","","","","","/root/send/searchitem/pid", "/root/send/data/singdata/srchpid");
- ]]>
- </script>
- </button>
- <caption id="caption94" class="tit_2" style="left:470px; top:117px; width:95px; height:13px; ">검사결과</caption>
- <caption id="caption96" class="tit_2" style="left:470px; top:7px; width:95px; height:13px; ">신체계측결과</caption>
- <line id="line85" class="line_1" style="x1:468px; y1:23px; x2:865px; y2:23px; "/>
- <line id="line86" class="line_1" style="x1:468px; y1:131px; x2:868px; y2:131px; "/>
- <line id="line90" class="line_3" style="x1:5px; y1:106px; x2:458px; y2:106px; "/>
- <line id="line93" class="line_1" style="x1:5px; y1:23px; x2:458px; y2:23px; "/>
- <select id="chk_bodysymp" ref="/root/main/maindata/nutrstatjudg/bodysympchoi" overflow="visible" appearance="full" cellspacing="25" cols="4" sep="▦" vcellspacing="10" style="left:5px; top:28px; width:453px; height:82px; ">
- <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>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- </choices>
- </select>
- <caption id="caption98" class="tit_2" style="left:13px; top:8px; width:95px; height:13px; ">신체증후</caption>
- <line id="line94" class="line_3" style="x1:5px; y1:217px; x2:458px; y2:217px; "/>
- <textarea id="tar_actgrdeetc" ref="/root/main/maindata/nutrstatjudg/actgrdeetc" style="left:67px; top:550px; width:391px; height:71px; "/>
- <caption id="caption103" class="tit_2" style="left:13px; top:231px; width:95px; height:13px; ">식사력</caption>
- <line id="line105" class="line_3" style="x1:5px; y1:622px; x2:458px; y2:622px; "/>
- <line id="line106" class="line_1" style="x1:5px; y1:245px; x2:458px; y2:245px; "/>
- <caption id="caption108" class="cell_1" style="left:5px; top:550px; width:60px; height:72px; text-align:left; vertical-align:middle; ">기타</caption>
- <select id="chk_diethist" ref="/root/main/maindata/nutrstatjudg/diethistchoi" overflow="visible" appearance="full" cellspacing="20" cols="3" sep="▦" vcellspacing="5" style="left:5px; top:250px; width:453px; height:160px; ">
- <choices>
- <item>
- <label>균형된 식사</label>
- <value>11</value>
- </item>
- <item>
- <label>규칙적인 식사</label>
- <value>12</value>
- </item>
- <item>
- <label>불규칙적인 식사</label>
- <value>13</value>
- </item>
- <item>
- <label>빠른식사속도</label>
- <value>14</value>
- </item>
- <item>
- <label>과식</label>
- <value>15</value>
- </item>
- <item>
- <label>당질과다섭취</label>
- <value>16</value>
- </item>
- <item>
- <label>지방과다섭취</label>
- <value>17</value>
- </item>
- <item>
- <label>염분과다섭취</label>
- <value>18</value>
- </item>
- <item>
- <label>건강보조식품</label>
- <value>19</value>
- </item>
- <item>
- <label>커피</label>
- <value>20</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>흡연</label>
- <value>21</value>
- </item>
- <item>
- <label>외식</label>
- <value>22</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>음주</label>
- <value>23</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>기타</label>
- <value>24</value>
- </item>
- </choices>
- </select>
- <caption id="caption109" style="left:358px; top:316px; width:55px; height:20px; vertical-align:middle; ">pack/day</caption>
- <caption id="caption115" style="left:136px; top:315px; width:54px; height:20px; vertical-align:middle; ">잔/day</caption>
- <caption id="caption119" style="left:136px; top:337px; width:50px; height:20px; vertical-align:middle; ">회/week</caption>
- <caption id="caption121" style="left:306px; top:360px; width:20px; height:20px; vertical-align:middle; ">)</caption>
- <caption id="caption128" style="left:136px; top:359px; width:121px; height:20px; vertical-align:middle; background-color:#ffffff; ">회/week (1회 섭취량</caption>
- <input id="ipt_drunkvol" ref="/root/main/maindata/nutrstatjudg/drunkvol" class="input_search" style="left:262px; top:360px; width:40px; height:19px; "/>
- <output id="ipt_testrslthbhct2" ref="/root/main/testrslt/lis/hct" class="output_fix" navindex="13" style="left:749px; top:137px; width:30px; height:19px; "/>
- <caption id="caption144" style="left:618px; top:82px; width:15px; height:20px; vertical-align:middle; ">(</caption>
- <caption id="caption145" style="left:670px; top:82px; width:30px; height:20px; vertical-align:middle; ">)% /</caption>
- <line id="line110" class="line_2" style="x1:5px; y1:82px; x2:458px; y2:82px; "/>
- <line id="line111" class="line_2" style="x1:5px; y1:193px; x2:463px; y2:193px; "/>
- <caption id="caption146" style="left:738px; top:137px; width:10px; height:20px; vertical-align:middle; ">/</caption>
- <input id="ipt_cofftims" ref="/root/main/maindata/nutrstatjudg/cofftims" class="input_search" autonext="false" maxlength="4" style="left:60px; top:315px; width:73px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/cofftims") == "") {
- var str = chk_diethist.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.substr(i,2);
- if (ch == "20") {
- chk = "Y";
- }
- if (chk == "Y" && str.charAt(i) == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + str.charAt(i);
- }
- }
- chk_diethist.value = str1;
- } else {
- var str = chk_diethist.value;
- var yn = "N";
- for (var i=0; i < str.length; i++) {
- if ( str.substr(i,2) == "20" ) {
- yn = "Y";
- break;
- }
- }
- if ( yn == "N" ) {
- str = str + "▦20"
- chk_diethist.value = str;
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_eatouttims" ref="/root/main/maindata/nutrstatjudg/eatouttims" class="input_search" autonext="false" maxlength="5" style="left:60px; top:337px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/eatouttims") == "") {
- var str = chk_diethist.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.substr(i,2);
- if (ch == "22") {
- chk = "Y";
- }
- if (chk == "Y" && str.charAt(i) == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + str.charAt(i);
- }
- }
- chk_diethist.value = str1;
- } else {
- var str = chk_diethist.value;
- var yn = "N";
- for (var i=0; i < str.length; i++) {
- if ( str.substr(i,2) == "22" ) {
- yn = "Y";
- break;
- }
- }
- if ( yn == "N" ) {
- str = str + "▦22"
- chk_diethist.value = str;
- }
- // var str = chk_diethist.value;
- // str = str + "▦22"
- // chk_diethist.value = str;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_drunktims" ref="/root/main/maindata/nutrstatjudg/drunktims" class="input_search" autonext="false" maxlength="5" style="left:60px; top:359px; width:72px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/drunktims") == "") {
- var str = chk_diethist.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.substr(i,2);
- if (ch == "23") {
- chk = "Y";
- }
- if (chk == "Y" && str.charAt(i) == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + str.charAt(i);
- }
- }
- chk_diethist.value = str1;
- } else {
- var str = chk_diethist.value;
- var yn = "N";
- for (var i=0; i < str.length; i++) {
- if ( str.substr(i,2) == "23" ) {
- yn = "Y";
- break;
- }
- }
- if ( yn == "N" ) {
- str = str + "▦23"
- chk_diethist.value = str;
- }
- // var str = chk_diethist.value;
- // str = str + "▦23"
- // chk_diethist.value = str;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dietprobrem" ref="/root/main/maindata/nutrstatjudg/dietprobrem" class="input_search" style="left:55px; top:194px; width:363px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/dietprobrem") == "") {
- var str = chk_dietprob.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.charAt(i);
- if (ch == "9") {
- chk = "Y";
- }
- if (chk == "Y" && ch == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + ch;
- }
- }
- chk_dietprob.value = str1;
- } else {
- var str = chk_dietprob.value;
- str = str + "▦9"
- chk_dietprob.value = str;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_bodysymprem" ref="/root/main/maindata/nutrstatjudg/bodysymprem" class="input_search" style="left:55px; top:85px; width:368px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/bodysymprem") == "") {
- var str = chk_bodysymp.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.charAt(i);
- if (ch == "9") {
- chk = "Y";
- }
- if (chk == "Y" && ch == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + ch;
- }
- }
- chk_bodysymp.value = str1;
- } else {
- var str = chk_bodysymp.value;
- str = str + "▦9"
- chk_bodysymp.value = str;
- }
- ]]>
- </script>
- </input>
- <line id="line112" class="line_3" style="x1:468px; y1:491px; x2:867px; y2:491px; "/>
- <textarea id="tar_nutrstatvalu" ref="/root/main/maindata/nutrstatjudg/nutrstatvalucnts" navindex="17" style="left:468px; top:416px; width:399px; height:74px; "/>
- <button id="btn_drughbook" class="btn2_letter4" style="left:802px; top:225px; width:64px; height:19px; ">
- <caption>약품편람</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SMADB01900", 0,100,100,"SMADB01900","","","left:30; top:50; width:1230; height:840;");
- //modal("SMADB01900", "", "", "", "popup", "", "");
- ]]>
- </script>
- </button>
- <line id="line113" class="line_3" style="x1:468px; y1:359px; x2:867px; y2:359px; "/>
- <textarea id="tar_druginfo" ref="/root/main/maindata/nutrstatjudg/druginfo" navindex="16" style="left:468px; top:250px; width:399px; height:108px; "/>
- <caption id="caption71" class="cell_1" style="left:469px; top:391px; width:109px; height:23px; vertical-align:middle; ">영양상태판정</caption>
- <line id="line43" class="line_2" style="x1:468px; y1:414px; x2:867px; y2:414px; "/>
- <select1 id="cmb_nutrstatvalu" ref="/root/main/maindata/nutrstatjudg/nutrstatvalucd" class="combo_search" appearance="minimal" style="left:581px; top:392px; width:285px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/nutrstatvalucd/A501">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_eatoutrem" ref="/root/main/maindata/nutrstatjudg/eatoutrem" class="input_search" style="left:195px; top:338px; width:263px; height:19px; "/>
- <input id="ipt_diethistetc" ref="/root/main/maindata/nutrstatjudg/diethistetc" class="input_search" style="left:60px; top:382px; width:398px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/diethistetc") == "") {
- var str = chk_diethist.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.substr(i,2);
- if (ch == "24") {
- chk = "Y";
- }
- if (chk == "Y" && str.charAt(i) == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + str.charAt(i);
- }
- }
- chk_diethist.value = str1;
- } else {
- var str = chk_diethist.value;
- var yn = "N";
- for (var i=0; i < str.length; i++) {
- if ( str.substr(i,2) == "24" ) {
- yn = "Y";
- break;
- }
- }
- if ( yn == "N" ) {
- str = str + "▦24"
- chk_diethist.value = str;
- }
- // var str = chk_diethist.value;
- // str = str + "▦24"
- // chk_diethist.value = str;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_drunkrem" ref="/root/main/maindata/nutrstatjudg/drunkrem" class="input_search" style="left:315px; top:360px; width:143px; height:19px; "/>
- <input id="ipt_healsuppfood" ref="/root/main/maindata/nutrstatjudg/healsuppfood" class="input_search" style="left:324px; top:293px; width:134px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/healsuppfood") == "") {
- var str = chk_diethist.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.substr(i,2);
- if (ch == "19") {
- chk = "Y";
- }
- if (chk == "Y" && str.charAt(i) == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + str.charAt(i);
- }
- }
- chk_diethist.value = str1;
- } else {
- var str = chk_diethist.value;
- var yn = "N";
- for (var i=0; i < str.length; i++) {
- if ( str.substr(i,2) == "19" ) {
- yn = "Y";
- break;
- }
- }
- if ( yn == "N" ) {
- str = str + "▦19"
- chk_diethist.value = str;
- }
- // var str = chk_diethist.value;
- // str = str + "▦19"
- // chk_diethist.value = str;
- }
- ]]>
- </script>
- </input>
- <line id="line149" class="line_1" style="x1:5px; y1:490px; x2:458px; y2:490px; "/>
- <caption id="caption156" class="tit_2" style="left:13px; top:476px; width:95px; height:13px; ">활동정도</caption>
- <select id="chk_actgrde" ref="/root/main/maindata/nutrstatjudg/actgrdechoi" overflow="visible" appearance="full" cellspacing="25" cols="4" sep="▦" vcellspacing="10" style="left:5px; top:496px; width:453px; height:50px; ">
- <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>
- </choices>
- </select>
- <line id="line119" class="line_3" style="x1:5px; y1:411px; x2:458px; y2:411px; "/>
- <input id="ipt_actgrdeexer" ref="/root/main/maindata/nutrstatjudg/actgrdeexer" class="input_search" style="left:67px; top:526px; width:391px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/actgrdeexer") == "") {
- var str = chk_actgrde.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.charAt(i);
- if (ch == "5") {
- chk = "Y";
- }
- if (chk == "Y" && str.charAt(i) == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + str.charAt(i);
- }
- }
- chk_actgrde.value = str1;
- } else {
- var str = chk_actgrde.value;
- str = str + "▦5"
- chk_actgrde.value = str;
- }
- ]]>
- </script>
- </input>
- <caption id="caption167" style="left:745px; top:82px; width:30px; height:20px; vertical-align:middle; ">개월</caption>
- <input id="ipt_bdwtupdtterm" ref="/root/main/maindata/nutrstatjudg/bdwtupdtterm" class="input_search" navindex="9" autonext="false" maxlength="5" style="left:700px; top:80px; width:40px; height:19px; "/>
- <button id="btn_nutrstatjudgbase" class="btn2_letter8" style="left:758px; top:366px; width:108px; height:19px; ">
- <caption>영양상태판정기준</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //modal("SPANC00200", 0,100,150,"SPANC00200", "/root/init/nutrjudgbase", "/root/main/receivedata");
- modal("SPANC00303", 0,100,150,"SPANC00303");
- ]]>
- </script>
- </button>
- <input id="ipt_smoktims" ref="/root/main/maindata/nutrstatjudg/smoktims" class="input_search" autonext="false" maxlength="4" style="left:279px; top:316px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
- if (model.getValue("/root/main/maindata/nutrstatjudg/smoktims") == "") {
- var str = chk_diethist.value;
- var str1 = "";
- var chk = "";
- for (var i=0; i < str.length; i++) {
- var ch = str.substr(i,2);
- if (ch == "21") {
- chk = "Y";
- }
- if (chk == "Y" && str.charAt(i) == "▦") {
- chk = "";
- } else if (chk == "Y") {
- } else {
- str1 = str1 + str.charAt(i);
- }
- }
- chk_diethist.value = str1;
- } else {
- var str = chk_diethist.value;
- var yn = "N";
- for (var i=0; i < str.length; i++) {
- if ( str.substr(i,2) == "21" ) {
- yn = "Y";
- break;
- }
- }
- if ( yn == "N" ) {
- str = str + "▦21"
- chk_diethist.value = str;
- }
- // var str = chk_diethist.value;
- // str = str + "▦21"
- // chk_diethist.value = str;
- }
- ]]>
- </script>
- </input>
- <line id="line153" class="line_1" style="x1:5px; y1:436px; x2:458px; y2:436px; "/>
- <caption id="caption176" class="cell_1" style="left:5px; top:441px; width:60px; height:23px; vertical-align:middle; ">주식</caption>
- <caption id="caption177" class="cell_1" style="left:147px; top:441px; width:60px; height:23px; vertical-align:middle; ">부식</caption>
- <line id="line154" class="line_3" style="x1:5px; y1:464px; x2:458px; y2:464px; "/>
- <caption id="caption202" class="cell_1" style="left:290px; top:441px; width:60px; height:23px; vertical-align:middle; ">기타</caption>
- <input id="ipt_intkstatmainmeal" ref="/root/main/maindata/nutrstatjudg/intkstatmainmeal" class="input_search" autonext="false" maxlength="3" format="999" style="left:68px; top:442px; width:52px; height:19px; "/>
- <caption id="caption203" style="left:126px; top:442px; width:20px; height:20px; vertical-align:middle; ">%</caption>
- <caption id="caption207" style="left:268px; top:442px; width:20px; height:20px; vertical-align:middle; ">%</caption>
- <input id="ipt_intkstatsubmeal" ref="/root/main/maindata/nutrstatjudg/intkstatsubmeal" class="input_search" autonext="false" maxlength="3" format="999" style="left:210px; top:442px; width:52px; height:19px; "/>
- <line id="line151" class="line_2" style="x1:5px; y1:548px; x2:458px; y2:548px; "/>
- <input id="ipt_intkstatetc" ref="/root/main/maindata/nutrstatjudg/intkstatetc" class="input_search" style="left:353px; top:442px; width:105px; height:19px; "/>
- <caption id="caption209" class="tit_2" style="left:13px; top:422px; width:95px; height:14px; ">식사섭취상태</caption>
- <button id="btn_calculation" class="btn2_letter2" style="left:805px; top:80px; width:42px; height:19px; ">
- <caption>계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPhysMeasRsltCalc();
- ]]>
- </script>
- </button>
- <group id="grp_cureplancnts" visibility="hidden" style="left:280px; top:250px; width:445px; height:245px; ">
- <textarea id="textarea2" ref="/root/send/cureplancnts" style="left:5px; top:30px; width:435px; height:180px; "/>
- <button id="button4" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_cureplancnts.visible = false;
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rownum = grd_nutrstatjudg.row ;
- var cureplancnts = model.getValue("/root/send/cureplancnts");
-
- model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+rownum+"]/cureplancnts",cureplancnts);
- model.setValue("/root/send/cureplancnts","");
- grp_cureplancnts.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption11" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">영양치료계획/권장</caption>
- <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
- </group>
- </case>
- <case id="case2">
- <datagrid id="grd_cnstreq" nodeset="/root/main/maindata/cureplan/cnstreq" autoresize="true" caption="등록번호^수행일자^영양관리유형^상담구분^코드^내용" colsep="^" colwidth="10, 10, 10, 10, 350, 486" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:7px; top:515px; width:858px; height:105px; ">
- <col ref="pid" visibility="hidden"/>
- <col ref="execdd" visibility="hidden"/>
- <col ref="nutrmngtkind" visibility="hidden"/>
- <col ref="cnstpurs" visibility="hidden"/>
- <col ref="cureplancd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cureplancd2/A504">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cureplancnts" type="inputbutton"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colidx = grd_cnstreq.col;
- var rowidx = grd_cnstreq.row;
-
- if(grd_cnstreq.colAttribute(colidx, "ref") == "cureplancnts"){
- model.setValue("/root/send/cureplancnts", "");
- grp_cnstreq.visible = true;
- var rownum = grd_cnstreq.row;
- var cureplancnts = model.getValue("/root/main/maindata/cureplan/cnstreq["+rownum+"]/cureplancnts");
-
- model.setValue("/root/send/cureplancnts",cureplancnts);
- grd_cnstreq.addStatus( grd_cnstreq.row ,"update");
- //grd_cnstreq.dispatch("xforms-value-changed");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_rowadd2" class="btn2_letter3" style="left:750px; top:490px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_cnstreq.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_rowdel2" class="btn2_letter3" style="left:805px; top:490px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_cnstreq.deleteRow(grd_cnstreq.row);
- grd_cnstreq.addStatus(grd_cnstreq.row, "delete");
- ]]>
- </script>
- </button>
- <line id="line114" class="line_3" style="x1:5px; y1:428px; x2:338px; y2:428px; "/>
- <textarea id="tar_review1" ref="/root/main/maindata/cnstreq/review" disabled="false" style="left:5px; top:30px; width:333px; height:397px; line-spacing:6; "/>
- <line id="line115" class="line_1" style="x1:5px; y1:25px; x2:338px; y2:25px; "/>
- <caption id="caption150" class="tit_2" style="left:11px; top:10px; width:142px; height:13px; ">영양상태판정Review</caption>
- <caption id="caption152" class="tit_2" style="left:350px; top:10px; width:100px; height:13px; ">영양요구량</caption>
- <line id="line116" class="line_1" style="x1:345px; y1:25px; x2:865px; y2:25px; "/>
- <line id="line117" class="line_2" style="x1:345px; y1:52px; x2:865px; y2:52px; "/>
- <line id="line118" class="line_2" style="x1:345px; y1:152px; x2:865px; y2:152px; "/>
- <caption id="caption157" class="cell_1" style="left:345px; top:178px; width:83px; height:40px; vertical-align:middle; ">기타</caption>
- <input id="opt_calr" ref="/root/main/maindata/cnstreq/optcalr1" class="output_fix" autonext="false" editable="true" maxlength="4" format="9999" appearance="input" style="left:431px; top:55px; width:85px; height:19px; "/>
- <caption id="caption158" style="left:523px; top:55px; width:55px; height:20px; vertical-align:middle; ">kcal/day</caption>
- <select1 id="rdo_calrflag" ref="/root/main/maindata/cnstreq/calrflag1" appearance="full" cols="1" rows="2" vcellspacing="9" overflow="visible" style="left:433px; top:77px; width:58px; height:50px; ">
- <choices>
- <item>
- <label>계수법</label>
- <value>1</value>
- </item>
- <item>
- <label>HB</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption159" style="left:618px; top:105px; width:10px; height:20px; vertical-align:middle; ">*</caption>
- <caption id="caption160" style="left:553px; top:80px; width:10px; height:20px; vertical-align:middle; ">*</caption>
- <caption id="caption161" style="left:618px; top:80px; width:55px; height:20px; vertical-align:middle; ">kcal/kg</caption>
- <caption id="caption162" style="left:553px; top:105px; width:10px; height:20px; vertical-align:middle; ">*</caption>
- <caption id="caption163" style="left:498px; top:130px; width:67px; height:20px; vertical-align:middle; ">복막투석액</caption>
- <caption id="caption164" style="left:618px; top:132px; width:30px; height:20px; vertical-align:middle; ">kcal</caption>
- <input id="ipt_dialqty" ref="/root/main/maindata/cnstreq/dialqty1" class="input_search" autonext="false" maxlength="4" format="9999" style="left:568px; top:130px; width:45px; height:19px; "/>
- <caption id="caption166" style="left:693px; top:155px; width:10px; height:20px; vertical-align:middle; ">*</caption>
- <caption id="caption168" style="left:523px; top:155px; width:38px; height:20px; vertical-align:middle; ">g/day</caption>
- <caption id="caption169" style="left:755px; top:155px; width:37px; height:25px; vertical-align:middle; ">g/kg</caption>
- <input id="opt_protadopt" ref="/root/main/maindata/cnstreq/optprotadopt1" class="output_fix" autonext="false" editable="true" maxlength="3" format="###.9" appearance="input" style="left:638px; top:155px; width:50px; height:19px; "/>
- <input id="opt_protqty" ref="/root/main/maindata/cnstreq/optprotqty1" class="output_fix" autonext="false" editable="true" maxlength="3" format="999" appearance="input" style="left:431px; top:155px; width:85px; height:19px; "/>
- <caption id="caption172" class="cell_1" style="left:345px; top:154px; width:83px; height:23px; vertical-align:middle; ">단백질</caption>
- <line id="line120" class="line_3" style="x1:345px; y1:219px; x2:865px; y2:219px; "/>
- <line id="line121" class="line_1" style="x1:345px; y1:244px; x2:865px; y2:244px; "/>
- <caption id="caption178" class="tit_2" style="left:350px; top:228px; width:95px; height:13px; ">영양상태평가</caption>
- <textarea id="tar_nutrstatvalu1" ref="/root/main/maindata/cnstreq/nutrstatvalucnts1" style="left:345px; top:274px; width:520px; height:54px; "/>
- <caption id="caption179" class="cell_1" style="left:6px; top:460px; width:65px; height:23px; vertical-align:middle; ">피상담자</caption>
- <caption id="caption180" class="tit_2" style="left:11px; top:439px; width:128px; height:13px; ">영양상담이해도</caption>
- <select1 id="rdo_unstdgrde" ref="/root/main/maindata/cnstreq/unstdgrde1" appearance="full" cellspacing="30" cols="3" rows="1" overflow="visible" style="left:432px; top:462px; width:255px; height:20px; ">
- <choices>
- <item>
- <label>상</label>
- <value>1</value>
- </item>
- <item>
- <label>중</label>
- <value>2</value>
- </item>
- <item>
- <label>하</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <line id="line122" class="line_3" style="x1:6px; y1:483px; x2:865px; y2:483px; "/>
- <line id="line123" class="line_1" style="x1:6px; y1:455px; x2:865px; y2:455px; "/>
- <caption id="caption181" class="cell_1" style="left:345px; top:460px; width:83px; height:23px; vertical-align:middle; ">이해도</caption>
- <select id="chk_cnstpsn" ref="/root/main/maindata/cnstreq/cnstpsn1" overflow="visible" appearance="full" cellspacing="28" cols="4" rows="1" sep="▦" style="left:80px; top:462px; width:255px; height:20px; ">
- <choices>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- <item>
- <label>보호자</label>
- <value>2</value>
- </item>
- <item>
- <label>기타</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <line id="line124" class="line_3" style="x1:6px; y1:625px; x2:865px; y2:625px; "/>
- <caption id="caption182" class="tit_2" style="left:10px; top:494px; width:128px; height:13px; ">영양치료계획/권장</caption>
- <input id="opt_calrhb" ref="/root/main/maindata/cnstreq/optcalrhb1" class="output_fix" autonext="false" editable="true" maxlength="3" format="###.9" appearance="input" style="left:498px; top:105px; width:50px; height:19px; "/>
- <input id="opt_calradopt" ref="/root/main/maindata/cnstreq/optcalradopt1" class="output_fix" autonext="false" editable="true" maxlength="3" format="###.9" appearance="input" style="left:498px; top:80px; width:50px; height:19px; "/>
- <textarea id="tar_nutrreqqty" ref="/root/main/maindata/cnstreq/nutrreqqty1" style="left:431px; top:180px; width:434px; height:38px; "/>
- <line id="line126" class="line_1" style="x1:6px; y1:510px; x2:865px; y2:510px; "/>
- <button id="btn_intkqtyvalu" class="btn2_letter5" style="left:690px; top:5px; width:75px; height:19px; ">
- <caption>섭취량평가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/searchitem/cnstflag", "C"); // 'C'는 협진의뢰를 뜻함.
- model.setValue("/root/send/searchitem/calrintk", model.getValue("/root/main/maindata/cnstreq/calrintk1"));
- model.setValue("/root/send/searchitem/calrintkqty", model.getValue("/root/main/maindata/cnstreq/calrintkqty1"));
- model.setValue("/root/send/searchitem/protintk", model.getValue("/root/main/maindata/cnstreq/protintk1"));
- model.setValue("/root/send/searchitem/protintkqty", model.getValue("/root/main/maindata/cnstreq/protintkqty1"));
- model.setValue("/root/send/searchitem/intkqtyetc", model.getValue("/root/main/maindata/cnstreq/intkqtyetc1"));
- model.setValue("/root/send/searchitem/dietercmt", model.getValue("/root/main/maindata/cnstreq/dietercmt1"));
- model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/maindata/patbaseinfo/hngnm"));
- model.setValue("/root/send/searchitem/sex", model.getValue("/root/main/maindata/patbaseinfo/sex"));
- model.setValue("/root/send/searchitem/age", model.getValue("/root/main/maindata/patbaseinfo/age"));
- model.setValue("/root/send/searchitem/ht", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"));
- model.setValue("/root/send/searchitem/wt", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
- model.setValue("/root/send/searchitem/ibw", model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"));
- model.setValue("/root/send/searchitem/calrrecmqty", model.getValue("/root/main/maindata/cnstreq/optcalr1"));
- model.setValue("/root/send/searchitem/protrecmqty", model.getValue("/root/main/maindata/cnstreq/optprotqty1"));
- modal("SPANC00100", 0,100,150,"SPANC00100", "/root/send/searchitem", "/root/main/receivedata");
- ]]>
- </script>
- </button>
- <select1 id="cmb_nutrstatvalu1" ref="/root/main/maindata/cnstreq/nutrstatvalucd1" class="combo_default" appearance="minimal" style="left:431px; top:251px; width:434px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/nutrstatvalucd/A501">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption184" class="cell_1" style="left:345px; top:249px; width:83px; height:23px; vertical-align:middle; ">영양상태판정</caption>
- <line id="line127" class="line_2" style="x1:345px; y1:272px; x2:865px; y2:272px; "/>
- <line id="line128" class="line_3" style="x1:345px; y1:329px; x2:865px; y2:329px; "/>
- <line id="line129" class="line_3" style="x1:345px; y1:427px; x2:865px; y2:427px; "/>
- <caption id="caption185" class="tit_2" style="left:350px; top:340px; width:95px; height:13px; ">영양상담내용</caption>
- <line id="line130" class="line_1" style="x1:345px; y1:356px; x2:865px; y2:356px; "/>
- <caption id="caption186" class="cell_1" style="left:345px; top:361px; width:83px; height:23px; vertical-align:middle; ">상용구선택</caption>
- <select1 id="cmb_cnstcd" ref="/root/main/maindata/cnstreq/cnstcd" class="combo_default" appearance="minimal" style="left:431px; top:363px; width:434px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cnstcd/A502">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <textarea id="tar_cnstcnts" ref="/root/main/maindata/cnstreq/cnstcnts" style="left:345px; top:386px; width:520px; height:40px; "/>
- <line id="line131" class="line_2" style="x1:345px; y1:384px; x2:865px; y2:384px; "/>
- <button id="btn_nutrstatjudgbase2" class="btn2_letter8" style="left:757px; top:224px; width:108px; height:19px; ">
- <caption>영양상태판정기준</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //modal("SPANC00200", 0,100,150,"SPANC00200", "/root/init/nutrjudgbase", "/root/main/receivedata");
- modal("SPANC00303", 0,100,150,"SPANC00303");
- ]]>
- </script>
- </button>
- <button id="btn_nutrreqqtycalc" class="btn2_letter7" style="left:768px; top:5px; width:97px; height:19px; ">
- <caption>영양요구량계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // btn_calculation2.dispatch("DOMActivate");
- // btn_calculation3.dispatch("DOMActivate");
- var stndbdwt = model.getValue("/root/main/maindata/cnstreq/stndbdwt1"); // 기준체중
- var calrflag = model.getValue("/root/main/maindata/cnstreq/calrflag1"); // 계수법 or HB 구분
- var dialqty = model.getValue("/root/main/maindata/cnstreq/dialqty1"); // 복막투석액
- var calr = 0; // 최종 열량값
- model.setValue("/root/main/maindata/patbaseinfo/flag", "1"); // "1"은 협진의뢰 tab화면임을 뜻함.
-
- if ( calrflag == 1 ) { // 계수법일 경우
- model.setValue("/root/main/maindata/cnstreq/optcalradopt1", stndbdwt);
- var adoptlawcalr = model.getValue("/root/main/maindata/cnstreq/adoptlawcalr1");
- calr = stndbdwt * adoptlawcalr;
-
- //계수법을 선택했으므로 HB 관련 항목은 clear 시킨다.
- model.setValue("/root/main/maindata/cnstreq/optcalrhb1", "");
- model.setValue("/root/main/maindata/cnstreq/hbcalr11", "");
- model.setValue("/root/main/maindata/cnstreq/hbcalr21", "");
-
- } else if ( calrflag == 2 ) { // HB일 경우
- var sex = model.getValue("/root/main/maindata/patbaseinfo/sex");
- var age = model.getValue("/root/main/maindata/patbaseinfo/age");
- var wt = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt");
- var ht = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht");
- // var abw = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdabw");
- var abw = ipt_physmeasabw.value;
- var pibw = opt_pibw1.value;
- var calrhb = 0;
-
- if (sex == "M") { //남자일 경우
- if (pibw < 120) { //PIBW가 120 이상인 경우는 WT 대신 ABW로 계산
- calrhb = 66+13.7*wt+5*ht-6.8*age;
- } else {
- calrhb = 66+13.7*abw+5*ht-6.8*age;
- }
- } else if (sex == "F") { //여자일 경우
- if (pibw < 120) { //PIBW가 120 이상인 경우는 WT 대신 ABW로 계산
- calrhb = 655+9.6*wt+1.8*ht-4.7*age;
- } else {
- calrhb = 655+9.6*abw+1.8*ht-4.7*age;
- }
- }
-
- model.setValue("/root/main/maindata/cnstreq/optcalrhb1", calrhb);
- var hbcalr1 = model.getValue("/root/main/maindata/cnstreq/hbcalr11");
- var hbcalr2 = model.getValue("/root/main/maindata/cnstreq/hbcalr21");
- calr = calrhb * hbcalr1 * hbcalr2;
-
- //HB를 선택했으므로 계수법 관련 항목은 clear 시킨다.
- model.setValue("/root/main/maindata/cnstreq/optcalradopt1", "");
- model.setValue("/root/main/maindata/cnstreq/adoptlawcalr1", "");
- }
-
- if ( dialqty == "" ) { // 복막투석액에 값이 없을 경우는 0으로 처리하고 계산한다.
- dialqty = 0;
- }
- calr = calr - dialqty;
- calr = calr.toString().getRound(-1, "HALF_UP");
- model.setValue("/root/main/maindata/cnstreq/optcalr1", calr);
- btn_calculation4.dispatch("DOMActivate"); //단백질 계산
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption171" style="left:494px; top:33px; width:16px; height:20px; vertical-align:middle; ">kg</caption>
- <input id="ipt_stndbdwt" ref="/root/main/maindata/cnstreq/stndbdwt1" class="input_search" autonext="false" maxlength="3" format="###.9" style="left:431px; top:31px; width:59px; height:19px; "/>
- <line id="line104" class="line_2" style="x1:345px; y1:176px; x2:865px; y2:176px; "/>
- <button id="btn_calculation2" class="btn2_letter2" style="left:690px; top:105px; width:42px; height:19px; ">
- <caption>BEE</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var stndbdwt = model.getValue("/root/main/maindata/cnstreq/stndbdwt1"); // 기준체중
- var calrflag = model.getValue("/root/main/maindata/cnstreq/calrflag1"); // 계수법 or HB 구분
- var dialqty = model.getValue("/root/main/maindata/cnstreq/dialqty1"); // 복막투석액
- var calr = 0; // 최종 열량값
- model.setValue("/root/main/maindata/patbaseinfo/flag", "1"); // "1"은 협진의뢰 tab화면임을 뜻함.
-
- if ( calrflag == 1 ) { // 계수법일 경우
- model.setValue("/root/main/maindata/cnstreq/optcalradopt1", stndbdwt);
- var adoptlawcalr = model.getValue("/root/main/maindata/cnstreq/adoptlawcalr1");
- calr = stndbdwt * adoptlawcalr;
-
- //계수법을 선택했으므로 HB 관련 항목은 clear 시킨다.
- model.setValue("/root/main/maindata/cnstreq/optcalrhb1", "");
- model.setValue("/root/main/maindata/cnstreq/hbcalr11", "");
- model.setValue("/root/main/maindata/cnstreq/hbcalr21", "");
-
- } else if ( calrflag == 2 ) { // HB일 경우
- model.setValue("/root/main/maindata/patbaseinfo/wt", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
- model.setValue("/root/main/maindata/patbaseinfo/ht", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"));
- model.makeValue("/root/main/maindata/patbaseinfo/abw", model.getValue("/root/main/maindata/nutrstatjudg/physmeasabw"));
- model.makeValue("/root/main/maindata/patbaseinfo/pibw", opt_pibw1.value);
- modal("SPANC00301", 0,100,150,"SPANC00301", "/root/main/maindata/patbaseinfo", "/root/main/receivedata");
- var optcalrhb = model.getValue("/root/main/maindata/cnstreq/optcalrhb1");
- var hbcalr1 = model.getValue("/root/main/maindata/cnstreq/hbcalr11");
- var hbcalr2 = model.getValue("/root/main/maindata/cnstreq/hbcalr21");
- calr = optcalrhb * hbcalr1 * hbcalr2;
-
- //HB를 선택했으므로 계수법 관련 항목은 clear 시킨다.
- model.setValue("/root/main/maindata/cnstreq/optcalradopt1", "");
- model.setValue("/root/main/maindata/cnstreq/adoptlawcalr1", "");
- }
-
- if ( dialqty == "" ) { // 복막투석액에 값이 없을 경우는 0으로 처리하고 계산한다.
- dialqty = 0;
- }
- calr = calr - dialqty;
- calr = calr.toString().getRound(-1, "HALF_UP");
- model.setValue("/root/main/maindata/cnstreq/optcalr1", calr);
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_stndbdwtflag" ref="/root/main/maindata/cnstreq/stndbdwtflag1" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" sep="▦" style="left:526px; top:33px; width:150px; height:17px; ">
- <choices>
- <item>
- <label>IBW</label>
- <value>1</value>
- </item>
- <item>
- <label>ABW</label>
- <value>2</value>
- </item>
- <item>
- <label>Wt</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/maindata/cnstreq/stndbdwtflag1") == 1) {
- model.setValue("/root/main/maindata/cnstreq/stndbdwt1", model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"));
- } else if (model.getValue("/root/main/maindata/cnstreq/stndbdwtflag1") == 2) {
- model.setValue("/root/main/maindata/cnstreq/stndbdwt1", model.getValue("/root/main/maindata/nutrstatjudg/physmeasabw"));
- } else if (model.getValue("/root/main/maindata/cnstreq/stndbdwtflag1") == 3) {
- model.setValue("/root/main/maindata/cnstreq/stndbdwt1", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption165" class="cell_1" style="left:345px; top:54px; width:83px; height:99px; vertical-align:middle; ">열량</caption>
- <caption id="caption170" class="cell_1" style="left:345px; top:30px; width:83px; height:23px; vertical-align:middle; ">기준체중</caption>
- <button id="btn_calculation3" class="btn2_letter2" style="left:655px; top:130px; width:42px; height:19px; ">
- <caption>계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPANC00302");
- if ( model.getAttribute("iParam_kcal") != "" ) {
- ipt_dialqty.value = model.getAttribute("iParam_kcal");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_calculation4" class="btn2_letter2" visibility="hidden" style="left:795px; top:155px; width:42px; height:19px; ">
- <caption>계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var stndbdwt = model.getValue("/root/main/maindata/cnstreq/stndbdwt1"); // 기준체중
- model.setValue("/root/main/maindata/cnstreq/optprotadopt1", stndbdwt);
- var protqty = model.getValue("/root/main/maindata/cnstreq/protqty1"); // 단백질(g/kg)
- var optprotqty = stndbdwt * protqty;
- optprotqty = optprotqty.toString().getRound(-1, "HALF_UP");
-
- model.setValue("/root/main/maindata/cnstreq/optprotqty1", optprotqty); // 단백질(g/day)
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_adoptlawcalr" ref="/root/main/maindata/cnstreq/adoptlawcalr1" class="input_search" autonext="false" maxlength="2" format="99" style="left:568px; top:80px; width:45px; height:19px; "/>
- <input id="ipt_hbcalr1" ref="/root/main/maindata/cnstreq/hbcalr11" class="input_search" autonext="false" maxlength="1" format="#.9" style="left:568px; top:105px; width:45px; height:19px; "/>
- <input id="ipt_hbcalr2" ref="/root/main/maindata/cnstreq/hbcalr21" class="input_search" autonext="false" maxlength="1" format="#.9" style="left:632px; top:105px; width:45px; height:19px; "/>
- <input id="ipt_protqty" ref="/root/main/maindata/cnstreq/protqty1" class="input_search" autonext="false" maxlength="1" format="#.9" style="left:705px; top:155px; width:45px; height:19px; "/>
- <caption id="caption1" style="left:590px; top:155px; width:40px; height:20px; vertical-align:middle; ">계수법</caption>
- <caption id="caption4" class="cell_1" style="left:730px; top:30px; width:55px; height:23px; vertical-align:middle; ">PIBW</caption>
- <output id="opt_pibw1" ref="/root/main/maindata/nutrstatjudg/physmeasibwperc" class="output_fix" format="###.9" appearance="output" style="left:788px; top:31px; width:50px; height:19px; "/>
- <caption id="caption5" style="left:840px; top:31px; width:20px; height:20px; vertical-align:middle; ">%</caption>
- <button id="button1" class="btn4_letter5" style="left:750px; top:460px; width:92px; height:22px; ">
- <caption>Care Plan</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var pid = model.getValue("/root/send/searchitem/pid");
- setParameter("SMMRJ00100_pid", pid);
- //open("SMMRJ00100");
- modal("SMMRJ00100", "", "1100", "700", "SMMRJ00100", "", "");
- ]]>
- </script>
- </button>
- <group id="grp_cnstreq" visibility="hidden" style="left:280px; top:250px; width:445px; height:245px; ">
- <textarea id="textarea1" ref="/root/send/cureplancnts" style="left:5px; top:30px; width:435px; height:180px; "/>
- <button id="button2" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_cnstreq.visible = false;
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rownum = grd_cnstreq.row ;
- var cureplancnts = model.getValue("/root/send/cureplancnts");
-
- model.setValue("/root/main/maindata/cureplan/cnstreq["+rownum+"]/cureplancnts",cureplancnts);
- model.setValue("/root/send/cureplancnts","");
- grp_cnstreq.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption12" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">영양치료계획/권장</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
- </group>
- </case>
- <case id="case3">
- <datagrid id="grd_pursmngt" nodeset="/root/main/maindata/cureplan/pursmngt" autoresize="true" caption="등록번호^수행일자^영양관리유형^상담구분^코드^내용" colsep="^" colwidth="10, 10, 10, 10, 240, 258" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:345px; top:425px; width:520px; height:195px; ">
- <col ref="pid" visibility="hidden"/>
- <col ref="execdd" visibility="hidden"/>
- <col ref="nutrmngtkind" visibility="hidden"/>
- <col ref="cnstpurs" visibility="hidden"/>
- <col ref="cureplancd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/cureplancd3/A505">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cureplancnts" type="inputbutton"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colidx = grd_pursmngt.col;
- var rowidx = grd_pursmngt.row;
-
- if(grd_pursmngt.colAttribute(colidx, "ref") == "cureplancnts"){
- model.setValue("/root/send/cureplancnts", "");
- grp_pursmngt.visible = true;
- var rownum = grd_pursmngt.row;
- var cureplancnts = model.getValue("/root/main/maindata/cureplan/pursmngt["+rownum+"]/cureplancnts");
-
- model.setValue("/root/send/cureplancnts",cureplancnts);
- grd_pursmngt.addStatus( grd_pursmngt.row ,"update");
- //grd_cnstreq.dispatch("xforms-value-changed");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_rowadd3" class="btn2_letter3" style="left:750px; top:400px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_pursmngt.addRow();
- ]]>
- </script>
- </button>
- <button id="btn_rowdel3" class="btn2_letter3" style="left:805px; top:400px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_pursmngt.deleteRow(grd_pursmngt.row);
- grd_pursmngt.addStatus(grd_pursmngt.row, "delete");
- ]]>
- </script>
- </button>
- <caption id="caption99" class="tit_2" style="left:350px; top:10px; width:100px; height:13px; ">영양요구량</caption>
- <line id="line141" class="line_1" style="x1:345px; y1:25px; x2:865px; y2:25px; "/>
- <textarea id="tar_nutrstatvalu2" ref="/root/main/maindata/pursmngt/nutrstatvalucnts2" style="left:345px; top:275px; width:520px; height:114px; "/>
- <line id="line142" class="line_2" style="x1:345px; y1:273px; x2:865px; y2:273px; "/>
- <caption id="caption194" class="tit_2" style="left:350px; top:229px; width:128px; height:13px; ">영양상태평가</caption>
- <line id="line143" class="line_1" style="x1:345px; y1:245px; x2:865px; y2:245px; "/>
- <caption id="caption195" class="cell_1" style="left:345px; top:250px; width:87px; height:23px; vertical-align:middle; ">영양상태판정</caption>
- <select1 id="cmb_nutrstatvalu2" ref="/root/main/maindata/pursmngt/nutrstatvalucd2" class="combo_default" appearance="minimal" style="left:435px; top:252px; width:430px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/nutrstatvalucd/A501">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line144" class="line_3" style="x1:345px; y1:391px; x2:865px; y2:391px; "/>
- <line id="line146" class="line_1" style="x1:345px; y1:420px; x2:865px; y2:420px; "/>
- <caption id="caption196" class="tit_2" style="left:350px; top:404px; width:128px; height:13px; ">영양치료계획/권장</caption>
- <line id="line147" class="line_3" style="x1:345px; y1:624px; x2:865px; y2:624px; "/>
- <input id="opt_protqty2" ref="/root/main/maindata/pursmngt/optprotqty2" class="output_fix" autonext="false" maxlength="3" format="999" appearance="input" style="left:435px; top:156px; width:85px; height:19px; "/>
- <caption id="caption193" style="left:522px; top:156px; width:38px; height:20px; vertical-align:middle; ">g/day</caption>
- <caption id="caption199" style="left:754px; top:156px; width:55px; height:20px; vertical-align:middle; ">g/kg</caption>
- <caption id="caption200" style="left:522px; top:56px; width:55px; height:20px; vertical-align:middle; ">kcal/day</caption>
- <caption id="caption201" style="left:623px; top:106px; width:10px; height:20px; vertical-align:middle; ">*</caption>
- <input id="opt_calr2" ref="/root/main/maindata/pursmngt/optcalr2" class="output_fix" autonext="false" maxlength="4" format="9999" appearance="input" style="left:435px; top:56px; width:85px; height:19px; "/>
- <caption id="caption204" style="left:557px; top:82px; width:10px; height:20px; vertical-align:middle; ">*</caption>
- <caption id="caption206" style="left:622px; top:81px; width:55px; height:20px; vertical-align:middle; ">kcal/kg</caption>
- <caption id="caption208" style="left:557px; top:107px; width:10px; height:20px; vertical-align:middle; ">*</caption>
- <input id="ipt_dialqty2" ref="/root/main/maindata/pursmngt/dialqty2" class="input_search" autonext="false" maxlength="4" format="9999" style="left:572px; top:131px; width:45px; height:19px; "/>
- <caption id="caption210" style="left:497px; top:131px; width:63px; height:20px; vertical-align:middle; ">복막투석액</caption>
- <caption id="caption212" style="left:617px; top:133px; width:30px; height:20px; vertical-align:middle; ">kcal</caption>
- <caption id="caption216" style="left:694px; top:156px; width:10px; height:20px; vertical-align:middle; ">*</caption>
- <textarea id="tar_nutrreqqty2" ref="/root/main/maindata/pursmngt/nutrreqqty2" style="left:435px; top:180px; width:430px; height:35px; "/>
- <line id="line150" class="line_3" style="x1:345px; y1:216px; x2:865px; y2:216px; "/>
- <caption id="caption198" class="cell_1" style="left:345px; top:179px; width:87px; height:36px; vertical-align:middle; ">기타</caption>
- <line id="line148" class="line_2" style="x1:345px; y1:178px; x2:865px; y2:178px; "/>
- <button id="btn_nutrstatjudgbase3" class="btn2_letter8" style="left:757px; top:225px; width:108px; height:19px; ">
- <caption>영양상태판정기준</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //modal("SPANC00200", 0,100,150,"SPANC00200", "/root/init/nutrjudgbase", "/root/main/receivedata");
- modal("SPANC00303", 0,100,150,"SPANC00303");
- ]]>
- </script>
- </button>
- <select1 id="rdo_calrflag2" ref="/root/main/maindata/pursmngt/calrflag2" appearance="full" cols="1" rows="2" vcellspacing="9" overflow="visible" style="left:435px; top:78px; width:58px; height:50px; ">
- <choices>
- <item>
- <label>계수법</label>
- <value>1</value>
- </item>
- <item>
- <label>HB</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="btn_nutrreqqtycalc2" class="btn2_letter7" style="left:768px; top:5px; width:97px; height:19px; ">
- <caption>영양요구량계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // btn_calculation5.dispatch("DOMActivate");
- // btn_calculation6.dispatch("DOMActivate");
- var stndbdwt = model.getValue("/root/main/maindata/pursmngt/stndbdwt2"); // 기준체중
- var calrflag = model.getValue("/root/main/maindata/pursmngt/calrflag2"); // 계수법 or HB 구분
- var dialqty = model.getValue("/root/main/maindata/pursmngt/dialqty2"); // 복막투석액
- var calr = 0; // 최종 열량값
- model.setValue("/root/main/maindata/patbaseinfo/flag", "2"); // "2"는 추구관리 tab화면임을 뜻함.
-
- if ( calrflag == 1 ) { // 계수법일 경우
- model.setValue("/root/main/maindata/pursmngt/optcalradopt2", stndbdwt);
- var adoptlawcalr = model.getValue("/root/main/maindata/pursmngt/adoptlawcalr2");
- calr = stndbdwt * adoptlawcalr;
-
- //계수법을 선택했으므로 HB 관련 항목은 clear 시킨다.
- model.setValue("/root/main/maindata/pursmngt/optcalrhb2", "");
- model.setValue("/root/main/maindata/pursmngt/hbcalr12", "");
- model.setValue("/root/main/maindata/pursmngt/hbcalr22", "");
-
- } else if ( calrflag == 2 ) { // HB일 경우
- var sex = model.getValue("/root/main/maindata/patbaseinfo/sex");
- var age = model.getValue("/root/main/maindata/patbaseinfo/age");
- var wt = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt");
- var ht = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht");
- var abw = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdabw");
- var pibw = opt_pibw2.value;
- var calrhb = 0;
-
- if (sex == "M") { //남자일 경우
- if (pibw < 120) { //PIBW가 120 이상인 경우는 WT 대신 ABW로 계산
- calrhb = 66+13.7*wt+5*ht-6.8*age;
- } else {
- calrhb = 66+13.7*abw+5*ht-6.8*age;
- }
- } else if (sex == "F") { //여자일 경우
- if (pibw < 120) { //PIBW가 120 이상인 경우는 WT 대신 ABW로 계산
- calrhb = 655+9.6*wt+1.8*ht-4.7*age;
- } else {
- calrhb = 655+9.6*abw+1.8*ht-4.7*age;
- }
- }
-
- model.setValue("/root/main/maindata/pursmngt/optcalrhb2", calrhb);
- var hbcalr1 = model.getValue("/root/main/maindata/pursmngt/hbcalr12");
- var hbcalr2 = model.getValue("/root/main/maindata/pursmngt/hbcalr22");
- calr = calrhb * hbcalr1 * hbcalr2;
-
- //HB를 선택했으므로 계수법 관련 항목은 clear 시킨다.
- model.setValue("/root/main/maindata/pursmngt/optcalradopt2", "");
- model.setValue("/root/main/maindata/pursmngt/adoptlawcalr2", "");
- }
-
- if ( dialqty == "" ) { // 복막투석액에 값이 없을 경우는 0으로 처리하고 계산한다.
- dialqty = 0;
- }
- calr = calr - dialqty;
- calr = calr.toString().getRound(-1, "HALF_UP");
- model.setValue("/root/main/maindata/pursmngt/optcalr2", calr);
- btn_calculation7.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_intkqtyvalu2" class="btn2_letter5" style="left:690px; top:5px; width:75px; height:19px; ">
- <caption>섭취량평가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/searchitem/cnstflag", "P"); // 'P'는 추구관리를 뜻함.
- model.setValue("/root/send/searchitem/calrintk", model.getValue("/root/main/maindata/pursmngt/calrintk2"));
- model.setValue("/root/send/searchitem/calrintkqty", model.getValue("/root/main/maindata/pursmngt/calrintkqty2"));
- model.setValue("/root/send/searchitem/protintk", model.getValue("/root/main/maindata/pursmngt/protintk2"));
- model.setValue("/root/send/searchitem/protintkqty", model.getValue("/root/main/maindata/pursmngt/protintkqty2"));
- model.setValue("/root/send/searchitem/intkqtyetc", model.getValue("/root/main/maindata/pursmngt/intkqtyetc2"));
- model.setValue("/root/send/searchitem/dietercmt", model.getValue("/root/main/maindata/pursmngt/dietercmt2"));
- model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/maindata/patbaseinfo/hngnm"));
- model.setValue("/root/send/searchitem/sex", model.getValue("/root/main/maindata/patbaseinfo/sex"));
- model.setValue("/root/send/searchitem/age", model.getValue("/root/main/maindata/patbaseinfo/age"));
- model.setValue("/root/send/searchitem/ht", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"));
- model.setValue("/root/send/searchitem/wt", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
- model.setValue("/root/send/searchitem/ibw", model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"));
- model.setValue("/root/send/searchitem/calrrecmqty", model.getValue("/root/main/maindata/pursmngt/optcalr2"));
- model.setValue("/root/send/searchitem/protrecmqty", model.getValue("/root/main/maindata/pursmngt/optprotqty2"));
- modal("SPANC00100", 0,100,150,"SPANC00100", "/root/send/searchitem", "/root/main/receivedata");
- ]]>
- </script>
- </button>
- <input id="opt_calrhb2" ref="/root/main/maindata/pursmngt/optcalrhb2" class="output_fix" autonext="false" maxlength="3" format="###.9" appearance="input" style="left:502px; top:106px; width:50px; height:19px; "/>
- <input id="opt_calradopt2" ref="/root/main/maindata/pursmngt/optcalradopt2" class="output_fix" autonext="false" maxlength="3" format="###.9" appearance="input" style="left:502px; top:81px; width:50px; height:19px; "/>
- <input id="opt_protadopt2" ref="/root/main/maindata/pursmngt/optprotadopt2" class="output_fix" autonext="false" maxlength="3" format="###.9" appearance="input" style="left:638px; top:156px; width:50px; height:19px; "/>
- <button id="btn_calculation6" class="btn2_letter2" style="left:662px; top:131px; width:42px; height:19px; ">
- <caption>계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPANC00302");
- if ( model.getAttribute("iParam_kcal") != "" ) {
- ipt_dialqty2.value = model.getAttribute("iParam_kcal");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption174" style="left:507px; top:33px; width:16px; height:20px; vertical-align:middle; ">kg</caption>
- <input id="ipt_stndbdwt2" ref="/root/main/maindata/pursmngt/stndbdwt2" class="input_search" autonext="false" maxlength="3" format="###.9" style="left:435px; top:32px; width:70px; height:19px; "/>
- <line id="line152" class="line_2" style="x1:345px; y1:152px; x2:865px; y2:152px; "/>
- <textarea id="tar_review2" ref="/root/main/maindata/pursmngt/review" disabled="false" style="left:5px; top:30px; width:333px; height:593px; line-spacing:6; "/>
- <caption id="caption211" class="tit_2" style="left:11px; top:10px; width:142px; height:13px; ">영양상태판정Review</caption>
- <line id="line155" class="line_3" style="x1:5px; y1:624px; x2:338px; y2:624px; "/>
- <line id="line156" class="line_1" style="x1:5px; y1:25px; x2:338px; y2:25px; "/>
- <line id="line140" class="line_2" style="x1:345px; y1:52px; x2:865px; y2:52px; "/>
- <caption id="caption173" class="cell_1" style="left:345px; top:30px; width:87px; height:23px; vertical-align:middle; ">기준체중</caption>
- <caption id="caption214" class="cell_1" style="left:345px; top:54px; width:87px; height:99px; vertical-align:middle; ">열량</caption>
- <caption id="caption205" class="cell_1" style="left:345px; top:154px; width:87px; height:23px; vertical-align:middle; ">단백질</caption>
- <caption id="caption2" class="cell_1" style="left:730px; top:30px; width:55px; height:23px; vertical-align:middle; ">PIBW</caption>
- <output id="opt_pibw2" ref="/root/main/maindata/nutrstatjudg/physmeasibwperc" class="output_fix" format="###.9" appearance="output" style="left:788px; top:31px; width:50px; height:19px; "/>
- <caption id="caption7" style="left:840px; top:31px; width:20px; height:20px; vertical-align:middle; ">%</caption>
- <select1 id="rdo_stndbdwtflag2" ref="/root/main/maindata/pursmngt/stndbdwtflag2" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" sep="▦" style="left:550px; top:33px; width:150px; height:17px; ">
- <choices>
- <item>
- <label>IBW</label>
- <value>1</value>
- </item>
- <item>
- <label>ABW</label>
- <value>2</value>
- </item>
- <item>
- <label>Wt</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if (model.getValue("/root/main/maindata/pursmngt/stndbdwtflag2") == 1) {
- model.setValue("/root/main/maindata/pursmngt/stndbdwt2", model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"));
- } else if (model.getValue("/root/main/maindata/pursmngt/stndbdwtflag2") == 2) {
- model.setValue("/root/main/maindata/pursmngt/stndbdwt2", model.getValue("/root/main/maindata/nutrstatjudg/physmeasabw"));
- } else if (model.getValue("/root/main/maindata/pursmngt/stndbdwtflag2") == 3) {
- model.setValue("/root/main/maindata/pursmngt/stndbdwt2", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption8" style="left:590px; top:156px; width:40px; height:20px; vertical-align:middle; ">계수법</caption>
- <input id="ipt_adoptlawcalr2" ref="/root/main/maindata/pursmngt/adoptlawcalr2" class="input_search" autonext="false" maxlength="2" format="99" style="left:572px; top:81px; width:45px; height:19px; "/>
- <input id="ipt_hbcalr12" ref="/root/main/maindata/pursmngt/hbcalr12" class="input_search" autonext="false" maxlength="1" format="#.9" style="left:572px; top:106px; width:45px; height:19px; "/>
- <input id="ipt_hbcalr22" ref="/root/main/maindata/pursmngt/hbcalr22" class="input_search" autonext="false" maxlength="1" format="#.9" style="left:637px; top:106px; width:45px; height:19px; "/>
- <input id="ipt_protqty2" ref="/root/main/maindata/pursmngt/protqty2" class="input_search" autonext="false" maxlength="1" format="#.9" style="left:707px; top:156px; width:45px; height:19px; "/>
- <button id="btn_calculation5" class="btn2_letter2" style="left:695px; top:105px; width:42px; height:19px; ">
- <caption>BEE</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var stndbdwt = model.getValue("/root/main/maindata/pursmngt/stndbdwt2"); // 기준체중
- var calrflag = model.getValue("/root/main/maindata/pursmngt/calrflag2"); // 계수법 or HB 구분
- var dialqty = model.getValue("/root/main/maindata/pursmngt/dialqty2"); // 복막투석액
- var calr = 0; // 최종 열량값
- model.setValue("/root/main/maindata/patbaseinfo/flag", "2"); // "2"는 추구관리 tab화면임을 뜻함.
-
- if ( calrflag == 1 ) { // 계수법일 경우
- model.setValue("/root/main/maindata/pursmngt/optcalradopt2", stndbdwt);
- var adoptlawcalr = model.getValue("/root/main/maindata/pursmngt/adoptlawcalr2");
- calr = stndbdwt * adoptlawcalr;
-
- //계수법을 선택했으므로 HB 관련 항목은 clear 시킨다.
- model.setValue("/root/main/maindata/pursmngt/optcalrhb2", "");
- model.setValue("/root/main/maindata/pursmngt/hbcalr12", "");
- model.setValue("/root/main/maindata/pursmngt/hbcalr22", "");
-
- } else if ( calrflag == 2 ) { // HB일 경우
- model.setValue("/root/main/maindata/patbaseinfo/wt", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
- model.setValue("/root/main/maindata/patbaseinfo/ht", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"));
- model.makeValue("/root/main/maindata/patbaseinfo/abw", model.getValue("/root/main/maindata/nutrstatjudg/physmeasabw"));
- model.makeValue("/root/main/maindata/patbaseinfo/pibw", opt_pibw2.value);
- modal("SPANC00301", 0,100,150,"SPANC00301", "/root/main/maindata/patbaseinfo", "/root/main/receivedata");
- var optcalrhb = model.getValue("/root/main/maindata/pursmngt/optcalrhb2");
- var hbcalr1 = model.getValue("/root/main/maindata/pursmngt/hbcalr12");
- var hbcalr2 = model.getValue("/root/main/maindata/pursmngt/hbcalr22");
- calr = optcalrhb * hbcalr1 * hbcalr2;
-
- //HB를 선택했으므로 계수법 관련 항목은 clear 시킨다.
- model.setValue("/root/main/maindata/pursmngt/optcalradopt2", "");
- model.setValue("/root/main/maindata/pursmngt/adoptlawcalr2", "");
- }
-
- if ( dialqty == "" ) { // 복막투석액에 값이 없을 경우는 0으로 처리하고 계산한다.
- dialqty = 0;
- }
- calr = calr - dialqty;
- calr = calr.toString().getRound(-1, "HALF_UP");
- model.setValue("/root/main/maindata/pursmngt/optcalr2", calr);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_calculation7" class="btn2_letter2" visibility="hidden" style="left:790px; top:155px; width:42px; height:19px; ">
- <caption>계산</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var stndbdwt = model.getValue("/root/main/maindata/pursmngt/stndbdwt2"); // 기준체중
- model.setValue("/root/main/maindata/pursmngt/optprotadopt2", stndbdwt);
- var protqty = model.getValue("/root/main/maindata/pursmngt/protqty2"); // 단백질(g/kg)
- var optprotqty = stndbdwt * protqty;
- optprotqty = optprotqty.toString().getRound(-1, "HALF_UP");
-
- model.setValue("/root/main/maindata/pursmngt/optprotqty2", optprotqty); // 단백질(g/day)
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="grp_pursmngt" visibility="hidden" style="left:280px; top:155px; width:445px; height:245px; ">
- <textarea id="textarea3" ref="/root/send/cureplancnts" style="left:5px; top:30px; width:435px; height:180px; "/>
- <button id="button7" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_pursmngt.visible = false;
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rownum = grd_pursmngt.row ;
- var cureplancnts = model.getValue("/root/send/cureplancnts");
-
- model.setValue("/root/main/maindata/cureplan/pursmngt["+rownum+"]/cureplancnts",cureplancnts);
- model.setValue("/root/send/cureplancnts","");
- grp_pursmngt.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption13" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">영양치료계획/권장</caption>
- <shape id="rectangle3" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
- </group>
- </case>
- <case id="case4" selected="true">
- <textarea id="tar_replcnts" ref="/root/main/maindata/nutrstatjudg/replcnts" style="left:5px; top:29px; width:862px; height:595px; line-spacing:6; "/>
- <button id="btn_soap" class="btn2_letter3" style="left:814px; top:4px; width:53px; height:19px; ">
- <caption>SOAP</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
- if (cmb_nutrmngtkind.value == '01' || cmb_nutrmngtkind.value == '06' ||
- cmb_nutrmngtkind.value == '07' || cmb_nutrmngtkind.value == '08') {
- fSoapReplCntsCnstreq();
- }
- //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
- else if (cmb_nutrmngtkind.value == '05' || cmb_nutrmngtkind.value == '09') {
- fSoapReplCntsPursmngt();
- } else {
- model.setValue("/root/main/maindata/nutrstatjudg/replcnts", "");
- model.setValue("/root/main/maindata/nutrstatjudg/careplan", "");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <line id="line132" class="line_1" style="x1:5px; y1:24px; x2:867px; y2:24px; "/>
- <line id="line133" class="line_3" style="x1:5px; y1:625px; x2:867px; y2:625px; "/>
- </case>
- </switch>
- <line id="line134" class="line_1" style="x1:320px; y1:710px; x2:1195px; y2:710px; "/>
- <line id="line135" class="line_3" style="x1:320px; y1:738px; x2:1195px; y2:738px; "/>
- <output id="opt_reqresn" ref="/root/main/receivedata/educreqcnts" class="output_search" style="left:321px; top:715px; width:180px; height:19px; "/>
- <output id="opt_formrecseq" ref="/root/main/receivedata/h_formrecseq" class="output_search" style="left:510px; top:715px; width:115px; height:19px; text-align:center; "/>
- <caption id="caption188" class="cell_1" style="left:684px; top:715px; width:76px; height:23px; vertical-align:middle; ">영양사</caption>
- <caption id="caption189" class="cell_1" style="left:1025px; top:715px; width:62px; height:23px; vertical-align:middle; ">수행일자</caption>
- <input id="ipt_execdd" ref="/root/send/searchitem/execdd" class="input_default" inputtype="date" style="left:1090px; top:717px; width:104px; height:19px; background-color:#ffccff; "/>
- <select1 id="cmb_chrgdieter" ref="/root/send/searchitem/dieter" class="combo_default" appearance="minimal" style="left:763px; top:717px; width:87px; height:19px; background-color:#ffccff; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/dieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line136" class="line_1" style="x1:650px; y1:48px; x2:1195px; y2:48px; "/>
- <line id="line137" class="line_3" style="x1:650px; y1:76px; x2:1195px; y2:76px; "/>
- <select1 id="cmb_nutrmngtkind" ref="/root/send/searchitem/nutrmngtkind" class="combo_default" appearance="minimal" style="left:738px; top:54px; width:172px; height:19px; background-color:#ffccff; ">
- <choices>
- <itemset nodeset="/root/init/basecode/nutrmngtkind/A0060">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_sickcd" ref="/root/main/maindata/nutrstatjudg/sickcd" class="combo_default" appearance="minimal" style="left:990px; top:54px; width:202px; height:19px; background-color:#ffccff; ">
- <choices>
- <itemset nodeset="/root/init/basecode/sickcd/A0059">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption190" class="cell_1" style="left:650px; top:53px; width:85px; height:23px; vertical-align:middle; ">영양관리유형</caption>
- <caption id="caption191" class="cell_1" style="left:917px; top:53px; width:70px; height:23px; vertical-align:middle; ">질환구분</caption>
- <datagrid id="grd_mealprcpinfo" nodeset="/root/main/maindata/dietprcp" caption="일자^끼니^식사명" colsep="^" colwidth="70, 40, 190" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:363px; width:315px; height:102px; ">
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dietmeal" style="text-align:center; "/>
- <col ref="dietnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( grd_mealprcpinfo.isCell(event.target) && grd_mealprcpinfo.row >= grd_mealprcpinfo.fixedRows ) {
- model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/maindata/dietprcp["+grd_mealprcpinfo.row+"]/orddd"));
- model.setValue("/root/send/searchitem/cretno", model.getValue("/root/main/maindata/dietprcp["+grd_mealprcpinfo.row+"]/cretno"));
- model.setValue("/root/send/searchitem/orddeptcd", model.getValue("/root/main/maindata/dietprcp["+grd_mealprcpinfo.row+"]/orddeptcd"));
- model.setValue("/root/send/searchitem/prcpgenrflag", model.getValue("/root/main/maindata/dietprcp["+grd_mealprcpinfo.row+"]/prcpgenrflag"));
- //flag=B는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)만 조회한다는 뜻임.
- model.setValue("/root/send/searchitem/flag", 'B');
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_nutrstatjudg" class="btn_sw" group="tab" selected="true" style="left:320px; top:58px; width:94px; height:22px; ">
- <caption>영양상태판정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- btn_cnstrepl.disabled = true; //회신버튼 비활성화
- grp_cureplancnts.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_cnstreq" class="btn_sw" group="tab" style="left:414px; top:58px; width:74px; height:22px; ">
- <caption>협진의뢰</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNutrStatJudgReview(); //영양상태판정Review 표시
- model.toggle("case2");
- btn_cnstrepl.disabled = true; //회신버튼 비활성화
- grp_cnstreq.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_pursmngt" class="btn_sw" group="tab" style="left:488px; top:58px; width:74px; height:22px; ">
- <caption>추구관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNutrStatJudgReview(); //영양상태판정Review 표시
- model.toggle("case3");
- btn_cnstrepl.disabled = true; //회신버튼 비활성화
- grp_pursmngt.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_repl" class="btn_sw" group="tab" style="left:562px; top:58px; width:50px; height:22px; ">
- <caption>회신</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- model.toggle("case4");
- btn_cnstrepl.disabled = false; //회신버튼 활성화
-
- // if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") == "30" ) { //회신확정 상태일 경우
- // btn_cnstrepl.disabled = true; //회신버튼 비활성화
- // } else {
- // btn_cnstrepl.disabled = false; //회신버튼 활성화
- // }
-
- //회신탭 세팅
- //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
- if (cmb_nutrmngtkind.value == '01' || cmb_nutrmngtkind.value == '06' ||
- cmb_nutrmngtkind.value == '07' || cmb_nutrmngtkind.value == '08') {
- fReplCntsCnstreq();
- }
- //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
- else if (cmb_nutrmngtkind.value == '05' || cmb_nutrmngtkind.value == '09') {
- fReplCntsPursmngt();
- } else {
- model.setValue("/root/main/maindata/nutrstatjudg/replcnts", "");
- model.setValue("/root/main/maindata/nutrstatjudg/careplan", "");
- model.refresh();
- }
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_nutrsrchrslthist" nodeset="/root/main/maindata/nutrsrchrslt" autoresize="true" caption="등록번호^구분^일자^영양관리유형^검색결과^INS결과^indd^formrecseq^영양사^회신상태^dddd^caption1" colsep="^" colwidth="100, 40, 67, 100, 55, 49, 100, 100, 50, 54, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:629px; width:315px; height:106px; text-align:center; ">
- <col ref="pid" visibility="hidden"/>
- <col disabled="true" ref="fnexamflag" type="combo">
- <choices>
- <item>
- <label>재검색</label>
- <value>I</value>
- </item>
- <item>
- <label>신환</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="execdd" format="yyyy-mm-dd"/>
- <col ref="nutrmngtkind" visibility="hidden"/>
- <col ref="srchrslt"/>
- <col ref="insrslt"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="dieter"/>
- <col ref="cnststatnm" style="text-align:left; "/>
- <col ref="chrgdieternm" visibility="hidden"/>
- <col ref="intndieternm" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( grd_nutrsrchrslthist.isCell(event.target) && grd_nutrsrchrslthist.row >= grd_nutrsrchrslthist.fixedRows ) {
- var rowno = grd_nutrsrchrslthist.row;
-
- model.setValue("/root/send/searchitem/dieter", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/chrgdieternm"));
- model.setValue("/root/send/searchitem/intndieter", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/intndieternm"));
- model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/pid"));
- model.setValue("/root/send/searchitem/pastexecdd", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/execdd"));
- model.setValue("/root/send/searchitem/nutrmngtkind", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/nutrmngtkind"));
- model.setValue("/root/send/searchitem/prcpgenrflag", "I"); //영양검색은 입원환자만 해당되므로 'I'로 셋팅
- model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/indd"));
- model.setValue("/root/send/searchitem/flag", 'A');
- model.setValue("/root/send/searchitem/careplanflag", 'Y');
- btn_search.dispatch("DOMActivate");
-
- //선택한 행 색깔 표시
- grd_nutrsrchrslthist.isSelected(rowno) = true;
- grd_nutrsrchrslthist.focusColor = "#ffccff";
-
- }
- ]]>
- </script>
- </datagrid>
- <line id="line139" class="line_1" style="x1:0px; y1:623px; x2:315px; y2:623px; "/>
- <caption id="caption192" class="tit_2" style="left:5px; top:607px; width:126px; height:13px; ">영양검색결과이력</caption>
- <select1 id="cmb_intndieter" ref="/root/send/searchitem/intndieter" class="combo_default" appearance="minimal" style="left:933px; top:717px; width:87px; height:19px; background-color:#ffccff; ">
- <choices>
- <itemset nodeset="/root/init/basecode/dieter/intndieter">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="cell_1" style="left:854px; top:715px; width:76px; height:23px; vertical-align:middle; ">인턴영양사</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:26px; ">
- <button id="btn_save" class="btn4_letter2" style="left:942px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //필수입력항목 체크
- if(model.getValue("/root/send/searchitem/pid") == "") {
- messageBox("등록번호는", "I003");
- model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
- return;
- }else if(model.getValue("/root/send/searchitem/nutrmngtkind") == ""){
- messageBox("영양관리유형은", "I003");
- model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
- return;
- }else if(model.getValue("/root/main/maindata/nutrstatjudg/sickcd") == ""){
- messageBox("질환구분은", "I003");
- model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
- return;
- }else if(model.getValue("/root/send/searchitem/dieter") == ""){
- messageBox("영양사는", "I003");
- model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
- return;
- }else if(model.getValue("/root/send/searchitem/execdd") == "") {
- messageBox("수행일자는", "I003");
- model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
- return;
- }
-
- //if ( messageBox("", "Q002") == 6 ) {
- // 영양상태판정 탭화면 저장
- model.setValue("/root/main/maindata/nutrstatjudg/cnstpurs", "S"); //'S'는 영양상태판정을 뜻함.
- model.copyNode("/root/send/data/maindata/nutrstatjudg", "/root/main/maindata/nutrstatjudg");
-
- model.setValue("/root/send/data/maindata/nutrstatjudg/pid", model.getValue("/root/send/searchitem/pid"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/cretno", model.getValue("/root/main/maindata/patbaseinfo/cretno"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/execdd", model.getValue("/root/send/searchitem/execdd"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/chrgdieter", model.getValue("/root/send/searchitem/dieter"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/intndieter", model.getValue("/root/send/searchitem/intndieter"));
-
- //영양교육관리 화면에서 링크된 의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 수정하지 않고 새로 작성한 경우
- //영양교육관리 화면에서 링크된 의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 일부 내용만 수정한 경우
- if ( (model.getValue("/root/main/receivedata/h_formrecseq") != "" && model.getValue("/root/main/maindata/nutrstatjudg/pid") == "")
- || (model.getValue("/root/main/receivedata/h_formrecseq") != "" && (model.getValue("/root/main/receivedata/h_formrecseq") != model.getValue("/root/main/maindata/nutrstatjudg/formrecseq"))) ) {
- model.setValue("/root/send/data/maindata/nutrstatjudg/formrecseq", model.getValue("/root/main/receivedata/h_formrecseq"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/prcpdd", model.getValue("/root/main/receivedata/reqdd"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/execprcpuniqno", model.getValue("/root/main/receivedata/execprcpuniqno"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/indd", model.getValue("/root/main/receivedata/h_orddd"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/ordcd", model.getValue("/root/main/receivedata/h_prcpcd"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/ioflag", model.getValue("/root/main/receivedata/h_prcpgenrflag"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/chrgdr", model.getValue("/root/main/receivedata/atdoct"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/chrgnurs", model.getValue("/root/main/receivedata/h_nurse"));
- }
- //영양검색 또는 환자관리 화면에서 링크된 비의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 수정하지 않고 새로 작성한 경우
- //영양검색 또는 환자관리 화면에서 링크된 비의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 일부 내용만 수정한 경우
- else if ( model.getValue("/root/main/receivedata/h_formrecseq") == "" && model.getValue("/root/main/receivedata/pid") != "" &&
- ( model.getValue("/root/main/maindata/nutrstatjudg/nutrmngtkind") != model.getValue("/root/send/searchitem/nutrmngtkind") ||
- model.getValue("/root/main/maindata/nutrstatjudg/execdd") != model.getValue("/root/send/searchitem/execdd") )
- ) {
- model.setValue("/root/send/data/maindata/nutrstatjudg/formrecseq", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/prcpdd", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/execprcpuniqno", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/indd", model.getValue("/root/main/receivedata/h_orddd"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/ordcd", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/ioflag", model.getValue("/root/main/receivedata/h_prcpgenrflag"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/chrgdr", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/chrgnurs", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/srchdd", model.getValue("/root/main/receivedata/srchdd"));
- }
- //다른 화면에서 링크되지 않고 직접 환자번호 등으로 조회 : 비의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 수정하지 않고 새로 작성한 경우
- //다른 화면에서 링크되지 않고 직접 환자번호 등으로 조회 : 비의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 일부 내용만 수정한 경우
- else if ( model.getValue("/root/main/receivedata/pid") == "" && model.getValue("/root/main/receivedatacopy/pid") == "" &&
- ( model.getValue("/root/main/maindata/nutrstatjudg/nutrmngtkind") != model.getValue("/root/send/searchitem/nutrmngtkind") ||
- model.getValue("/root/main/maindata/nutrstatjudg/execdd") != model.getValue("/root/send/searchitem/execdd") )
- ) {
- model.setValue("/root/send/data/maindata/nutrstatjudg/formrecseq", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/prcpdd", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/execprcpuniqno", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/indd", model.getValue("/root/main/maindata/patbaseinfo/indd"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/ordcd", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/ioflag", model.getValue("/root/main/maindata/patbaseinfo/ioflag"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/chrgdr", "");
- model.setValue("/root/send/data/maindata/nutrstatjudg/chrgnurs", "");
- }
- //검사결과 셋팅
- model.setValue("/root/send/data/maindata/nutrstatjudg/testrsltalb", model.getValue("/root/main/testrslt/lis/alb"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/testrslttlc", model.getValue("/root/main/testrslt/lis/tlc"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/testrslthbhct", model.getValue("/root/main/testrslt/lis/hb"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/testrslthbhct2", model.getValue("/root/main/testrslt/lis/hct"));
- model.setValue("/root/send/data/maindata/nutrstatjudg/testrslttrf", model.getValue("/root/main/testrslt/lis/trf"));
-
- if(model.getValue("/root/send/searchitem/flag") == "R" && model.getValue("/root/send/searchitem/careplanflag") == "Y"){ // 회신을 통한 저장 여부 && 영양검색 결과이력
- model.makeValue("/root/send/data/maindata/nutrstatjudg/return","Y");
- }else{
- model.makeValue("/root/send/data/maindata/nutrstatjudg/return","N");
- }
-
- //영양상태판정 탭화면 저장
- if (submit("TXANC00301")) {
-
- model.setValue("/root/temp/save/msg", "Y"); //'Y'는 영양상태판정 저장성공을 뜻함.
- model.resetInstanceNode("/root/main/receivedata");
-
- //영양상태판정의 영양치료계획/권장 그리드에 필수데이터 셋팅
- var rowcnt = grd_nutrstatjudg.rows-1;
- if ( rowcnt > 0 ) {
- for ( i = 1; i <= rowcnt; i++ ) {
- model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/pid", model.getValue("/root/send/searchitem/pid"));
- model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/execdd", model.getValue("/root/send/searchitem/execdd"));
- model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
- model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cnstpurs", "S");
- }
- model.setValue("/root/send/data/maindata/cureplan", grd_nutrstatjudg.getUpdateData());
- submit("TXANC00304");
- }
-
- //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
- //협진의뢰 탭화면 저장
- if (cmb_nutrmngtkind.value == '01' || cmb_nutrmngtkind.value == '06' || cmb_nutrmngtkind.value == '07' || cmb_nutrmngtkind.value == '08') {
- model.copyNode("/root/send/data/maindata/cnstreq", "/root/main/maindata/cnstreq");
- model.setValue("/root/send/data/maindata/cnstreq/pid", model.getValue("/root/send/searchitem/pid"));
- model.setValue("/root/send/data/maindata/cnstreq/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
- model.setValue("/root/send/data/maindata/cnstreq/execdd", model.getValue("/root/send/searchitem/execdd"));
- model.setValue("/root/send/data/maindata/cnstreq/cnstflag1", "C"); // 'C'는 협진의뢰를 뜻함.
- //model.setValue("/root/send/data/maindata/cnstreq/execprcpuniqno", model.getValue("/root/send/searchitem/execprcpuniqno"));
-
- // 협진의뢰의 영양치료계획/권장 그리드에 필수데이터 셋팅
- var rowcnt = grd_cnstreq.rows-1;
- if ( rowcnt > 0 ) {
- for ( i = 1; i <= rowcnt; i++ ) {
- model.setValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/pid", model.getValue("/root/send/searchitem/pid"));
- model.setValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/execdd", model.getValue("/root/send/searchitem/execdd"));
- model.setValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
- model.setValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cnstpurs", "C");
- }
- model.setValue("/root/send/data/maindata/cureplan", grd_cnstreq.getUpdateData());
- submit("TXANC00304");
- }
- //model.setValue("/root/send/data/maindata/cureplan", grd_cnstreq.getUpdateData());
- if (submit("TXANC00302")) { //협진의뢰 탭화면 저장
- //flag=R은 저장후 자동으로 재조회 하지 않고 회신까지 완료된 후 재조회 한다는 뜻임.
- if ( model.getValue("/root/send/searchitem/flag") != "R" ) {
- btn_search.dispatch("DOMActivate");
- }
- }
- }
- //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
- //추구관리 탭화면 저장
- else if (cmb_nutrmngtkind.value == '05' || cmb_nutrmngtkind.value == '09') {
- model.copyNode("/root/send/data/maindata/pursmngt", "/root/main/maindata/pursmngt");
- model.setValue("/root/send/data/maindata/pursmngt/pid", model.getValue("/root/send/searchitem/pid"));
- model.setValue("/root/send/data/maindata/pursmngt/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
- model.setValue("/root/send/data/maindata/pursmngt/execdd", model.getValue("/root/send/searchitem/execdd"));
- model.setValue("/root/send/data/maindata/pursmngt/cnstflag2", "P"); // 'P'는 추구관리를 뜻함.
- //model.setValue("/root/send/data/maindata/pursmngt/execprcpuniqno", model.getValue("/root/send/searchitem/execprcpuniqno"));
-
- // 추구관리의 영양치료계획/권장 그리드에 필수데이터 셋팅
- var rowcnt = grd_pursmngt.rows-1;
- if ( rowcnt > 0 ) {
- for ( i = 1; i <= rowcnt; i++ ) {
- model.setValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/pid", model.getValue("/root/send/searchitem/pid"));
- model.setValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/execdd", model.getValue("/root/send/searchitem/execdd"));
- model.setValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
- model.setValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/cnstpurs", "P");
- }
- model.setValue("/root/send/data/maindata/cureplan", grd_pursmngt.getUpdateData());
- submit("TXANC00304");
- }
- if (submit("TXANC00303")) { //추구관리 탭화면 저장
- //flag=R은 저장후 자동으로 재조회 하지 않고 회신까지 완료된 후 재조회 한다는 뜻임.
- if ( model.getValue("/root/send/searchitem/flag") != "R" ) {
- btn_search.dispatch("DOMActivate");
- }
- }
- }
-
- //저장이 정상처리된 경우만 해당 노드를 clear 해준다.
- // model.resetInstanceNode("/root/main/maindata/nutrstatjudg");
- // model.resetInstanceNode("/root/main/maindata/cnstreq");
- // model.resetInstanceNode("/root/main/maindata/pursmngt");
- // model.resetInstanceNode("/root/main/maindata/cureplan");
- // model.refresh();
-
- } else {
- model.setValue("/root/temp/save/msg", "N"); //'N'은 영양상태판정 저장실패를 뜻함.
- return;
- }
-
- //} else { return; }
- ]]>
- </script>
- </button>
- <button id="btn_reset" class="btn4_letter3" style="left:872px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- finit();
- ]]>
- </script>
- </button>
- <button id="button27" class="btn3_letter6" disabled="true" style="left:1px; top:4px; width:104px; height:22px; ">
- <caption>의무기록조회</caption>
- </button>
- <button id="button3" class="btn3_letter4" disabled="true" style="left:107px; top:4px; width:80px; height:22px; ">
- <caption>처방조회</caption>
- </button>
- <button id="btn_recsrch" class="btn3_letter6" disabled="false" style="left:190px; top:4px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMMRI00400_param_pid", model.getValue("/root/send/searchitem/pid"));
- //modal("SMMRI00400", 0,100,100,"SMMRI00400","","","left:30; top:50; width:1230; height:840;");
- modal("SMMRI00400", 0,100,100,"SMMRI00400","","");
- ]]>
- </script>
- </button>
- <button id="btn_bsugarrec" class="btn3_letter6" disabled="false" style="left:297px; top:4px; width:104px; height:22px; ">
- <caption>혈당간호기록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //setParameter("SMMRI00400_param_pid", model.getValue("/root/send/searchitem/pid"));
- modal("SMMNR02500", 0,100,100,"SMMNR02500","","");
- ]]>
- </script>
- </button>
- <button id="btn_capdrec" class="btn3_letter5" disabled="false" style="left:404px; top:4px; width:104px; height:22px; ">
- <caption>CAPD기록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //setParameter("SMMRI00400_param_pid", model.getValue("/root/send/searchitem/pid"));
- modal("SMMNW09000", 0,100,100,"SMMNW09000","","","left:30; top:50; width:1230; height:840;");
- ]]>
- </script>
- </button>
- <!--(20101027) 경북대
- <button id="btn_crrtrec" class="btn3_letter5" disabled="false" style="left:500px; top:4px; width:104px; height:22px; ">
- -->
- <button id="btn_crrtrec" class="btn3_letter5" disabled="false" visibility="hidden" style="left:500px; top:4px; width:104px; height:22px; ">
- <!--(20101027) 경북대 -->
- <caption>CRRT기록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //setParameter("SMMRI00400_param_pid", model.getValue("/root/send/searchitem/pid"));
- modal("SMMNW09100", 0,100,100,"SMMNW09100","","","left:30; top:50; width:1230; height:840;");
- ]]>
- </script>
- </button>
- <button id="btn_cnstrepl" class="btn4_letter2" style="left:1000px; top:4px; width:56px; height:22px; ">
- <caption>회신</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("회신을", "Q004") == 6 ) {
-
- //flag=R은 저장후 자동으로 재조회 하지 않고 회신까지 완료된 후 재조회하기 위한 것임.
- model.setValue("/root/send/searchitem/flag", "R");
-
- //저장후 회신
- btn_save.dispatch("DOMActivate");
-
- //저장이 정상처리된 경우 회신서관리 화면 호출
- if ( model.getValue("/root/temp/save/msg") == "Y" ) {
- //의뢰건이거나 비의뢰건이면서 재저장인 경우
- if ( model.getValue("/root/send/data/maindata/nutrstatjudg/formrecseq") != "" ) {
- var formrecseq = model.getValue("/root/send/data/maindata/nutrstatjudg/formrecseq");
- var replcnts = model.getValue("/root/send/data/maindata/nutrstatjudg/replcnts"); //회신탭화면의 내용
- setParameter("openmode", "reccnstform");
- setParameter("userdeptcd", "3250100000");
- setParameter("formrecseq", formrecseq);
- setParameter("overwrite", "true");
- setParameter("replcnts", replcnts);
- modal("SSMMR01100", 1, 0, 0, "", "", "");
-
- model.makeValue("/root/send/data/maindata/nutrstatjudg/reqyn", "Y");
- }
- //비의뢰건이면서 최초저장인 경우
- else {
- if ( model.getValue("/root/main/receivedatacopy/pid") != "" ) {
- setParameter("pid", model.getValue("/root/main/receivedatacopy/pid"));
- setParameter("orddd", model.getValue("/root/main/receivedatacopy/h_orddd"));
- setParameter("cretno", model.getValue("/root/main/receivedatacopy/h_cretno"));
- setParameter("ioflag", model.getValue("/root/main/receivedatacopy/h_prcpgenrflag"));
- setParameter("orddeptcd", model.getValue("/root/main/receivedatacopy/h_orddeptcd"));
- setParameter("orddrid", model.getValue("/root/main/receivedatacopy/orddrid"));
- setParameter("SMMMR04900_reqdpcd", model.getValue("/root/main/receivedatacopy/h_orddeptcd")); //의뢰과코드
- setParameter("SMMMR04900_reqdrid", model.getValue("/root/main/receivedatacopy/orddrid")); //주치의아이디
- setParameter("SMMMR04900_reqdrnm", model.getValue("/root/main/receivedatacopy/reqpsn")); //주치의명
- } else {
- setParameter("pid", model.getValue("/root/main/maindata/patbaseinfo/pid"));
- setParameter("orddd", model.getValue("/root/main/maindata/patbaseinfo/indd"));
- setParameter("cretno", model.getValue("/root/main/maindata/patbaseinfo/cretno"));
- setParameter("ioflag", model.getValue("/root/main/maindata/patbaseinfo/ioflag"));
- setParameter("orddeptcd", model.getValue("/root/main/maindata/patbaseinfo/orddeptcd"));
- setParameter("orddrid", model.getValue("/root/main/maindata/patbaseinfo/atdoctid"));
- setParameter("SMMMR04900_reqdpcd", model.getValue("/root/main/maindata/patbaseinfo/orddeptcd")); //의뢰과코드
- setParameter("SMMMR04900_reqdrid", model.getValue("/root/main/maindata/patbaseinfo/atdoctid")); //주치의아이디
- setParameter("SMMMR04900_reqdrnm", model.getValue("/root/main/maindata/patbaseinfo/atdoctnm")); //주치의명
- }
-
- setParameter("SMMMR04900_reqdpnm", model.getValue("/root/main/maindata/patbaseinfo/orddeptnm")); //의뢰과명
- setParameter("formcd", "0800000722"); //서식코드
- setParameter("SMMMR04900_cnstflag", "3"); //의뢰구분(1:진료의뢰, 3:타과의뢰)
- setParameter("SMMMR04900_replflag", "R"); //의뢰없는회신일경우 R로 셋팅
- setParameter("SMMMR04900_cnstdeptcd", "3250100000"); //수신과코드
- setParameter("SMMMR04900_cnstdeptnm", "영양팀"); //수신과명
- setParameter("SMMMR04900_formnm", "영양검색"); //서식명
- var replcnts = model.getValue("/root/send/data/maindata/nutrstatjudg/replcnts"); //회신탭화면의 내용
- setParameter("replcnts", replcnts);
- setParameter("overwrite", "true");
- setParameter("openmode", "newcnstform");
- modal("SSMMR01100", 1, 0, 0, "", "", "");
-
- model.makeValue("/root/send/data/maindata/nutrstatjudg/reqyn", "N");
- model.makeValue("/root/send/data/maindata/nutrstatjudg/formcd", "0800000722");
- }
-
- //인증저장까지 모두 성공하였는지 조회하여 성공시에만 영양팀 테이블에 회신일자를 setting해준다.
- submit("TRANC00304");
- //의뢰임시(11), 의뢰(12), 의뢰확정(20), 회신임시(21), 회신(22), 회신확정(30)
- if ( model.getValue("/root/temp/cnst/cnst/cnststat") >= 21 ) {
- if ( model.getValue("/root/send/data/maindata/nutrstatjudg/formcd") == "0800000722" &&
- model.getValue("/root/send/data/maindata/nutrstatjudg/formrecseq") == "" ) {
- model.setValue("/root/send/data/maindata/nutrstatjudg/formrecseq", model.getValue("/root/temp/cnst/cnst/formrecseq"));
- }
- submit("TXANC00305");
- }
-
- //flag=A는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)와 해당 컨설팅 정보를 조회한다는 뜻임.
- model.setValue("/root/send/searchitem/flag", 'A');
- btn_search.dispatch("DOMActivate");
- }
- model.resetInstanceNode("/root/temp/save/msg");
- } else {
- return;
- }
- // } else {
- // messageBox("컨설트 의뢰건이 아니라서 회신", "E001");
- // return;
-
- // }
- ]]>
- </script>
- </button>
- <button id="btn_pastrepl" class="btn4_letter6" style="left:766px; top:4px; width:104px; height:22px; ">
- <caption>과거회신보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPANC00304", 0,50,50,"SPANC00304", "/root/main/maindata/repl", "/root/main/receivedata");
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" style="left:1058px; top:4px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var hngnm = opt_patnm.value;
- var execdd = model.getValue("/root/main/maindata/nutrstatjudg/execdd");
- var nutrmngtkind = cmb_nutrmngtkind.label;
-
- if ( messageBox(hngnm + " 환자의 " + execdd.substr(0,4) + "년 " + execdd.substr(4,2) + "월 " + execdd.substr(6,2) + "일 " + nutrmngtkind + " 관련 모든 정보를", "Q001") == 6 ) {
- model.copyNode("/root/send/data/maindata/nutrstatjudg", "/root/main/maindata/nutrstatjudg");
-
- //컨설트상태가 회신임시(21) 이상이면 회신취소 우선 수행 후 삭제함.
- if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") != "" &&
- model.getValue("/root/main/maindata/nutrstatjudg/cnststat") >= 21 ) {
- model.makeValue("/root/send/data/maindata/nutrstatjudg/delcnclflag", "C"); //C는 회신취소를 뜻함.
- if (submit("TXANC00301")) {
- model.setValue("/root/send/data/maindata/nutrstatjudg/delcnclflag", "D"); //D는 삭제를 뜻함.
- if (submit("TXANC00301")) {
- model.setValue("/root/send/searchitem/flag", 'A');
- btn_search.dispatch("DOMActivate");
- }
- }
- } else {
- model.makeValue("/root/send/data/maindata/nutrstatjudg/delcnclflag", "D"); //D는 삭제를 뜻함.
- if (submit("TXANC00301")) {
- model.setValue("/root/send/searchitem/flag", 'A');
- btn_search.dispatch("DOMActivate");
- }
- }
- } else {
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_cnstreplcncl" class="btn4_letter4" style="left:1115px; top:4px; width:80px; height:22px; ">
- <caption>회신취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var hngnm = opt_patnm.value;
- var execdd = model.getValue("/root/main/maindata/nutrstatjudg/execdd");
- var nutrmngtkind = cmb_nutrmngtkind.label;
-
- if ( messageBox(hngnm + " 환자의 " + execdd.substr(0,4) + "년 " + execdd.substr(4,2) + "월 " + execdd.substr(6,2) + "일 " + nutrmngtkind + " 회신을", "Q007") == 6 ) {
- model.copyNode("/root/send/data/maindata/nutrstatjudg", "/root/main/maindata/nutrstatjudg");
- model.makeValue("/root/send/data/maindata/nutrstatjudg/delcnclflag", "C"); //C는 회신취소를 뜻함.
- if (submit("TXANC00301")) {
- model.setValue("/root/send/searchitem/flag", 'A');
- btn_search.dispatch("DOMActivate");
- }
- } else {
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="btn3_letter5" style="left:595px; top:4px; width:99px; height:22px; ">
- <caption>CarePlan</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid= model.getValue("/root/send/searchitem/pid");
- setParameter("SMMRJ00100_pid", pid);
- modal("SMMRJ00100"); // CarePlan 연동
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|