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