SMANC00300_환자별영양관리.xrw 222 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>환자별영양관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <maindata>
  11. <nutrstatjudg>
  12. <execprcpuniqno/>
  13. <pid/>
  14. <formrecseq/>
  15. <cnststat/>
  16. <reqpsn/>
  17. <reqdd/>
  18. <reqresn/>
  19. <reccnts/>
  20. <execdd/>
  21. <nutrmngtkind/>
  22. <ordcd/>
  23. <ioflag/>
  24. <indd/>
  25. <prcpdd/>
  26. <sickcd/>
  27. <bodysympchoi/>
  28. <bodysymprem/>
  29. <dietprobchoi/>
  30. <dietprobrem/>
  31. <diethistchoi/>
  32. <healsuppfood/>
  33. <cofftims/>
  34. <smoktims/>
  35. <eatouttims/>
  36. <eatoutrem/>
  37. <drunktims/>
  38. <drunkvol/>
  39. <drunkrem/>
  40. <diethistetc/>
  41. <intkstatmainmeal/>
  42. <intkstatsubmeal/>
  43. <intkstatetc/>
  44. <actgrdechoi/>
  45. <actgrdeexer/>
  46. <actgrdeetc/>
  47. <physmeasbdht/>
  48. <physmeasbdwt/>
  49. <physmeasubw/>
  50. <physmeasibw/>
  51. <physmeasibwperc/>
  52. <physmeasabw/>
  53. <bdwtupdtqty/>
  54. <bdwtupdtrate/>
  55. <bdwtupdtterm/>
  56. <testrsltalb/>
  57. <testrslttlc/>
  58. <testrslthbhct/>
  59. <testrslthbhct2/>
  60. <testrslttrf/>
  61. <testrsltrem/>
  62. <chrgdieter/>
  63. <intndieter/>
  64. <chrgdr/>
  65. <chrgnurs/>
  66. <repldd/>
  67. <druginfo/>
  68. <replcnts/>
  69. <nutrstatjudgcd/>
  70. <nutrstatjudgrem/>
  71. <nutrtplan/>
  72. <cnstpurs/>
  73. <nutrstatvalucd/>
  74. <nutrstatvalucnts/>
  75. <srchdd/>
  76. <return/>
  77. <cretno/>
  78. <careplan/>
  79. </nutrstatjudg>
  80. <cnstreq>
  81. <execprcpuniqno/>
  82. <pid/>
  83. <execdd/>
  84. <nutrmngtkind/>
  85. <cnstflag1/>
  86. <stndbdwtflag1/>
  87. <stndbdwt1/>
  88. <calrflag1/>
  89. <adoptlawcalr1/>
  90. <hbcalr11/>
  91. <hbcalr21/>
  92. <dialqty1/>
  93. <protqty1/>
  94. <nutrreqqty1/>
  95. <cnstpsn1/>
  96. <unstdgrde1/>
  97. <calrintk1/>
  98. <calrintkqty1/>
  99. <protintk1/>
  100. <protintkqty1/>
  101. <intkqtyetc1/>
  102. <dietercmt1/>
  103. <optcalr1/>
  104. <optcalradopt1/>
  105. <optcalrhb1/>
  106. <optprotqty1/>
  107. <optprotadopt1/>
  108. <nutrstatvalucd1/>
  109. <nutrstatvalucnts1/>
  110. <cnstcd/>
  111. <cnstcnts/>
  112. <review/>
  113. </cnstreq>
  114. <pursmngt>
  115. <execprcpuniqno/>
  116. <pid/>
  117. <execdd/>
  118. <nutrmngtkind/>
  119. <cnstflag2/>
  120. <stndbdwtflag2/>
  121. <stndbdwt2/>
  122. <calrflag2/>
  123. <adoptlawcalr2/>
  124. <hbcalr12/>
  125. <hbcalr22/>
  126. <dialqty2/>
  127. <protqty2/>
  128. <nutrreqqty2/>
  129. <calrintk2/>
  130. <calrintkqty2/>
  131. <protintk2/>
  132. <protintkqty2/>
  133. <intkqtyetc2/>
  134. <dietercmt2/>
  135. <optcalr2/>
  136. <optcalradopt2/>
  137. <optcalrhb2/>
  138. <optprotqty2/>
  139. <optprotadopt2/>
  140. <nutrstatvalucd2/>
  141. <nutrstatvalucnts2/>
  142. <review/>
  143. </pursmngt>
  144. <repl>
  145. <pastreplcnts/>
  146. </repl>
  147. <patbaseinfo>
  148. <pid/>
  149. <hngnm/>
  150. <cretno/>
  151. <brthdd/>
  152. <sex/>
  153. <age/>
  154. <hometel/>
  155. <mpphontel/>
  156. <zipcd1/>
  157. <zipcd2/>
  158. <zipcdseq/>
  159. <detladdr/>
  160. <ioflag/>
  161. <inout/>
  162. <indd/>
  163. <orddeptcd/>
  164. <orddeptnm/>
  165. <atdoctid/>
  166. <atdoctnm/>
  167. <wt/>
  168. <ht/>
  169. <flag/>
  170. </patbaseinfo>
  171. <diag>
  172. <diagnm/>
  173. </diag>
  174. <inmotv>
  175. <inmotvcnts/>
  176. </inmotv>
  177. <dietprcp>
  178. <prcpdd/>
  179. <dietmeal/>
  180. <dietnm/>
  181. <orddd/>
  182. <cretno/>
  183. <orddeptcd/>
  184. <prcpgenrflag/>
  185. </dietprcp>
  186. <nutrmngt>
  187. <pid/>
  188. <execdd/>
  189. <nutrmngtkind/>
  190. <dieter/>
  191. <ioflag/>
  192. <indd/>
  193. <formrecseq/>
  194. <cnststatnm/>
  195. <chrgdieternm/>
  196. <intndieternm/>
  197. </nutrmngt>
  198. <nutrsrchrslt>
  199. <pid/>
  200. <fnexamflag/>
  201. <execdd/>
  202. <nutrmngtkind/>
  203. <srchrslt/>
  204. <insrslt/>
  205. <indd/>
  206. <formrecseq/>
  207. <dieter/>
  208. <cnststatnm/>
  209. <chrgdieternm/>
  210. <intndieternm/>
  211. </nutrsrchrslt>
  212. <cureplan>
  213. <nutrstatjudg>
  214. <pid/>
  215. <execdd/>
  216. <nutrmngtkind/>
  217. <cnstpurs/>
  218. <cureplancd/>
  219. <cureplancnts/>
  220. </nutrstatjudg>
  221. <cnstreq>
  222. <pid/>
  223. <execdd/>
  224. <nutrmngtkind/>
  225. <cnstpurs/>
  226. <cureplancd/>
  227. <cureplancnts/>
  228. </cnstreq>
  229. <pursmngt>
  230. <pid/>
  231. <execdd/>
  232. <nutrmngtkind/>
  233. <cnstpurs/>
  234. <cureplancd/>
  235. <cureplancnts/>
  236. </pursmngt>
  237. </cureplan>
  238. </maindata>
  239. <testrslt>
  240. <lis>
  241. <alb/>
  242. <wbc/>
  243. <lymphocytes/>
  244. <tlc/>
  245. <hb/>
  246. <hct/>
  247. <trf/>
  248. </lis>
  249. </testrslt>
  250. <patinfo>
  251. <patinfolist/>
  252. </patinfo>
  253. <receivedata>
  254. <flag/>
  255. <flag2/>
  256. <pid/>
  257. <hngnm/>
  258. <reqdd/>
  259. <reqpsn/>
  260. <orddrid/>
  261. <educreqcnts/>
  262. <reccnts/>
  263. <h_cretno/>
  264. <h_orddeptcd/>
  265. <h_prcpgenrflag/>
  266. <h_orddd/>
  267. <h_formrecseq/>
  268. <execprcpuniqno/>
  269. <nutrmngtkind/>
  270. <execdd/>
  271. <srchdd/>
  272. </receivedata>
  273. <receivedatacopy/>
  274. </main>
  275. <send>
  276. <searchitem>
  277. <flag/>
  278. <pid/>
  279. <nutrmngtkind/>
  280. <execdd/>
  281. <pastexecdd/>
  282. <hngnm/>
  283. <sex/>
  284. <age/>
  285. <wt/>
  286. <ht/>
  287. <ibw/>
  288. <calrrecmqty/>
  289. <protrecmqty/>
  290. <cnstflag/>
  291. <calrintk/>
  292. <calrintkqty/>
  293. <protintk/>
  294. <protintkqty/>
  295. <intkqtyetc/>
  296. <dietercmt/>
  297. <execprcpuniqno/>
  298. <reqdd/>
  299. <reqpsn/>
  300. <reqresn/>
  301. <reccnts/>
  302. <formrecseq/>
  303. <cretno/>
  304. <orddeptcd/>
  305. <prcpgenrflag/>
  306. <orddd/>
  307. <dieter/>
  308. <intndieter/>
  309. <chrgdieternm/>
  310. <intndieternm/>
  311. <careplanflag/>
  312. </searchitem>
  313. <data>
  314. <maindata>
  315. <nutrstatjudg/>
  316. <cnstreq/>
  317. <pursmngt/>
  318. <cureplan/>
  319. </maindata>
  320. </data>
  321. <cureplancnts/>
  322. </send>
  323. <hidden>
  324. <ret>
  325. <count/>
  326. </ret>
  327. </hidden>
  328. <init>
  329. <basecode>
  330. <nutrmngtkind>
  331. <A0060>
  332. <cdid/>
  333. <cdnm/>
  334. </A0060>
  335. </nutrmngtkind>
  336. <sickcd>
  337. <A0059>
  338. <cdid/>
  339. <cdnm/>
  340. </A0059>
  341. </sickcd>
  342. <dieter>
  343. <dieter>
  344. <cdid/>
  345. <cdnm/>
  346. </dieter>
  347. <intndieter>
  348. <cdid/>
  349. <cdnm/>
  350. </intndieter>
  351. </dieter>
  352. </basecode>
  353. <nutrjudgbase>
  354. <data>
  355. <cd/>
  356. <dngrcd/>
  357. <min/>
  358. <max/>
  359. </data>
  360. </nutrjudgbase>
  361. <baseinfo>
  362. <nutrstatvalucd/>
  363. <cnstcd/>
  364. <cureplancd1/>
  365. <cureplancd2/>
  366. <cureplancd3/>
  367. </baseinfo>
  368. </init>
  369. <temp>
  370. <save>
  371. <msg/>
  372. </save>
  373. <cnst>
  374. <cnst>
  375. <cnststat/>
  376. <formrecseq/>
  377. </cnst>
  378. </cnst>
  379. <return>N</return>
  380. </temp>
  381. </root>
  382. </instance>
  383. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  384. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  385. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  386. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  387. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  388. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  389. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  390. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  391. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  392. <script type="javascript" ev:event="xforms-ready">
  393. <![CDATA[
  394. finit();
  395. fPrcpDataSrch();
  396. fTestRsltSrch(); //가장 최근 검사결과 조회
  397. model.removeNodeset("/root/main/maindata/cureplan/nutrstatjudg");
  398. model.removeNodeset("/root/main/maindata/cureplan/cnstreq");
  399. model.removeNodeset("/root/main/maindata/cureplan/pursmngt");
  400. submit("TRANC00102"); //영양판정기준표 조회
  401. submit("TRANC00202"); //영양사 조회
  402. model.setFocus("ipt_pid");
  403. btn_search.disabled = !checkAuth("R");
  404. btn_save.disabled = !checkAuth("X");
  405. btn_cnstrepl.disabled = !checkAuth("X"); //회신
  406. btn_del.disabled = !checkAuth("X");
  407. btn_cnstreplcncl.disabled = !checkAuth("X");
  408. btn_cnstrepl.disabled = true; //회신버튼 비활성화
  409. // btn_cnstreplcncl.disabled = true; //회신취소버튼 비활성화
  410. delPatientInfos(); // 상단정보 clear 2018.02.07 김금련
  411. ]]>
  412. </script>
  413. <script type="javascript">
  414. <![CDATA[
  415. // 화면 초기화
  416. function finit() {
  417. //화면open시 영양관리유형, 질환명에 코드를 setting해준다.
  418. zbcfGetCodeList( new Array( "A0060", "A0059" ), new Array("/root/init/basecode/nutrmngtkind", "/root/init/basecode/sickcd" ) );
  419. astGetComboList( new Array("A501","A502","A503","A504","A505"),
  420. new Array("/root/init/baseinfo/nutrstatvalucd","/root/init/baseinfo/cnstcd"
  421. ,"/root/init/baseinfo/cureplancd1","/root/init/baseinfo/cureplancd2","/root/init/baseinfo/cureplancd3") );
  422. model.removeNodeset("/root/main/maindata/diag");
  423. model.removeNodeset("/root/main/maindata/inmotv");
  424. model.removeNodeset("/root/main/maindata/dietprcp");
  425. model.removeNodeset("/root/main/maindata/nutrmngt");
  426. model.removeNodeset("/root/main/maindata/nutrsrchrslt");
  427. model.removeNodeset("/root/main/maindata/cureplan/nutrstatjudg");
  428. model.removeNodeset("/root/main/maindata/cureplan/cnstreq");
  429. model.removeNodeset("/root/main/maindata/cureplan/pursmngt");
  430. model.resetInstanceNode("/root/main/maindata");
  431. model.resetInstanceNode("/root/send/data/maindata");
  432. model.setValue("/root/send/searchitem/execdd", getCurrentDate());
  433. model.setValue("/root/send/searchitem/dieter", getUserInfo("userid"));
  434. //화면open시 환자기본정보 숨김.
  435. grp_patinfo.attribute("visibility")="visible";
  436. btn_patinfo.dispatch("onclick"); //환자기본정보
  437. model.refresh();
  438. }
  439. // 영양교육관리 or 영양검색결과조회 or 환자관리(전화영양상담탭) 화면에서 호출된 경우 자동 조회
  440. function fPrcpDataSrch() {
  441. if (model.getValue("/root/main/receivedata/pid") != "") {
  442. //flag=B는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)만 조회한다는 뜻임.
  443. model.setValue("/root/send/searchitem/flag", 'B');
  444. model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/receivedata/pid"));
  445. model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/receivedata/hngnm"));
  446. // model.setValue("/root/send/searchitem/reqdd", model.getValue("/root/main/receivedata/reqdd"));
  447. // model.setValue("/root/send/searchitem/reqpsn", model.getValue("/root/main/receivedata/reqpsn"));
  448. // model.setValue("/root/send/searchitem/reqresn", model.getValue("/root/main/receivedata/educreqcnts"));
  449. // model.setValue("/root/send/searchitem/reccnts", model.getValue("/root/main/receivedata/reccnts"));
  450. // model.setValue("/root/send/searchitem/formrecseq", model.getValue("/root/main/receivedata/h_formrecseq"));
  451. model.setValue("/root/send/searchitem/execprcpuniqno", model.getValue("/root/main/receivedata/execprcpuniqno"));
  452. model.setValue("/root/send/searchitem/cretno", model.getValue("/root/main/receivedata/h_cretno"));
  453. model.setValue("/root/send/searchitem/orddeptcd", model.getValue("/root/main/receivedata/h_orddeptcd"));
  454. model.setValue("/root/send/searchitem/prcpgenrflag", model.getValue("/root/main/receivedata/h_prcpgenrflag"));
  455. model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/receivedata/h_orddd"));
  456. model.setValue("/root/send/searchitem/nutrmngtkind", model.getValue("/root/main/receivedata/nutrmngtkind"));
  457. model.setValue("/root/send/searchitem/pastexecdd", model.getValue("/root/main/receivedata/execdd"));
  458. //model.setValue("/root/send/searchitem/orddrid", model.getValue("/root/main/receivedata/orddrid"));
  459. }
  460. //영양검색결과조회 화면에서 호출된 경우 영양관리유형,수행일자가 null값임.
  461. if (model.getValue("/root/main/receivedata/flag") == "R") {
  462. //신환검색일 경우 영양관리유형을 '초기영양검색(01)'으로 자동setting
  463. if (model.getValue("/root/main/receivedata/flag2") == "F") {
  464. model.setValue("/root/send/searchitem/nutrmngtkind", "01");
  465. }
  466. //재검색일 경우 영양관리유형을 '일반추구관리(05)'로 자동setting
  467. else if (model.getValue("/root/main/receivedata/flag2") == "I") {
  468. model.setValue("/root/send/searchitem/nutrmngtkind", "05");
  469. }
  470. }
  471. model.copyNode("root/main/receivedatacopy", "root/main/receivedata");
  472. model.refresh();
  473. btn_search.dispatch("DOMActivate"); //조회
  474. }
  475. //가장 최근 검사결과 조회
  476. function fTestRsltSrch() {
  477. model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/maindata/patbaseinfo/indd"));
  478. model.setValue("/root/send/searchitem/prcpgenrflag", model.getValue("/root/main/maindata/patbaseinfo/ioflag"));
  479. submit("TRANC00303");
  480. var tlc = model.getValue("/root/main/testrslt/lis/tlc");
  481. if ( tlc != "" ) {
  482. tlc = tlc.toString().getRound(-2, "HALF_UP");
  483. model.setValue("/root/main/testrslt/lis/tlc", tlc);
  484. }
  485. ipt_testrslttlc.refresh();
  486. }
  487. // 협진의뢰나 추구관리 탭화면 클릭시 영양상태판정Review 표시
  488. function fNutrStatJudgReview() {
  489. var bodysymp = "";
  490. var dietprob = "";
  491. var cureplan = "";
  492. var temp = "";
  493. var review = "";
  494. //신체증후의 체크된 항목들을 콤마로 연결
  495. for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
  496. if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
  497. break;
  498. } else {
  499. temp = temp + chk_bodysymp.label.substr(i,1);
  500. }
  501. }
  502. for ( i = 0; i < temp.length; i++ ) {
  503. if ( temp.substr(i,1) == "▦" ) {
  504. bodysymp = bodysymp + ", ";
  505. } else {
  506. bodysymp = bodysymp + temp.substr(i,1);
  507. }
  508. }
  509. //식사시 문제점의 체크된 항목들을 콤마로 연결
  510. temp = "";
  511. for ( i = 0; i < chk_dietprob.label.length; i++ ) {
  512. if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
  513. break;
  514. } else {
  515. temp = temp + chk_dietprob.label.substr(i,1);
  516. }
  517. }
  518. for ( i = 0; i < temp.length; i++ ) {
  519. if ( temp.substr(i,1) == "▦" ) {
  520. dietprob = dietprob + ", ";
  521. } else {
  522. dietprob = dietprob + temp.substr(i,1);
  523. }
  524. }
  525. temp = "";
  526. //2011.08.31 하드코드 공통코드로 수정
  527. var cureplancd = "";
  528. var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd1/A503" ).length + 1;
  529. //영양치료계획/권장 그리드의 항목들을 콤마로 연결
  530. if ( grd_nutrstatjudg.rows-1 > 0 ) {
  531. for ( i = 1; i <= grd_nutrstatjudg.rows-1; i++ ) {
  532. //2011.08.31 하드코드 공통코드로 수정
  533. cureplancd = model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd");
  534. if (cureplancd != "") {
  535. for(var j = 1; j < cureplanrow ; j++){
  536. var cdid = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdid");
  537. var cdnm = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdnm");
  538. if(cureplancd == cdid){
  539. var temp = " ο " + cdnm + "\n";
  540. }
  541. }
  542. cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
  543. temp = "";
  544. }
  545. }
  546. }
  547. var item1 = "[영양상태판정]" +"\n";
  548. var item2 = "1. 기본정보" +"\n";
  549. if ( bodysymp != "" ) {
  550. var item3 = " ο 신체증후 : " + bodysymp;
  551. if ( ipt_bodysymprem.value != "" ) {
  552. item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
  553. } else {
  554. item3 = item3 + "\n";
  555. }
  556. } else {
  557. if ( ipt_bodysymprem.value != "" ) {
  558. var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
  559. } else {
  560. var item3 = "";
  561. }
  562. }
  563. if ( dietprob != "" ) {
  564. var item4 = " ο 식사시 문제점 : " + dietprob;
  565. if ( ipt_dietprobrem.value != "" ) {
  566. item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
  567. } else {
  568. item4 = item4 + "\n";
  569. }
  570. } else {
  571. if ( ipt_dietprobrem.value != "" ) {
  572. var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
  573. } else {
  574. var item4 = "";
  575. }
  576. }
  577. if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
  578. var item5 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
  579. if ( ipt_intkstatetc.value != "" ) {
  580. item5 = item5 + " 기타 : " + ipt_intkstatetc.value;
  581. }
  582. item5 = item5 +"\n";
  583. } else {
  584. var item5 = "";
  585. }
  586. if ( item5 == "" && ipt_intkstatetc.value != "" ) {
  587. var item6 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
  588. } else {
  589. var item6 = "";
  590. }
  591. var item7 = "\n" + "2. 신체계측 결과" +"\n";
  592. if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
  593. var item8 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
  594. } else {
  595. var item8 = "";
  596. }
  597. if ( ipt_bdwtupdtqty.value != "" ) {
  598. var item9 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
  599. } else {
  600. var item9 = "";
  601. }
  602. var item10 = "\n" + "3. 검사 결과" +"\n";
  603. // if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" || tar_testrsltrem.value != "" ) {
  604. // var item10 = "\n" + "3. 검사 결과" +"\n";
  605. // } else {
  606. // var item10 = "\n";
  607. // }
  608. var item11 = "";
  609. if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
  610. if ( ipt_testrsltalb.value != "" ) {
  611. item11 = " ο Alb : " + ipt_testrsltalb.value;
  612. }
  613. if ( ipt_testrslttlc.value != "" && item11 == "" ) {
  614. item11 = " ο TLC : " + ipt_testrslttlc.value;
  615. } else if ( ipt_testrslttlc.value != "" && item11 != "" ) {
  616. item11 = item11 + ", TLC : " + ipt_testrslttlc.value;
  617. }
  618. if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
  619. item11 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  620. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 == "" ) {
  621. item11 = " ο Hb : " + ipt_testrslthbhct.value;
  622. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
  623. item11 = " ο Hct : " + ipt_testrslthbhct2.value;
  624. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
  625. item11 = item11 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  626. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 != "" ) {
  627. item11 = item11 + ", Hb : " + ipt_testrslthbhct.value;
  628. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
  629. item11 = item11 + ", Hct : " + ipt_testrslthbhct2.value;
  630. }
  631. if ( ipt_testrslttrf.value != "" && item11 == "" ) {
  632. item11 = " ο TRF : " + ipt_testrslttrf.value;
  633. } else if ( ipt_testrslttrf.value != "" && item11 != "" ) {
  634. item11 = item11 + ", TRF : " + ipt_testrslttrf.value;
  635. }
  636. item11 = item11 + "\n";
  637. }
  638. if ( item11 != "" && tar_testrsltrem.value != "" ) {
  639. var item12 = " 기타 : " + tar_testrsltrem.value +"\n";
  640. } else if ( item11 == "" && tar_testrsltrem.value != "" ) {
  641. var item12 = " ο 기타 : " + tar_testrsltrem.value +"\n";
  642. } else {
  643. var item12 = "";
  644. }
  645. var item13 = "\n" + "4. 영양상태" +"\n";
  646. if ( cmb_nutrstatvalu.label != "" ) {
  647. var item14 = " ο " + cmb_nutrstatvalu.label + "\n";
  648. } else {
  649. var item14 = "";
  650. }
  651. if ( item14 != "" && tar_nutrstatvalu.value != "" ) {
  652. var item15 = " 기타 : " + tar_nutrstatvalu.value +"\n";
  653. } else if ( item14 == "" && tar_nutrstatvalu.value != "" ) {
  654. var item15 = " ο 기타 : " + tar_nutrstatvalu.value +"\n";
  655. } else {
  656. var item15 = "";
  657. }
  658. //var item16 = "\n" + "5. 영양치료 계획/권장" +"\n";
  659. if ( cureplan != "" ) {
  660. var item16 = "\n" + "5. 영양치료 계획/권장" +"\n";
  661. //var item17 = " ο " + cureplan + "\n";
  662. var item17 = cureplan + "\n";
  663. } else {
  664. var item16 = "";
  665. var item17 = "";
  666. }
  667. if ( cmb_intndieter.label != "" ) {
  668. var item18 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  669. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
  670. } else {
  671. var item18 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  672. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
  673. }
  674. review = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 + item9 + item10 +
  675. item11 + item12 + item13 + item14 + item15 + item16 + item17 + item18;
  676. model.setValue("/root/main/maindata/cnstreq/review", review);
  677. model.setValue("/root/main/maindata/pursmngt/review", review);
  678. model.refresh();
  679. }
  680. //회신 탭버튼 클릭시 (1)
  681. //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
  682. //영양상태판정 + 협진의뢰 탭의 내용을 조합하여 회신내용 생성
  683. function fReplCntsCnstreq() {
  684. var bodysymp = "";
  685. var dietprob = "";
  686. var cureplan = "";
  687. var temp = "";
  688. var replcnts = "";
  689. //신체증후의 체크된 항목들을 콤마로 연결
  690. for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
  691. if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
  692. break;
  693. } else {
  694. temp = temp + chk_bodysymp.label.substr(i,1);
  695. }
  696. }
  697. for ( i = 0; i < temp.length; i++ ) {
  698. if ( temp.substr(i,1) == "▦" ) {
  699. bodysymp = bodysymp + ", ";
  700. } else {
  701. bodysymp = bodysymp + temp.substr(i,1);
  702. }
  703. }
  704. //식사시 문제점의 체크된 항목들을 콤마로 연결
  705. temp = "";
  706. for ( i = 0; i < chk_dietprob.label.length; i++ ) {
  707. if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
  708. break;
  709. } else {
  710. temp = temp + chk_dietprob.label.substr(i,1);
  711. }
  712. }
  713. for ( i = 0; i < temp.length; i++ ) {
  714. if ( temp.substr(i,1) == "▦" ) {
  715. dietprob = dietprob + ", ";
  716. } else {
  717. dietprob = dietprob + temp.substr(i,1);
  718. }
  719. }
  720. temp = "";
  721. //2011.08.31 하드코드 공통코드로 수정
  722. var cureplancd = "";
  723. var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd1/A503" ).length + 1;
  724. //영양치료계획/권장 그리드의 항목들을 콤마로 연결
  725. if ( grd_nutrstatjudg.rows-1 > 0 ) {
  726. for ( i = 1; i <= grd_nutrstatjudg.rows-1; i++ ) {
  727. //2011.08.31 하드코드 공통코드로 수정
  728. cureplancd = model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd");
  729. if (cureplancd != "") {
  730. for(var j = 1; j < cureplanrow ; j++){
  731. var cdid = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdid");
  732. var cdnm = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdnm");
  733. if(cureplancd == cdid){
  734. var temp = " ο " + cdnm + "\n";
  735. }
  736. }
  737. cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
  738. temp = "";
  739. }
  740. // if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") != "") {
  741. // if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "1") {
  742. // temp = " ο 현재 식사 유지해 주십시오." +"\n";
  743. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "2") {
  744. // temp = " ο 식사처방 변경 필요합니다." +"\n";
  745. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "3") {
  746. // temp = " ο 영양교육 의뢰서 작성해 주십시오." +"\n";
  747. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "4") {
  748. // temp = " ο 경장영양의뢰(EN)로 협진의뢰서 작성해 주십시오." +"\n";
  749. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "5") {
  750. // temp = " ο F/U 예정입니다." +"\n";
  751. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "9") {
  752. // temp = " ο 기타" +"\n";
  753. // }
  754. // cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
  755. // temp = "";
  756. // }
  757. //cureplan = cureplan + temp + ", ";
  758. //cureplan = cureplan + temp;
  759. }
  760. //cureplan = cureplan.substr(0,cureplan.length-2);
  761. }
  762. var item1 = "[영양상태판정]" +"\n";
  763. var item2 = "1. 기본정보" +"\n";
  764. if ( bodysymp != "" ) {
  765. var item3 = " ο 신체증후 : " + bodysymp;
  766. if ( ipt_bodysymprem.value != "" ) {
  767. item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
  768. } else {
  769. item3 = item3 + "\n";
  770. }
  771. } else {
  772. if ( ipt_bodysymprem.value != "" ) {
  773. var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
  774. } else {
  775. var item3 = "";
  776. }
  777. }
  778. if ( dietprob != "" ) {
  779. var item4 = " ο 식사시 문제점 : " + dietprob;
  780. if ( ipt_dietprobrem.value != "" ) {
  781. item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
  782. } else {
  783. item4 = item4 + "\n";
  784. }
  785. } else {
  786. if ( ipt_dietprobrem.value != "" ) {
  787. var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
  788. } else {
  789. var item4 = "";
  790. }
  791. }
  792. if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
  793. var item5 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
  794. if ( ipt_intkstatetc.value != "" ) {
  795. item5 = item5 + " 기타 : " + ipt_intkstatetc.value;
  796. }
  797. item5 = item5 +"\n";
  798. } else {
  799. var item5 = "";
  800. }
  801. if ( item5 == "" && ipt_intkstatetc.value != "" ) {
  802. var item6 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
  803. } else {
  804. var item6 = "";
  805. }
  806. var item7 = "\n" + "2. 신체계측 결과" +"\n";
  807. if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
  808. var item8 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
  809. } else {
  810. var item8 = "";
  811. }
  812. if ( ipt_bdwtupdtqty.value != "" ) {
  813. var item9 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
  814. } else {
  815. var item9 = "";
  816. }
  817. var item10 = "\n" + "3. 검사 결과" +"\n";
  818. var item11 = "";
  819. if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
  820. if ( ipt_testrsltalb.value != "" ) {
  821. item11 = " ο Alb : " + ipt_testrsltalb.value;
  822. }
  823. if ( ipt_testrslttlc.value != "" && item11 == "" ) {
  824. item11 = " ο TLC : " + ipt_testrslttlc.value;
  825. } else if ( ipt_testrslttlc.value != "" && item11 != "" ) {
  826. item11 = item11 + ", TLC : " + ipt_testrslttlc.value;
  827. }
  828. if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
  829. item11 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  830. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 == "" ) {
  831. item11 = " ο Hb : " + ipt_testrslthbhct.value;
  832. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
  833. item11 = " ο Hct : " + ipt_testrslthbhct2.value;
  834. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
  835. item11 = item11 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  836. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 != "" ) {
  837. item11 = item11 + ", Hb : " + ipt_testrslthbhct.value;
  838. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
  839. item11 = item11 + ", Hct : " + ipt_testrslthbhct2.value;
  840. }
  841. if ( ipt_testrslttrf.value != "" && item11 == "" ) {
  842. item11 = " ο TRF : " + ipt_testrslttrf.value;
  843. } else if ( ipt_testrslttrf.value != "" && item11 != "" ) {
  844. item11 = item11 + ", TRF : " + ipt_testrslttrf.value;
  845. }
  846. item11 = item11 + "\n";
  847. }
  848. if ( item11 != "" && tar_testrsltrem.value != "" ) {
  849. var item12 = " 기타 : " + tar_testrsltrem.value +"\n";
  850. } else if ( item11 == "" && tar_testrsltrem.value != "" ) {
  851. var item12 = " ο 기타 : " + tar_testrsltrem.value +"\n";
  852. } else {
  853. var item12 = "";
  854. }
  855. var item13 = "\n" + "4. 영양상태" +"\n";
  856. if ( cmb_nutrstatvalu.label != "" ) {
  857. var item14 = " ο " + cmb_nutrstatvalu.label + "\n";
  858. } else {
  859. var item14 = "";
  860. }
  861. if ( item14 != "" && tar_nutrstatvalu.value != "" ) {
  862. var item15 = " 기타 : " + tar_nutrstatvalu.value +"\n";
  863. } else if ( item14 == "" && tar_nutrstatvalu.value != "" ) {
  864. var item15 = " ο 기타 : " + tar_nutrstatvalu.value +"\n";
  865. } else {
  866. var item15 = "";
  867. }
  868. var calrintk = model.getValue("/root/main/maindata/cnstreq/calrintk1");
  869. var calrintkqty = model.getValue("/root/main/maindata/cnstreq/calrintkqty1");
  870. var protintk = model.getValue("/root/main/maindata/cnstreq/protintk1");
  871. var protintkqty = model.getValue("/root/main/maindata/cnstreq/protintkqty1");
  872. var intkqtyetc = model.getValue("/root/main/maindata/cnstreq/intkqtyetc1");
  873. if ( calrintkqty != "" || protintkqty != "" || intkqtyetc != "" ) {
  874. var item16 = "\n" + " ο 섭취량 분석 및 평가";
  875. if ( calrintkqty != "" ) {
  876. item16 = item16 + "\n" + " 열량 : " + calrintkqty + " kcal/day";
  877. if ( calrintk != "" ) {
  878. if (calrintk == '1') { calrintk = '상당히 부족';
  879. } else if (calrintk == '2') { calrintk = '약간 부족';
  880. } else if (calrintk == '3') { calrintk = '양호';
  881. } else if (calrintk == '4') { calrintk = '과다';
  882. }
  883. item16 = item16 + " (" + calrintk + ")";
  884. }
  885. }
  886. if ( protintkqty != "" ) {
  887. item16 = item16 + "\n" + " 단백질 : " + protintkqty + " g/day";
  888. if ( protintk != "" ) {
  889. if (protintk == '1') { protintk = '상당히 부족';
  890. } else if (protintk == '2') { protintk = '약간 부족';
  891. } else if (protintk == '3') { protintk = '양호';
  892. } else if (protintk == '4') { protintk = '과다';
  893. }
  894. item16 = item16 + " (" + protintk + ")";
  895. }
  896. }
  897. if ( intkqtyetc != "" ) {
  898. item16 = item16 + "\n" + " " + intkqtyetc;
  899. }
  900. } else {
  901. var item16 = "";
  902. }
  903. if ( item16 != "" ) {
  904. var item17 = "\n" + "\n" + "5. 영양요구량" +"\n";
  905. } else {
  906. var item17 = "\n" + "5. 영양요구량" +"\n";
  907. }
  908. if ( opt_calr.value != "" ) {
  909. if ( rdo_calrflag.label == "계수법" ) {
  910. var item18 = " * 열량 : " + opt_calr.value + " kcal/day ( " + rdo_stndbdwtflag.label + " * " + ipt_adoptlawcalr.value + " kcal/kg )" + "\n";
  911. } else if ( rdo_calrflag.label == "HB" ) {
  912. var item18 = " * 열량 : " + opt_calr.value + " kcal/day ( BEE : " + opt_calrhb.value + ", AF : " + ipt_hbcalr1.value + ", SF : " + ipt_hbcalr2.value + " )" + "\n";
  913. }
  914. } else {
  915. var item18 = "";
  916. }
  917. if ( opt_protqty.value != "" ) {
  918. var item19 = " * 단백질 : " + opt_protqty.value + " g/day ( " + rdo_stndbdwtflag.label + " * " + ipt_protqty.value + " g/kg )" + "\n";
  919. } else {
  920. var item19 = "";
  921. }
  922. if ( tar_nutrreqqty.value != "" ) {
  923. var item20 = " * 기타 : " + tar_nutrreqqty.value +"\n";
  924. } else {
  925. var item20 = "";
  926. }
  927. if ( cureplan != "" ) {
  928. var item21 = "\n" + "6. 영양치료 계획/권장" +"\n";
  929. //var item17 = " ◈ " + cureplan + "\n";
  930. var item22 = cureplan + "\n";
  931. } else {
  932. var item21 = "";
  933. var item22 = "";
  934. }
  935. /* if ( model.getValue("/root/send/searchitem/intndieternm") != "" ) {
  936. var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  937. ipt_execdd.value.substr(6,2) + " 영양사 " + model.getValue("/root/send/searchitem/chrgdieternm") + "/ " + model.getValue("/root/send/searchitem/intndieternm") + "\n";
  938. } else {
  939. var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  940. ipt_execdd.value.substr(6,2) + " 영양사 " + model.getValue("/root/send/searchitem/chrgdieternm")+ "\n";
  941. }*/
  942. if ( cmb_intndieter.label != "" ) {
  943. var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  944. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
  945. } else {
  946. var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  947. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
  948. }
  949. replcnts = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 + item9 + item10 + item11 + item12 +
  950. item13 + item14 + item15 + item16 + item17 + item18 + item19 + item20 + item21 + item22 + item23;
  951. model.setValue("/root/main/maindata/nutrstatjudg/replcnts", replcnts);
  952. model.setValue("/root/main/maindata/nutrstatjudg/careplan", cureplan);
  953. model.refresh();
  954. }
  955. //회신 탭버튼 클릭시 (2)
  956. //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
  957. //영양상태판정 + 추구관리 탭의 내용을 조합하여 회신내용 생성
  958. function fReplCntsPursmngt() {
  959. var bodysymp = "";
  960. var dietprob = "";
  961. var cureplan = "";
  962. var temp = "";
  963. var replcnts = "";
  964. //신체증후의 체크된 항목들을 콤마로 연결
  965. for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
  966. if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
  967. break;
  968. } else {
  969. temp = temp + chk_bodysymp.label.substr(i,1);
  970. }
  971. }
  972. for ( i = 0; i < temp.length; i++ ) {
  973. if ( temp.substr(i,1) == "▦" ) {
  974. bodysymp = bodysymp + ", ";
  975. } else {
  976. bodysymp = bodysymp + temp.substr(i,1);
  977. }
  978. }
  979. //식사시 문제점의 체크된 항목들을 콤마로 연결
  980. temp = "";
  981. for ( i = 0; i < chk_dietprob.label.length; i++ ) {
  982. if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
  983. break;
  984. } else {
  985. temp = temp + chk_dietprob.label.substr(i,1);
  986. }
  987. }
  988. for ( i = 0; i < temp.length; i++ ) {
  989. if ( temp.substr(i,1) == "▦" ) {
  990. dietprob = dietprob + ", ";
  991. } else {
  992. dietprob = dietprob + temp.substr(i,1);
  993. }
  994. }
  995. temp = "";
  996. //2011.08.31 하드코드 공통코드로 수정
  997. var cureplancd = "";
  998. var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd1/A503" ).length + 1;
  999. //영양치료계획/권장 그리드의 항목들을 콤마로 연결
  1000. if ( grd_nutrstatjudg.rows-1 > 0 ) {
  1001. for ( i = 1; i <= grd_nutrstatjudg.rows-1; i++ ) {
  1002. //2011.08.31 하드코드 공통코드로 수정
  1003. cureplancd = model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd");
  1004. if (cureplancd != "") {
  1005. for(var j = 1; j < cureplanrow ; j++){
  1006. var cdid = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdid");
  1007. var cdnm = model.getValue("/root/init/baseinfo/cureplancd1/A503["+j+"]/cdnm");
  1008. if(cureplancd == cdid){
  1009. var temp = " ο " + cdnm + "\n";
  1010. }
  1011. }
  1012. cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
  1013. temp = "";
  1014. }
  1015. // if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") != "") {
  1016. // if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "1") {
  1017. // temp = " ο 현재 식사 유지해 주십시오." +"\n";
  1018. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "2") {
  1019. // temp = " ο 식사처방 변경 필요합니다." +"\n";
  1020. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "3") {
  1021. // temp = " ο 영양교육 의뢰서 작성해 주십시오." +"\n";
  1022. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "4") {
  1023. // temp = " ο 경장영양의뢰(EN)로 협진의뢰서 작성해 주십시오." +"\n";
  1024. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "5") {
  1025. // temp = " ο F/U 예정입니다." +"\n";
  1026. // } else if (model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancd") == "9") {
  1027. // temp = " ο 기타" +"\n";
  1028. // }
  1029. // cureplan = cureplan + temp + " " + model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cureplancnts") +"\n";
  1030. // temp = "";
  1031. // }
  1032. }
  1033. }
  1034. var item1 = "[영양상태판정]" +"\n";
  1035. var item2 = "1. 기본정보" +"\n";
  1036. if ( bodysymp != "" ) {
  1037. var item3 = " ο 신체증후 : " + bodysymp;
  1038. if ( ipt_bodysymprem.value != "" ) {
  1039. item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
  1040. } else {
  1041. item3 = item3 + "\n";
  1042. }
  1043. } else {
  1044. if ( ipt_bodysymprem.value != "" ) {
  1045. var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
  1046. } else {
  1047. var item3 = "";
  1048. }
  1049. }
  1050. if ( dietprob != "" ) {
  1051. var item4 = " ο 식사시 문제점 : " + dietprob;
  1052. if ( ipt_dietprobrem.value != "" ) {
  1053. item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
  1054. } else {
  1055. item4 = item4 + "\n";
  1056. }
  1057. } else {
  1058. if ( ipt_dietprobrem.value != "" ) {
  1059. var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
  1060. } else {
  1061. var item4 = "";
  1062. }
  1063. }
  1064. if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
  1065. var item5 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
  1066. if ( ipt_intkstatetc.value != "" ) {
  1067. item5 = item5 + " 기타 : " + ipt_intkstatetc.value;
  1068. }
  1069. item5 = item5 +"\n";
  1070. } else {
  1071. var item5 = "";
  1072. }
  1073. if ( item5 == "" && ipt_intkstatetc.value != "" ) {
  1074. var item6 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
  1075. } else {
  1076. var item6 = "";
  1077. }
  1078. var item7 = "\n" + "2. 신체계측 결과" +"\n";
  1079. if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
  1080. var item8 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
  1081. } else {
  1082. var item8 = "";
  1083. }
  1084. if ( ipt_bdwtupdtqty.value != "" ) {
  1085. var item9 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
  1086. } else {
  1087. var item9 = "";
  1088. }
  1089. var item10 = "\n" + "3. 검사 결과" +"\n";
  1090. var item11 = "";
  1091. if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
  1092. if ( ipt_testrsltalb.value != "" ) {
  1093. item11 = " ο Alb : " + ipt_testrsltalb.value;
  1094. }
  1095. if ( ipt_testrslttlc.value != "" && item11 == "" ) {
  1096. item11 = " ο TLC : " + ipt_testrslttlc.value;
  1097. } else if ( ipt_testrslttlc.value != "" && item11 != "" ) {
  1098. item11 = item11 + ", TLC : " + ipt_testrslttlc.value;
  1099. }
  1100. if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
  1101. item11 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  1102. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 == "" ) {
  1103. item11 = " ο Hb : " + ipt_testrslthbhct.value;
  1104. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 == "" ) {
  1105. item11 = " ο Hct : " + ipt_testrslthbhct2.value;
  1106. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
  1107. item11 = item11 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  1108. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item11 != "" ) {
  1109. item11 = item11 + ", Hb : " + ipt_testrslthbhct.value;
  1110. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item11 != "" ) {
  1111. item11 = item11 + ", Hct : " + ipt_testrslthbhct2.value;
  1112. }
  1113. if ( ipt_testrslttrf.value != "" && item11 == "" ) {
  1114. item11 = " ο TRF : " + ipt_testrslttrf.value;
  1115. } else if ( ipt_testrslttrf.value != "" && item11 != "" ) {
  1116. item11 = item11 + ", TRF : " + ipt_testrslttrf.value;
  1117. }
  1118. item11 = item11 + "\n";
  1119. }
  1120. if ( item11 != "" && tar_testrsltrem.value != "" ) {
  1121. var item12 = " 기타 : " + tar_testrsltrem.value +"\n";
  1122. } else if ( item11 == "" && tar_testrsltrem.value != "" ) {
  1123. var item12 = " ο 기타 : " + tar_testrsltrem.value +"\n";
  1124. } else {
  1125. var item12 = "";
  1126. }
  1127. var item13 = "\n" + "4. 영양상태" +"\n";
  1128. if ( cmb_nutrstatvalu.label != "" ) {
  1129. var item14 = " ο " + cmb_nutrstatvalu.label + "\n";
  1130. } else {
  1131. var item14 = "";
  1132. }
  1133. if ( item14 != "" && tar_nutrstatvalu.value != "" ) {
  1134. var item15 = " 기타 : " + tar_nutrstatvalu.value +"\n";
  1135. } else if ( item14 == "" && tar_nutrstatvalu.value != "" ) {
  1136. var item15 = " ο 기타 : " + tar_nutrstatvalu.value +"\n";
  1137. } else {
  1138. var item15 = "";
  1139. }
  1140. var calrintk = model.getValue("/root/main/maindata/pursmngt/calrintk2");
  1141. var calrintkqty = model.getValue("/root/main/maindata/pursmngt/calrintkqty2");
  1142. var protintk = model.getValue("/root/main/maindata/pursmngt/protintk2");
  1143. var protintkqty = model.getValue("/root/main/maindata/pursmngt/protintkqty2");
  1144. var intkqtyetc = model.getValue("/root/main/maindata/pursmngt/intkqtyetc2");
  1145. if ( calrintkqty != "" || protintkqty != "" || intkqtyetc != "" ) {
  1146. var item16 = "\n" + " ο 섭취량 분석 및 평가";
  1147. if ( calrintkqty != "" ) {
  1148. item16 = item16 + "\n" + " 열량 : " + calrintkqty + " kcal/day";
  1149. if ( calrintk != "" ) {
  1150. if (calrintk == '1') { calrintk = '상당히 부족';
  1151. } else if (calrintk == '2') { calrintk = '약간 부족';
  1152. } else if (calrintk == '3') { calrintk = '양호';
  1153. } else if (calrintk == '4') { calrintk = '과다';
  1154. }
  1155. item16 = item16 + " (" + calrintk + ")";
  1156. }
  1157. }
  1158. if ( protintkqty != "" ) {
  1159. item16 = item16 + "\n" + " 단백질 : " + protintkqty + " g/day";
  1160. if ( protintk != "" ) {
  1161. if (protintk == '1') { protintk = '상당히 부족';
  1162. } else if (protintk == '2') { protintk = '약간 부족';
  1163. } else if (protintk == '3') { protintk = '양호';
  1164. } else if (protintk == '4') { protintk = '과다';
  1165. }
  1166. item16 = item16 + " (" + protintk + ")";
  1167. }
  1168. }
  1169. if ( intkqtyetc != "" ) {
  1170. item16 = item16 + "\n" + " " + intkqtyetc;
  1171. }
  1172. } else {
  1173. var item16 = "";
  1174. }
  1175. if ( item16 != "" ) {
  1176. var item17 = "\n" + "\n" + "5. 영양요구량" +"\n";
  1177. } else {
  1178. var item17 = "\n" + "5. 영양요구량" +"\n";
  1179. }
  1180. if ( opt_calr2.value != "" ) {
  1181. if ( rdo_calrflag2.label == "계수법" ) {
  1182. var item18 = " * 열량 : " + opt_calr2.value + " kcal/day ( " + rdo_stndbdwtflag2.label + " * " + ipt_adoptlawcalr2.value + " kcal/kg )" + "\n";
  1183. } else if ( rdo_calrflag2.label == "HB" ) {
  1184. var item18 = " * 열량 : " + opt_calr2.value + " kcal/day ( BEE : " + opt_calrhb2.value + ", AF : " + ipt_hbcalr12.value + ", SF : " + ipt_hbcalr22.value + " )" + "\n";
  1185. }
  1186. } else {
  1187. var item18 = "";
  1188. }
  1189. if ( opt_protqty2.value != "" ) {
  1190. var item19 = " * 단백질 : " + opt_protqty2.value + " g/day ( " + rdo_stndbdwtflag2.label + " * " + ipt_protqty2.value + " g/kg )" + "\n";
  1191. } else {
  1192. var item19 = "";
  1193. }
  1194. if ( tar_nutrreqqty2.value != "" ) {
  1195. var item20 = " * 기타 : " + tar_nutrreqqty2.value +"\n";
  1196. } else {
  1197. var item20 = "";
  1198. }
  1199. if ( cureplan != "" ) {
  1200. var item21 = "\n" + "6. 영양치료 계획/권장" +"\n";
  1201. var item22 = cureplan + "\n";
  1202. } else {
  1203. var item21 = "";
  1204. var item22 = "";
  1205. }
  1206. /* if ( model.getValue("/root/send/searchitem/intndieternm") != "" ) {
  1207. var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  1208. ipt_execdd.value.substr(6,2) + " 영양사 " + model.getValue("/root/send/searchitem/chrgdieternm") + "/ " + model.getValue("/root/send/searchitem/intndieternm") + "\n";
  1209. } else {
  1210. var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  1211. ipt_execdd.value.substr(6,2) + " 영양사 " + model.getValue("/root/send/searchitem/chrgdieternm") + "\n";
  1212. }*/
  1213. if ( cmb_intndieter.label != "" ) {
  1214. var item23= "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  1215. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
  1216. } else {
  1217. var item23 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  1218. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
  1219. }
  1220. replcnts = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 + item9 + item10 + item11 + item12 +
  1221. item13 + item14 + item15 + item16 + item17 + item18 + item19 + item20 + item21 + item22 + item23;
  1222. model.setValue("/root/main/maindata/nutrstatjudg/replcnts", replcnts);
  1223. model.setValue("/root/main/maindata/nutrstatjudg/careplan", cureplan);
  1224. model.refresh();
  1225. }
  1226. // SOAP 버튼 클릭시 (1)
  1227. //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
  1228. //영양상태판정 + 협진의뢰 탭의 내용을 조합하여 회신내용 생성
  1229. function fSoapReplCntsCnstreq() {
  1230. var bodysymp = "";
  1231. var dietprob = "";
  1232. var diethist = "";
  1233. var actgrde = "";
  1234. var cnstpsn = "";
  1235. var cureplan = "";
  1236. var temp = "";
  1237. var replcnts = "";
  1238. //신체증후의 체크된 항목들을 콤마로 연결
  1239. for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
  1240. if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
  1241. break;
  1242. } else {
  1243. temp = temp + chk_bodysymp.label.substr(i,1);
  1244. }
  1245. }
  1246. for ( i = 0; i < temp.length; i++ ) {
  1247. if ( temp.substr(i,1) == "▦" ) {
  1248. bodysymp = bodysymp + ", ";
  1249. } else {
  1250. bodysymp = bodysymp + temp.substr(i,1);
  1251. }
  1252. }
  1253. //식사시 문제점의 체크된 항목들을 콤마로 연결
  1254. temp = "";
  1255. for ( i = 0; i < chk_dietprob.label.length; i++ ) {
  1256. if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
  1257. break;
  1258. } else {
  1259. temp = temp + chk_dietprob.label.substr(i,1);
  1260. }
  1261. }
  1262. for ( i = 0; i < temp.length; i++ ) {
  1263. if ( temp.substr(i,1) == "▦" ) {
  1264. dietprob = dietprob + ", ";
  1265. } else {
  1266. dietprob = dietprob + temp.substr(i,1);
  1267. }
  1268. }
  1269. //식사력의 체크된 항목들을 콤마로 연결
  1270. temp = chk_diethist.value;
  1271. for ( i = 0; i < temp.length; i++ ) {
  1272. if ( temp.substr(i,2) == "11" ) {
  1273. diethist = diethist + "균형된 식사";
  1274. } else if ( temp.substr(i,2) == "12" ) {
  1275. diethist = diethist + "규칙적인 식사";
  1276. } else if ( temp.substr(i,2) == "13" ) {
  1277. diethist = diethist + "불규칙적인 식사";
  1278. } else if ( temp.substr(i,2) == "14" ) {
  1279. diethist = diethist + "빠른식사속도";
  1280. } else if ( temp.substr(i,2) == "15" ) {
  1281. diethist = diethist + "과식";
  1282. } else if ( temp.substr(i,2) == "16" ) {
  1283. diethist = diethist + "당질과다섭취";
  1284. } else if ( temp.substr(i,2) == "17" ) {
  1285. diethist = diethist + "지방과다섭취";
  1286. } else if ( temp.substr(i,2) == "18" ) {
  1287. diethist = diethist + "염분과다섭취";
  1288. } else if ( (temp.substr(i,2) == "19") && (ipt_healsuppfood.value != "") ) {
  1289. diethist = diethist + "건강보조식품 " + ipt_healsuppfood.value;
  1290. } else if ( (temp.substr(i,2) == "20") && (ipt_cofftims.value != "") ) {
  1291. diethist = diethist + "커피 " + ipt_cofftims.value + "잔/day";
  1292. } else if ( (temp.substr(i,2) == "21") && (ipt_smoktims.value != "") ) {
  1293. diethist = diethist + "흡연 " + ipt_smoktims.value + "pack/day";
  1294. } else if ( (temp.substr(i,2) == "22") && (ipt_eatouttims.value != "") ) {
  1295. diethist = diethist + "외식 " + ipt_eatouttims.value + "회/week";
  1296. if (ipt_eatoutrem.value != "") {
  1297. diethist = diethist + ipt_eatoutrem.value;
  1298. }
  1299. } else if ( (temp.substr(i,2) == "23") && (ipt_drunktims.value != "") ) {
  1300. diethist = diethist + "음주 " + ipt_drunktims.value + "회/week";
  1301. if (ipt_drunkvol.value != "") {
  1302. diethist = diethist + "(1회 섭취량 " + ipt_drunkvol.value + ")";
  1303. }
  1304. if (ipt_drunkrem.value != "") {
  1305. diethist = diethist + ipt_drunkrem.value;
  1306. }
  1307. } else if ( temp.substr(i,1) == "▦" ) {
  1308. diethist = diethist + ", ";
  1309. }
  1310. }
  1311. if ( diethist.substr(0,2) == ", " ) {
  1312. diethist = diethist.substr(2,diethist.length-2);
  1313. }
  1314. if ( diethist.substr(diethist.length-2,2) == ", " ) {
  1315. diethist = diethist.substr(0,diethist.length-2);
  1316. }
  1317. //활동정도의 체크된 항목들을 콤마로 연결
  1318. temp = "";
  1319. for ( i = 0; i < chk_actgrde.label.length; i++ ) {
  1320. if ( chk_actgrde.label.substr(i,2) == "운동" || chk_actgrde.label.substr(i,3) == "▦운동" ) {
  1321. break;
  1322. } else {
  1323. temp = temp + chk_actgrde.label.substr(i,1);
  1324. }
  1325. }
  1326. for ( i = 0; i < temp.length; i++ ) {
  1327. if ( temp.substr(i,1) == "▦" ) {
  1328. actgrde = actgrde + ", ";
  1329. } else {
  1330. actgrde = actgrde + temp.substr(i,1);
  1331. }
  1332. }
  1333. //피상담자의 체크된 항목들을 콤마로 연결
  1334. temp = chk_cnstpsn.label;
  1335. for ( i = 0; i < temp.length; i++ ) {
  1336. if ( temp.substr(i,1) == "▦" ) {
  1337. cnstpsn = cnstpsn + ", ";
  1338. } else {
  1339. cnstpsn = cnstpsn + temp.substr(i,1);
  1340. }
  1341. }
  1342. //2011.08.31 하드코드 공통코드로 수정
  1343. var cureplancd = "";
  1344. var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd2/A504" ).length + 1;
  1345. //영양치료계획/권장 그리드의 항목들을 콤마로 연결
  1346. if ( grd_cnstreq.rows-1 > 0 ) {
  1347. for ( i = 1; i <= grd_cnstreq.rows-1; i++ ) {
  1348. //2011.08.31 하드코드 공통코드로 수정
  1349. cureplancd = model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd");
  1350. //alert(cureplancd);
  1351. if (cureplancd != "") {
  1352. for(var j = 1; j < cureplanrow ; j++){
  1353. var cdid = model.getValue("/root/init/baseinfo/cureplancd2/A504["+j+"]/cdid");
  1354. var cdnm = model.getValue("/root/init/baseinfo/cureplancd2/A504["+j+"]/cdnm");
  1355. //alert("cdid"+cdid);
  1356. if(cureplancd == cdid){
  1357. var temp = cdnm
  1358. }
  1359. }
  1360. cureplan = cureplan + temp + model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancnts") + ", ";
  1361. temp = "";
  1362. }
  1363. // if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd") != "") {
  1364. // if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd") == "1") {
  1365. // temp = "전화영양상담 예정입니다.";
  1366. //// if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancnts") != "") {
  1367. //// temp = temp + model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancnts");
  1368. //// }
  1369. // } else if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd") == "2") {
  1370. // temp = "식사처방 변경해 주십시오.";
  1371. // } else if (model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancd") == "9") {
  1372. // temp = "기타";
  1373. // }
  1374. // cureplan = cureplan + temp + model.getValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cureplancnts") + ", ";
  1375. // temp = "";
  1376. // }
  1377. }
  1378. cureplan = cureplan.substr(0,cureplan.length-2);
  1379. }
  1380. var item1 = "의뢰항목: " + opt_reqresn.value + " 의뢰일자: " + opt_reqdd.value.substr(0,4) + "/" + opt_reqdd.value.substr(4,2) +
  1381. "/" + opt_reqdd.value.substr(6,2) + " 처방의: " + opt_reqpsn.value +"\n" +"\n";
  1382. var item2 = "S :" +"\n";
  1383. if ( bodysymp != "" ) {
  1384. var item3 = " ο 신체증후 : " + bodysymp;
  1385. if ( ipt_bodysymprem.value != "" ) {
  1386. item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
  1387. } else {
  1388. item3 = item3 + "\n";
  1389. }
  1390. } else {
  1391. if ( ipt_bodysymprem.value != "" ) {
  1392. var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
  1393. } else {
  1394. var item3 = "";
  1395. }
  1396. }
  1397. if ( dietprob != "" ) {
  1398. var item4 = " ο 식사시 문제점 : " + dietprob;
  1399. if ( ipt_dietprobrem.value != "" ) {
  1400. item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
  1401. } else {
  1402. item4 = item4 + "\n";
  1403. }
  1404. } else {
  1405. if ( ipt_dietprobrem.value != "" ) {
  1406. var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
  1407. } else {
  1408. var item4 = "";
  1409. }
  1410. }
  1411. if ( diethist != "" ) {
  1412. var item5 = " ο 식사력 : " + diethist;
  1413. if ( ipt_diethistetc.value != "" ) {
  1414. item5 = item5 + ", " + ipt_diethistetc.value +"\n";
  1415. } else {
  1416. item5 = item5 + "\n";
  1417. }
  1418. } else {
  1419. if ( ipt_diethistetc.value != "" ) {
  1420. var item5 = " ο 식사력 : " + ipt_diethistetc.value +"\n";
  1421. } else {
  1422. var item5 = "";
  1423. }
  1424. }
  1425. if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
  1426. var item6 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
  1427. if ( ipt_intkstatetc.value != "" ) {
  1428. item6 = item6 + " 기타 : " + ipt_intkstatetc.value;
  1429. }
  1430. item6 = item6 +"\n";
  1431. } else {
  1432. var item6 = "";
  1433. }
  1434. if ( item6 == "" && ipt_intkstatetc.value != "" ) {
  1435. var item7 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
  1436. } else {
  1437. var item7 = "";
  1438. }
  1439. if ( (chk_actgrde.value != "") || (tar_actgrdeetc.value != "") ) {
  1440. var item8 = " ο 활동정도 : " + actgrde;
  1441. if ( actgrde != "" && ipt_actgrdeexer.value != "" ) {
  1442. item8 = item8 + ", " + ipt_actgrdeexer.value;
  1443. } else if ( actgrde == "" && ipt_actgrdeexer.value != "" ) {
  1444. item8 = item8 + ipt_actgrdeexer.value;
  1445. }
  1446. if ( (chk_actgrde.value != "") && (tar_actgrdeetc.value != "") ) {
  1447. item8 = item8 + ", 기타 : " + tar_actgrdeetc.value +"\n";
  1448. } else if ( (chk_actgrde.value == "") && (tar_actgrdeetc.value != "") ) {
  1449. item8 = item8 + "기타 : " + tar_actgrdeetc.value +"\n";
  1450. } else {
  1451. item8 = item8 +"\n";
  1452. }
  1453. } else {
  1454. var item8 = "";
  1455. }
  1456. var item10 = "\n" + "O :" +"\n";
  1457. if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
  1458. var item11 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
  1459. } else {
  1460. var item11 = "";
  1461. }
  1462. if ( ipt_bdwtupdtqty.value != "" ) {
  1463. var item12 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
  1464. } else {
  1465. var item12 = "";
  1466. }
  1467. var item13 = "";
  1468. if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
  1469. if ( ipt_testrsltalb.value != "" ) {
  1470. item13 = " ο Alb : " + ipt_testrsltalb.value;
  1471. }
  1472. if ( ipt_testrslttlc.value != "" && item13 == "" ) {
  1473. item13 = " ο TLC : " + ipt_testrslttlc.value;
  1474. } else if ( ipt_testrslttlc.value != "" && item13 != "" ) {
  1475. item13 = item13 + ", TLC : " + ipt_testrslttlc.value;
  1476. }
  1477. if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item13 == "" ) {
  1478. item13 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  1479. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item13 == "" ) {
  1480. item13 = " ο Hb : " + ipt_testrslthbhct.value;
  1481. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item13 == "" ) {
  1482. item13 = " ο Hct : " + ipt_testrslthbhct2.value;
  1483. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item13 != "" ) {
  1484. item13 = item13 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  1485. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item13 != "" ) {
  1486. item13 = item13 + ", Hb : " + ipt_testrslthbhct.value;
  1487. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item13 != "" ) {
  1488. item13 = item13 + ", Hct : " + ipt_testrslthbhct2.value;
  1489. }
  1490. if ( ipt_testrslttrf.value != "" && item13 == "" ) {
  1491. item13 = " ο TRF : " + ipt_testrslttrf.value;
  1492. } else if ( ipt_testrslttrf.value != "" && item13 != "" ) {
  1493. item13 = item13 + ", TRF : " + ipt_testrslttrf.value;
  1494. }
  1495. item13 = item13 + "\n";
  1496. }
  1497. if ( item13 != "" && tar_testrsltrem.value != "" ) {
  1498. var item14 = " 기타 : " + tar_testrsltrem.value +"\n";
  1499. } else if ( item13 == "" && tar_testrsltrem.value != "" ) {
  1500. var item14 = " ο 기타 : " + tar_testrsltrem.value +"\n";
  1501. } else {
  1502. var item14 = "";
  1503. }
  1504. var item15 = "\n" + "A :" +"\n";
  1505. if ( cmb_nutrstatvalu1.label != "" ) {
  1506. var item16 = " ο 영양상태 : " + cmb_nutrstatvalu1.label + "\n";
  1507. } else {
  1508. var item16 = "";
  1509. }
  1510. if ( item16 != "" && tar_nutrstatvalu1.value != "" ) {
  1511. var item17 = " 기타 : " + tar_nutrstatvalu1.value +"\n";
  1512. } else if ( item16 == "" && tar_nutrstatvalu1.value != "" ) {
  1513. var item17 = " ο 영양상태 : 기타 : " + tar_nutrstatvalu1.value +"\n";
  1514. } else {
  1515. var item17 = "";
  1516. }
  1517. var calrintk = model.getValue("/root/main/maindata/cnstreq/calrintk1");
  1518. var calrintkqty = model.getValue("/root/main/maindata/cnstreq/calrintkqty1");
  1519. var protintk = model.getValue("/root/main/maindata/cnstreq/protintk1");
  1520. var protintkqty = model.getValue("/root/main/maindata/cnstreq/protintkqty1");
  1521. var intkqtyetc = model.getValue("/root/main/maindata/cnstreq/intkqtyetc1");
  1522. if ( calrintkqty != "" || protintkqty != "" || intkqtyetc != "" ) {
  1523. var item18 = "\n" + " 섭취량 분석 및 평가";
  1524. if ( calrintkqty != "" ) {
  1525. item18 = item18 + "\n" + " 열량 : " + calrintkqty + " kcal/day";
  1526. if ( calrintk != "" ) {
  1527. if (calrintk == '1') { calrintk = '상당히 부족';
  1528. } else if (calrintk == '2') { calrintk = '약간 부족';
  1529. } else if (calrintk == '3') { calrintk = '양호';
  1530. } else if (calrintk == '4') { calrintk = '과다';
  1531. }
  1532. item18 = item18 + " (" + calrintk + ")";
  1533. }
  1534. }
  1535. if ( protintkqty != "" ) {
  1536. item18 = item18 + "\n" + " 단백질 : " + protintkqty + " g/day";
  1537. if ( protintk != "" ) {
  1538. if (protintk == '1') { protintk = '상당히 부족';
  1539. } else if (protintk == '2') { protintk = '약간 부족';
  1540. } else if (protintk == '3') { protintk = '양호';
  1541. } else if (protintk == '4') { protintk = '과다';
  1542. }
  1543. item18 = item18 + " (" + protintk + ")";
  1544. }
  1545. }
  1546. if ( intkqtyetc != "" ) {
  1547. item18 = item18 + "\n" + " " + intkqtyetc;
  1548. }
  1549. } else {
  1550. var item18 = "";
  1551. }
  1552. if ( item18 != "" ) {
  1553. var item19 = "\n" + "\n" + " ο 영양요구량" +"\n";
  1554. } else {
  1555. var item19 = "\n" + " ο 영양요구량" +"\n";
  1556. }
  1557. if ( opt_calr.value != "" ) {
  1558. if ( rdo_calrflag.label == "계수법" ) {
  1559. var item20 = " * 열량 : " + opt_calr.value + " kcal/day ( " + rdo_stndbdwtflag.label + " * " + ipt_adoptlawcalr.value + " kcal/kg )" + "\n";
  1560. } else if ( rdo_calrflag.label == "HB" ) {
  1561. var item20 = " * 열량 : " + opt_calr.value + " kcal/day ( BEE : " + opt_calrhb.value + ", AF : " + ipt_hbcalr1.value + ", SF : " + ipt_hbcalr2.value + " )" + "\n";
  1562. }
  1563. } else {
  1564. var item20 = "";
  1565. }
  1566. if ( opt_protqty.value != "" ) {
  1567. var item21 = " * 단백질 : " + opt_protqty.value + " g/day ( " + rdo_stndbdwtflag.label + " * " + ipt_protqty.value + " g/kg )" + "\n";
  1568. } else {
  1569. var item21 = "";
  1570. }
  1571. if ( tar_nutrreqqty.value != "" ) {
  1572. var item22 = " * 기타 : " + tar_nutrreqqty.value +"\n";
  1573. } else {
  1574. var item22 = "";
  1575. }
  1576. var item23 = "\n" + "P :" +"\n";
  1577. if ( cnstpsn != "" && rdo_unstdgrde.label != "" ) {
  1578. var item24 = " ο 피상담자 : " + cnstpsn + " 교육이해도 : " + rdo_unstdgrde.label +"\n";
  1579. } else if ( cnstpsn != "" && rdo_unstdgrde.label == "" ) {
  1580. var item24 = " ο 피상담자 : " + cnstpsn + "\n";
  1581. } else if ( cnstpsn == "" && rdo_unstdgrde.label != "" ) {
  1582. var item24 = " ο 교육이해도 : " + rdo_unstdgrde.label +"\n";
  1583. } else {
  1584. var item24 = "";
  1585. }
  1586. if ( cmb_cnstcd.label != "" && tar_cnstcnts.value == "" ) {
  1587. var item25 = " ο 영양상담내용 : " + cmb_cnstcd.label + "\n";
  1588. } else if ( cmb_cnstcd.label != "" && tar_cnstcnts.value != "" ) {
  1589. var item25 = " ο 영양상담내용 : " + cmb_cnstcd.label + ", " + tar_cnstcnts.value + "\n";
  1590. } else if ( cmb_cnstcd.label == "" && tar_cnstcnts.value != "" ) {
  1591. var item25 = " ο 영양상담내용 : " + tar_cnstcnts.value + "\n";
  1592. } else {
  1593. var item25 = "";
  1594. }
  1595. if ( cureplan != "" ) {
  1596. var item26 = " ο 영양치료 계획/권장 : " + cureplan + "\n";
  1597. } else {
  1598. var item26 = "";
  1599. }
  1600. if ( cmb_intndieter.label != "" ) {
  1601. var item27 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  1602. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
  1603. } else {
  1604. var item27 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  1605. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
  1606. }
  1607. replcnts = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 +
  1608. item10 + item11 + item12 + item13 +
  1609. item14 + item15 + item16 + item17 + item18 + item19 + item20 +
  1610. item21 + item22 + item23 + item24 + item25 + item26 + item27;
  1611. model.setValue("/root/main/maindata/nutrstatjudg/replcnts", replcnts);
  1612. model.setValue("/root/main/maindata/nutrstatjudg/careplan", cureplan);
  1613. model.refresh();
  1614. //btn_repl.dispatch("DOMActivate"); //회신 탭화면으로 이동
  1615. //btn_repl.selected = true;
  1616. }
  1617. // SOAP 버튼 클릭시 (2)
  1618. //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
  1619. //영양상태판정 + 추구관리 탭의 내용을 조합하여 회신내용 생성
  1620. function fSoapReplCntsPursmngt() {
  1621. var bodysymp = "";
  1622. var dietprob = "";
  1623. var diethist = "";
  1624. var actgrde = "";
  1625. var cnstpsn = "";
  1626. var cureplan = "";
  1627. var temp = "";
  1628. var replcnts = "";
  1629. //신체증후의 체크된 항목들을 콤마로 연결
  1630. for ( i = 0; i < chk_bodysymp.label.length; i++ ) {
  1631. if ( chk_bodysymp.label.substr(i,2) == "기타" || chk_bodysymp.label.substr(i,3) == "▦기타" ) {
  1632. break;
  1633. } else {
  1634. temp = temp + chk_bodysymp.label.substr(i,1);
  1635. }
  1636. }
  1637. for ( i = 0; i < temp.length; i++ ) {
  1638. if ( temp.substr(i,1) == "▦" ) {
  1639. bodysymp = bodysymp + ", ";
  1640. } else {
  1641. bodysymp = bodysymp + temp.substr(i,1);
  1642. }
  1643. }
  1644. //식사시 문제점의 체크된 항목들을 콤마로 연결
  1645. temp = "";
  1646. for ( i = 0; i < chk_dietprob.label.length; i++ ) {
  1647. if ( chk_dietprob.label.substr(i,2) == "기타" || chk_dietprob.label.substr(i,3) == "▦기타" ) {
  1648. break;
  1649. } else {
  1650. temp = temp + chk_dietprob.label.substr(i,1);
  1651. }
  1652. }
  1653. for ( i = 0; i < temp.length; i++ ) {
  1654. if ( temp.substr(i,1) == "▦" ) {
  1655. dietprob = dietprob + ", ";
  1656. } else {
  1657. dietprob = dietprob + temp.substr(i,1);
  1658. }
  1659. }
  1660. //식사력의 체크된 항목들을 콤마로 연결
  1661. temp = chk_diethist.value;
  1662. for ( i = 0; i < temp.length; i++ ) {
  1663. if ( temp.substr(i,2) == "11" ) {
  1664. diethist = diethist + "균형된 식사";
  1665. } else if ( temp.substr(i,2) == "12" ) {
  1666. diethist = diethist + "규칙적인 식사";
  1667. } else if ( temp.substr(i,2) == "13" ) {
  1668. diethist = diethist + "불규칙적인 식사";
  1669. } else if ( temp.substr(i,2) == "14" ) {
  1670. diethist = diethist + "빠른식사속도";
  1671. } else if ( temp.substr(i,2) == "15" ) {
  1672. diethist = diethist + "과식";
  1673. } else if ( temp.substr(i,2) == "16" ) {
  1674. diethist = diethist + "당질과다섭취";
  1675. } else if ( temp.substr(i,2) == "17" ) {
  1676. diethist = diethist + "지방과다섭취";
  1677. } else if ( temp.substr(i,2) == "18" ) {
  1678. diethist = diethist + "염분과다섭취";
  1679. } else if ( (temp.substr(i,2) == "19") && (ipt_healsuppfood.value != "") ) {
  1680. diethist = diethist + "건강보조식품 " + ipt_healsuppfood.value;
  1681. } else if ( (temp.substr(i,2) == "20") && (ipt_cofftims.value != "") ) {
  1682. diethist = diethist + "커피 " + ipt_cofftims.value + "잔/day";
  1683. } else if ( (temp.substr(i,2) == "21") && (ipt_smoktims.value != "") ) {
  1684. diethist = diethist + "흡연 " + ipt_smoktims.value + "pack/day";
  1685. } else if ( (temp.substr(i,2) == "22") && (ipt_eatouttims.value != "") ) {
  1686. diethist = diethist + "외식 " + ipt_eatouttims.value + "회/week";
  1687. if (ipt_eatoutrem.value != "") {
  1688. diethist = diethist + ipt_eatoutrem.value;
  1689. }
  1690. } else if ( (temp.substr(i,2) == "23") && (ipt_drunktims.value != "") ) {
  1691. diethist = diethist + "음주 " + ipt_drunktims.value + "회/week";
  1692. if (ipt_drunkvol.value != "") {
  1693. diethist = diethist + "(1회 섭취량 " + ipt_drunkvol.value + ")";
  1694. }
  1695. if (ipt_drunkrem.value != "") {
  1696. diethist = diethist + ipt_drunkrem.value;
  1697. }
  1698. } else if ( temp.substr(i,1) == "▦" ) {
  1699. diethist = diethist + ", ";
  1700. }
  1701. }
  1702. if ( diethist.substr(0,2) == ", " ) {
  1703. diethist = diethist.substr(2,diethist.length-2);
  1704. }
  1705. if ( diethist.substr(diethist.length-2,2) == ", " ) {
  1706. diethist = diethist.substr(0,diethist.length-2);
  1707. }
  1708. //활동정도의 체크된 항목들을 콤마로 연결
  1709. temp = "";
  1710. for ( i = 0; i < chk_actgrde.label.length; i++ ) {
  1711. if ( chk_actgrde.label.substr(i,2) == "운동" || chk_actgrde.label.substr(i,3) == "▦운동" ) {
  1712. break;
  1713. } else {
  1714. temp = temp + chk_actgrde.label.substr(i,1);
  1715. }
  1716. }
  1717. for ( i = 0; i < temp.length; i++ ) {
  1718. if ( temp.substr(i,1) == "▦" ) {
  1719. actgrde = actgrde + ", ";
  1720. } else {
  1721. actgrde = actgrde + temp.substr(i,1);
  1722. }
  1723. }
  1724. //피상담자의 체크된 항목들을 콤마로 연결
  1725. // temp = chk_cnstpsn.label;
  1726. // for ( i = 0; i < temp.length; i++ ) {
  1727. // if ( temp.substr(i,1) == "▦" ) {
  1728. // cnstpsn = cnstpsn + ",";
  1729. // } else {
  1730. // cnstpsn = cnstpsn + temp.substr(i,1);
  1731. // }
  1732. // }
  1733. //2011.08.31 하드코드 공통코드로 수정
  1734. var cureplancd = "";
  1735. var cureplanrow = model.instances(0).selectNodes( "/root/init/baseinfo/cureplancd3/A505" ).length + 1;
  1736. //alert("cureplanrow"+cureplanrow);
  1737. //영양치료계획/권장 그리드의 항목들을 콤마로 연결
  1738. if ( grd_pursmngt.rows-1 > 0 ) {
  1739. for ( i = 1; i <= grd_pursmngt.rows-1; i++ ) {
  1740. cureplancd = model.getValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/cureplancd");
  1741. if (cureplancd != "") {
  1742. for(var j = 1; j < cureplanrow ; j++){
  1743. var cdid = model.getValue("/root/init/baseinfo/cureplancd3/A505["+j+"]/cdid");
  1744. var cdnm = model.getValue("/root/init/baseinfo/cureplancd3/A505["+j+"]/cdnm");
  1745. if(cureplancd == cdid){
  1746. var temp = cdnm
  1747. }
  1748. }
  1749. cureplan = cureplan + temp + model.getValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/cureplancnts") + ", ";
  1750. temp = "";
  1751. }
  1752. }
  1753. cureplan = cureplan.substr(0,cureplan.length-2);
  1754. }
  1755. alert(cureplan);////////////////////////////////////////////////////////
  1756. var item1 = "의뢰항목: " + opt_reqresn.value + " 의뢰일자: " + opt_reqdd.value.substr(0,4) + "/" + opt_reqdd.value.substr(4,2) +
  1757. "/" + opt_reqdd.value.substr(6,2) + " 처방의: " + opt_reqpsn.value +"\n" +"\n";
  1758. var item2 = "S :" +"\n";
  1759. if ( bodysymp != "" ) {
  1760. var item3 = " ο 신체증후 : " + bodysymp;
  1761. if ( ipt_bodysymprem.value != "" ) {
  1762. item3 = item3 + ", " + ipt_bodysymprem.value +"\n";
  1763. } else {
  1764. item3 = item3 + "\n";
  1765. }
  1766. } else {
  1767. if ( ipt_bodysymprem.value != "" ) {
  1768. var item3 = " ο 신체증후 : " + ipt_bodysymprem.value +"\n";
  1769. } else {
  1770. var item3 = "";
  1771. }
  1772. }
  1773. if ( dietprob != "" ) {
  1774. var item4 = " ο 식사시 문제점 : " + dietprob;
  1775. if ( ipt_dietprobrem.value != "" ) {
  1776. item4 = item4 + ", " + ipt_dietprobrem.value +"\n";
  1777. } else {
  1778. item4 = item4 + "\n";
  1779. }
  1780. } else {
  1781. if ( ipt_dietprobrem.value != "" ) {
  1782. var item4 = " ο 식사시 문제점 : " + ipt_dietprobrem.value +"\n";
  1783. } else {
  1784. var item4 = "";
  1785. }
  1786. }
  1787. if ( diethist != "" ) {
  1788. var item5 = " ο 식사력 : " + diethist;
  1789. if ( ipt_diethistetc.value != "" ) {
  1790. item5 = item5 + ", " + ipt_diethistetc.value +"\n";
  1791. } else {
  1792. item5 = item5 + "\n";
  1793. }
  1794. } else {
  1795. if ( ipt_diethistetc.value != "" ) {
  1796. var item5 = " ο 식사력 : " + ipt_diethistetc.value +"\n";
  1797. } else {
  1798. var item5 = "";
  1799. }
  1800. }
  1801. if ( ipt_intkstatmainmeal.value != "" || ipt_intkstatsubmeal.value != "" ) {
  1802. var item6 = " ο 식사섭취상태 : 병원식(주식 " + ipt_intkstatmainmeal.value + "%, 부식 " + ipt_intkstatsubmeal.value + "%)";
  1803. if ( ipt_intkstatetc.value != "" ) {
  1804. item6 = item6 + " 기타 : " + ipt_intkstatetc.value;
  1805. }
  1806. item6 = item6 +"\n";
  1807. } else {
  1808. var item6 = "";
  1809. }
  1810. if ( item6 == "" && ipt_intkstatetc.value != "" ) {
  1811. var item7 = " ο 식사섭취상태 : 기타 : " + ipt_intkstatetc.value +"\n";
  1812. } else {
  1813. var item7 = "";
  1814. }
  1815. if ( (chk_actgrde.value != "") || (tar_actgrdeetc.value != "") ) {
  1816. var item8 = " ο 활동정도 : " + actgrde;
  1817. if ( actgrde != "" && ipt_actgrdeexer.value != "" ) {
  1818. item8 = item8 + ", " + ipt_actgrdeexer.value;
  1819. } else if ( actgrde == "" && ipt_actgrdeexer.value != "" ) {
  1820. item8 = item8 + ipt_actgrdeexer.value;
  1821. }
  1822. if ( (chk_actgrde.value != "") && (tar_actgrdeetc.value != "") ) {
  1823. item8 = item8 + ", 기타 : " + tar_actgrdeetc.value +"\n";
  1824. } else if ( (chk_actgrde.value == "") && (tar_actgrdeetc.value != "") ) {
  1825. item8 = item8 + "기타 : " + tar_actgrdeetc.value +"\n";
  1826. } else {
  1827. item8 = item8 +"\n";
  1828. }
  1829. } else {
  1830. var item8 = "";
  1831. }
  1832. var item10 = "\n" + "O :" +"\n";
  1833. if ( ipt_physmeasbdht.value != "" || ipt_physmeasbdwt.value != "" || ipt_physmeasibw.value != "" || ipt_physmeasibwperc.value != "" ) {
  1834. var item11 = " ο Ht : " + ipt_physmeasbdht.value + "cm, Wt : " + ipt_physmeasbdwt.value + "kg, IBW : " + ipt_physmeasibw.value + "kg, PIBW : " + ipt_physmeasibwperc.value + "%" + "\n";
  1835. } else {
  1836. var item11 = "";
  1837. }
  1838. if ( ipt_bdwtupdtqty.value != "" ) {
  1839. var item12 = " ο Wt.change : " + ipt_bdwtupdtqty.value + "kg( " + ipt_bdwtupdtrate.value + " )% / " + ipt_bdwtupdtterm.value + "개월" + "\n";
  1840. } else {
  1841. var item12 = "";
  1842. }
  1843. var item13 = "";
  1844. if ( ipt_testrsltalb.value != "" || ipt_testrslttlc.value != "" || ipt_testrslthbhct.value != "" || ipt_testrslthbhct2.value != "" || ipt_testrslttrf.value != "" ) {
  1845. if ( ipt_testrsltalb.value != "" ) {
  1846. item13 = " ο Alb : " + ipt_testrsltalb.value;
  1847. }
  1848. if ( ipt_testrslttlc.value != "" && item13 == "" ) {
  1849. item13 = " ο TLC : " + ipt_testrslttlc.value;
  1850. } else if ( ipt_testrslttlc.value != "" && item13 != "" ) {
  1851. item13 = item13 + ", TLC : " + ipt_testrslttlc.value;
  1852. }
  1853. if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item13 == "" ) {
  1854. item13 = " ο Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  1855. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item13 == "" ) {
  1856. item13 = " ο Hb : " + ipt_testrslthbhct.value;
  1857. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item13 == "" ) {
  1858. item13 = " ο Hct : " + ipt_testrslthbhct2.value;
  1859. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value != "" && item13 != "" ) {
  1860. item13 = item13 + ", Hb/Hct : " + ipt_testrslthbhct.value + " / " + ipt_testrslthbhct2.value;
  1861. } else if ( ipt_testrslthbhct.value != "" && ipt_testrslthbhct2.value == "" && item13 != "" ) {
  1862. item13 = item13 + ", Hb : " + ipt_testrslthbhct.value;
  1863. } else if ( ipt_testrslthbhct.value == "" && ipt_testrslthbhct2.value != "" && item13 != "" ) {
  1864. item13 = item13 + ", Hct : " + ipt_testrslthbhct2.value;
  1865. }
  1866. if ( ipt_testrslttrf.value != "" && item13 == "" ) {
  1867. item13 = " ο TRF : " + ipt_testrslttrf.value;
  1868. } else if ( ipt_testrslttrf.value != "" && item13 != "" ) {
  1869. item13 = item13 + ", TRF : " + ipt_testrslttrf.value;
  1870. }
  1871. item13 = item13 + "\n";
  1872. }
  1873. if ( item13 != "" && tar_testrsltrem.value != "" ) {
  1874. var item14 = " 기타 : " + tar_testrsltrem.value +"\n";
  1875. } else if ( item13 == "" && tar_testrsltrem.value != "" ) {
  1876. var item14 = " ο 기타 : " + tar_testrsltrem.value +"\n";
  1877. } else {
  1878. var item14 = "";
  1879. }
  1880. var item15 = "\n" + "A :" +"\n";
  1881. if ( cmb_nutrstatvalu2.label != "" ) {
  1882. var item16 = " ο 영양상태 : " + cmb_nutrstatvalu2.label + "\n";
  1883. } else {
  1884. var item16 = "";
  1885. }
  1886. if ( item16 != "" && tar_nutrstatvalu2.value != "" ) {
  1887. var item17 = " 기타 : " + tar_nutrstatvalu2.value +"\n";
  1888. } else if ( item16 == "" && tar_nutrstatvalu2.value != "" ) {
  1889. var item17 = " ο 영양상태 : 기타 : " + tar_nutrstatvalu2.value +"\n";
  1890. } else {
  1891. var item17 = "";
  1892. }
  1893. var calrintk = model.getValue("/root/main/maindata/pursmngt/calrintk2");
  1894. var calrintkqty = model.getValue("/root/main/maindata/pursmngt/calrintkqty2");
  1895. var protintk = model.getValue("/root/main/maindata/pursmngt/protintk2");
  1896. var protintkqty = model.getValue("/root/main/maindata/pursmngt/protintkqty2");
  1897. var intkqtyetc = model.getValue("/root/main/maindata/pursmngt/intkqtyetc2");
  1898. if ( calrintkqty != "" || protintkqty != "" || intkqtyetc != "" ) {
  1899. var item18 = "\n" + " 섭취량 분석 및 평가";
  1900. if ( calrintkqty != "" ) {
  1901. item18 = item18 + "\n" + " 열량 : " + calrintkqty + " kcal/day";
  1902. if ( calrintk != "" ) {
  1903. if (calrintk == '1') { calrintk = '상당히 부족';
  1904. } else if (calrintk == '2') { calrintk = '약간 부족';
  1905. } else if (calrintk == '3') { calrintk = '양호';
  1906. } else if (calrintk == '4') { calrintk = '과다';
  1907. }
  1908. item18 = item18 + " (" + calrintk + ")";
  1909. }
  1910. }
  1911. if ( protintkqty != "" ) {
  1912. item18 = item18 + "\n" + " 단백질 : " + protintkqty + " g/day";
  1913. if ( protintk != "" ) {
  1914. if (protintk == '1') { protintk = '상당히 부족';
  1915. } else if (protintk == '2') { protintk = '약간 부족';
  1916. } else if (protintk == '3') { protintk = '양호';
  1917. } else if (protintk == '4') { protintk = '과다';
  1918. }
  1919. item18 = item18 + " (" + protintk + ")";
  1920. }
  1921. }
  1922. if ( intkqtyetc != "" ) {
  1923. item18 = item18 + "\n" + " " + intkqtyetc;
  1924. }
  1925. } else {
  1926. var item18 = "";
  1927. }
  1928. if ( item18 != "" ) {
  1929. var item19 = "\n" + "\n" + " ο 영양요구량" +"\n";
  1930. } else {
  1931. var item19 = "\n" + " ο 영양요구량" +"\n";
  1932. }
  1933. if ( opt_calr2.value != "" ) {
  1934. if ( rdo_calrflag2.label == "계수법" ) {
  1935. var item20 = " * 열량 : " + opt_calr2.value + " kcal/day ( " + rdo_stndbdwtflag2.label + " * " + ipt_adoptlawcalr2.value + " kcal/kg )" + "\n";
  1936. } else if ( rdo_calrflag2.label == "HB" ) {
  1937. var item20 = " * 열량 : " + opt_calr2.value + " kcal/day ( BEE : " + opt_calrhb2.value + ", AF : " + ipt_hbcalr12.value + ", SF : " + ipt_hbcalr22.value + " )" + "\n";
  1938. }
  1939. } else {
  1940. var item20 = "";
  1941. }
  1942. if ( opt_protqty2.value != "" ) {
  1943. var item21 = " * 단백질 : " + opt_protqty2.value + " g/day ( " + rdo_stndbdwtflag2.label + " * " + ipt_protqty2.value + " g/kg )" + "\n";
  1944. } else {
  1945. var item21 = "";
  1946. }
  1947. if ( tar_nutrreqqty2.value != "" ) {
  1948. var item22 = " * 기타 : " + tar_nutrreqqty2.value +"\n";
  1949. } else {
  1950. var item22 = "";
  1951. }
  1952. var item23 = "\n" + "P :" +"\n";
  1953. // if ( cnstpsn != "" && rdo_unstdgrde.label != "" ) {
  1954. // var item24 = " ◈ 피상담자: " + cnstpsn + " 교육이해도: " + rdo_unstdgrde.label +"\n";
  1955. // } else if ( cnstpsn != "" && rdo_unstdgrde.label == "" ) {
  1956. // var item24 = " ◈ 피상담자: " + cnstpsn + "\n";
  1957. // } else if ( cnstpsn == "" && rdo_unstdgrde.label != "" ) {
  1958. // var item24 = " ◈ 교육이해도: " + rdo_unstdgrde.label +"\n";
  1959. // } else {
  1960. // var item24 = "";
  1961. // }
  1962. // if ( cmb_cnstcd.label != "" ) {
  1963. // var item25 = " ◈ 영양상담내용: " + cmb_cnstcd.label + "\n";
  1964. // } else {
  1965. // var item25 = "";
  1966. // }
  1967. if ( cureplan != "" ) {
  1968. var item26 = " ο 영양치료 계획/권장 : " + cureplan + "\n";
  1969. } else {
  1970. var item26 = "";
  1971. }
  1972. if ( cmb_intndieter.label != "" ) {
  1973. var item27 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  1974. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "/ " + cmb_intndieter.label + "\n";
  1975. } else {
  1976. var item27 = "\n " + ipt_execdd.value.substr(0,4) + "/" + ipt_execdd.value.substr(4,2) + "/" +
  1977. ipt_execdd.value.substr(6,2) + " 영양사 " + cmb_chrgdieter.label + "\n";
  1978. }
  1979. replcnts = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8 +
  1980. item10 + item11 + item12 + item13 +
  1981. item14 + item15 + item16 + item17 + item18 + item19 + item20 +
  1982. item21 + item22 + item23 + item26 + item27;
  1983. model.setValue("/root/main/maindata/nutrstatjudg/replcnts", replcnts);
  1984. model.setValue("/root/main/maindata/nutrstatjudg/careplan", cureplan);
  1985. model.refresh();
  1986. }
  1987. // 신체계측결과 계산
  1988. function fPhysMeasRsltCalc() {
  1989. if (model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht") <= 0 ||
  1990. model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht") == "" ||
  1991. model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt") <= 0 ||
  1992. model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt") == "" ) {
  1993. messageBox("키(Ht), 현재체중(Wt)을", "C001");
  1994. return;
  1995. }
  1996. var sex = model.getValue("/root/main/maindata/patbaseinfo/sex"); // 성별
  1997. var age = model.getValue("/root/main/maindata/patbaseinfo/age"); // 나이
  1998. var ht = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"); // 키
  1999. var wt = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"); // 현재체중
  2000. var ubw = model.getValue("/root/main/maindata/nutrstatjudg/physmeasubw"); // 평소체중
  2001. var ibw = model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"); // 표준체중
  2002. var pibw = 0; // 표준체중 백분율
  2003. var abw = 0; // 조정체중
  2004. var changewt = 0; // 변경체중
  2005. var changewtrate = 0; // 변경체중율
  2006. // IBW, PIBW 계산
  2007. if (ibw == "") {
  2008. if (sex == "M") {
  2009. ibw = ((ht/100)*(ht/100)*22);
  2010. } else {
  2011. ibw = ((ht/100)*(ht/100)*21);
  2012. }
  2013. }
  2014. pibw = wt / ibw * 100;
  2015. pibw = pibw.toString().getRound(-2, "HALF_UP");
  2016. // ABW 계산
  2017. if ( pibw >= 120 ) {
  2018. //abw = ibw + (wt - ibw) * 0.25;
  2019. abw = parseFloat(ibw) + parseFloat((wt - ibw) * 0.25);
  2020. abw = abw.toString().getRound(-2, "HALF_UP");
  2021. model.setValue("/root/main/maindata/nutrstatjudg/physmeasabw", abw);
  2022. } else {
  2023. // abw = "";
  2024. // model.setValue("/root/main/maindata/nutrstatjudg/physmeasabw", abw);
  2025. model.resetInstanceNode("/root/main/maindata/nutrstatjudg/physmeasabw");
  2026. }
  2027. // 협진의뢰,추구관리의 영양요구량의 기준체중을 '표준체중'으로 셋팅
  2028. model.setValue("/root/main/maindata/cnstreq/stndbdwtflag1", "1");
  2029. model.setValue("/root/main/maindata/cnstreq/stndbdwt1", ibw);
  2030. model.setValue("/root/main/maindata/pursmngt/stndbdwtflag2", "1");
  2031. model.setValue("/root/main/maindata/pursmngt/stndbdwt2", ibw);
  2032. // 변경체중, 변경체중율 계산
  2033. if ( ubw > 0 && ubw != "" ) {
  2034. changewt = wt - ubw;
  2035. changewtrate = ((wt - ubw)/ubw) * 100;
  2036. changewtrate = changewtrate.toString().getRound(-2, "HALF_UP");
  2037. } else {
  2038. changewt = "";
  2039. changewtrate = "";
  2040. }
  2041. ibw = ibw.toString().getRound(-2, "HALF_UP");
  2042. model.setValue("/root/main/maindata/nutrstatjudg/physmeasibw", ibw);
  2043. model.setValue("/root/main/maindata/nutrstatjudg/physmeasibwperc", pibw);
  2044. if (pibw != "") {
  2045. var ilen = pibw.length;
  2046. if (ilen > 0){
  2047. if (pibw.substr(ilen - 2, ilen - 1) == ".0"){
  2048. ipt_physmeasibwperc.attribute("format") = "###";
  2049. }else{
  2050. ipt_physmeasibwperc.attribute("format") = "###.9";
  2051. }
  2052. }
  2053. }
  2054. // model.setValue("/root/main/maindata/nutrstatjudg/physmeasabw", abw);
  2055. model.setValue("/root/main/maindata/nutrstatjudg/bdwtupdtqty", changewt);
  2056. model.setValue("/root/main/maindata/nutrstatjudg/bdwtupdtrate", changewtrate);
  2057. model.refresh();
  2058. }
  2059. ]]>
  2060. </script>
  2061. <submission id="TRZBC00101"/>
  2062. <submission id="TRANC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" replace="instance" resultref="/root/main/maindata"/>
  2063. <submission id="TRANC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/maindata/cureplan"/>
  2064. <submission id="TRANC00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main/testrslt"/>
  2065. <submission id="TRANC00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/nutrstatjudg" resultref="/root/temp/cnst"/>
  2066. <submission id="TRANC00102" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/nutrjudgbase"/>
  2067. <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
  2068. <submission id="TXANC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/nutrstatjudg" replace="instance" resultref="/root/hidden/ret"/>
  2069. <submission id="TXANC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/cnstreq" replace="instance" resultref="/root/hidden/ret"/>
  2070. <submission id="TXANC00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/pursmngt" replace="instance" resultref="/root/hidden/ret"/>
  2071. <submission id="TXANC00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata" resultref="/root/hidden"/>
  2072. <submission id="TXANC00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/maindata/nutrstatjudg"/>
  2073. <submission id="TRAAA00001"/>
  2074. </model>
  2075. </xhtml:head>
  2076. <xhtml:body guideline="1,1197;2,0;2,14;2,758;2,783;1,1346;">
  2077. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  2078. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">환자별 영양관리</caption>
  2079. </group>
  2080. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  2081. <button id="btn_patinfo" class="btn3_letter6" style="left:5px; top:46px; width:104px; height:22px; ">
  2082. <caption>환자기본정보</caption>
  2083. <script type="javascript" ev:event="onclick">
  2084. <![CDATA[
  2085. if (grp_patinfo.attribute("visibility")=="visible") {
  2086. grp_patinfo.attribute("visibility")="hidden";
  2087. grd_diag.attribute("visibility")="visible";
  2088. caption42.attribute("visibility")="visible";
  2089. line25.attribute("visibility")="visible";
  2090. line24.attribute("visibility")="visible";
  2091. caption43.attribute("visibility")="visible";
  2092. line26.attribute("visibility")="visible";
  2093. line27.attribute("visibility")="visible";
  2094. grd_inmotv.attribute("visibility")="visible";
  2095. } else if (grp_patinfo.attribute("visibility")=="hidden") {
  2096. grp_patinfo.attribute("visibility")="visible";
  2097. grd_diag.attribute("visibility")="hidden";
  2098. caption42.attribute("visibility")="hidden";
  2099. line25.attribute("visibility")="hidden";
  2100. line24.attribute("visibility")="hidden";
  2101. caption43.attribute("visibility")="hidden";
  2102. line26.attribute("visibility")="hidden";
  2103. line27.attribute("visibility")="hidden";
  2104. grd_inmotv.attribute("visibility")="hidden";
  2105. }
  2106. ]]>
  2107. </script>
  2108. </button>
  2109. <group id="grp_patinfo" style="left:0px; top:75px; width:315px; height:220px; ">
  2110. <line id="line21" class="line_1" style="x1:0px; y1:0px; x2:315px; y2:0px; "/>
  2111. <caption id="caption21" class="cell_1" style="left:159px; top:54px; width:65px; height:23px; vertical-align:middle; ">휴대전화</caption>
  2112. <caption id="caption22" class="cell_1" style="left:0px; top:79px; width:65px; height:49px; vertical-align:middle; ">주소</caption>
  2113. <caption id="caption23" class="cell_1" style="left:0px; top:4px; width:65px; height:23px; vertical-align:middle; ">환자명</caption>
  2114. <caption id="caption24" class="cell_1" style="left:0px; top:130px; width:65px; height:23px; vertical-align:middle; ">입원/외래</caption>
  2115. <caption id="caption33" class="cell_1" style="left:159px; top:4px; width:65px; height:23px; vertical-align:middle; ">생년월일</caption>
  2116. <caption id="caption34" class="cell_1" style="left:0px; top:29px; width:65px; height:23px; vertical-align:middle; ">성별</caption>
  2117. <caption id="caption35" class="cell_1" style="left:159px; top:29px; width:65px; height:23px; vertical-align:middle; ">나이</caption>
  2118. <caption id="caption37" class="cell_1" style="left:0px; top:54px; width:65px; height:23px; vertical-align:middle; ">집전화</caption>
  2119. <caption id="caption38" class="cell_1" style="left:0px; top:154px; width:65px; height:23px; vertical-align:middle; ">진료과</caption>
  2120. <caption id="caption39" class="cell_1" style="left:159px; top:154px; width:65px; height:23px; vertical-align:middle; ">전문의</caption>
  2121. <caption id="caption40" class="cell_1" style="left:159px; top:130px; width:65px; height:23px; vertical-align:middle; ">입원일자</caption>
  2122. <caption id="caption41" style="left:108px; top:81px; width:15px; height:20px; vertical-align:middle; ">-</caption>
  2123. <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; "/>
  2124. <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; "/>
  2125. <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; "/>
  2126. <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; "/>
  2127. <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; "/>
  2128. <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; "/>
  2129. <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; "/>
  2130. <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; "/>
  2131. <output id="opt_addr1" ref="/root/main/maindata/patbaseinfo/zipcdseq" class="output_fix" style="left:159px; top:81px; width:156px; height:19px; "/>
  2132. <output id="opt_addr2" ref="/root/main/maindata/patbaseinfo/detladdr" class="output_fix" style="left:68px; top:106px; width:247px; height:19px; "/>
  2133. <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; "/>
  2134. <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; "/>
  2135. <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; "/>
  2136. <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; "/>
  2137. <line id="line138" class="line_3" style="x1:0px; y1:180px; x2:315px; y2:180px; "/>
  2138. </group>
  2139. <group id="group5" style="left:0px; top:9px; width:1194px; height:35px; vertical-align:top; ">
  2140. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:34px; background-color:#fffbf2; "/>
  2141. <caption id="caption6" class="search_name" style="left:16px; top:8px; width:137px; height:17px; ">등록번호/환자명 :</caption>
  2142. <caption id="caption20" class="search_name" style="left:387px; top:8px; width:89px; height:17px; ">의뢰일자 :</caption>
  2143. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:6px; width:56px; height:22px; ">
  2144. <caption>조회</caption>
  2145. <script type="javascript" ev:event="DOMActivate">
  2146. <![CDATA[
  2147. submit("TRANC00301");
  2148. if (model.getValue("/root/send/searchitem/flag") == 'A') {
  2149. submit("TRANC00302"); //컨설팅별 영양치료계획 조회
  2150. }
  2151. // if ( model.getValue("/root/main/maindata/nutrstatjudg/pid") != "" ) {
  2152. // cmb_nutrmngtkind.value = "";
  2153. // cmb_sickcd.value = "";
  2154. // }
  2155. btn_nutrstatjudg.dispatch("DOMActivate"); //영양상태판정 탭화면으로 이동
  2156. btn_nutrstatjudg.selected = true;
  2157. //의뢰건인 경우 의뢰일자,의뢰자,서식기록번호,의뢰사유 보여주기
  2158. // if ( model.getValue("/root/send/searchitem/flag") == 'B' ) {
  2159. // model.setValue("/root/send/searchitem/reqdd", model.getValue("/root/main/receivedata/reqdd"));
  2160. // model.setValue("/root/send/searchitem/reqpsn", model.getValue("/root/main/receivedata/reqpsn"));
  2161. // model.setValue("/root/send/searchitem/reqresn", model.getValue("/root/main/receivedata/educreqcnts"));
  2162. // model.setValue("/root/send/searchitem/formrecseq", model.getValue("/root/main/receivedata/h_formrecseq"));
  2163. // } else {
  2164. // model.setValue("/root/send/searchitem/reqdd", model.getValue("/root/main/maindata/nutrstatjudg/reqdd"));
  2165. // model.setValue("/root/send/searchitem/reqpsn", model.getValue("/root/main/maindata/nutrstatjudg/reqpsn"));
  2166. // model.setValue("/root/send/searchitem/reqresn", model.getValue("/root/main/maindata/nutrstatjudg/reqresn"));
  2167. // model.setValue("/root/send/searchitem/formrecseq", model.getValue("/root/main/maindata/nutrstatjudg/formrecseq"));
  2168. // }
  2169. opt_reccnts.hint = model.getValue("/root/main/receivedata/reccnts");
  2170. //검사결과 셋팅
  2171. model.setValue("/root/main/testrslt/lis/alb", model.getValue("/root/main/maindata/nutrstatjudg/testrsltalb"));
  2172. model.setValue("/root/main/testrslt/lis/tlc", model.getValue("/root/main/maindata/nutrstatjudg/testrslttlc"));
  2173. model.setValue("/root/main/testrslt/lis/hb", model.getValue("/root/main/maindata/nutrstatjudg/testrslthbhct"));
  2174. model.setValue("/root/main/testrslt/lis/hct", model.getValue("/root/main/maindata/nutrstatjudg/testrslthbhct2"));
  2175. model.setValue("/root/main/testrslt/lis/trf", model.getValue("/root/main/maindata/nutrstatjudg/testrslttrf"));
  2176. // 조회 후 저장된 키, 몸무게가 없으면 환자기본정보의 키, 몸무게를 신체계측결과의 Ht, Wt에 setting
  2177. if ( model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht")=="" ) {
  2178. model.setValue("/root/main/maindata/nutrstatjudg/physmeasbdht", model.getValue("/root/main/maindata/patbaseinfo/ht"));
  2179. }
  2180. if ( model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt")=="" ) {
  2181. model.setValue("/root/main/maindata/nutrstatjudg/physmeasbdwt", model.getValue("/root/main/maindata/patbaseinfo/wt"));
  2182. }
  2183. //컨설트 수행후 화면을 닫지 않은 상태에서 바로 다른 환자의 등록번호를 입력후 조회할 경우
  2184. if ( model.getValue("/root/send/searchitem/pid") != model.getValue("/root/main/receivedatacopy/pid") ) {
  2185. model.resetInstanceNode("/root/main/receivedata");
  2186. model.resetInstanceNode("/root/main/receivedatacopy");
  2187. }
  2188. //다른 화면에서 링크하지 않고 직접 환자의 등록번호를 입력후 조회할 경우 검사결과만 별도로 조회해온다.
  2189. if (model.getValue("/root/send/searchitem/trflag") == 'T') {
  2190. fTestRsltSrch(); //가장 최근 검사결과 조회
  2191. }
  2192. //저장, 삭제, 회신, 회신취소 버튼 활성화 여부
  2193. //회신확정 상태일 경우
  2194. // if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") == "30" ) {
  2195. // btn_save.disabled = true; //저장버튼 비활성화
  2196. // btn_del.disabled = true; //삭제버튼 비활성화
  2197. // btn_cnstrepl.disabled = true; //회신버튼 비활성화
  2198. // btn_cnstreplcncl.disabled = true; //회신취소버튼 비활성화
  2199. // }
  2200. //회신을 안한 상태일 경우
  2201. // else if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") == "" ||
  2202. // model.getValue("/root/main/maindata/nutrstatjudg/cnststat") < 21 ) {
  2203. // btn_save.disabled = false; //저장버튼 활성화
  2204. // btn_del.disabled = false; //삭제버튼 활성화
  2205. // btn_cnstrepl.disabled = true; //회신버튼 비활성화
  2206. // btn_cnstreplcncl.disabled = true; //회신취소버튼 비활성화
  2207. // }
  2208. //회신은 했지만 회신확정 상태가 아닐 경우
  2209. // else if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") != "" &&
  2210. // model.getValue("/root/main/maindata/nutrstatjudg/cnststat") < 30 ) {
  2211. // btn_save.disabled = false; //저장버튼 활성화
  2212. // btn_del.disabled = false; //삭제버튼 활성화
  2213. // btn_cnstrepl.disabled = true; //회신버튼 비활성화
  2214. // btn_cnstreplcncl.disabled = false; //회신취소버튼 활성화
  2215. // }
  2216. model.refresh();
  2217. ]]>
  2218. </script>
  2219. </button>
  2220. <line id="line14" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
  2221. <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; ">
  2222. <script type="javascript" ev:event="onkeydown">
  2223. <![CDATA[
  2224. model.setValue("/root/send/searchitem/hngnm", "");
  2225. model.setValue("/root/send/searchitem/pastexecdd", "");
  2226. model.setValue("/root/send/searchitem/cretno", "");
  2227. model.setValue("/root/send/searchitem/orddeptcd", "");
  2228. model.setValue("/root/send/searchitem/prcpgenrflag", "");
  2229. model.setValue("/root/send/searchitem/orddd", "");
  2230. //flag=B는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)만 조회한다는 뜻임.
  2231. model.setValue("/root/send/searchitem/flag", 'B');
  2232. //flag=B는 화면 왼쪽의 공통정보만 조회하므로 trflag를 T로 셋팅하여 최근 검사결과를 추가로 조회한다.
  2233. model.makeValue("/root/send/searchitem/trflag", 'T');
  2234. inputEnterKey("btn_search", "DOMActivate"); //조회 이벤트 수행
  2235. model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/maindata/patbaseinfo/hngnm"));
  2236. opt_patnm.refresh();
  2237. model.removenode("/root/send/searchitem/trflag");
  2238. ]]>
  2239. </script>
  2240. </input>
  2241. <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; "/>
  2242. <button id="button11" class="icon_search" style="left:233px; top:8px; width:16px; height:16px; ">
  2243. <caption/>
  2244. <script type="javascript" ev:event="DOMActivate">
  2245. <![CDATA[
  2246. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  2247. model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  2248. model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  2249. model.refresh();
  2250. btn_search.dispatch("DOMActivate"); //조회 이벤트 수행
  2251. ]]>
  2252. </script>
  2253. </button>
  2254. <output id="opt_patnm" ref="/root/send/searchitem/hngnm" class="output_search" style="left:254px; top:7px; width:70px; height:19px; "/>
  2255. <output id="opt_reccnts" ref="/root/main/receivedata/reccnts" class="output_search" style="left:823px; top:7px; width:273px; height:19px; "/>
  2256. <caption id="caption3" class="search_name" style="left:737px; top:8px; width:88px; height:17px; ">의뢰내용 :</caption>
  2257. <caption id="caption9" class="search_name" style="left:577px; top:8px; width:78px; height:17px; ">의뢰자 :</caption>
  2258. <output id="opt_reqpsn" ref="/root/main/receivedata/reqpsn" class="output_search" style="left:650px; top:7px; width:70px; height:19px; text-align:center; "/>
  2259. </group>
  2260. <line id="line24" class="line_3" style="x1:0px; y1:198px; x2:315px; y2:198px; "/>
  2261. <line id="line25" class="line_1" style="x1:0px; y1:91px; x2:315px; y2:91px; "/>
  2262. <caption id="caption42" class="tit_2" style="left:5px; top:77px; width:95px; height:13px; ">진단명</caption>
  2263. <line id="line26" class="line_3" style="x1:0px; y1:331px; x2:315px; y2:331px; "/>
  2264. <line id="line27" class="line_1" style="x1:0px; y1:226px; x2:315px; y2:226px; "/>
  2265. <caption id="caption43" class="tit_2" style="left:5px; top:210px; width:95px; height:13px; ">입원동기</caption>
  2266. <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; ">
  2267. <col ref="diagnm"/>
  2268. </datagrid>
  2269. <line id="line34" class="line_1" style="x1:0px; y1:358px; x2:315px; y2:358px; "/>
  2270. <caption id="caption44" class="tit_2" style="left:5px; top:342px; width:95px; height:13px; ">식사처방정보</caption>
  2271. <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; ">
  2272. <col ref="inmotvcnts"/>
  2273. </datagrid>
  2274. <line id="line35" class="line_3" style="x1:0px; y1:466px; x2:315px; y2:466px; "/>
  2275. <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; ">
  2276. <col ref="pid"/>
  2277. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  2278. <col disabled="true" ref="nutrmngtkind" type="combo">
  2279. <choices>
  2280. <itemset nodeset="/root/init/basecode/nutrmngtkind/A0060">
  2281. <label ref="cdnm"/>
  2282. <value ref="cdid"/>
  2283. </itemset>
  2284. </choices>
  2285. </col>
  2286. <col ref="dieter"/>
  2287. <col ref="ioflag" visibility="hidden"/>
  2288. <col ref="indd" visibility="hidden"/>
  2289. <col ref="formrecseq" visibility="hidden"/>
  2290. <col ref="cnststatnm"/>
  2291. <col ref="chrgdieternm" visibility="hidden"/>
  2292. <col ref="intndieternm" visibility="hidden"/>
  2293. <script type="javascript" ev:event="ondblclick">
  2294. <![CDATA[
  2295. if ( grd_nutrmngthist.isCell(event.target) && grd_nutrmngthist.row >= grd_nutrmngthist.fixedRows ) {
  2296. var rowno = grd_nutrmngthist.row;
  2297. model.setValue("/root/send/searchitem/dieter", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/chrgdieternm"));
  2298. model.setValue("/root/send/searchitem/intndieter", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/intndieternm"));
  2299. model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/pid"));
  2300. model.setValue("/root/send/searchitem/pastexecdd", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/execdd"));
  2301. model.setValue("/root/send/searchitem/nutrmngtkind", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/nutrmngtkind"));
  2302. model.setValue("/root/send/searchitem/prcpgenrflag", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/ioflag"));
  2303. model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/maindata/nutrmngt["+grd_nutrmngthist.row+"]/indd"));
  2304. //flag=A는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)와 해당 컨설팅 정보를 조회한다는 뜻임.
  2305. model.setValue("/root/send/searchitem/flag", 'A');
  2306. model.setValue("/root/send/searchitem/careplanflag", 'N');
  2307. btn_search.dispatch("DOMActivate");
  2308. // model.setValue("/root/main/receivedata/pid", model.getValue("/root/main/maindata/nutrstatjudg/pid"));
  2309. // model.setValue("/root/main/receivedata/reqdd", model.getValue("/root/main/maindata/nutrstatjudg/reqdd"));
  2310. // model.setValue("/root/main/receivedata/reqpsn", model.getValue("/root/main/maindata/nutrstatjudg/reqpsn"));
  2311. // model.setValue("/root/main/receivedata/educreqcnts", model.getValue("/root/main/maindata/nutrstatjudg/reqresn"));
  2312. // model.setValue("/root/main/receivedata/reccnts", model.getValue("/root/main/maindata/nutrstatjudg/reccnts"));
  2313. // model.setValue("/root/main/receivedata/h_formrecseq", model.getValue("/root/main/maindata/nutrstatjudg/formrecseq"));
  2314. // model.refresh();
  2315. //선택한 행 색깔 표시
  2316. grd_nutrmngthist.isSelected(rowno) = true;
  2317. grd_nutrmngthist.focusColor = "#ffccff";
  2318. }
  2319. ]]>
  2320. </script>
  2321. </datagrid>
  2322. <caption id="caption45" class="tit_2" style="left:5px; top:476px; width:126px; height:13px; ">영양관리이력</caption>
  2323. <line id="line36" class="line_1" style="x1:0px; y1:492px; x2:315px; y2:492px; "/>
  2324. <line id="line37" class="line_3" style="x1:0px; y1:739px; x2:315px; y2:739px; "/>
  2325. <switch id="switch2" style="left:320px; top:79px; width:875px; height:630px; ">
  2326. <case id="case1">
  2327. <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; ">
  2328. <col ref="pid" visibility="hidden"/>
  2329. <col ref="execdd" visibility="hidden"/>
  2330. <col ref="nutrmngtkind" visibility="hidden"/>
  2331. <col ref="cnstpurs" visibility="hidden"/>
  2332. <col ref="cureplancd" type="combo">
  2333. <choices>
  2334. <itemset nodeset="/root/init/baseinfo/cureplancd1/A503">
  2335. <label ref="cdnm"/>
  2336. <value ref="cdid"/>
  2337. </itemset>
  2338. </choices>
  2339. </col>
  2340. <col ref="cureplancnts" type="inputbutton"/>
  2341. <script type="javascript" ev:event="onbuttonclick">
  2342. <![CDATA[
  2343. var colidx = grd_nutrstatjudg.col;
  2344. var rowidx = grd_nutrstatjudg.row;
  2345. if(grd_nutrstatjudg.colAttribute(colidx, "ref") == "cureplancnts"){
  2346. model.setValue("/root/send/cureplancnts", "");
  2347. grp_cureplancnts.visible = true;
  2348. var rownum = grd_nutrstatjudg.row;
  2349. var cureplancnts = model.getValue("/root/main/maindata/cureplan/nutrstatjudg["+rownum+"]/cureplancnts");
  2350. model.setValue("/root/send/cureplancnts",cureplancnts);
  2351. grd_nutrstatjudg.addStatus( grd_nutrstatjudg.row ,"update");
  2352. //grd_nutrstatjudg.dispatch("xforms-value-changed");
  2353. model.refresh();
  2354. }
  2355. ]]>
  2356. </script>
  2357. </datagrid>
  2358. <button id="btn_rowadd1" class="btn2_letter3" style="left:750px; top:500px; width:53px; height:19px; ">
  2359. <caption>행추가</caption>
  2360. <script type="javascript" ev:event="DOMActivate">
  2361. <![CDATA[
  2362. grd_nutrstatjudg.addRow();
  2363. //model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ grd_nutrstatjudg.row +"]/pid", model.getValue("/root/main/tab/pridmenuwrite/list["+ prerow +"]/pridseq"));
  2364. ]]>
  2365. </script>
  2366. </button>
  2367. <button id="btn_rowdel1" class="btn2_letter3" style="left:805px; top:500px; width:53px; height:19px; ">
  2368. <caption>행삭제</caption>
  2369. <script type="javascript" ev:event="DOMActivate">
  2370. <![CDATA[
  2371. //grd_nutrstatjudg.deleteRow(grd_nutrstatjudg.row);
  2372. grd_nutrstatjudg.addStatus(grd_nutrstatjudg.row, "delete");
  2373. ]]>
  2374. </script>
  2375. </button>
  2376. <caption id="caption46" class="tit_2" style="left:13px; top:118px; width:100px; height:13px; ">식사시 문제점</caption>
  2377. <output id="ipt_testrsltalb" ref="/root/main/testrslt/lis/alb" class="output_fix" navindex="10" style="left:506px; top:137px; width:52px; height:19px; "/>
  2378. <line id="line38" class="line_1" style="x1:468px; y1:386px; x2:867px; y2:386px; "/>
  2379. <output id="ipt_testrslthbhct" ref="/root/main/testrslt/lis/hb" class="output_fix" navindex="12" style="left:706px; top:137px; width:30px; height:19px; "/>
  2380. <caption id="caption47" class="tit_2" style="left:472px; top:505px; width:128px; height:13px; ">영양치료계획/권장</caption>
  2381. <caption id="caption48" class="cell_1" style="left:468px; top:78px; width:74px; height:23px; vertical-align:middle; ">Wt.Change</caption>
  2382. <button id="btn_childbasetable" class="btn2_letter5" style="left:791px; top:2px; width:75px; height:19px; ">
  2383. <caption>소아기준표</caption>
  2384. <script type="javascript" ev:event="DOMActivate">
  2385. <![CDATA[
  2386. //modal("SPANC00305", 0,100,100,"SPANC00305","","","left:30; top:50; width:1400; height:1000;");
  2387. modal("SPANC00305");
  2388. ipt_physmeasibw.refresh();
  2389. ]]>
  2390. </script>
  2391. </button>
  2392. <line id="line39" class="line_2" style="x1:468px; y1:51px; x2:865px; y2:51px; "/>
  2393. <line id="line40" class="line_2" style="x1:468px; y1:76px; x2:865px; y2:76px; "/>
  2394. <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; ">
  2395. <choices>
  2396. <item>
  2397. <label>소화불량</label>
  2398. <value>1</value>
  2399. </item>
  2400. <item>
  2401. <label>구토</label>
  2402. <value>2</value>
  2403. </item>
  2404. <item>
  2405. <label>저작곤란</label>
  2406. <value>3</value>
  2407. </item>
  2408. <item>
  2409. <label>변비</label>
  2410. <value>4</value>
  2411. </item>
  2412. <item>
  2413. <label>식욕부진</label>
  2414. <value>5</value>
  2415. </item>
  2416. <item>
  2417. <label>메스꺼움</label>
  2418. <value>6</value>
  2419. </item>
  2420. <item>
  2421. <label>연하곤란</label>
  2422. <value>7</value>
  2423. </item>
  2424. <item>
  2425. <label>설사</label>
  2426. <value>8</value>
  2427. </item>
  2428. <item>
  2429. <label>기타</label>
  2430. <value>9</value>
  2431. </item>
  2432. </choices>
  2433. </select>
  2434. <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; "/>
  2435. <caption id="caption50" style="left:591px; top:28px; width:20px; height:20px; vertical-align:middle; ">cm</caption>
  2436. <output id="ipt_testrslttlc" ref="/root/main/testrslt/lis/tlc" class="output_fix" navindex="11" style="left:598px; top:137px; width:52px; height:19px; "/>
  2437. <line id="line41" class="line_1" style="x1:468px; y1:521px; x2:867px; y2:521px; "/>
  2438. <line id="line42" class="line_3" style="x1:468px; y1:100px; x2:865px; y2:100px; "/>
  2439. <caption id="caption51" class="cell_1" style="left:561px; top:135px; width:35px; height:23px; vertical-align:middle; ">TLC</caption>
  2440. <output id="ipt_testrslttrf" ref="/root/main/testrslt/lis/trf" class="output_fix" navindex="14" style="left:820px; top:137px; width:47px; height:19px; "/>
  2441. <caption id="caption52" class="cell_1" style="left:468px; top:53px; width:74px; height:23px; vertical-align:middle; ">IBW</caption>
  2442. <caption id="caption53" style="left:718px; top:29px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
  2443. <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; "/>
  2444. <caption id="caption54" class="cell_1" style="left:468px; top:28px; width:74px; height:23px; vertical-align:middle; ">Ht</caption>
  2445. <caption id="caption55" style="left:847px; top:53px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
  2446. <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; "/>
  2447. <caption id="caption56" style="left:847px; top:28px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
  2448. <caption id="caption62" class="tit_2" style="left:472px; top:370px; width:95px; height:13px; ">영양상태평가</caption>
  2449. <line id="line44" class="line_3" style="x1:468px; y1:217px; x2:868px; y2:217px; "/>
  2450. <line id="line45" class="line_3" style="x1:468px; y1:622px; x2:867px; y2:622px; "/>
  2451. <line id="line46" class="line_1" style="x1:5px; y1:131px; x2:458px; y2:131px; "/>
  2452. <caption id="caption72" class="cell_1" style="left:740px; top:53px; width:61px; height:23px; vertical-align:middle; ">ABW</caption>
  2453. <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; "/>
  2454. <caption id="caption73" class="cell_1" style="left:740px; top:28px; width:61px; height:23px; vertical-align:middle; ">UBW</caption>
  2455. <caption id="caption74" class="cell_1" style="left:616px; top:28px; width:56px; height:23px; vertical-align:middle; ">Wt</caption>
  2456. <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; "/>
  2457. <caption id="caption76" class="cell_1" style="left:616px; top:53px; width:56px; height:23px; vertical-align:middle; ">PIBW</caption>
  2458. <line id="line76" class="line_1" style="x1:468px; y1:245px; x2:867px; y2:245px; "/>
  2459. <caption id="caption77" style="left:591px; top:57px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
  2460. <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; "/>
  2461. <caption id="caption79" class="cell_1" style="left:653px; top:135px; width:50px; height:23px; vertical-align:middle; ">Hb/Hct</caption>
  2462. <caption id="caption80" style="left:718px; top:54px; width:20px; height:20px; vertical-align:middle; ">%</caption>
  2463. <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; "/>
  2464. <caption id="caption83" style="left:591px; top:82px; width:20px; height:20px; vertical-align:middle; ">kg</caption>
  2465. <line id="line82" class="line_2" style="x1:467px; y1:158px; x2:872px; y2:158px; "/>
  2466. <caption id="caption86" class="tit_2" style="left:472px; top:230px; width:95px; height:13px; ">약물정보</caption>
  2467. <caption id="caption90" class="cell_1" style="left:782px; top:135px; width:35px; height:23px; vertical-align:middle; ">TRF</caption>
  2468. <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; "/>
  2469. <caption id="caption91" class="cell_1" style="left:468px; top:135px; width:35px; height:23px; vertical-align:middle; ">Alb</caption>
  2470. <textarea id="tar_testrsltrem" ref="/root/main/maindata/nutrstatjudg/testrsltrem" navindex="15" style="left:468px; top:160px; width:399px; height:56px; "/>
  2471. <button id="btn_testrsltref" class="btn2_letter6" style="left:780px; top:111px; width:86px; height:19px; ">
  2472. <caption>검사결과조회</caption>
  2473. <script type="javascript" ev:event="onclick">
  2474. <![CDATA[
  2475. open("SMAER00800","","","","","/root/send/searchitem/pid", "/root/send/data/singdata/srchpid");
  2476. ]]>
  2477. </script>
  2478. </button>
  2479. <caption id="caption94" class="tit_2" style="left:470px; top:117px; width:95px; height:13px; ">검사결과</caption>
  2480. <caption id="caption96" class="tit_2" style="left:470px; top:7px; width:95px; height:13px; ">신체계측결과</caption>
  2481. <line id="line85" class="line_1" style="x1:468px; y1:23px; x2:865px; y2:23px; "/>
  2482. <line id="line86" class="line_1" style="x1:468px; y1:131px; x2:868px; y2:131px; "/>
  2483. <line id="line90" class="line_3" style="x1:5px; y1:106px; x2:458px; y2:106px; "/>
  2484. <line id="line93" class="line_1" style="x1:5px; y1:23px; x2:458px; y2:23px; "/>
  2485. <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; ">
  2486. <choices>
  2487. <item>
  2488. <label>몹시여윔</label>
  2489. <value>1</value>
  2490. </item>
  2491. <item>
  2492. <label>근육소모</label>
  2493. <value>2</value>
  2494. </item>
  2495. <item>
  2496. <label>부종</label>
  2497. <value>3</value>
  2498. </item>
  2499. <item>
  2500. <label>복수</label>
  2501. <value>4</value>
  2502. </item>
  2503. <item>
  2504. <label>욕창</label>
  2505. <value>5</value>
  2506. </item>
  2507. <item>
  2508. <label>비만</label>
  2509. <value>6</value>
  2510. </item>
  2511. <item>
  2512. <label>고열</label>
  2513. <value>7</value>
  2514. </item>
  2515. <item>
  2516. <label>인공호흡기</label>
  2517. <value>8</value>
  2518. </item>
  2519. <item>
  2520. <label>기타</label>
  2521. <value>9</value>
  2522. </item>
  2523. </choices>
  2524. </select>
  2525. <caption id="caption98" class="tit_2" style="left:13px; top:8px; width:95px; height:13px; ">신체증후</caption>
  2526. <line id="line94" class="line_3" style="x1:5px; y1:217px; x2:458px; y2:217px; "/>
  2527. <textarea id="tar_actgrdeetc" ref="/root/main/maindata/nutrstatjudg/actgrdeetc" style="left:67px; top:550px; width:391px; height:71px; "/>
  2528. <caption id="caption103" class="tit_2" style="left:13px; top:231px; width:95px; height:13px; ">식사력</caption>
  2529. <line id="line105" class="line_3" style="x1:5px; y1:622px; x2:458px; y2:622px; "/>
  2530. <line id="line106" class="line_1" style="x1:5px; y1:245px; x2:458px; y2:245px; "/>
  2531. <caption id="caption108" class="cell_1" style="left:5px; top:550px; width:60px; height:72px; text-align:left; vertical-align:middle; ">기타</caption>
  2532. <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; ">
  2533. <choices>
  2534. <item>
  2535. <label>균형된 식사</label>
  2536. <value>11</value>
  2537. </item>
  2538. <item>
  2539. <label>규칙적인 식사</label>
  2540. <value>12</value>
  2541. </item>
  2542. <item>
  2543. <label>불규칙적인 식사</label>
  2544. <value>13</value>
  2545. </item>
  2546. <item>
  2547. <label>빠른식사속도</label>
  2548. <value>14</value>
  2549. </item>
  2550. <item>
  2551. <label>과식</label>
  2552. <value>15</value>
  2553. </item>
  2554. <item>
  2555. <label>당질과다섭취</label>
  2556. <value>16</value>
  2557. </item>
  2558. <item>
  2559. <label>지방과다섭취</label>
  2560. <value>17</value>
  2561. </item>
  2562. <item>
  2563. <label>염분과다섭취</label>
  2564. <value>18</value>
  2565. </item>
  2566. <item>
  2567. <label>건강보조식품</label>
  2568. <value>19</value>
  2569. </item>
  2570. <item>
  2571. <label>커피</label>
  2572. <value>20</value>
  2573. </item>
  2574. <item>
  2575. <label/>
  2576. <value/>
  2577. </item>
  2578. <item>
  2579. <label>흡연</label>
  2580. <value>21</value>
  2581. </item>
  2582. <item>
  2583. <label>외식</label>
  2584. <value>22</value>
  2585. </item>
  2586. <item>
  2587. <label/>
  2588. <value/>
  2589. </item>
  2590. <item>
  2591. <label/>
  2592. <value/>
  2593. </item>
  2594. <item>
  2595. <label>음주</label>
  2596. <value>23</value>
  2597. </item>
  2598. <item>
  2599. <label/>
  2600. <value/>
  2601. </item>
  2602. <item>
  2603. <label/>
  2604. <value/>
  2605. </item>
  2606. <item>
  2607. <label>기타</label>
  2608. <value>24</value>
  2609. </item>
  2610. </choices>
  2611. </select>
  2612. <caption id="caption109" style="left:358px; top:316px; width:55px; height:20px; vertical-align:middle; ">pack/day</caption>
  2613. <caption id="caption115" style="left:136px; top:315px; width:54px; height:20px; vertical-align:middle; ">잔/day</caption>
  2614. <caption id="caption119" style="left:136px; top:337px; width:50px; height:20px; vertical-align:middle; ">회/week</caption>
  2615. <caption id="caption121" style="left:306px; top:360px; width:20px; height:20px; vertical-align:middle; ">)</caption>
  2616. <caption id="caption128" style="left:136px; top:359px; width:121px; height:20px; vertical-align:middle; background-color:#ffffff; ">회/week (1회 섭취량</caption>
  2617. <input id="ipt_drunkvol" ref="/root/main/maindata/nutrstatjudg/drunkvol" class="input_search" style="left:262px; top:360px; width:40px; height:19px; "/>
  2618. <output id="ipt_testrslthbhct2" ref="/root/main/testrslt/lis/hct" class="output_fix" navindex="13" style="left:749px; top:137px; width:30px; height:19px; "/>
  2619. <caption id="caption144" style="left:618px; top:82px; width:15px; height:20px; vertical-align:middle; ">(</caption>
  2620. <caption id="caption145" style="left:670px; top:82px; width:30px; height:20px; vertical-align:middle; ">)% /</caption>
  2621. <line id="line110" class="line_2" style="x1:5px; y1:82px; x2:458px; y2:82px; "/>
  2622. <line id="line111" class="line_2" style="x1:5px; y1:193px; x2:463px; y2:193px; "/>
  2623. <caption id="caption146" style="left:738px; top:137px; width:10px; height:20px; vertical-align:middle; ">/</caption>
  2624. <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; ">
  2625. <script type="javascript" ev:event="xforms-value-changed">
  2626. <![CDATA[
  2627. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2628. if (model.getValue("/root/main/maindata/nutrstatjudg/cofftims") == "") {
  2629. var str = chk_diethist.value;
  2630. var str1 = "";
  2631. var chk = "";
  2632. for (var i=0; i < str.length; i++) {
  2633. var ch = str.substr(i,2);
  2634. if (ch == "20") {
  2635. chk = "Y";
  2636. }
  2637. if (chk == "Y" && str.charAt(i) == "▦") {
  2638. chk = "";
  2639. } else if (chk == "Y") {
  2640. } else {
  2641. str1 = str1 + str.charAt(i);
  2642. }
  2643. }
  2644. chk_diethist.value = str1;
  2645. } else {
  2646. var str = chk_diethist.value;
  2647. var yn = "N";
  2648. for (var i=0; i < str.length; i++) {
  2649. if ( str.substr(i,2) == "20" ) {
  2650. yn = "Y";
  2651. break;
  2652. }
  2653. }
  2654. if ( yn == "N" ) {
  2655. str = str + "▦20"
  2656. chk_diethist.value = str;
  2657. }
  2658. }
  2659. ]]>
  2660. </script>
  2661. </input>
  2662. <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; ">
  2663. <script type="javascript" ev:event="xforms-value-changed">
  2664. <![CDATA[
  2665. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2666. if (model.getValue("/root/main/maindata/nutrstatjudg/eatouttims") == "") {
  2667. var str = chk_diethist.value;
  2668. var str1 = "";
  2669. var chk = "";
  2670. for (var i=0; i < str.length; i++) {
  2671. var ch = str.substr(i,2);
  2672. if (ch == "22") {
  2673. chk = "Y";
  2674. }
  2675. if (chk == "Y" && str.charAt(i) == "▦") {
  2676. chk = "";
  2677. } else if (chk == "Y") {
  2678. } else {
  2679. str1 = str1 + str.charAt(i);
  2680. }
  2681. }
  2682. chk_diethist.value = str1;
  2683. } else {
  2684. var str = chk_diethist.value;
  2685. var yn = "N";
  2686. for (var i=0; i < str.length; i++) {
  2687. if ( str.substr(i,2) == "22" ) {
  2688. yn = "Y";
  2689. break;
  2690. }
  2691. }
  2692. if ( yn == "N" ) {
  2693. str = str + "▦22"
  2694. chk_diethist.value = str;
  2695. }
  2696. // var str = chk_diethist.value;
  2697. // str = str + "▦22"
  2698. // chk_diethist.value = str;
  2699. }
  2700. ]]>
  2701. </script>
  2702. </input>
  2703. <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; ">
  2704. <script type="javascript" ev:event="xforms-value-changed">
  2705. <![CDATA[
  2706. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2707. if (model.getValue("/root/main/maindata/nutrstatjudg/drunktims") == "") {
  2708. var str = chk_diethist.value;
  2709. var str1 = "";
  2710. var chk = "";
  2711. for (var i=0; i < str.length; i++) {
  2712. var ch = str.substr(i,2);
  2713. if (ch == "23") {
  2714. chk = "Y";
  2715. }
  2716. if (chk == "Y" && str.charAt(i) == "▦") {
  2717. chk = "";
  2718. } else if (chk == "Y") {
  2719. } else {
  2720. str1 = str1 + str.charAt(i);
  2721. }
  2722. }
  2723. chk_diethist.value = str1;
  2724. } else {
  2725. var str = chk_diethist.value;
  2726. var yn = "N";
  2727. for (var i=0; i < str.length; i++) {
  2728. if ( str.substr(i,2) == "23" ) {
  2729. yn = "Y";
  2730. break;
  2731. }
  2732. }
  2733. if ( yn == "N" ) {
  2734. str = str + "▦23"
  2735. chk_diethist.value = str;
  2736. }
  2737. // var str = chk_diethist.value;
  2738. // str = str + "▦23"
  2739. // chk_diethist.value = str;
  2740. }
  2741. ]]>
  2742. </script>
  2743. </input>
  2744. <input id="ipt_dietprobrem" ref="/root/main/maindata/nutrstatjudg/dietprobrem" class="input_search" style="left:55px; top:194px; width:363px; height:19px; ">
  2745. <script type="javascript" ev:event="xforms-value-changed">
  2746. <![CDATA[
  2747. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2748. if (model.getValue("/root/main/maindata/nutrstatjudg/dietprobrem") == "") {
  2749. var str = chk_dietprob.value;
  2750. var str1 = "";
  2751. var chk = "";
  2752. for (var i=0; i < str.length; i++) {
  2753. var ch = str.charAt(i);
  2754. if (ch == "9") {
  2755. chk = "Y";
  2756. }
  2757. if (chk == "Y" && ch == "▦") {
  2758. chk = "";
  2759. } else if (chk == "Y") {
  2760. } else {
  2761. str1 = str1 + ch;
  2762. }
  2763. }
  2764. chk_dietprob.value = str1;
  2765. } else {
  2766. var str = chk_dietprob.value;
  2767. str = str + "▦9"
  2768. chk_dietprob.value = str;
  2769. }
  2770. ]]>
  2771. </script>
  2772. </input>
  2773. <input id="ipt_bodysymprem" ref="/root/main/maindata/nutrstatjudg/bodysymprem" class="input_search" style="left:55px; top:85px; width:368px; height:19px; ">
  2774. <script type="javascript" ev:event="xforms-value-changed">
  2775. <![CDATA[
  2776. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2777. if (model.getValue("/root/main/maindata/nutrstatjudg/bodysymprem") == "") {
  2778. var str = chk_bodysymp.value;
  2779. var str1 = "";
  2780. var chk = "";
  2781. for (var i=0; i < str.length; i++) {
  2782. var ch = str.charAt(i);
  2783. if (ch == "9") {
  2784. chk = "Y";
  2785. }
  2786. if (chk == "Y" && ch == "▦") {
  2787. chk = "";
  2788. } else if (chk == "Y") {
  2789. } else {
  2790. str1 = str1 + ch;
  2791. }
  2792. }
  2793. chk_bodysymp.value = str1;
  2794. } else {
  2795. var str = chk_bodysymp.value;
  2796. str = str + "▦9"
  2797. chk_bodysymp.value = str;
  2798. }
  2799. ]]>
  2800. </script>
  2801. </input>
  2802. <line id="line112" class="line_3" style="x1:468px; y1:491px; x2:867px; y2:491px; "/>
  2803. <textarea id="tar_nutrstatvalu" ref="/root/main/maindata/nutrstatjudg/nutrstatvalucnts" navindex="17" style="left:468px; top:416px; width:399px; height:74px; "/>
  2804. <button id="btn_drughbook" class="btn2_letter4" style="left:802px; top:225px; width:64px; height:19px; ">
  2805. <caption>약품편람</caption>
  2806. <script type="javascript" ev:event="onclick">
  2807. <![CDATA[
  2808. modal("SMADB01900", 0,100,100,"SMADB01900","","","left:30; top:50; width:1230; height:840;");
  2809. //modal("SMADB01900", "", "", "", "popup", "", "");
  2810. ]]>
  2811. </script>
  2812. </button>
  2813. <line id="line113" class="line_3" style="x1:468px; y1:359px; x2:867px; y2:359px; "/>
  2814. <textarea id="tar_druginfo" ref="/root/main/maindata/nutrstatjudg/druginfo" navindex="16" style="left:468px; top:250px; width:399px; height:108px; "/>
  2815. <caption id="caption71" class="cell_1" style="left:469px; top:391px; width:109px; height:23px; vertical-align:middle; ">영양상태판정</caption>
  2816. <line id="line43" class="line_2" style="x1:468px; y1:414px; x2:867px; y2:414px; "/>
  2817. <select1 id="cmb_nutrstatvalu" ref="/root/main/maindata/nutrstatjudg/nutrstatvalucd" class="combo_search" appearance="minimal" style="left:581px; top:392px; width:285px; height:19px; ">
  2818. <choices>
  2819. <itemset nodeset="/root/init/baseinfo/nutrstatvalucd/A501">
  2820. <label ref="cdnm"/>
  2821. <value ref="cdid"/>
  2822. </itemset>
  2823. </choices>
  2824. </select1>
  2825. <input id="ipt_eatoutrem" ref="/root/main/maindata/nutrstatjudg/eatoutrem" class="input_search" style="left:195px; top:338px; width:263px; height:19px; "/>
  2826. <input id="ipt_diethistetc" ref="/root/main/maindata/nutrstatjudg/diethistetc" class="input_search" style="left:60px; top:382px; width:398px; height:19px; ">
  2827. <script type="javascript" ev:event="xforms-value-changed">
  2828. <![CDATA[
  2829. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2830. if (model.getValue("/root/main/maindata/nutrstatjudg/diethistetc") == "") {
  2831. var str = chk_diethist.value;
  2832. var str1 = "";
  2833. var chk = "";
  2834. for (var i=0; i < str.length; i++) {
  2835. var ch = str.substr(i,2);
  2836. if (ch == "24") {
  2837. chk = "Y";
  2838. }
  2839. if (chk == "Y" && str.charAt(i) == "▦") {
  2840. chk = "";
  2841. } else if (chk == "Y") {
  2842. } else {
  2843. str1 = str1 + str.charAt(i);
  2844. }
  2845. }
  2846. chk_diethist.value = str1;
  2847. } else {
  2848. var str = chk_diethist.value;
  2849. var yn = "N";
  2850. for (var i=0; i < str.length; i++) {
  2851. if ( str.substr(i,2) == "24" ) {
  2852. yn = "Y";
  2853. break;
  2854. }
  2855. }
  2856. if ( yn == "N" ) {
  2857. str = str + "▦24"
  2858. chk_diethist.value = str;
  2859. }
  2860. // var str = chk_diethist.value;
  2861. // str = str + "▦24"
  2862. // chk_diethist.value = str;
  2863. }
  2864. ]]>
  2865. </script>
  2866. </input>
  2867. <input id="ipt_drunkrem" ref="/root/main/maindata/nutrstatjudg/drunkrem" class="input_search" style="left:315px; top:360px; width:143px; height:19px; "/>
  2868. <input id="ipt_healsuppfood" ref="/root/main/maindata/nutrstatjudg/healsuppfood" class="input_search" style="left:324px; top:293px; width:134px; height:19px; ">
  2869. <script type="javascript" ev:event="xforms-value-changed">
  2870. <![CDATA[
  2871. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2872. if (model.getValue("/root/main/maindata/nutrstatjudg/healsuppfood") == "") {
  2873. var str = chk_diethist.value;
  2874. var str1 = "";
  2875. var chk = "";
  2876. for (var i=0; i < str.length; i++) {
  2877. var ch = str.substr(i,2);
  2878. if (ch == "19") {
  2879. chk = "Y";
  2880. }
  2881. if (chk == "Y" && str.charAt(i) == "▦") {
  2882. chk = "";
  2883. } else if (chk == "Y") {
  2884. } else {
  2885. str1 = str1 + str.charAt(i);
  2886. }
  2887. }
  2888. chk_diethist.value = str1;
  2889. } else {
  2890. var str = chk_diethist.value;
  2891. var yn = "N";
  2892. for (var i=0; i < str.length; i++) {
  2893. if ( str.substr(i,2) == "19" ) {
  2894. yn = "Y";
  2895. break;
  2896. }
  2897. }
  2898. if ( yn == "N" ) {
  2899. str = str + "▦19"
  2900. chk_diethist.value = str;
  2901. }
  2902. // var str = chk_diethist.value;
  2903. // str = str + "▦19"
  2904. // chk_diethist.value = str;
  2905. }
  2906. ]]>
  2907. </script>
  2908. </input>
  2909. <line id="line149" class="line_1" style="x1:5px; y1:490px; x2:458px; y2:490px; "/>
  2910. <caption id="caption156" class="tit_2" style="left:13px; top:476px; width:95px; height:13px; ">활동정도</caption>
  2911. <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; ">
  2912. <choices>
  2913. <item>
  2914. <label>거동불가</label>
  2915. <value>1</value>
  2916. </item>
  2917. <item>
  2918. <label>가벼운활동</label>
  2919. <value>2</value>
  2920. </item>
  2921. <item>
  2922. <label>중등도활동</label>
  2923. <value>3</value>
  2924. </item>
  2925. <item>
  2926. <label>심한활동</label>
  2927. <value>4</value>
  2928. </item>
  2929. <item>
  2930. <label>운동</label>
  2931. <value>5</value>
  2932. </item>
  2933. </choices>
  2934. </select>
  2935. <line id="line119" class="line_3" style="x1:5px; y1:411px; x2:458px; y2:411px; "/>
  2936. <input id="ipt_actgrdeexer" ref="/root/main/maindata/nutrstatjudg/actgrdeexer" class="input_search" style="left:67px; top:526px; width:391px; height:19px; ">
  2937. <script type="javascript" ev:event="xforms-value-changed">
  2938. <![CDATA[
  2939. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2940. if (model.getValue("/root/main/maindata/nutrstatjudg/actgrdeexer") == "") {
  2941. var str = chk_actgrde.value;
  2942. var str1 = "";
  2943. var chk = "";
  2944. for (var i=0; i < str.length; i++) {
  2945. var ch = str.charAt(i);
  2946. if (ch == "5") {
  2947. chk = "Y";
  2948. }
  2949. if (chk == "Y" && str.charAt(i) == "▦") {
  2950. chk = "";
  2951. } else if (chk == "Y") {
  2952. } else {
  2953. str1 = str1 + str.charAt(i);
  2954. }
  2955. }
  2956. chk_actgrde.value = str1;
  2957. } else {
  2958. var str = chk_actgrde.value;
  2959. str = str + "▦5"
  2960. chk_actgrde.value = str;
  2961. }
  2962. ]]>
  2963. </script>
  2964. </input>
  2965. <caption id="caption167" style="left:745px; top:82px; width:30px; height:20px; vertical-align:middle; ">개월</caption>
  2966. <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; "/>
  2967. <button id="btn_nutrstatjudgbase" class="btn2_letter8" style="left:758px; top:366px; width:108px; height:19px; ">
  2968. <caption>영양상태판정기준</caption>
  2969. <script type="javascript" ev:event="onclick">
  2970. <![CDATA[
  2971. //modal("SPANC00200", 0,100,150,"SPANC00200", "/root/init/nutrjudgbase", "/root/main/receivedata");
  2972. modal("SPANC00303", 0,100,150,"SPANC00303");
  2973. ]]>
  2974. </script>
  2975. </button>
  2976. <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; ">
  2977. <script type="javascript" ev:event="xforms-value-changed">
  2978. <![CDATA[
  2979. //체크박스를 체크하지 않고 텍스트 입력시 체크박스 자동체크
  2980. if (model.getValue("/root/main/maindata/nutrstatjudg/smoktims") == "") {
  2981. var str = chk_diethist.value;
  2982. var str1 = "";
  2983. var chk = "";
  2984. for (var i=0; i < str.length; i++) {
  2985. var ch = str.substr(i,2);
  2986. if (ch == "21") {
  2987. chk = "Y";
  2988. }
  2989. if (chk == "Y" && str.charAt(i) == "▦") {
  2990. chk = "";
  2991. } else if (chk == "Y") {
  2992. } else {
  2993. str1 = str1 + str.charAt(i);
  2994. }
  2995. }
  2996. chk_diethist.value = str1;
  2997. } else {
  2998. var str = chk_diethist.value;
  2999. var yn = "N";
  3000. for (var i=0; i < str.length; i++) {
  3001. if ( str.substr(i,2) == "21" ) {
  3002. yn = "Y";
  3003. break;
  3004. }
  3005. }
  3006. if ( yn == "N" ) {
  3007. str = str + "▦21"
  3008. chk_diethist.value = str;
  3009. }
  3010. // var str = chk_diethist.value;
  3011. // str = str + "▦21"
  3012. // chk_diethist.value = str;
  3013. }
  3014. ]]>
  3015. </script>
  3016. </input>
  3017. <line id="line153" class="line_1" style="x1:5px; y1:436px; x2:458px; y2:436px; "/>
  3018. <caption id="caption176" class="cell_1" style="left:5px; top:441px; width:60px; height:23px; vertical-align:middle; ">주식</caption>
  3019. <caption id="caption177" class="cell_1" style="left:147px; top:441px; width:60px; height:23px; vertical-align:middle; ">부식</caption>
  3020. <line id="line154" class="line_3" style="x1:5px; y1:464px; x2:458px; y2:464px; "/>
  3021. <caption id="caption202" class="cell_1" style="left:290px; top:441px; width:60px; height:23px; vertical-align:middle; ">기타</caption>
  3022. <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; "/>
  3023. <caption id="caption203" style="left:126px; top:442px; width:20px; height:20px; vertical-align:middle; ">%</caption>
  3024. <caption id="caption207" style="left:268px; top:442px; width:20px; height:20px; vertical-align:middle; ">%</caption>
  3025. <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; "/>
  3026. <line id="line151" class="line_2" style="x1:5px; y1:548px; x2:458px; y2:548px; "/>
  3027. <input id="ipt_intkstatetc" ref="/root/main/maindata/nutrstatjudg/intkstatetc" class="input_search" style="left:353px; top:442px; width:105px; height:19px; "/>
  3028. <caption id="caption209" class="tit_2" style="left:13px; top:422px; width:95px; height:14px; ">식사섭취상태</caption>
  3029. <button id="btn_calculation" class="btn2_letter2" style="left:805px; top:80px; width:42px; height:19px; ">
  3030. <caption>계산</caption>
  3031. <script type="javascript" ev:event="DOMActivate">
  3032. <![CDATA[
  3033. fPhysMeasRsltCalc();
  3034. ]]>
  3035. </script>
  3036. </button>
  3037. <group id="grp_cureplancnts" visibility="hidden" style="left:280px; top:250px; width:445px; height:245px; ">
  3038. <textarea id="textarea2" ref="/root/send/cureplancnts" style="left:5px; top:30px; width:435px; height:180px; "/>
  3039. <button id="button4" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  3040. <caption>닫기</caption>
  3041. <script type="javascript" ev:event="DOMActivate">
  3042. <![CDATA[
  3043. grp_cureplancnts.visible = false;
  3044. ]]>
  3045. </script>
  3046. </button>
  3047. <button id="button5" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
  3048. <caption>적용</caption>
  3049. <script type="javascript" ev:event="DOMActivate">
  3050. <![CDATA[
  3051. var rownum = grd_nutrstatjudg.row ;
  3052. var cureplancnts = model.getValue("/root/send/cureplancnts");
  3053. model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+rownum+"]/cureplancnts",cureplancnts);
  3054. model.setValue("/root/send/cureplancnts","");
  3055. grp_cureplancnts.visible = false;
  3056. model.refresh();
  3057. ]]>
  3058. </script>
  3059. </button>
  3060. <caption id="caption11" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">영양치료계획/권장</caption>
  3061. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  3062. </group>
  3063. </case>
  3064. <case id="case2">
  3065. <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; ">
  3066. <col ref="pid" visibility="hidden"/>
  3067. <col ref="execdd" visibility="hidden"/>
  3068. <col ref="nutrmngtkind" visibility="hidden"/>
  3069. <col ref="cnstpurs" visibility="hidden"/>
  3070. <col ref="cureplancd" type="combo">
  3071. <choices>
  3072. <itemset nodeset="/root/init/baseinfo/cureplancd2/A504">
  3073. <label ref="cdnm"/>
  3074. <value ref="cdid"/>
  3075. </itemset>
  3076. </choices>
  3077. </col>
  3078. <col ref="cureplancnts" type="inputbutton"/>
  3079. <script type="javascript" ev:event="onbuttonclick">
  3080. <![CDATA[
  3081. var colidx = grd_cnstreq.col;
  3082. var rowidx = grd_cnstreq.row;
  3083. if(grd_cnstreq.colAttribute(colidx, "ref") == "cureplancnts"){
  3084. model.setValue("/root/send/cureplancnts", "");
  3085. grp_cnstreq.visible = true;
  3086. var rownum = grd_cnstreq.row;
  3087. var cureplancnts = model.getValue("/root/main/maindata/cureplan/cnstreq["+rownum+"]/cureplancnts");
  3088. model.setValue("/root/send/cureplancnts",cureplancnts);
  3089. grd_cnstreq.addStatus( grd_cnstreq.row ,"update");
  3090. //grd_cnstreq.dispatch("xforms-value-changed");
  3091. model.refresh();
  3092. }
  3093. ]]>
  3094. </script>
  3095. </datagrid>
  3096. <button id="btn_rowadd2" class="btn2_letter3" style="left:750px; top:490px; width:53px; height:19px; ">
  3097. <caption>행추가</caption>
  3098. <script type="javascript" ev:event="DOMActivate">
  3099. <![CDATA[
  3100. grd_cnstreq.addRow();
  3101. ]]>
  3102. </script>
  3103. </button>
  3104. <button id="btn_rowdel2" class="btn2_letter3" style="left:805px; top:490px; width:53px; height:19px; ">
  3105. <caption>행삭제</caption>
  3106. <script type="javascript" ev:event="DOMActivate">
  3107. <![CDATA[
  3108. //grd_cnstreq.deleteRow(grd_cnstreq.row);
  3109. grd_cnstreq.addStatus(grd_cnstreq.row, "delete");
  3110. ]]>
  3111. </script>
  3112. </button>
  3113. <line id="line114" class="line_3" style="x1:5px; y1:428px; x2:338px; y2:428px; "/>
  3114. <textarea id="tar_review1" ref="/root/main/maindata/cnstreq/review" disabled="false" style="left:5px; top:30px; width:333px; height:397px; line-spacing:6; "/>
  3115. <line id="line115" class="line_1" style="x1:5px; y1:25px; x2:338px; y2:25px; "/>
  3116. <caption id="caption150" class="tit_2" style="left:11px; top:10px; width:142px; height:13px; ">영양상태판정Review</caption>
  3117. <caption id="caption152" class="tit_2" style="left:350px; top:10px; width:100px; height:13px; ">영양요구량</caption>
  3118. <line id="line116" class="line_1" style="x1:345px; y1:25px; x2:865px; y2:25px; "/>
  3119. <line id="line117" class="line_2" style="x1:345px; y1:52px; x2:865px; y2:52px; "/>
  3120. <line id="line118" class="line_2" style="x1:345px; y1:152px; x2:865px; y2:152px; "/>
  3121. <caption id="caption157" class="cell_1" style="left:345px; top:178px; width:83px; height:40px; vertical-align:middle; ">기타</caption>
  3122. <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; "/>
  3123. <caption id="caption158" style="left:523px; top:55px; width:55px; height:20px; vertical-align:middle; ">kcal/day</caption>
  3124. <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; ">
  3125. <choices>
  3126. <item>
  3127. <label>계수법</label>
  3128. <value>1</value>
  3129. </item>
  3130. <item>
  3131. <label>HB</label>
  3132. <value>2</value>
  3133. </item>
  3134. </choices>
  3135. </select1>
  3136. <caption id="caption159" style="left:618px; top:105px; width:10px; height:20px; vertical-align:middle; ">*</caption>
  3137. <caption id="caption160" style="left:553px; top:80px; width:10px; height:20px; vertical-align:middle; ">*</caption>
  3138. <caption id="caption161" style="left:618px; top:80px; width:55px; height:20px; vertical-align:middle; ">kcal/kg</caption>
  3139. <caption id="caption162" style="left:553px; top:105px; width:10px; height:20px; vertical-align:middle; ">*</caption>
  3140. <caption id="caption163" style="left:498px; top:130px; width:67px; height:20px; vertical-align:middle; ">복막투석액</caption>
  3141. <caption id="caption164" style="left:618px; top:132px; width:30px; height:20px; vertical-align:middle; ">kcal</caption>
  3142. <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; "/>
  3143. <caption id="caption166" style="left:693px; top:155px; width:10px; height:20px; vertical-align:middle; ">*</caption>
  3144. <caption id="caption168" style="left:523px; top:155px; width:38px; height:20px; vertical-align:middle; ">g/day</caption>
  3145. <caption id="caption169" style="left:755px; top:155px; width:37px; height:25px; vertical-align:middle; ">g/kg</caption>
  3146. <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; "/>
  3147. <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; "/>
  3148. <caption id="caption172" class="cell_1" style="left:345px; top:154px; width:83px; height:23px; vertical-align:middle; ">단백질</caption>
  3149. <line id="line120" class="line_3" style="x1:345px; y1:219px; x2:865px; y2:219px; "/>
  3150. <line id="line121" class="line_1" style="x1:345px; y1:244px; x2:865px; y2:244px; "/>
  3151. <caption id="caption178" class="tit_2" style="left:350px; top:228px; width:95px; height:13px; ">영양상태평가</caption>
  3152. <textarea id="tar_nutrstatvalu1" ref="/root/main/maindata/cnstreq/nutrstatvalucnts1" style="left:345px; top:274px; width:520px; height:54px; "/>
  3153. <caption id="caption179" class="cell_1" style="left:6px; top:460px; width:65px; height:23px; vertical-align:middle; ">피상담자</caption>
  3154. <caption id="caption180" class="tit_2" style="left:11px; top:439px; width:128px; height:13px; ">영양상담이해도</caption>
  3155. <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; ">
  3156. <choices>
  3157. <item>
  3158. <label>상</label>
  3159. <value>1</value>
  3160. </item>
  3161. <item>
  3162. <label>중</label>
  3163. <value>2</value>
  3164. </item>
  3165. <item>
  3166. <label>하</label>
  3167. <value>3</value>
  3168. </item>
  3169. </choices>
  3170. </select1>
  3171. <line id="line122" class="line_3" style="x1:6px; y1:483px; x2:865px; y2:483px; "/>
  3172. <line id="line123" class="line_1" style="x1:6px; y1:455px; x2:865px; y2:455px; "/>
  3173. <caption id="caption181" class="cell_1" style="left:345px; top:460px; width:83px; height:23px; vertical-align:middle; ">이해도</caption>
  3174. <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; ">
  3175. <choices>
  3176. <item>
  3177. <label>환자</label>
  3178. <value>1</value>
  3179. </item>
  3180. <item>
  3181. <label>보호자</label>
  3182. <value>2</value>
  3183. </item>
  3184. <item>
  3185. <label>기타</label>
  3186. <value>3</value>
  3187. </item>
  3188. </choices>
  3189. </select>
  3190. <line id="line124" class="line_3" style="x1:6px; y1:625px; x2:865px; y2:625px; "/>
  3191. <caption id="caption182" class="tit_2" style="left:10px; top:494px; width:128px; height:13px; ">영양치료계획/권장</caption>
  3192. <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; "/>
  3193. <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; "/>
  3194. <textarea id="tar_nutrreqqty" ref="/root/main/maindata/cnstreq/nutrreqqty1" style="left:431px; top:180px; width:434px; height:38px; "/>
  3195. <line id="line126" class="line_1" style="x1:6px; y1:510px; x2:865px; y2:510px; "/>
  3196. <button id="btn_intkqtyvalu" class="btn2_letter5" style="left:690px; top:5px; width:75px; height:19px; ">
  3197. <caption>섭취량평가</caption>
  3198. <script type="javascript" ev:event="DOMActivate">
  3199. <![CDATA[
  3200. model.setValue("/root/send/searchitem/cnstflag", "C"); // 'C'는 협진의뢰를 뜻함.
  3201. model.setValue("/root/send/searchitem/calrintk", model.getValue("/root/main/maindata/cnstreq/calrintk1"));
  3202. model.setValue("/root/send/searchitem/calrintkqty", model.getValue("/root/main/maindata/cnstreq/calrintkqty1"));
  3203. model.setValue("/root/send/searchitem/protintk", model.getValue("/root/main/maindata/cnstreq/protintk1"));
  3204. model.setValue("/root/send/searchitem/protintkqty", model.getValue("/root/main/maindata/cnstreq/protintkqty1"));
  3205. model.setValue("/root/send/searchitem/intkqtyetc", model.getValue("/root/main/maindata/cnstreq/intkqtyetc1"));
  3206. model.setValue("/root/send/searchitem/dietercmt", model.getValue("/root/main/maindata/cnstreq/dietercmt1"));
  3207. model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/maindata/patbaseinfo/hngnm"));
  3208. model.setValue("/root/send/searchitem/sex", model.getValue("/root/main/maindata/patbaseinfo/sex"));
  3209. model.setValue("/root/send/searchitem/age", model.getValue("/root/main/maindata/patbaseinfo/age"));
  3210. model.setValue("/root/send/searchitem/ht", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"));
  3211. model.setValue("/root/send/searchitem/wt", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
  3212. model.setValue("/root/send/searchitem/ibw", model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"));
  3213. model.setValue("/root/send/searchitem/calrrecmqty", model.getValue("/root/main/maindata/cnstreq/optcalr1"));
  3214. model.setValue("/root/send/searchitem/protrecmqty", model.getValue("/root/main/maindata/cnstreq/optprotqty1"));
  3215. modal("SPANC00100", 0,100,150,"SPANC00100", "/root/send/searchitem", "/root/main/receivedata");
  3216. ]]>
  3217. </script>
  3218. </button>
  3219. <select1 id="cmb_nutrstatvalu1" ref="/root/main/maindata/cnstreq/nutrstatvalucd1" class="combo_default" appearance="minimal" style="left:431px; top:251px; width:434px; height:19px; ">
  3220. <choices>
  3221. <itemset nodeset="/root/init/baseinfo/nutrstatvalucd/A501">
  3222. <label ref="cdnm"/>
  3223. <value ref="cdid"/>
  3224. </itemset>
  3225. </choices>
  3226. </select1>
  3227. <caption id="caption184" class="cell_1" style="left:345px; top:249px; width:83px; height:23px; vertical-align:middle; ">영양상태판정</caption>
  3228. <line id="line127" class="line_2" style="x1:345px; y1:272px; x2:865px; y2:272px; "/>
  3229. <line id="line128" class="line_3" style="x1:345px; y1:329px; x2:865px; y2:329px; "/>
  3230. <line id="line129" class="line_3" style="x1:345px; y1:427px; x2:865px; y2:427px; "/>
  3231. <caption id="caption185" class="tit_2" style="left:350px; top:340px; width:95px; height:13px; ">영양상담내용</caption>
  3232. <line id="line130" class="line_1" style="x1:345px; y1:356px; x2:865px; y2:356px; "/>
  3233. <caption id="caption186" class="cell_1" style="left:345px; top:361px; width:83px; height:23px; vertical-align:middle; ">상용구선택</caption>
  3234. <select1 id="cmb_cnstcd" ref="/root/main/maindata/cnstreq/cnstcd" class="combo_default" appearance="minimal" style="left:431px; top:363px; width:434px; height:19px; ">
  3235. <choices>
  3236. <itemset nodeset="/root/init/baseinfo/cnstcd/A502">
  3237. <label ref="cdnm"/>
  3238. <value ref="cdid"/>
  3239. </itemset>
  3240. </choices>
  3241. </select1>
  3242. <textarea id="tar_cnstcnts" ref="/root/main/maindata/cnstreq/cnstcnts" style="left:345px; top:386px; width:520px; height:40px; "/>
  3243. <line id="line131" class="line_2" style="x1:345px; y1:384px; x2:865px; y2:384px; "/>
  3244. <button id="btn_nutrstatjudgbase2" class="btn2_letter8" style="left:757px; top:224px; width:108px; height:19px; ">
  3245. <caption>영양상태판정기준</caption>
  3246. <script type="javascript" ev:event="onclick">
  3247. <![CDATA[
  3248. //modal("SPANC00200", 0,100,150,"SPANC00200", "/root/init/nutrjudgbase", "/root/main/receivedata");
  3249. modal("SPANC00303", 0,100,150,"SPANC00303");
  3250. ]]>
  3251. </script>
  3252. </button>
  3253. <button id="btn_nutrreqqtycalc" class="btn2_letter7" style="left:768px; top:5px; width:97px; height:19px; ">
  3254. <caption>영양요구량계산</caption>
  3255. <script type="javascript" ev:event="DOMActivate">
  3256. <![CDATA[
  3257. // btn_calculation2.dispatch("DOMActivate");
  3258. // btn_calculation3.dispatch("DOMActivate");
  3259. var stndbdwt = model.getValue("/root/main/maindata/cnstreq/stndbdwt1"); // 기준체중
  3260. var calrflag = model.getValue("/root/main/maindata/cnstreq/calrflag1"); // 계수법 or HB 구분
  3261. var dialqty = model.getValue("/root/main/maindata/cnstreq/dialqty1"); // 복막투석액
  3262. var calr = 0; // 최종 열량값
  3263. model.setValue("/root/main/maindata/patbaseinfo/flag", "1"); // "1"은 협진의뢰 tab화면임을 뜻함.
  3264. if ( calrflag == 1 ) { // 계수법일 경우
  3265. model.setValue("/root/main/maindata/cnstreq/optcalradopt1", stndbdwt);
  3266. var adoptlawcalr = model.getValue("/root/main/maindata/cnstreq/adoptlawcalr1");
  3267. calr = stndbdwt * adoptlawcalr;
  3268. //계수법을 선택했으므로 HB 관련 항목은 clear 시킨다.
  3269. model.setValue("/root/main/maindata/cnstreq/optcalrhb1", "");
  3270. model.setValue("/root/main/maindata/cnstreq/hbcalr11", "");
  3271. model.setValue("/root/main/maindata/cnstreq/hbcalr21", "");
  3272. } else if ( calrflag == 2 ) { // HB일 경우
  3273. var sex = model.getValue("/root/main/maindata/patbaseinfo/sex");
  3274. var age = model.getValue("/root/main/maindata/patbaseinfo/age");
  3275. var wt = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt");
  3276. var ht = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht");
  3277. // var abw = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdabw");
  3278. var abw = ipt_physmeasabw.value;
  3279. var pibw = opt_pibw1.value;
  3280. var calrhb = 0;
  3281. if (sex == "M") { //남자일 경우
  3282. if (pibw < 120) { //PIBW가 120 이상인 경우는 WT 대신 ABW로 계산
  3283. calrhb = 66+13.7*wt+5*ht-6.8*age;
  3284. } else {
  3285. calrhb = 66+13.7*abw+5*ht-6.8*age;
  3286. }
  3287. } else if (sex == "F") { //여자일 경우
  3288. if (pibw < 120) { //PIBW가 120 이상인 경우는 WT 대신 ABW로 계산
  3289. calrhb = 655+9.6*wt+1.8*ht-4.7*age;
  3290. } else {
  3291. calrhb = 655+9.6*abw+1.8*ht-4.7*age;
  3292. }
  3293. }
  3294. model.setValue("/root/main/maindata/cnstreq/optcalrhb1", calrhb);
  3295. var hbcalr1 = model.getValue("/root/main/maindata/cnstreq/hbcalr11");
  3296. var hbcalr2 = model.getValue("/root/main/maindata/cnstreq/hbcalr21");
  3297. calr = calrhb * hbcalr1 * hbcalr2;
  3298. //HB를 선택했으므로 계수법 관련 항목은 clear 시킨다.
  3299. model.setValue("/root/main/maindata/cnstreq/optcalradopt1", "");
  3300. model.setValue("/root/main/maindata/cnstreq/adoptlawcalr1", "");
  3301. }
  3302. if ( dialqty == "" ) { // 복막투석액에 값이 없을 경우는 0으로 처리하고 계산한다.
  3303. dialqty = 0;
  3304. }
  3305. calr = calr - dialqty;
  3306. calr = calr.toString().getRound(-1, "HALF_UP");
  3307. model.setValue("/root/main/maindata/cnstreq/optcalr1", calr);
  3308. btn_calculation4.dispatch("DOMActivate"); //단백질 계산
  3309. model.refresh();
  3310. ]]>
  3311. </script>
  3312. </button>
  3313. <caption id="caption171" style="left:494px; top:33px; width:16px; height:20px; vertical-align:middle; ">kg</caption>
  3314. <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; "/>
  3315. <line id="line104" class="line_2" style="x1:345px; y1:176px; x2:865px; y2:176px; "/>
  3316. <button id="btn_calculation2" class="btn2_letter2" style="left:690px; top:105px; width:42px; height:19px; ">
  3317. <caption>BEE</caption>
  3318. <script type="javascript" ev:event="DOMActivate">
  3319. <![CDATA[
  3320. var stndbdwt = model.getValue("/root/main/maindata/cnstreq/stndbdwt1"); // 기준체중
  3321. var calrflag = model.getValue("/root/main/maindata/cnstreq/calrflag1"); // 계수법 or HB 구분
  3322. var dialqty = model.getValue("/root/main/maindata/cnstreq/dialqty1"); // 복막투석액
  3323. var calr = 0; // 최종 열량값
  3324. model.setValue("/root/main/maindata/patbaseinfo/flag", "1"); // "1"은 협진의뢰 tab화면임을 뜻함.
  3325. if ( calrflag == 1 ) { // 계수법일 경우
  3326. model.setValue("/root/main/maindata/cnstreq/optcalradopt1", stndbdwt);
  3327. var adoptlawcalr = model.getValue("/root/main/maindata/cnstreq/adoptlawcalr1");
  3328. calr = stndbdwt * adoptlawcalr;
  3329. //계수법을 선택했으므로 HB 관련 항목은 clear 시킨다.
  3330. model.setValue("/root/main/maindata/cnstreq/optcalrhb1", "");
  3331. model.setValue("/root/main/maindata/cnstreq/hbcalr11", "");
  3332. model.setValue("/root/main/maindata/cnstreq/hbcalr21", "");
  3333. } else if ( calrflag == 2 ) { // HB일 경우
  3334. model.setValue("/root/main/maindata/patbaseinfo/wt", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
  3335. model.setValue("/root/main/maindata/patbaseinfo/ht", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"));
  3336. model.makeValue("/root/main/maindata/patbaseinfo/abw", model.getValue("/root/main/maindata/nutrstatjudg/physmeasabw"));
  3337. model.makeValue("/root/main/maindata/patbaseinfo/pibw", opt_pibw1.value);
  3338. modal("SPANC00301", 0,100,150,"SPANC00301", "/root/main/maindata/patbaseinfo", "/root/main/receivedata");
  3339. var optcalrhb = model.getValue("/root/main/maindata/cnstreq/optcalrhb1");
  3340. var hbcalr1 = model.getValue("/root/main/maindata/cnstreq/hbcalr11");
  3341. var hbcalr2 = model.getValue("/root/main/maindata/cnstreq/hbcalr21");
  3342. calr = optcalrhb * hbcalr1 * hbcalr2;
  3343. //HB를 선택했으므로 계수법 관련 항목은 clear 시킨다.
  3344. model.setValue("/root/main/maindata/cnstreq/optcalradopt1", "");
  3345. model.setValue("/root/main/maindata/cnstreq/adoptlawcalr1", "");
  3346. }
  3347. if ( dialqty == "" ) { // 복막투석액에 값이 없을 경우는 0으로 처리하고 계산한다.
  3348. dialqty = 0;
  3349. }
  3350. calr = calr - dialqty;
  3351. calr = calr.toString().getRound(-1, "HALF_UP");
  3352. model.setValue("/root/main/maindata/cnstreq/optcalr1", calr);
  3353. model.refresh();
  3354. ]]>
  3355. </script>
  3356. </button>
  3357. <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; ">
  3358. <choices>
  3359. <item>
  3360. <label>IBW</label>
  3361. <value>1</value>
  3362. </item>
  3363. <item>
  3364. <label>ABW</label>
  3365. <value>2</value>
  3366. </item>
  3367. <item>
  3368. <label>Wt</label>
  3369. <value>3</value>
  3370. </item>
  3371. </choices>
  3372. <script type="javascript" ev:event="xforms-select">
  3373. <![CDATA[
  3374. if (model.getValue("/root/main/maindata/cnstreq/stndbdwtflag1") == 1) {
  3375. model.setValue("/root/main/maindata/cnstreq/stndbdwt1", model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"));
  3376. } else if (model.getValue("/root/main/maindata/cnstreq/stndbdwtflag1") == 2) {
  3377. model.setValue("/root/main/maindata/cnstreq/stndbdwt1", model.getValue("/root/main/maindata/nutrstatjudg/physmeasabw"));
  3378. } else if (model.getValue("/root/main/maindata/cnstreq/stndbdwtflag1") == 3) {
  3379. model.setValue("/root/main/maindata/cnstreq/stndbdwt1", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
  3380. }
  3381. model.refresh();
  3382. ]]>
  3383. </script>
  3384. </select1>
  3385. <caption id="caption165" class="cell_1" style="left:345px; top:54px; width:83px; height:99px; vertical-align:middle; ">열량</caption>
  3386. <caption id="caption170" class="cell_1" style="left:345px; top:30px; width:83px; height:23px; vertical-align:middle; ">기준체중</caption>
  3387. <button id="btn_calculation3" class="btn2_letter2" style="left:655px; top:130px; width:42px; height:19px; ">
  3388. <caption>계산</caption>
  3389. <script type="javascript" ev:event="DOMActivate">
  3390. <![CDATA[
  3391. modal("SPANC00302");
  3392. if ( model.getAttribute("iParam_kcal") != "" ) {
  3393. ipt_dialqty.value = model.getAttribute("iParam_kcal");
  3394. model.refresh();
  3395. }
  3396. ]]>
  3397. </script>
  3398. </button>
  3399. <button id="btn_calculation4" class="btn2_letter2" visibility="hidden" style="left:795px; top:155px; width:42px; height:19px; ">
  3400. <caption>계산</caption>
  3401. <script type="javascript" ev:event="DOMActivate">
  3402. <![CDATA[
  3403. var stndbdwt = model.getValue("/root/main/maindata/cnstreq/stndbdwt1"); // 기준체중
  3404. model.setValue("/root/main/maindata/cnstreq/optprotadopt1", stndbdwt);
  3405. var protqty = model.getValue("/root/main/maindata/cnstreq/protqty1"); // 단백질(g/kg)
  3406. var optprotqty = stndbdwt * protqty;
  3407. optprotqty = optprotqty.toString().getRound(-1, "HALF_UP");
  3408. model.setValue("/root/main/maindata/cnstreq/optprotqty1", optprotqty); // 단백질(g/day)
  3409. model.refresh();
  3410. ]]>
  3411. </script>
  3412. </button>
  3413. <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; "/>
  3414. <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; "/>
  3415. <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; "/>
  3416. <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; "/>
  3417. <caption id="caption1" style="left:590px; top:155px; width:40px; height:20px; vertical-align:middle; ">계수법</caption>
  3418. <caption id="caption4" class="cell_1" style="left:730px; top:30px; width:55px; height:23px; vertical-align:middle; ">PIBW</caption>
  3419. <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; "/>
  3420. <caption id="caption5" style="left:840px; top:31px; width:20px; height:20px; vertical-align:middle; ">%</caption>
  3421. <button id="button1" class="btn4_letter5" style="left:750px; top:460px; width:92px; height:22px; ">
  3422. <caption>Care Plan</caption>
  3423. <script type="javascript" ev:event="onclick">
  3424. <![CDATA[
  3425. var pid = model.getValue("/root/send/searchitem/pid");
  3426. setParameter("SMMRJ00100_pid", pid);
  3427. //open("SMMRJ00100");
  3428. modal("SMMRJ00100", "", "1100", "700", "SMMRJ00100", "", "");
  3429. ]]>
  3430. </script>
  3431. </button>
  3432. <group id="grp_cnstreq" visibility="hidden" style="left:280px; top:250px; width:445px; height:245px; ">
  3433. <textarea id="textarea1" ref="/root/send/cureplancnts" style="left:5px; top:30px; width:435px; height:180px; "/>
  3434. <button id="button2" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  3435. <caption>닫기</caption>
  3436. <script type="javascript" ev:event="DOMActivate">
  3437. <![CDATA[
  3438. grp_cnstreq.visible = false;
  3439. ]]>
  3440. </script>
  3441. </button>
  3442. <button id="button6" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
  3443. <caption>적용</caption>
  3444. <script type="javascript" ev:event="DOMActivate">
  3445. <![CDATA[
  3446. var rownum = grd_cnstreq.row ;
  3447. var cureplancnts = model.getValue("/root/send/cureplancnts");
  3448. model.setValue("/root/main/maindata/cureplan/cnstreq["+rownum+"]/cureplancnts",cureplancnts);
  3449. model.setValue("/root/send/cureplancnts","");
  3450. grp_cnstreq.visible = false;
  3451. model.refresh();
  3452. ]]>
  3453. </script>
  3454. </button>
  3455. <caption id="caption12" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">영양치료계획/권장</caption>
  3456. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  3457. </group>
  3458. </case>
  3459. <case id="case3">
  3460. <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; ">
  3461. <col ref="pid" visibility="hidden"/>
  3462. <col ref="execdd" visibility="hidden"/>
  3463. <col ref="nutrmngtkind" visibility="hidden"/>
  3464. <col ref="cnstpurs" visibility="hidden"/>
  3465. <col ref="cureplancd" type="combo">
  3466. <choices>
  3467. <itemset nodeset="/root/init/baseinfo/cureplancd3/A505">
  3468. <label ref="cdnm"/>
  3469. <value ref="cdid"/>
  3470. </itemset>
  3471. </choices>
  3472. </col>
  3473. <col ref="cureplancnts" type="inputbutton"/>
  3474. <script type="javascript" ev:event="onbuttonclick">
  3475. <![CDATA[
  3476. var colidx = grd_pursmngt.col;
  3477. var rowidx = grd_pursmngt.row;
  3478. if(grd_pursmngt.colAttribute(colidx, "ref") == "cureplancnts"){
  3479. model.setValue("/root/send/cureplancnts", "");
  3480. grp_pursmngt.visible = true;
  3481. var rownum = grd_pursmngt.row;
  3482. var cureplancnts = model.getValue("/root/main/maindata/cureplan/pursmngt["+rownum+"]/cureplancnts");
  3483. model.setValue("/root/send/cureplancnts",cureplancnts);
  3484. grd_pursmngt.addStatus( grd_pursmngt.row ,"update");
  3485. //grd_cnstreq.dispatch("xforms-value-changed");
  3486. model.refresh();
  3487. }
  3488. ]]>
  3489. </script>
  3490. </datagrid>
  3491. <button id="btn_rowadd3" class="btn2_letter3" style="left:750px; top:400px; width:53px; height:19px; ">
  3492. <caption>행추가</caption>
  3493. <script type="javascript" ev:event="DOMActivate">
  3494. <![CDATA[
  3495. grd_pursmngt.addRow();
  3496. ]]>
  3497. </script>
  3498. </button>
  3499. <button id="btn_rowdel3" class="btn2_letter3" style="left:805px; top:400px; width:53px; height:19px; ">
  3500. <caption>행삭제</caption>
  3501. <script type="javascript" ev:event="DOMActivate">
  3502. <![CDATA[
  3503. //grd_pursmngt.deleteRow(grd_pursmngt.row);
  3504. grd_pursmngt.addStatus(grd_pursmngt.row, "delete");
  3505. ]]>
  3506. </script>
  3507. </button>
  3508. <caption id="caption99" class="tit_2" style="left:350px; top:10px; width:100px; height:13px; ">영양요구량</caption>
  3509. <line id="line141" class="line_1" style="x1:345px; y1:25px; x2:865px; y2:25px; "/>
  3510. <textarea id="tar_nutrstatvalu2" ref="/root/main/maindata/pursmngt/nutrstatvalucnts2" style="left:345px; top:275px; width:520px; height:114px; "/>
  3511. <line id="line142" class="line_2" style="x1:345px; y1:273px; x2:865px; y2:273px; "/>
  3512. <caption id="caption194" class="tit_2" style="left:350px; top:229px; width:128px; height:13px; ">영양상태평가</caption>
  3513. <line id="line143" class="line_1" style="x1:345px; y1:245px; x2:865px; y2:245px; "/>
  3514. <caption id="caption195" class="cell_1" style="left:345px; top:250px; width:87px; height:23px; vertical-align:middle; ">영양상태판정</caption>
  3515. <select1 id="cmb_nutrstatvalu2" ref="/root/main/maindata/pursmngt/nutrstatvalucd2" class="combo_default" appearance="minimal" style="left:435px; top:252px; width:430px; height:19px; ">
  3516. <choices>
  3517. <itemset nodeset="/root/init/baseinfo/nutrstatvalucd/A501">
  3518. <label ref="cdnm"/>
  3519. <value ref="cdid"/>
  3520. </itemset>
  3521. </choices>
  3522. </select1>
  3523. <line id="line144" class="line_3" style="x1:345px; y1:391px; x2:865px; y2:391px; "/>
  3524. <line id="line146" class="line_1" style="x1:345px; y1:420px; x2:865px; y2:420px; "/>
  3525. <caption id="caption196" class="tit_2" style="left:350px; top:404px; width:128px; height:13px; ">영양치료계획/권장</caption>
  3526. <line id="line147" class="line_3" style="x1:345px; y1:624px; x2:865px; y2:624px; "/>
  3527. <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; "/>
  3528. <caption id="caption193" style="left:522px; top:156px; width:38px; height:20px; vertical-align:middle; ">g/day</caption>
  3529. <caption id="caption199" style="left:754px; top:156px; width:55px; height:20px; vertical-align:middle; ">g/kg</caption>
  3530. <caption id="caption200" style="left:522px; top:56px; width:55px; height:20px; vertical-align:middle; ">kcal/day</caption>
  3531. <caption id="caption201" style="left:623px; top:106px; width:10px; height:20px; vertical-align:middle; ">*</caption>
  3532. <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; "/>
  3533. <caption id="caption204" style="left:557px; top:82px; width:10px; height:20px; vertical-align:middle; ">*</caption>
  3534. <caption id="caption206" style="left:622px; top:81px; width:55px; height:20px; vertical-align:middle; ">kcal/kg</caption>
  3535. <caption id="caption208" style="left:557px; top:107px; width:10px; height:20px; vertical-align:middle; ">*</caption>
  3536. <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; "/>
  3537. <caption id="caption210" style="left:497px; top:131px; width:63px; height:20px; vertical-align:middle; ">복막투석액</caption>
  3538. <caption id="caption212" style="left:617px; top:133px; width:30px; height:20px; vertical-align:middle; ">kcal</caption>
  3539. <caption id="caption216" style="left:694px; top:156px; width:10px; height:20px; vertical-align:middle; ">*</caption>
  3540. <textarea id="tar_nutrreqqty2" ref="/root/main/maindata/pursmngt/nutrreqqty2" style="left:435px; top:180px; width:430px; height:35px; "/>
  3541. <line id="line150" class="line_3" style="x1:345px; y1:216px; x2:865px; y2:216px; "/>
  3542. <caption id="caption198" class="cell_1" style="left:345px; top:179px; width:87px; height:36px; vertical-align:middle; ">기타</caption>
  3543. <line id="line148" class="line_2" style="x1:345px; y1:178px; x2:865px; y2:178px; "/>
  3544. <button id="btn_nutrstatjudgbase3" class="btn2_letter8" style="left:757px; top:225px; width:108px; height:19px; ">
  3545. <caption>영양상태판정기준</caption>
  3546. <script type="javascript" ev:event="onclick">
  3547. <![CDATA[
  3548. //modal("SPANC00200", 0,100,150,"SPANC00200", "/root/init/nutrjudgbase", "/root/main/receivedata");
  3549. modal("SPANC00303", 0,100,150,"SPANC00303");
  3550. ]]>
  3551. </script>
  3552. </button>
  3553. <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; ">
  3554. <choices>
  3555. <item>
  3556. <label>계수법</label>
  3557. <value>1</value>
  3558. </item>
  3559. <item>
  3560. <label>HB</label>
  3561. <value>2</value>
  3562. </item>
  3563. </choices>
  3564. </select1>
  3565. <button id="btn_nutrreqqtycalc2" class="btn2_letter7" style="left:768px; top:5px; width:97px; height:19px; ">
  3566. <caption>영양요구량계산</caption>
  3567. <script type="javascript" ev:event="DOMActivate">
  3568. <![CDATA[
  3569. // btn_calculation5.dispatch("DOMActivate");
  3570. // btn_calculation6.dispatch("DOMActivate");
  3571. var stndbdwt = model.getValue("/root/main/maindata/pursmngt/stndbdwt2"); // 기준체중
  3572. var calrflag = model.getValue("/root/main/maindata/pursmngt/calrflag2"); // 계수법 or HB 구분
  3573. var dialqty = model.getValue("/root/main/maindata/pursmngt/dialqty2"); // 복막투석액
  3574. var calr = 0; // 최종 열량값
  3575. model.setValue("/root/main/maindata/patbaseinfo/flag", "2"); // "2"는 추구관리 tab화면임을 뜻함.
  3576. if ( calrflag == 1 ) { // 계수법일 경우
  3577. model.setValue("/root/main/maindata/pursmngt/optcalradopt2", stndbdwt);
  3578. var adoptlawcalr = model.getValue("/root/main/maindata/pursmngt/adoptlawcalr2");
  3579. calr = stndbdwt * adoptlawcalr;
  3580. //계수법을 선택했으므로 HB 관련 항목은 clear 시킨다.
  3581. model.setValue("/root/main/maindata/pursmngt/optcalrhb2", "");
  3582. model.setValue("/root/main/maindata/pursmngt/hbcalr12", "");
  3583. model.setValue("/root/main/maindata/pursmngt/hbcalr22", "");
  3584. } else if ( calrflag == 2 ) { // HB일 경우
  3585. var sex = model.getValue("/root/main/maindata/patbaseinfo/sex");
  3586. var age = model.getValue("/root/main/maindata/patbaseinfo/age");
  3587. var wt = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt");
  3588. var ht = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht");
  3589. var abw = model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdabw");
  3590. var pibw = opt_pibw2.value;
  3591. var calrhb = 0;
  3592. if (sex == "M") { //남자일 경우
  3593. if (pibw < 120) { //PIBW가 120 이상인 경우는 WT 대신 ABW로 계산
  3594. calrhb = 66+13.7*wt+5*ht-6.8*age;
  3595. } else {
  3596. calrhb = 66+13.7*abw+5*ht-6.8*age;
  3597. }
  3598. } else if (sex == "F") { //여자일 경우
  3599. if (pibw < 120) { //PIBW가 120 이상인 경우는 WT 대신 ABW로 계산
  3600. calrhb = 655+9.6*wt+1.8*ht-4.7*age;
  3601. } else {
  3602. calrhb = 655+9.6*abw+1.8*ht-4.7*age;
  3603. }
  3604. }
  3605. model.setValue("/root/main/maindata/pursmngt/optcalrhb2", calrhb);
  3606. var hbcalr1 = model.getValue("/root/main/maindata/pursmngt/hbcalr12");
  3607. var hbcalr2 = model.getValue("/root/main/maindata/pursmngt/hbcalr22");
  3608. calr = calrhb * hbcalr1 * hbcalr2;
  3609. //HB를 선택했으므로 계수법 관련 항목은 clear 시킨다.
  3610. model.setValue("/root/main/maindata/pursmngt/optcalradopt2", "");
  3611. model.setValue("/root/main/maindata/pursmngt/adoptlawcalr2", "");
  3612. }
  3613. if ( dialqty == "" ) { // 복막투석액에 값이 없을 경우는 0으로 처리하고 계산한다.
  3614. dialqty = 0;
  3615. }
  3616. calr = calr - dialqty;
  3617. calr = calr.toString().getRound(-1, "HALF_UP");
  3618. model.setValue("/root/main/maindata/pursmngt/optcalr2", calr);
  3619. btn_calculation7.dispatch("DOMActivate");
  3620. model.refresh();
  3621. ]]>
  3622. </script>
  3623. </button>
  3624. <button id="btn_intkqtyvalu2" class="btn2_letter5" style="left:690px; top:5px; width:75px; height:19px; ">
  3625. <caption>섭취량평가</caption>
  3626. <script type="javascript" ev:event="DOMActivate">
  3627. <![CDATA[
  3628. model.setValue("/root/send/searchitem/cnstflag", "P"); // 'P'는 추구관리를 뜻함.
  3629. model.setValue("/root/send/searchitem/calrintk", model.getValue("/root/main/maindata/pursmngt/calrintk2"));
  3630. model.setValue("/root/send/searchitem/calrintkqty", model.getValue("/root/main/maindata/pursmngt/calrintkqty2"));
  3631. model.setValue("/root/send/searchitem/protintk", model.getValue("/root/main/maindata/pursmngt/protintk2"));
  3632. model.setValue("/root/send/searchitem/protintkqty", model.getValue("/root/main/maindata/pursmngt/protintkqty2"));
  3633. model.setValue("/root/send/searchitem/intkqtyetc", model.getValue("/root/main/maindata/pursmngt/intkqtyetc2"));
  3634. model.setValue("/root/send/searchitem/dietercmt", model.getValue("/root/main/maindata/pursmngt/dietercmt2"));
  3635. model.setValue("/root/send/searchitem/hngnm", model.getValue("/root/main/maindata/patbaseinfo/hngnm"));
  3636. model.setValue("/root/send/searchitem/sex", model.getValue("/root/main/maindata/patbaseinfo/sex"));
  3637. model.setValue("/root/send/searchitem/age", model.getValue("/root/main/maindata/patbaseinfo/age"));
  3638. model.setValue("/root/send/searchitem/ht", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"));
  3639. model.setValue("/root/send/searchitem/wt", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
  3640. model.setValue("/root/send/searchitem/ibw", model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"));
  3641. model.setValue("/root/send/searchitem/calrrecmqty", model.getValue("/root/main/maindata/pursmngt/optcalr2"));
  3642. model.setValue("/root/send/searchitem/protrecmqty", model.getValue("/root/main/maindata/pursmngt/optprotqty2"));
  3643. modal("SPANC00100", 0,100,150,"SPANC00100", "/root/send/searchitem", "/root/main/receivedata");
  3644. ]]>
  3645. </script>
  3646. </button>
  3647. <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; "/>
  3648. <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; "/>
  3649. <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; "/>
  3650. <button id="btn_calculation6" class="btn2_letter2" style="left:662px; top:131px; width:42px; height:19px; ">
  3651. <caption>계산</caption>
  3652. <script type="javascript" ev:event="DOMActivate">
  3653. <![CDATA[
  3654. modal("SPANC00302");
  3655. if ( model.getAttribute("iParam_kcal") != "" ) {
  3656. ipt_dialqty2.value = model.getAttribute("iParam_kcal");
  3657. model.refresh();
  3658. }
  3659. ]]>
  3660. </script>
  3661. </button>
  3662. <caption id="caption174" style="left:507px; top:33px; width:16px; height:20px; vertical-align:middle; ">kg</caption>
  3663. <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; "/>
  3664. <line id="line152" class="line_2" style="x1:345px; y1:152px; x2:865px; y2:152px; "/>
  3665. <textarea id="tar_review2" ref="/root/main/maindata/pursmngt/review" disabled="false" style="left:5px; top:30px; width:333px; height:593px; line-spacing:6; "/>
  3666. <caption id="caption211" class="tit_2" style="left:11px; top:10px; width:142px; height:13px; ">영양상태판정Review</caption>
  3667. <line id="line155" class="line_3" style="x1:5px; y1:624px; x2:338px; y2:624px; "/>
  3668. <line id="line156" class="line_1" style="x1:5px; y1:25px; x2:338px; y2:25px; "/>
  3669. <line id="line140" class="line_2" style="x1:345px; y1:52px; x2:865px; y2:52px; "/>
  3670. <caption id="caption173" class="cell_1" style="left:345px; top:30px; width:87px; height:23px; vertical-align:middle; ">기준체중</caption>
  3671. <caption id="caption214" class="cell_1" style="left:345px; top:54px; width:87px; height:99px; vertical-align:middle; ">열량</caption>
  3672. <caption id="caption205" class="cell_1" style="left:345px; top:154px; width:87px; height:23px; vertical-align:middle; ">단백질</caption>
  3673. <caption id="caption2" class="cell_1" style="left:730px; top:30px; width:55px; height:23px; vertical-align:middle; ">PIBW</caption>
  3674. <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; "/>
  3675. <caption id="caption7" style="left:840px; top:31px; width:20px; height:20px; vertical-align:middle; ">%</caption>
  3676. <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; ">
  3677. <choices>
  3678. <item>
  3679. <label>IBW</label>
  3680. <value>1</value>
  3681. </item>
  3682. <item>
  3683. <label>ABW</label>
  3684. <value>2</value>
  3685. </item>
  3686. <item>
  3687. <label>Wt</label>
  3688. <value>3</value>
  3689. </item>
  3690. </choices>
  3691. <script type="javascript" ev:event="xforms-select">
  3692. <![CDATA[
  3693. if (model.getValue("/root/main/maindata/pursmngt/stndbdwtflag2") == 1) {
  3694. model.setValue("/root/main/maindata/pursmngt/stndbdwt2", model.getValue("/root/main/maindata/nutrstatjudg/physmeasibw"));
  3695. } else if (model.getValue("/root/main/maindata/pursmngt/stndbdwtflag2") == 2) {
  3696. model.setValue("/root/main/maindata/pursmngt/stndbdwt2", model.getValue("/root/main/maindata/nutrstatjudg/physmeasabw"));
  3697. } else if (model.getValue("/root/main/maindata/pursmngt/stndbdwtflag2") == 3) {
  3698. model.setValue("/root/main/maindata/pursmngt/stndbdwt2", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
  3699. }
  3700. model.refresh();
  3701. ]]>
  3702. </script>
  3703. </select1>
  3704. <caption id="caption8" style="left:590px; top:156px; width:40px; height:20px; vertical-align:middle; ">계수법</caption>
  3705. <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; "/>
  3706. <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; "/>
  3707. <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; "/>
  3708. <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; "/>
  3709. <button id="btn_calculation5" class="btn2_letter2" style="left:695px; top:105px; width:42px; height:19px; ">
  3710. <caption>BEE</caption>
  3711. <script type="javascript" ev:event="DOMActivate">
  3712. <![CDATA[
  3713. var stndbdwt = model.getValue("/root/main/maindata/pursmngt/stndbdwt2"); // 기준체중
  3714. var calrflag = model.getValue("/root/main/maindata/pursmngt/calrflag2"); // 계수법 or HB 구분
  3715. var dialqty = model.getValue("/root/main/maindata/pursmngt/dialqty2"); // 복막투석액
  3716. var calr = 0; // 최종 열량값
  3717. model.setValue("/root/main/maindata/patbaseinfo/flag", "2"); // "2"는 추구관리 tab화면임을 뜻함.
  3718. if ( calrflag == 1 ) { // 계수법일 경우
  3719. model.setValue("/root/main/maindata/pursmngt/optcalradopt2", stndbdwt);
  3720. var adoptlawcalr = model.getValue("/root/main/maindata/pursmngt/adoptlawcalr2");
  3721. calr = stndbdwt * adoptlawcalr;
  3722. //계수법을 선택했으므로 HB 관련 항목은 clear 시킨다.
  3723. model.setValue("/root/main/maindata/pursmngt/optcalrhb2", "");
  3724. model.setValue("/root/main/maindata/pursmngt/hbcalr12", "");
  3725. model.setValue("/root/main/maindata/pursmngt/hbcalr22", "");
  3726. } else if ( calrflag == 2 ) { // HB일 경우
  3727. model.setValue("/root/main/maindata/patbaseinfo/wt", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdwt"));
  3728. model.setValue("/root/main/maindata/patbaseinfo/ht", model.getValue("/root/main/maindata/nutrstatjudg/physmeasbdht"));
  3729. model.makeValue("/root/main/maindata/patbaseinfo/abw", model.getValue("/root/main/maindata/nutrstatjudg/physmeasabw"));
  3730. model.makeValue("/root/main/maindata/patbaseinfo/pibw", opt_pibw2.value);
  3731. modal("SPANC00301", 0,100,150,"SPANC00301", "/root/main/maindata/patbaseinfo", "/root/main/receivedata");
  3732. var optcalrhb = model.getValue("/root/main/maindata/pursmngt/optcalrhb2");
  3733. var hbcalr1 = model.getValue("/root/main/maindata/pursmngt/hbcalr12");
  3734. var hbcalr2 = model.getValue("/root/main/maindata/pursmngt/hbcalr22");
  3735. calr = optcalrhb * hbcalr1 * hbcalr2;
  3736. //HB를 선택했으므로 계수법 관련 항목은 clear 시킨다.
  3737. model.setValue("/root/main/maindata/pursmngt/optcalradopt2", "");
  3738. model.setValue("/root/main/maindata/pursmngt/adoptlawcalr2", "");
  3739. }
  3740. if ( dialqty == "" ) { // 복막투석액에 값이 없을 경우는 0으로 처리하고 계산한다.
  3741. dialqty = 0;
  3742. }
  3743. calr = calr - dialqty;
  3744. calr = calr.toString().getRound(-1, "HALF_UP");
  3745. model.setValue("/root/main/maindata/pursmngt/optcalr2", calr);
  3746. model.refresh();
  3747. ]]>
  3748. </script>
  3749. </button>
  3750. <button id="btn_calculation7" class="btn2_letter2" visibility="hidden" style="left:790px; top:155px; width:42px; height:19px; ">
  3751. <caption>계산</caption>
  3752. <script type="javascript" ev:event="DOMActivate">
  3753. <![CDATA[
  3754. var stndbdwt = model.getValue("/root/main/maindata/pursmngt/stndbdwt2"); // 기준체중
  3755. model.setValue("/root/main/maindata/pursmngt/optprotadopt2", stndbdwt);
  3756. var protqty = model.getValue("/root/main/maindata/pursmngt/protqty2"); // 단백질(g/kg)
  3757. var optprotqty = stndbdwt * protqty;
  3758. optprotqty = optprotqty.toString().getRound(-1, "HALF_UP");
  3759. model.setValue("/root/main/maindata/pursmngt/optprotqty2", optprotqty); // 단백질(g/day)
  3760. model.refresh();
  3761. ]]>
  3762. </script>
  3763. </button>
  3764. <group id="grp_pursmngt" visibility="hidden" style="left:280px; top:155px; width:445px; height:245px; ">
  3765. <textarea id="textarea3" ref="/root/send/cureplancnts" style="left:5px; top:30px; width:435px; height:180px; "/>
  3766. <button id="button7" class="btn4_letter2" style="left:380px; top:215px; width:56px; height:22px; ">
  3767. <caption>닫기</caption>
  3768. <script type="javascript" ev:event="DOMActivate">
  3769. <![CDATA[
  3770. grp_pursmngt.visible = false;
  3771. ]]>
  3772. </script>
  3773. </button>
  3774. <button id="button8" class="btn4_letter2" style="left:320px; top:215px; width:56px; height:22px; ">
  3775. <caption>적용</caption>
  3776. <script type="javascript" ev:event="DOMActivate">
  3777. <![CDATA[
  3778. var rownum = grd_pursmngt.row ;
  3779. var cureplancnts = model.getValue("/root/send/cureplancnts");
  3780. model.setValue("/root/main/maindata/cureplan/pursmngt["+rownum+"]/cureplancnts",cureplancnts);
  3781. model.setValue("/root/send/cureplancnts","");
  3782. grp_pursmngt.visible = false;
  3783. model.refresh();
  3784. ]]>
  3785. </script>
  3786. </button>
  3787. <caption id="caption13" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">영양치료계획/권장</caption>
  3788. <shape id="rectangle3" appearance="rectangle" style="left:0px; top:0px; width:445px; height:245px; "/>
  3789. </group>
  3790. </case>
  3791. <case id="case4" selected="true">
  3792. <textarea id="tar_replcnts" ref="/root/main/maindata/nutrstatjudg/replcnts" style="left:5px; top:29px; width:862px; height:595px; line-spacing:6; "/>
  3793. <button id="btn_soap" class="btn2_letter3" style="left:814px; top:4px; width:53px; height:19px; ">
  3794. <caption>SOAP</caption>
  3795. <script type="javascript" ev:event="DOMActivate">
  3796. <![CDATA[
  3797. //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
  3798. if (cmb_nutrmngtkind.value == '01' || cmb_nutrmngtkind.value == '06' ||
  3799. cmb_nutrmngtkind.value == '07' || cmb_nutrmngtkind.value == '08') {
  3800. fSoapReplCntsCnstreq();
  3801. }
  3802. //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
  3803. else if (cmb_nutrmngtkind.value == '05' || cmb_nutrmngtkind.value == '09') {
  3804. fSoapReplCntsPursmngt();
  3805. } else {
  3806. model.setValue("/root/main/maindata/nutrstatjudg/replcnts", "");
  3807. model.setValue("/root/main/maindata/nutrstatjudg/careplan", "");
  3808. model.refresh();
  3809. }
  3810. ]]>
  3811. </script>
  3812. </button>
  3813. <line id="line132" class="line_1" style="x1:5px; y1:24px; x2:867px; y2:24px; "/>
  3814. <line id="line133" class="line_3" style="x1:5px; y1:625px; x2:867px; y2:625px; "/>
  3815. </case>
  3816. </switch>
  3817. <line id="line134" class="line_1" style="x1:320px; y1:710px; x2:1195px; y2:710px; "/>
  3818. <line id="line135" class="line_3" style="x1:320px; y1:738px; x2:1195px; y2:738px; "/>
  3819. <output id="opt_reqresn" ref="/root/main/receivedata/educreqcnts" class="output_search" style="left:321px; top:715px; width:180px; height:19px; "/>
  3820. <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; "/>
  3821. <caption id="caption188" class="cell_1" style="left:684px; top:715px; width:76px; height:23px; vertical-align:middle; ">영양사</caption>
  3822. <caption id="caption189" class="cell_1" style="left:1025px; top:715px; width:62px; height:23px; vertical-align:middle; ">수행일자</caption>
  3823. <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; "/>
  3824. <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; ">
  3825. <choices>
  3826. <itemset nodeset="/root/init/basecode/dieter/dieter">
  3827. <label ref="cdnm"/>
  3828. <value ref="cdid"/>
  3829. </itemset>
  3830. </choices>
  3831. </select1>
  3832. <line id="line136" class="line_1" style="x1:650px; y1:48px; x2:1195px; y2:48px; "/>
  3833. <line id="line137" class="line_3" style="x1:650px; y1:76px; x2:1195px; y2:76px; "/>
  3834. <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; ">
  3835. <choices>
  3836. <itemset nodeset="/root/init/basecode/nutrmngtkind/A0060">
  3837. <label ref="cdnm"/>
  3838. <value ref="cdid"/>
  3839. </itemset>
  3840. </choices>
  3841. </select1>
  3842. <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; ">
  3843. <choices>
  3844. <itemset nodeset="/root/init/basecode/sickcd/A0059">
  3845. <label ref="cdnm"/>
  3846. <value ref="cdid"/>
  3847. </itemset>
  3848. </choices>
  3849. </select1>
  3850. <caption id="caption190" class="cell_1" style="left:650px; top:53px; width:85px; height:23px; vertical-align:middle; ">영양관리유형</caption>
  3851. <caption id="caption191" class="cell_1" style="left:917px; top:53px; width:70px; height:23px; vertical-align:middle; ">질환구분</caption>
  3852. <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; ">
  3853. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  3854. <col ref="dietmeal" style="text-align:center; "/>
  3855. <col ref="dietnm"/>
  3856. <script type="javascript" ev:event="ondblclick">
  3857. <![CDATA[
  3858. if ( grd_mealprcpinfo.isCell(event.target) && grd_mealprcpinfo.row >= grd_mealprcpinfo.fixedRows ) {
  3859. model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/maindata/dietprcp["+grd_mealprcpinfo.row+"]/orddd"));
  3860. model.setValue("/root/send/searchitem/cretno", model.getValue("/root/main/maindata/dietprcp["+grd_mealprcpinfo.row+"]/cretno"));
  3861. model.setValue("/root/send/searchitem/orddeptcd", model.getValue("/root/main/maindata/dietprcp["+grd_mealprcpinfo.row+"]/orddeptcd"));
  3862. model.setValue("/root/send/searchitem/prcpgenrflag", model.getValue("/root/main/maindata/dietprcp["+grd_mealprcpinfo.row+"]/prcpgenrflag"));
  3863. //flag=B는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)만 조회한다는 뜻임.
  3864. model.setValue("/root/send/searchitem/flag", 'B');
  3865. btn_search.dispatch("DOMActivate");
  3866. }
  3867. ]]>
  3868. </script>
  3869. </datagrid>
  3870. <button id="btn_nutrstatjudg" class="btn_sw" group="tab" selected="true" style="left:320px; top:58px; width:94px; height:22px; ">
  3871. <caption>영양상태판정</caption>
  3872. <script type="javascript" ev:event="DOMActivate">
  3873. <![CDATA[
  3874. model.toggle("case1");
  3875. btn_cnstrepl.disabled = true; //회신버튼 비활성화
  3876. grp_cureplancnts.visible = false;
  3877. ]]>
  3878. </script>
  3879. </button>
  3880. <button id="btn_cnstreq" class="btn_sw" group="tab" style="left:414px; top:58px; width:74px; height:22px; ">
  3881. <caption>협진의뢰</caption>
  3882. <script type="javascript" ev:event="DOMActivate">
  3883. <![CDATA[
  3884. fNutrStatJudgReview(); //영양상태판정Review 표시
  3885. model.toggle("case2");
  3886. btn_cnstrepl.disabled = true; //회신버튼 비활성화
  3887. grp_cnstreq.visible = false;
  3888. ]]>
  3889. </script>
  3890. </button>
  3891. <button id="btn_pursmngt" class="btn_sw" group="tab" style="left:488px; top:58px; width:74px; height:22px; ">
  3892. <caption>추구관리</caption>
  3893. <script type="javascript" ev:event="DOMActivate">
  3894. <![CDATA[
  3895. fNutrStatJudgReview(); //영양상태판정Review 표시
  3896. model.toggle("case3");
  3897. btn_cnstrepl.disabled = true; //회신버튼 비활성화
  3898. grp_pursmngt.visible = false;
  3899. ]]>
  3900. </script>
  3901. </button>
  3902. <button id="btn_repl" class="btn_sw" group="tab" style="left:562px; top:58px; width:50px; height:22px; ">
  3903. <caption>회신</caption>
  3904. <script type="javascript" ev:event="DOMActivate">
  3905. <![CDATA[
  3906. model.toggle("case4");
  3907. btn_cnstrepl.disabled = false; //회신버튼 활성화
  3908. // if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") == "30" ) { //회신확정 상태일 경우
  3909. // btn_cnstrepl.disabled = true; //회신버튼 비활성화
  3910. // } else {
  3911. // btn_cnstrepl.disabled = false; //회신버튼 활성화
  3912. // }
  3913. //회신탭 세팅
  3914. //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
  3915. if (cmb_nutrmngtkind.value == '01' || cmb_nutrmngtkind.value == '06' ||
  3916. cmb_nutrmngtkind.value == '07' || cmb_nutrmngtkind.value == '08') {
  3917. fReplCntsCnstreq();
  3918. }
  3919. //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
  3920. else if (cmb_nutrmngtkind.value == '05' || cmb_nutrmngtkind.value == '09') {
  3921. fReplCntsPursmngt();
  3922. } else {
  3923. model.setValue("/root/main/maindata/nutrstatjudg/replcnts", "");
  3924. model.setValue("/root/main/maindata/nutrstatjudg/careplan", "");
  3925. model.refresh();
  3926. }
  3927. ]]>
  3928. </script>
  3929. </button>
  3930. <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; ">
  3931. <col ref="pid" visibility="hidden"/>
  3932. <col disabled="true" ref="fnexamflag" type="combo">
  3933. <choices>
  3934. <item>
  3935. <label>재검색</label>
  3936. <value>I</value>
  3937. </item>
  3938. <item>
  3939. <label>신환</label>
  3940. <value>F</value>
  3941. </item>
  3942. </choices>
  3943. </col>
  3944. <col ref="execdd" format="yyyy-mm-dd"/>
  3945. <col ref="nutrmngtkind" visibility="hidden"/>
  3946. <col ref="srchrslt"/>
  3947. <col ref="insrslt"/>
  3948. <col ref="indd" visibility="hidden"/>
  3949. <col ref="formrecseq" visibility="hidden"/>
  3950. <col ref="dieter"/>
  3951. <col ref="cnststatnm" style="text-align:left; "/>
  3952. <col ref="chrgdieternm" visibility="hidden"/>
  3953. <col ref="intndieternm" visibility="hidden"/>
  3954. <script type="javascript" ev:event="ondblclick">
  3955. <![CDATA[
  3956. if ( grd_nutrsrchrslthist.isCell(event.target) && grd_nutrsrchrslthist.row >= grd_nutrsrchrslthist.fixedRows ) {
  3957. var rowno = grd_nutrsrchrslthist.row;
  3958. model.setValue("/root/send/searchitem/dieter", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/chrgdieternm"));
  3959. model.setValue("/root/send/searchitem/intndieter", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/intndieternm"));
  3960. model.setValue("/root/send/searchitem/pid", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/pid"));
  3961. model.setValue("/root/send/searchitem/pastexecdd", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/execdd"));
  3962. model.setValue("/root/send/searchitem/nutrmngtkind", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/nutrmngtkind"));
  3963. model.setValue("/root/send/searchitem/prcpgenrflag", "I"); //영양검색은 입원환자만 해당되므로 'I'로 셋팅
  3964. model.setValue("/root/send/searchitem/orddd", model.getValue("/root/main/maindata/nutrsrchrslt["+grd_nutrsrchrslthist.row+"]/indd"));
  3965. model.setValue("/root/send/searchitem/flag", 'A');
  3966. model.setValue("/root/send/searchitem/careplanflag", 'Y');
  3967. btn_search.dispatch("DOMActivate");
  3968. //선택한 행 색깔 표시
  3969. grd_nutrsrchrslthist.isSelected(rowno) = true;
  3970. grd_nutrsrchrslthist.focusColor = "#ffccff";
  3971. }
  3972. ]]>
  3973. </script>
  3974. </datagrid>
  3975. <line id="line139" class="line_1" style="x1:0px; y1:623px; x2:315px; y2:623px; "/>
  3976. <caption id="caption192" class="tit_2" style="left:5px; top:607px; width:126px; height:13px; ">영양검색결과이력</caption>
  3977. <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; ">
  3978. <choices>
  3979. <itemset nodeset="/root/init/basecode/dieter/intndieter">
  3980. <label ref="cdnm"/>
  3981. <value ref="cdid"/>
  3982. </itemset>
  3983. </choices>
  3984. </select1>
  3985. <caption id="caption10" class="cell_1" style="left:854px; top:715px; width:76px; height:23px; vertical-align:middle; ">인턴영양사</caption>
  3986. </group>
  3987. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:26px; ">
  3988. <button id="btn_save" class="btn4_letter2" style="left:942px; top:4px; width:56px; height:22px; ">
  3989. <caption>저장</caption>
  3990. <script type="javascript" ev:event="DOMActivate">
  3991. <![CDATA[
  3992. //필수입력항목 체크
  3993. if(model.getValue("/root/send/searchitem/pid") == "") {
  3994. messageBox("등록번호는", "I003");
  3995. model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
  3996. return;
  3997. }else if(model.getValue("/root/send/searchitem/nutrmngtkind") == ""){
  3998. messageBox("영양관리유형은", "I003");
  3999. model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
  4000. return;
  4001. }else if(model.getValue("/root/main/maindata/nutrstatjudg/sickcd") == ""){
  4002. messageBox("질환구분은", "I003");
  4003. model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
  4004. return;
  4005. }else if(model.getValue("/root/send/searchitem/dieter") == ""){
  4006. messageBox("영양사는", "I003");
  4007. model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
  4008. return;
  4009. }else if(model.getValue("/root/send/searchitem/execdd") == "") {
  4010. messageBox("수행일자는", "I003");
  4011. model.setValue("/root/temp/save/msg", "N"); //'N'은 저장실패를 뜻함.
  4012. return;
  4013. }
  4014. //if ( messageBox("", "Q002") == 6 ) {
  4015. // 영양상태판정 탭화면 저장
  4016. model.setValue("/root/main/maindata/nutrstatjudg/cnstpurs", "S"); //'S'는 영양상태판정을 뜻함.
  4017. model.copyNode("/root/send/data/maindata/nutrstatjudg", "/root/main/maindata/nutrstatjudg");
  4018. model.setValue("/root/send/data/maindata/nutrstatjudg/pid", model.getValue("/root/send/searchitem/pid"));
  4019. model.setValue("/root/send/data/maindata/nutrstatjudg/cretno", model.getValue("/root/main/maindata/patbaseinfo/cretno"));
  4020. model.setValue("/root/send/data/maindata/nutrstatjudg/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
  4021. model.setValue("/root/send/data/maindata/nutrstatjudg/execdd", model.getValue("/root/send/searchitem/execdd"));
  4022. model.setValue("/root/send/data/maindata/nutrstatjudg/chrgdieter", model.getValue("/root/send/searchitem/dieter"));
  4023. model.setValue("/root/send/data/maindata/nutrstatjudg/intndieter", model.getValue("/root/send/searchitem/intndieter"));
  4024. //영양교육관리 화면에서 링크된 의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 수정하지 않고 새로 작성한 경우
  4025. //영양교육관리 화면에서 링크된 의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 일부 내용만 수정한 경우
  4026. if ( (model.getValue("/root/main/receivedata/h_formrecseq") != "" && model.getValue("/root/main/maindata/nutrstatjudg/pid") == "")
  4027. || (model.getValue("/root/main/receivedata/h_formrecseq") != "" && (model.getValue("/root/main/receivedata/h_formrecseq") != model.getValue("/root/main/maindata/nutrstatjudg/formrecseq"))) ) {
  4028. model.setValue("/root/send/data/maindata/nutrstatjudg/formrecseq", model.getValue("/root/main/receivedata/h_formrecseq"));
  4029. model.setValue("/root/send/data/maindata/nutrstatjudg/prcpdd", model.getValue("/root/main/receivedata/reqdd"));
  4030. model.setValue("/root/send/data/maindata/nutrstatjudg/execprcpuniqno", model.getValue("/root/main/receivedata/execprcpuniqno"));
  4031. model.setValue("/root/send/data/maindata/nutrstatjudg/indd", model.getValue("/root/main/receivedata/h_orddd"));
  4032. model.setValue("/root/send/data/maindata/nutrstatjudg/ordcd", model.getValue("/root/main/receivedata/h_prcpcd"));
  4033. model.setValue("/root/send/data/maindata/nutrstatjudg/ioflag", model.getValue("/root/main/receivedata/h_prcpgenrflag"));
  4034. model.setValue("/root/send/data/maindata/nutrstatjudg/chrgdr", model.getValue("/root/main/receivedata/atdoct"));
  4035. model.setValue("/root/send/data/maindata/nutrstatjudg/chrgnurs", model.getValue("/root/main/receivedata/h_nurse"));
  4036. }
  4037. //영양검색 또는 환자관리 화면에서 링크된 비의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 수정하지 않고 새로 작성한 경우
  4038. //영양검색 또는 환자관리 화면에서 링크된 비의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 일부 내용만 수정한 경우
  4039. else if ( model.getValue("/root/main/receivedata/h_formrecseq") == "" && model.getValue("/root/main/receivedata/pid") != "" &&
  4040. ( model.getValue("/root/main/maindata/nutrstatjudg/nutrmngtkind") != model.getValue("/root/send/searchitem/nutrmngtkind") ||
  4041. model.getValue("/root/main/maindata/nutrstatjudg/execdd") != model.getValue("/root/send/searchitem/execdd") )
  4042. ) {
  4043. model.setValue("/root/send/data/maindata/nutrstatjudg/formrecseq", "");
  4044. model.setValue("/root/send/data/maindata/nutrstatjudg/prcpdd", "");
  4045. model.setValue("/root/send/data/maindata/nutrstatjudg/execprcpuniqno", "");
  4046. model.setValue("/root/send/data/maindata/nutrstatjudg/indd", model.getValue("/root/main/receivedata/h_orddd"));
  4047. model.setValue("/root/send/data/maindata/nutrstatjudg/ordcd", "");
  4048. model.setValue("/root/send/data/maindata/nutrstatjudg/ioflag", model.getValue("/root/main/receivedata/h_prcpgenrflag"));
  4049. model.setValue("/root/send/data/maindata/nutrstatjudg/chrgdr", "");
  4050. model.setValue("/root/send/data/maindata/nutrstatjudg/chrgnurs", "");
  4051. model.setValue("/root/send/data/maindata/nutrstatjudg/srchdd", model.getValue("/root/main/receivedata/srchdd"));
  4052. }
  4053. //다른 화면에서 링크되지 않고 직접 환자번호 등으로 조회 : 비의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 수정하지 않고 새로 작성한 경우
  4054. //다른 화면에서 링크되지 않고 직접 환자번호 등으로 조회 : 비의뢰건이면서 최초저장이면서 다른 회신건을 조회하여 일부 내용만 수정한 경우
  4055. else if ( model.getValue("/root/main/receivedata/pid") == "" && model.getValue("/root/main/receivedatacopy/pid") == "" &&
  4056. ( model.getValue("/root/main/maindata/nutrstatjudg/nutrmngtkind") != model.getValue("/root/send/searchitem/nutrmngtkind") ||
  4057. model.getValue("/root/main/maindata/nutrstatjudg/execdd") != model.getValue("/root/send/searchitem/execdd") )
  4058. ) {
  4059. model.setValue("/root/send/data/maindata/nutrstatjudg/formrecseq", "");
  4060. model.setValue("/root/send/data/maindata/nutrstatjudg/prcpdd", "");
  4061. model.setValue("/root/send/data/maindata/nutrstatjudg/execprcpuniqno", "");
  4062. model.setValue("/root/send/data/maindata/nutrstatjudg/indd", model.getValue("/root/main/maindata/patbaseinfo/indd"));
  4063. model.setValue("/root/send/data/maindata/nutrstatjudg/ordcd", "");
  4064. model.setValue("/root/send/data/maindata/nutrstatjudg/ioflag", model.getValue("/root/main/maindata/patbaseinfo/ioflag"));
  4065. model.setValue("/root/send/data/maindata/nutrstatjudg/chrgdr", "");
  4066. model.setValue("/root/send/data/maindata/nutrstatjudg/chrgnurs", "");
  4067. }
  4068. //검사결과 셋팅
  4069. model.setValue("/root/send/data/maindata/nutrstatjudg/testrsltalb", model.getValue("/root/main/testrslt/lis/alb"));
  4070. model.setValue("/root/send/data/maindata/nutrstatjudg/testrslttlc", model.getValue("/root/main/testrslt/lis/tlc"));
  4071. model.setValue("/root/send/data/maindata/nutrstatjudg/testrslthbhct", model.getValue("/root/main/testrslt/lis/hb"));
  4072. model.setValue("/root/send/data/maindata/nutrstatjudg/testrslthbhct2", model.getValue("/root/main/testrslt/lis/hct"));
  4073. model.setValue("/root/send/data/maindata/nutrstatjudg/testrslttrf", model.getValue("/root/main/testrslt/lis/trf"));
  4074. if(model.getValue("/root/send/searchitem/flag") == "R" && model.getValue("/root/send/searchitem/careplanflag") == "Y"){ // 회신을 통한 저장 여부 && 영양검색 결과이력
  4075. model.makeValue("/root/send/data/maindata/nutrstatjudg/return","Y");
  4076. }else{
  4077. model.makeValue("/root/send/data/maindata/nutrstatjudg/return","N");
  4078. }
  4079. //영양상태판정 탭화면 저장
  4080. if (submit("TXANC00301")) {
  4081. model.setValue("/root/temp/save/msg", "Y"); //'Y'는 영양상태판정 저장성공을 뜻함.
  4082. model.resetInstanceNode("/root/main/receivedata");
  4083. //영양상태판정의 영양치료계획/권장 그리드에 필수데이터 셋팅
  4084. var rowcnt = grd_nutrstatjudg.rows-1;
  4085. if ( rowcnt > 0 ) {
  4086. for ( i = 1; i <= rowcnt; i++ ) {
  4087. model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/pid", model.getValue("/root/send/searchitem/pid"));
  4088. model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/execdd", model.getValue("/root/send/searchitem/execdd"));
  4089. model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
  4090. model.setValue("/root/main/maindata/cureplan/nutrstatjudg["+ i +"]/cnstpurs", "S");
  4091. }
  4092. model.setValue("/root/send/data/maindata/cureplan", grd_nutrstatjudg.getUpdateData());
  4093. submit("TXANC00304");
  4094. }
  4095. //영양관리유형이 초기영양검색 or 협진입원(영양평가) or 협진입원(영양교육) or 협진외래(영양교육) 일 경우
  4096. //협진의뢰 탭화면 저장
  4097. if (cmb_nutrmngtkind.value == '01' || cmb_nutrmngtkind.value == '06' || cmb_nutrmngtkind.value == '07' || cmb_nutrmngtkind.value == '08') {
  4098. model.copyNode("/root/send/data/maindata/cnstreq", "/root/main/maindata/cnstreq");
  4099. model.setValue("/root/send/data/maindata/cnstreq/pid", model.getValue("/root/send/searchitem/pid"));
  4100. model.setValue("/root/send/data/maindata/cnstreq/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
  4101. model.setValue("/root/send/data/maindata/cnstreq/execdd", model.getValue("/root/send/searchitem/execdd"));
  4102. model.setValue("/root/send/data/maindata/cnstreq/cnstflag1", "C"); // 'C'는 협진의뢰를 뜻함.
  4103. //model.setValue("/root/send/data/maindata/cnstreq/execprcpuniqno", model.getValue("/root/send/searchitem/execprcpuniqno"));
  4104. // 협진의뢰의 영양치료계획/권장 그리드에 필수데이터 셋팅
  4105. var rowcnt = grd_cnstreq.rows-1;
  4106. if ( rowcnt > 0 ) {
  4107. for ( i = 1; i <= rowcnt; i++ ) {
  4108. model.setValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/pid", model.getValue("/root/send/searchitem/pid"));
  4109. model.setValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/execdd", model.getValue("/root/send/searchitem/execdd"));
  4110. model.setValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
  4111. model.setValue("/root/main/maindata/cureplan/cnstreq["+ i +"]/cnstpurs", "C");
  4112. }
  4113. model.setValue("/root/send/data/maindata/cureplan", grd_cnstreq.getUpdateData());
  4114. submit("TXANC00304");
  4115. }
  4116. //model.setValue("/root/send/data/maindata/cureplan", grd_cnstreq.getUpdateData());
  4117. if (submit("TXANC00302")) { //협진의뢰 탭화면 저장
  4118. //flag=R은 저장후 자동으로 재조회 하지 않고 회신까지 완료된 후 재조회 한다는 뜻임.
  4119. if ( model.getValue("/root/send/searchitem/flag") != "R" ) {
  4120. btn_search.dispatch("DOMActivate");
  4121. }
  4122. }
  4123. }
  4124. //영양관리유형이 일반추구관리 or 협진추구관리 일 경우
  4125. //추구관리 탭화면 저장
  4126. else if (cmb_nutrmngtkind.value == '05' || cmb_nutrmngtkind.value == '09') {
  4127. model.copyNode("/root/send/data/maindata/pursmngt", "/root/main/maindata/pursmngt");
  4128. model.setValue("/root/send/data/maindata/pursmngt/pid", model.getValue("/root/send/searchitem/pid"));
  4129. model.setValue("/root/send/data/maindata/pursmngt/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
  4130. model.setValue("/root/send/data/maindata/pursmngt/execdd", model.getValue("/root/send/searchitem/execdd"));
  4131. model.setValue("/root/send/data/maindata/pursmngt/cnstflag2", "P"); // 'P'는 추구관리를 뜻함.
  4132. //model.setValue("/root/send/data/maindata/pursmngt/execprcpuniqno", model.getValue("/root/send/searchitem/execprcpuniqno"));
  4133. // 추구관리의 영양치료계획/권장 그리드에 필수데이터 셋팅
  4134. var rowcnt = grd_pursmngt.rows-1;
  4135. if ( rowcnt > 0 ) {
  4136. for ( i = 1; i <= rowcnt; i++ ) {
  4137. model.setValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/pid", model.getValue("/root/send/searchitem/pid"));
  4138. model.setValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/execdd", model.getValue("/root/send/searchitem/execdd"));
  4139. model.setValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/nutrmngtkind", model.getValue("/root/send/searchitem/nutrmngtkind"));
  4140. model.setValue("/root/main/maindata/cureplan/pursmngt["+ i +"]/cnstpurs", "P");
  4141. }
  4142. model.setValue("/root/send/data/maindata/cureplan", grd_pursmngt.getUpdateData());
  4143. submit("TXANC00304");
  4144. }
  4145. if (submit("TXANC00303")) { //추구관리 탭화면 저장
  4146. //flag=R은 저장후 자동으로 재조회 하지 않고 회신까지 완료된 후 재조회 한다는 뜻임.
  4147. if ( model.getValue("/root/send/searchitem/flag") != "R" ) {
  4148. btn_search.dispatch("DOMActivate");
  4149. }
  4150. }
  4151. }
  4152. //저장이 정상처리된 경우만 해당 노드를 clear 해준다.
  4153. // model.resetInstanceNode("/root/main/maindata/nutrstatjudg");
  4154. // model.resetInstanceNode("/root/main/maindata/cnstreq");
  4155. // model.resetInstanceNode("/root/main/maindata/pursmngt");
  4156. // model.resetInstanceNode("/root/main/maindata/cureplan");
  4157. // model.refresh();
  4158. } else {
  4159. model.setValue("/root/temp/save/msg", "N"); //'N'은 영양상태판정 저장실패를 뜻함.
  4160. return;
  4161. }
  4162. //} else { return; }
  4163. ]]>
  4164. </script>
  4165. </button>
  4166. <button id="btn_reset" class="btn4_letter3" style="left:872px; top:4px; width:68px; height:22px; ">
  4167. <caption>초기화</caption>
  4168. <script type="javascript" ev:event="DOMActivate">
  4169. <![CDATA[
  4170. finit();
  4171. ]]>
  4172. </script>
  4173. </button>
  4174. <button id="button27" class="btn3_letter6" disabled="true" style="left:1px; top:4px; width:104px; height:22px; ">
  4175. <caption>의무기록조회</caption>
  4176. </button>
  4177. <button id="button3" class="btn3_letter4" disabled="true" style="left:107px; top:4px; width:80px; height:22px; ">
  4178. <caption>처방조회</caption>
  4179. </button>
  4180. <button id="btn_recsrch" class="btn3_letter6" disabled="false" style="left:190px; top:4px; width:104px; height:22px; ">
  4181. <caption>통합기록조회</caption>
  4182. <script type="javascript" ev:event="DOMActivate">
  4183. <![CDATA[
  4184. setParameter("SMMRI00400_param_pid", model.getValue("/root/send/searchitem/pid"));
  4185. //modal("SMMRI00400", 0,100,100,"SMMRI00400","","","left:30; top:50; width:1230; height:840;");
  4186. modal("SMMRI00400", 0,100,100,"SMMRI00400","","");
  4187. ]]>
  4188. </script>
  4189. </button>
  4190. <button id="btn_bsugarrec" class="btn3_letter6" disabled="false" style="left:297px; top:4px; width:104px; height:22px; ">
  4191. <caption>혈당간호기록</caption>
  4192. <script type="javascript" ev:event="DOMActivate">
  4193. <![CDATA[
  4194. //setParameter("SMMRI00400_param_pid", model.getValue("/root/send/searchitem/pid"));
  4195. modal("SMMNR02500", 0,100,100,"SMMNR02500","","");
  4196. ]]>
  4197. </script>
  4198. </button>
  4199. <button id="btn_capdrec" class="btn3_letter5" disabled="false" style="left:404px; top:4px; width:104px; height:22px; ">
  4200. <caption>CAPD기록</caption>
  4201. <script type="javascript" ev:event="DOMActivate">
  4202. <![CDATA[
  4203. //setParameter("SMMRI00400_param_pid", model.getValue("/root/send/searchitem/pid"));
  4204. modal("SMMNW09000", 0,100,100,"SMMNW09000","","","left:30; top:50; width:1230; height:840;");
  4205. ]]>
  4206. </script>
  4207. </button>
  4208. <!--(20101027) 경북대
  4209. <button id="btn_crrtrec" class="btn3_letter5" disabled="false" style="left:500px; top:4px; width:104px; height:22px; ">
  4210. -->
  4211. <button id="btn_crrtrec" class="btn3_letter5" disabled="false" visibility="hidden" style="left:500px; top:4px; width:104px; height:22px; ">
  4212. <!--(20101027) 경북대 -->
  4213. <caption>CRRT기록</caption>
  4214. <script type="javascript" ev:event="DOMActivate">
  4215. <![CDATA[
  4216. //setParameter("SMMRI00400_param_pid", model.getValue("/root/send/searchitem/pid"));
  4217. modal("SMMNW09100", 0,100,100,"SMMNW09100","","","left:30; top:50; width:1230; height:840;");
  4218. ]]>
  4219. </script>
  4220. </button>
  4221. <button id="btn_cnstrepl" class="btn4_letter2" style="left:1000px; top:4px; width:56px; height:22px; ">
  4222. <caption>회신</caption>
  4223. <script type="javascript" ev:event="DOMActivate">
  4224. <![CDATA[
  4225. if ( messageBox("회신을", "Q004") == 6 ) {
  4226. //flag=R은 저장후 자동으로 재조회 하지 않고 회신까지 완료된 후 재조회하기 위한 것임.
  4227. model.setValue("/root/send/searchitem/flag", "R");
  4228. //저장후 회신
  4229. btn_save.dispatch("DOMActivate");
  4230. //저장이 정상처리된 경우 회신서관리 화면 호출
  4231. if ( model.getValue("/root/temp/save/msg") == "Y" ) {
  4232. //의뢰건이거나 비의뢰건이면서 재저장인 경우
  4233. if ( model.getValue("/root/send/data/maindata/nutrstatjudg/formrecseq") != "" ) {
  4234. var formrecseq = model.getValue("/root/send/data/maindata/nutrstatjudg/formrecseq");
  4235. var replcnts = model.getValue("/root/send/data/maindata/nutrstatjudg/replcnts"); //회신탭화면의 내용
  4236. setParameter("openmode", "reccnstform");
  4237. setParameter("userdeptcd", "3250100000");
  4238. setParameter("formrecseq", formrecseq);
  4239. setParameter("overwrite", "true");
  4240. setParameter("replcnts", replcnts);
  4241. modal("SSMMR01100", 1, 0, 0, "", "", "");
  4242. model.makeValue("/root/send/data/maindata/nutrstatjudg/reqyn", "Y");
  4243. }
  4244. //비의뢰건이면서 최초저장인 경우
  4245. else {
  4246. if ( model.getValue("/root/main/receivedatacopy/pid") != "" ) {
  4247. setParameter("pid", model.getValue("/root/main/receivedatacopy/pid"));
  4248. setParameter("orddd", model.getValue("/root/main/receivedatacopy/h_orddd"));
  4249. setParameter("cretno", model.getValue("/root/main/receivedatacopy/h_cretno"));
  4250. setParameter("ioflag", model.getValue("/root/main/receivedatacopy/h_prcpgenrflag"));
  4251. setParameter("orddeptcd", model.getValue("/root/main/receivedatacopy/h_orddeptcd"));
  4252. setParameter("orddrid", model.getValue("/root/main/receivedatacopy/orddrid"));
  4253. setParameter("SMMMR04900_reqdpcd", model.getValue("/root/main/receivedatacopy/h_orddeptcd")); //의뢰과코드
  4254. setParameter("SMMMR04900_reqdrid", model.getValue("/root/main/receivedatacopy/orddrid")); //주치의아이디
  4255. setParameter("SMMMR04900_reqdrnm", model.getValue("/root/main/receivedatacopy/reqpsn")); //주치의명
  4256. } else {
  4257. setParameter("pid", model.getValue("/root/main/maindata/patbaseinfo/pid"));
  4258. setParameter("orddd", model.getValue("/root/main/maindata/patbaseinfo/indd"));
  4259. setParameter("cretno", model.getValue("/root/main/maindata/patbaseinfo/cretno"));
  4260. setParameter("ioflag", model.getValue("/root/main/maindata/patbaseinfo/ioflag"));
  4261. setParameter("orddeptcd", model.getValue("/root/main/maindata/patbaseinfo/orddeptcd"));
  4262. setParameter("orddrid", model.getValue("/root/main/maindata/patbaseinfo/atdoctid"));
  4263. setParameter("SMMMR04900_reqdpcd", model.getValue("/root/main/maindata/patbaseinfo/orddeptcd")); //의뢰과코드
  4264. setParameter("SMMMR04900_reqdrid", model.getValue("/root/main/maindata/patbaseinfo/atdoctid")); //주치의아이디
  4265. setParameter("SMMMR04900_reqdrnm", model.getValue("/root/main/maindata/patbaseinfo/atdoctnm")); //주치의명
  4266. }
  4267. setParameter("SMMMR04900_reqdpnm", model.getValue("/root/main/maindata/patbaseinfo/orddeptnm")); //의뢰과명
  4268. setParameter("formcd", "0800000722"); //서식코드
  4269. setParameter("SMMMR04900_cnstflag", "3"); //의뢰구분(1:진료의뢰, 3:타과의뢰)
  4270. setParameter("SMMMR04900_replflag", "R"); //의뢰없는회신일경우 R로 셋팅
  4271. setParameter("SMMMR04900_cnstdeptcd", "3250100000"); //수신과코드
  4272. setParameter("SMMMR04900_cnstdeptnm", "영양팀"); //수신과명
  4273. setParameter("SMMMR04900_formnm", "영양검색"); //서식명
  4274. var replcnts = model.getValue("/root/send/data/maindata/nutrstatjudg/replcnts"); //회신탭화면의 내용
  4275. setParameter("replcnts", replcnts);
  4276. setParameter("overwrite", "true");
  4277. setParameter("openmode", "newcnstform");
  4278. modal("SSMMR01100", 1, 0, 0, "", "", "");
  4279. model.makeValue("/root/send/data/maindata/nutrstatjudg/reqyn", "N");
  4280. model.makeValue("/root/send/data/maindata/nutrstatjudg/formcd", "0800000722");
  4281. }
  4282. //인증저장까지 모두 성공하였는지 조회하여 성공시에만 영양팀 테이블에 회신일자를 setting해준다.
  4283. submit("TRANC00304");
  4284. //의뢰임시(11), 의뢰(12), 의뢰확정(20), 회신임시(21), 회신(22), 회신확정(30)
  4285. if ( model.getValue("/root/temp/cnst/cnst/cnststat") >= 21 ) {
  4286. if ( model.getValue("/root/send/data/maindata/nutrstatjudg/formcd") == "0800000722" &&
  4287. model.getValue("/root/send/data/maindata/nutrstatjudg/formrecseq") == "" ) {
  4288. model.setValue("/root/send/data/maindata/nutrstatjudg/formrecseq", model.getValue("/root/temp/cnst/cnst/formrecseq"));
  4289. }
  4290. submit("TXANC00305");
  4291. }
  4292. //flag=A는 화면 왼쪽의 공통정보(환자기본정보,진단명,입원동기,식사처방정보,영양관리이력,영양검색결과이력)와 해당 컨설팅 정보를 조회한다는 뜻임.
  4293. model.setValue("/root/send/searchitem/flag", 'A');
  4294. btn_search.dispatch("DOMActivate");
  4295. }
  4296. model.resetInstanceNode("/root/temp/save/msg");
  4297. } else {
  4298. return;
  4299. }
  4300. // } else {
  4301. // messageBox("컨설트 의뢰건이 아니라서 회신", "E001");
  4302. // return;
  4303. // }
  4304. ]]>
  4305. </script>
  4306. </button>
  4307. <button id="btn_pastrepl" class="btn4_letter6" style="left:766px; top:4px; width:104px; height:22px; ">
  4308. <caption>과거회신보기</caption>
  4309. <script type="javascript" ev:event="DOMActivate">
  4310. <![CDATA[
  4311. modal("SPANC00304", 0,50,50,"SPANC00304", "/root/main/maindata/repl", "/root/main/receivedata");
  4312. ]]>
  4313. </script>
  4314. </button>
  4315. <button id="btn_del" class="btn4_letter2" style="left:1058px; top:4px; width:56px; height:22px; ">
  4316. <caption>삭제</caption>
  4317. <script type="javascript" ev:event="DOMActivate">
  4318. <![CDATA[
  4319. var hngnm = opt_patnm.value;
  4320. var execdd = model.getValue("/root/main/maindata/nutrstatjudg/execdd");
  4321. var nutrmngtkind = cmb_nutrmngtkind.label;
  4322. if ( messageBox(hngnm + " 환자의 " + execdd.substr(0,4) + "년 " + execdd.substr(4,2) + "월 " + execdd.substr(6,2) + "일 " + nutrmngtkind + " 관련 모든 정보를", "Q001") == 6 ) {
  4323. model.copyNode("/root/send/data/maindata/nutrstatjudg", "/root/main/maindata/nutrstatjudg");
  4324. //컨설트상태가 회신임시(21) 이상이면 회신취소 우선 수행 후 삭제함.
  4325. if ( model.getValue("/root/main/maindata/nutrstatjudg/cnststat") != "" &&
  4326. model.getValue("/root/main/maindata/nutrstatjudg/cnststat") >= 21 ) {
  4327. model.makeValue("/root/send/data/maindata/nutrstatjudg/delcnclflag", "C"); //C는 회신취소를 뜻함.
  4328. if (submit("TXANC00301")) {
  4329. model.setValue("/root/send/data/maindata/nutrstatjudg/delcnclflag", "D"); //D는 삭제를 뜻함.
  4330. if (submit("TXANC00301")) {
  4331. model.setValue("/root/send/searchitem/flag", 'A');
  4332. btn_search.dispatch("DOMActivate");
  4333. }
  4334. }
  4335. } else {
  4336. model.makeValue("/root/send/data/maindata/nutrstatjudg/delcnclflag", "D"); //D는 삭제를 뜻함.
  4337. if (submit("TXANC00301")) {
  4338. model.setValue("/root/send/searchitem/flag", 'A');
  4339. btn_search.dispatch("DOMActivate");
  4340. }
  4341. }
  4342. } else {
  4343. return;
  4344. }
  4345. ]]>
  4346. </script>
  4347. </button>
  4348. <button id="btn_cnstreplcncl" class="btn4_letter4" style="left:1115px; top:4px; width:80px; height:22px; ">
  4349. <caption>회신취소</caption>
  4350. <script type="javascript" ev:event="DOMActivate">
  4351. <![CDATA[
  4352. var hngnm = opt_patnm.value;
  4353. var execdd = model.getValue("/root/main/maindata/nutrstatjudg/execdd");
  4354. var nutrmngtkind = cmb_nutrmngtkind.label;
  4355. if ( messageBox(hngnm + " 환자의 " + execdd.substr(0,4) + "년 " + execdd.substr(4,2) + "월 " + execdd.substr(6,2) + "일 " + nutrmngtkind + " 회신을", "Q007") == 6 ) {
  4356. model.copyNode("/root/send/data/maindata/nutrstatjudg", "/root/main/maindata/nutrstatjudg");
  4357. model.makeValue("/root/send/data/maindata/nutrstatjudg/delcnclflag", "C"); //C는 회신취소를 뜻함.
  4358. if (submit("TXANC00301")) {
  4359. model.setValue("/root/send/searchitem/flag", 'A');
  4360. btn_search.dispatch("DOMActivate");
  4361. }
  4362. } else {
  4363. return;
  4364. }
  4365. ]]>
  4366. </script>
  4367. </button>
  4368. <button id="button9" class="btn3_letter5" style="left:595px; top:4px; width:99px; height:22px; ">
  4369. <caption>CarePlan</caption>
  4370. <script type="javascript" ev:event="DOMActivate">
  4371. <![CDATA[
  4372. var pid= model.getValue("/root/send/searchitem/pid");
  4373. setParameter("SMMRJ00100_pid", pid);
  4374. modal("SMMRJ00100"); // CarePlan 연동
  4375. ]]>
  4376. </script>
  4377. </button>
  4378. </group>
  4379. </xhtml:body>
  4380. </xhtml:html>