123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMPMI00400_재원변경관리.xrw
- * 설 명 : 재원변경관리
- * 설 계 자 : 홍영표...
- * 작 성 자 : 홍영표
- * 작 성 일 : 2007.04.09
- * 수정이력 : 2008.07.13 최병진 - pmcmptdc 테이블 사용하지 않음에 따른 관련 로직 제거
- * 2009.10.15 JHP - 전문의 직위코드 명예교수(1781) 추가, 성가요청 팀장님 확인받음.
- * 2009.12.16 JHP - 재원유형이력에 수가재계산구분값 입력(P0027) - 완화의학과 관련 암환자 정액제 적용기준 확인값값
- * 기 타 :
- * 구현예정 : 1. 진료비 소급일자 Insert 서버로직 반영 : 완료
- * 2. 병실현황 조회(돋보기) popup 화면 구성 및 연동 : 완료
- * 3. 보험정보변경시 자보,산재,공상은 추가하고 나머지는 종료일자와 이력관리하는 로직 반영 : 완료
- * 4.
- -->
- <?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="">
- <send>
- <data1>
- <pid/>
- <indd/>
- <cretno/>
- <prestdd/>
- <mskind/>
- <mode>0</mode>
- <insukind/>
- </data1>
- <ipatflag>3</ipatflag>
- <srchcond1>0</srchcond1>
- <srchcond2/>
- <disccd/>
- <hngnm/>
- <rrgstn/>
- <s_ptbs>
- <ptbs_status/>
- </s_ptbs>
- <s_ptin>
- <ptin_status/>
- </s_ptin>
- <s_inpt>
- <inpt_status/>
- </s_inpt>
- <s_iphs>
- <iphs_status/>
- </s_iphs>
- <s_icdr>
- <icdr_status/>
- </s_icdr>
- <s_ipsc>
- <ipsc_status/>
- </s_ipsc>
- <ioflag/>
- <data5>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- </data5>
- <data8>
- <pid/>
- <insukind/>
- <insucd/>
- <appdd/>
- <instcd/>
- </data8>
- <data14>
- <srchcond/>
- <pid/>
- <hngnm/>
- </data14>
- <data15>
- <pid/>
- <insukind/>
- <insucd/>
- <appdd/>
- <instcd/>
- <checkflag/>
- <suppkind/>
- </data15>
- <data16>
- <roomcd/>
- </data16>
- <data17>
- <pid/>
- <indd/>
- <cretno/>
- <mskind/>
- <orddeptcd/>
- <medispclid/>
- <deciflag/>
- </data17>
- <data20>
- <data20_status/>
- <data20_pid/>
- <data20_cretno/>
- <data20_instcd/>
- <data20_mskind/>
- <data20_indd/>
- <data20_dschdd/>
- <data20_insukind/>
- <data20_suppkind/>
- <data20_disccd/>
- </data20>
- <data21>
- <srchcond/>
- <srchcnts/>
- <insuflag/>
- </data21>
- <data9>
- <mode/>
- <pid/>
- <indd/>
- <insukind/>
- <orddeptcd/>
- </data9>
- <data10>
- <list/>
- <todo_pid/>
- <todo_indd/>
- <todo_cretno/>
- <todo_mskind/>
- <todo_instcd/>
- <todo_fromdd/>
- <todo_todd/>
- <todo_insukind/>
- <todo_suppkind/>
- </data10>
- <data11>
- <pam_code/>
- </data11>
- <data22>
- <pid/>
- <indd/>
- <cretno/>
- <mskind/>
- <histstat/>
- <ioflag/>
- </data22>
- <data25>
- <sess_posinstcd/>
- <ioflag/>
- </data25>
- <data26/>
- <data41/>
- <data29>
- <pid/>
- <rgstno1/>
- <rgstno2/>
- <name/>
- <orddd/>
- </data29>
- </send>
- <main>
- <ptbs>
- <ptbs_status/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_sex/>
- <ptbs_age/>
- <ptbs_vipyn/>
- <ptbs_forgeryn/>
- <ptbs_brthdd/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipcdaddr/>
- <ptbs_zipcdseq/>
- <ptbs_detladdr/>
- <ptbs_remfact/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_recmerrela/>
- <ptbs_dethyn/>
- <ptbs_dethdt/>
- </ptbs>
- <ptin>
- <ptin_status/>
- <ptin_pid/>
- <ptin_insukind/>
- <ptin_todd/>
- <ptin_insucd/>
- <ptin_insuno/>
- <ptin_insdrela/>
- <ptin_insdnm/>
- <ptin_insdrrgstno1/>
- <ptin_insdrrgstno2/>
- <ptin_fromdd/>
- <ptin_histstat/>
- <ptin_insucdnm/>
- </ptin>
- <h_cnst>
- <cnst>
- <cnst_pid/>
- <cnst_orddeptcd/>
- <cnst_insuflag/>
- <cnst_ordreqkind/>
- <cnst_todd/>
- <cnst_seqno/>
- <cnst_instcd/>
- <cnst_histstat/>
- <cnst_fromdd/>
- <cnst_fstrgstrid/>
- <cnst_fstrgstdt/>
- <cnst_lastupdtrid/>
- <cnst_lastupdtdt/>
- <cnst_orddeptcd_before/>
- <cnst_insuflag_before/>
- <cnst_ordreqkind_before/>
- <cnst_todd_before/>
- <cnst_seqno_before/>
- <cnst_stat/>
- </cnst>
- </h_cnst>
- <inpt>
- <inpt_status/>
- <inpt_hngnm/>
- <inpt_rrgstno/>
- <inpt_sex/>
- <inpt_age/>
- <inpt_brthdd/>
- <inpt_pid/>
- <inpt_indd/>
- <inpt_cretno/>
- <inpt_seqno/>
- <inpt_instcd/>
- <inpt_mskind/>
- <inpt_histstat/>
- <inpt_intm/>
- <inpt_inpath>I</inpt_inpath>
- <inpt_arvpath/>
- <inpt_ordrslt/>
- <inpt_hospbrthyn/>
- <inpt_rsrvinyn/>
- <inpt_dschdd/>
- <inpt_dschtm/>
- <inpt_dschtype/>
- <inpt_dethdt/>
- <inpt_indschacptstat/>
- <inpt_medcostestmflag/>
- <inpt_fsexamflag/>
- <inpt_fsexammanlyn/>
- <inpt_medamtpostyn/>
- <inpt_medamtfreeresn/>
- <inpt_holiflag/>
- <inpt_brateflag/>
- <inpt_ordtype/>
- <inpt_ermngtamtcalcyn/>
- <inpt_erbrthflag/>
- <inpt_erchospath/>
- <inpt_erorddeptcd/>
- <inpt_hosoutexptresncd/>
- <inpt_insukind/>
- <inpt_suppkind/>
- <inpt_centcd/>
- <inpt_dutdeptcd/>
- <inpt_suporddeptcd/>
- <inpt_orddeptcd/>
- <inpt_medispclid/>
- <inpt_atdoctid/>
- <inpt_specordyn/>
- <inpt_wardcd/>
- <inpt_roomcd/>
- <inpt_bedcd/>
- <inpt_roomgrdecd/>
- <inpt_roomtypecd/>
- <inpt_rqsthospcd/>
- <inpt_rqstdrid/>
- <inpt_hospiceyn/>
- <inpt_drgyn/>
- <inpt_bmtyn/>
- <inpt_clincstdyyn/>
- <inpt_clincstdycd/>
- <inpt_batlockid/>
- <inpt_batlockyn/>
- <inpt_prcplockid/>
- <inpt_ordcostretcdd/>
- <inpt_ordcostcalcdd/>
- <inpt_inacptdt/>
- <inpt_inacptchrgid/>
- <inpt_eroutdt/>
- <inpt_careinrmdd/>
- <inpt_careinrmtm/>
- <inpt_careinrmrgstrid/>
- <inpt_dietprcpcopyflag/>
- <inpt_incncldt/>
- <inpt_incnclchrgid/>
- <inpt_inoutcvrtyn/>
- <inpt_dschcnclyn/>
- <inpt_dschcnclresn/>
- <inpt_dschcncldt/>
- <inpt_dschcnclcharid/>
- <inpt_dschdclrtyn/>
- <inpt_dschdclrdt/>
- <inpt_dschdclrtrgstid/>
- <inpt_dschdclrtrgstdt/>
- <inpt_dschrgstacptdt/>
- <inpt_dschrgstacptcharid/>
- <inpt_dschnotiyn/>
- <inpt_dschnotidt/>
- <inpt_dschnotirgstid/>
- <inpt_dschnotirgstdt/>
- <inpt_visitrefyn/>
- <inpt_keepdschcnclresn/>
- <inpt_calclastdd/>
- <inpt_dschjudgprcsstat/>
- <inpt_lastjudgdt/>
- <inpt_lastmdlclamdd/>
- <inpt_lastjudgendid/>
- <inpt_spcljudgflag/>
- <inpt_probjudgflag/>
- <inpt_mainjudgid/>
- <inpt_medcaredayno/>
- <inpt_dschcntcyn/>
- <inpt_dscharngmnmemo/>
- <inpt_ownbmaxbadd/>
- <inpt_nblsyn/>
- <inpt_fstrgstrid/>
- <inpt_fstrgstdt/>
- <inpt_lastupdtrid/>
- <inpt_lastupdtdt/>
- <inpt_recovwardcd/>
- <inpt_recovmovedd/>
- <inpt_recovinrmdt/>
- <inpt_recovoutdt/>
- <inpt_ordreqformflag/>
- <inpt_handicaprbookpossnyn>N</inpt_handicaprbookpossnyn>
- <inpt_undersixageyn/>
- <inpt_spclcd/>
- <inpt_calcdd/>
- <inpt_calctm/>
- <inpt_badcd/>
- <inpt_ermedispclid/>
- <inpt_uncocd/>
- <inpt_pmflag/>
- <inpt_emplno/>
- <inpt_suppkindsubyn/>
- <inpt_ownbflag/>
- <inpt_opertodd/>
- <inpt_onlnno/>
- <inpt_careoutrmdt/>
- <inpt_careoutrmdelyresn/>
- <inpt_careoutrmrgstid/>
- <inpt_etcordflag/>
- <inpt_spclsuppkind/>
- <inpt_orgordtype/>
- <inpt_subdeptcd/>
- <inpt_coopteamcd/>
- <inpt_specordtype/>
- <inpt_iprcaddyn/>
- </inpt>
- <iphs>
- <iphs_status/>
- <iphs_pid/>
- <iphs_indd/>
- <iphs_cretno/>
- <iphs_fromdd/>
- <iphs_seqno/>
- <iphs_instcd/>
- <iphs_mskind/>
- <iphs_todd/>
- <iphs_histstat/>
- <iphs_indschacptstat/>
- <iphs_insukind/>
- <iphs_suppkind/>
- <iphs_suppkindresn/>
- <iphs_calcscorrecalflag/>
- <iphs_drgyn/>
- <iphs_bmtyn/>
- <iphs_cpyn>N</iphs_cpyn>
- <iphs_clincstdycd/>
- <iphs_disccd/>
- <iphs_rcptyn/>
- <iphs_clamkey/>
- <iphs_clamlastdd/>
- <iphs_judgmdlid/>
- <iphs_fstrgstrid/>
- <iphs_fstrgstdt/>
- <iphs_lastupdtrid/>
- <iphs_lastupdtdt/>
- <iphs_rareobstflag>I</iphs_rareobstflag>
- <iphs_ownbmaxgradeflag/>
- <iphs_emplnm/>
- <iphs_famyrelnm/>
- <iphs_preststatnm/>
- <iphs_profacptyn/>
- <iphs_profacptdd/>
- <iphs_remark/>
- <iphs_drgno/>
- <iphs_dschjudgprcsstat/>
- <iphs_judgdt/>
- <iphs_lastjudgendid/>
- <iphs_lastjudgendnm/>
- <iphs_etcordflag/>
- <iphs_handicaprbookpossnyn/>
- <iphs_forcesepcd/>
- <iphs_judgchgyn/>
- <iphs_judgchgdd/>
- <iphs_uncocd/>
- </iphs>
- <icdr>
- <icdr_status/>
- <icdr_pid/>
- <icdr_indd/>
- <icdr_cretno/>
- <icdr_fromdd/>
- <icdr_seqno/>
- <icdr_instcd/>
- <icdr_mskind/>
- <icdr_todd/>
- <icdr_histstat/>
- <icdr_acptflagcd/>
- <icdr_appflagcd/>
- <icdr_centcd/>
- <icdr_dutdeptcd/>
- <icdr_suporddeptcd/>
- <icdr_orddeptcd/>
- <icdr_medispclid/>
- <icdr_atdoctid/>
- <icdr_specordyn>N</icdr_specordyn>
- <icdr_wardcd/>
- <icdr_roomcd/>
- <icdr_bedcd/>
- <icdr_roomgrdecd/>
- <icdr_roomtypecd/>
- <icdr_wardcd2/>
- <icdr_roomcd2/>
- <icdr_bedcd2/>
- <icdr_roomgrdecd2/>
- <icdr_roomtypecd2/>
- <icdr_oxyyn/>
- <icdr_suctyn/>
- <icdr_prestremcd/>
- <icdr_chngprestrem/>
- <icdr_fstrgstrid/>
- <icdr_fstrgstdt/>
- <icdr_lastupdtrid/>
- <icdr_lastupdtdt/>
- <icdr_subdeptcd/>
- <icdr_coopteamcd/>
- <icdr_specordtype/>
- </icdr>
- <ipsc>
- <ipsc_status/>
- <ipsc_pid/>
- <ipsc_indd/>
- <ipsc_cretno/>
- <ipsc_recaldd/>
- <ipsc_recalfromdd/>
- <ipsc_recaltodd/>
- <ipsc_seqno/>
- <ipsc_instcd/>
- <ipsc_mskind/>
- <ipsc_histstat/>
- <ipsc_genrdd/>
- <ipsc_tretrslt/>
- <ipsc_errcnts/>
- <ipsc_retcgenrplce/>
- <ipsc_calctretflag/>
- <ipsc_fstrgstrid/>
- <ipsc_fstrgstdt/>
- <ipsc_lastupdtrid/>
- <ipsc_lastupdtdt/>
- </ipsc>
- <srdg>
- <srdg_pid/>
- <srdg_insuflag/>
- <srdg_suppkind/>
- <srdg_insukind/>
- <srdg_todd/>
- <srdg_seqno/>
- <srdg_instcd/>
- <srdg_histstat/>
- <srdg_fromdd/>
- <srdg_seridiagno/>
- <srdg_apppsnnm/>
- <srdg_rela/>
- <srdg_acptdd/>
- <srdg_acpttm/>
- <srdg_acptid/>
- <srdg_remfact/>
- <srdg_fstrgstrid/>
- <srdg_fstrgstdt/>
- <srdg_lastupdtrid/>
- <srdg_lastupdtdt/>
- <srdg_insuflag_before/>
- <srdg_suppkind_before/>
- <srdg_todd_before/>
- <srdg_seqno_before/>
- <srdg_stat/>
- </srdg>
- <aipm>
- <aipm_pid/>
- <aipm_suppkind/>
- <aipm_insucmpycd/>
- <aipm_insucdnm/>
- <aipm_paylimamt/>
- <aipm_aprvfromdd/>
- <aipm_aprvtodd/>
- <aipm_paygrntno/>
- </aipm>
- <icpm>
- <icpm_pid/>
- <icpm_mngtno/>
- <icpm_bizplcenm/>
- <icpm_inducsbrchcd/>
- <icpm_insucdnm/>
- <icpm_acddd/>
- <icpm_ordopendd/>
- <icpm_apryfromdd/>
- <icpm_aprytodd/>
- <icpm_spredayno/>
- </icpm>
- <admi/>
- <disc>
- <disc_pid/>
- <disc_indd/>
- <disc_disccd/>
- <disc_rareobstflag/>
- <disc_emplname/>
- <disc_rrgstno1/>
- <disc_rrgstno2/>
- <disc_realemplno/>
- <disc_discuncocd/>
- <disc_famyrelcd/>
- <disc_famyrelnm/>
- <disc_preststatnm/>
- <disc_remark/>
- </disc>
- <h_inpt>
- <inpt/>
- </h_inpt>
- <h_iphs>
- <iphs/>
- </h_iphs>
- <h_icdr>
- <icdr/>
- </h_icdr>
- <popupendflag/>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <indd/>
- <bthdt/>
- </patinfolist>
- </patinfo>
- <rooa>
- <rooa>
- <rooa_pid/>
- <rooa_insuflag/>
- <rooa_suppkind/>
- <rooa_insukind/>
- <rooa_todd/>
- <rooa_seqno/>
- <rooa_instcd/>
- <rooa_histstat/>
- <rooa_fromdd/>
- <rooa_rareobstno/>
- <rooa_apppsnnm/>
- <rooa_rela/>
- <rooa_acptdd/>
- <rooa_acpttm/>
- <rooa_acptid/>
- <rooa_remfact/>
- <rooa_fstrgstrid/>
- <rooa_fstrgstdt/>
- <rooa_lastupdtrid/>
- <rooa_lastupdtdt/>
- <rooa_insuflag_before/>
- <rooa_suppkind_before/>
- <rooa_todd_before/>
- <rooa_seqno_before/>
- <rooa_stat/>
- </rooa>
- </rooa>
- </main>
- <hidden>
- <rcv>
- <ptbs>
- <ptbs_status/>
- <ptbs_pid/>
- <ptbs_hngnm/>
- <ptbs_rrgstno1/>
- <ptbs_rrgstno2/>
- <ptbs_sex/>
- <ptbs_age/>
- <ptbs_vipyn/>
- <ptbs_forgeryn/>
- <ptbs_brthdd/>
- <ptbs_hometel/>
- <ptbs_mpphontel/>
- <ptbs_zipcd1/>
- <ptbs_zipcd2/>
- <ptbs_zipcdaddr/>
- <ptbs_zipcdseq/>
- <ptbs_detladdr/>
- <ptbs_remfact/>
- <ptbs_recmyn/>
- <ptbs_recmerid/>
- <ptbs_recmerrela/>
- </ptbs>
- <ptin>
- <ptin_status/>
- <ptin_pid/>
- <ptin_insukind/>
- <ptin_insucd/>
- <ptin_insuno/>
- <ptin_insdrela/>
- <ptin_insdnm/>
- <ptin_insdrrgstno1/>
- <ptin_insdrrgstno2/>
- <ptin_fromdd/>
- <ptin_todd/>
- <ptin_histstat/>
- </ptin>
- <icdr/>
- <iphs/>
- <inpt/>
- <admi/>
- <disc/>
- </rcv>
- <h_rcv>
- <ptin/>
- <srdg/>
- <!-- 20091215 JHP 수정추가 희귀번호 보여주기 rooa 추가 변경번호 9553 -->
- <rooa/>
- <aipm/>
- <icpm/>
- </h_rcv>
- <original>
- <inpt/>
- <iphs/>
- <icdr/>
- <srdg/>
- <!-- 20091215 JHP 수정추가 희귀번호 보여주기 rooa 추가 변경번호 9553 -->
- <rooa/>
- <aipm/>
- <icpm/>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <indd/>
- <bthdt/>
- <sickbabyyn/>
- <immatureyn/>
- </patinfolist>
- </patinfo>
- <adrv>
- <adrv_pid/>
- <adrv_inrsrvrem/>
- </adrv>
- </original>
- <flag>
- <iphs_flag/>
- <icdr_flag/>
- <icdr_app_flag/>
- <rcv_flag>
- <ptbs_count/>
- <ptin_count/>
- <inpt_count/>
- <iphs_count/>
- <icdr_count/>
- </rcv_flag>
- </flag>
- <temp>
- <ptin>
- <ptin_status/>
- <ptin_pid/>
- <ptin_insukind/>
- <ptin_insucd/>
- <ptin_insucdnm/>
- <ptin_insuno/>
- <ptin_insdrela/>
- <ptin_insdnm/>
- <ptin_insdrrgstno1/>
- <ptin_insdrrgstno2/>
- <ptin_fromdd/>
- <ptin_todd/>
- <ptin_histstat/>
- </ptin>
- <srdg>
- <srdg_pid/>
- <srdg_insuflag/>
- <srdg_suppkind/>
- <srdg_insukind/>
- <srdg_todd/>
- <srdg_seqno/>
- <srdg_instcd/>
- <srdg_histstat/>
- <srdg_fromdd/>
- <srdg_seridiagno/>
- <srdg_apppsnnm/>
- <srdg_rela/>
- <srdg_acptdd/>
- <srdg_acpttm/>
- <srdg_acptid/>
- <srdg_remfact/>
- <srdg_fstrgstrid/>
- <srdg_fstrgstdt/>
- <srdg_lastupdtrid/>
- <srdg_lastupdtdt/>
- <srdg_insuflag_before/>
- <srdg_suppkind_before/>
- <srdg_todd_before/>
- <srdg_seqno_before/>
- <srdg_stat/>
- </srdg>
- <aipm>
- <aipm_pid/>
- <aipm_suppkind/>
- <aipm_insucmpycd/>
- <aipm_insucdnm/>
- <aipm_paylimamt/>
- <aipm_aprvfromdd/>
- <aipm_aprvtodd/>
- </aipm>
- <icpm>
- <icpm_pid/>
- <icpm_mngtno/>
- <icpm_bizplcenm/>
- <icpm_inducsbrchcd/>
- <icpm_insucdnm/>
- <icpm_acddd/>
- <icpm_ordopendd/>
- <icpm_aprvfromdd/>
- <icpm_aprvtodd/>
- <icpm_spredayno/>
- </icpm>
- </temp>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- <orddeptflag/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <wardcd>
- <cd/>
- <nm/>
- <of/>
- </wardcd>
- <roomcd>
- <cd/>
- <nm/>
- <wd/>
- <gr/>
- <ty/>
- </roomcd>
- <bedcd>
- <cd/>
- <nm/>
- <wd/>
- <rm/>
- </bedcd>
- <flag>
- <prestdd/>
- <mskindflag/>
- </flag>
- <insucd>
- <cd/>
- <nm/>
- </insucd>
- <uncocd>
- <cd/>
- <nm/>
- </uncocd>
- <suppkindhist>
- <cd/>
- <nm/>
- <up/>
- <io/>
- <fromdd/>
- <todd/>
- </suppkindhist>
- </init>
- <source>
- <pid/>
- <indd/>
- <cretno/>
- <mskind/>
- </source>
- <target/>
- <userpopupinfo>
- <param/>
- <flag/>
- <searchitem/>
- </userpopupinfo>
- <oneselect/>
- <popup>
- <insuflag/>
- <srchcnts/>
- <srchcond/>
- <pid/>
- </popup>
- <roomcheck>
- <rsltroom/>
- </roomcheck>
- <d_rcv>
- <drnb>
- <pid/>
- <bthdt/>
- <hngnm/>
- <indd/>
- <sickbabyyn/>
- <immatureyn/>
- </drnb>
- </d_rcv>
- <check/>
- <etc>
- <disccd/>
- </etc>
- <iphschk>
- <temp/>
- <temp1/>
- </iphschk>
- <printers>
- <deci_printer/>
- <card_printer/>
- </printers>
- <h_receipt>
- <receipt>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <religncd/>
- <rrgstno/>
- <orddeptcd/>
- <orddeptnm/>
- <specordyn/>
- <medispclid/>
- <wardcd/>
- <roomcd/>
- <bedcd/>
- <indd/>
- <barcode/>
- </receipt>
- </h_receipt>
- <building1/>
- <building2/>
- <visitrefyn/>
- <ScndSuptrgtFlag/>
- <roomgrdelist>
- <roomgrde>
- <cdid/>
- <cdnm/>
- <newcdid/>
- <typecd/>
- <yn/>
- <cdyn/>
- </roomgrde>
- </roomgrdelist>
- <rsrvyn/>
- <rsltflag>
- <indeciprint>
- <indd/>
- <roomcd/>
- <wardcd/>
- <wardnm/>
- <orddeptcd/>
- <orddeptnm/>
- <orddrid/>
- <orddrnm/>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <hometel/>
- <insukind/>
- <bedcnt/>
- <diffamt/>
- <inrgstid/>
- <inrgstnm/>
- <diagnm/>
- <cretno/>
- <mskind/>
- <medispclid/>
- <insukindcd/>
- </indeciprint>
- <patappinfo1>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <choiflag/>
- <ordtype/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <specordyn/>
- <fromdd/>
- <rsrvdd/>
- <rsrvrgstflag/>
- <elctappdd/>
- <elctappsignkey/>
- <elctappsigncnts/>
- <elctapprelakey/>
- <elctapprelacnts/>
- <lmcd/>
- <lmdrid1/>
- <lmdrid2/>
- <lmdrid3/>
- <lmspecyn/>
- <nmcd/>
- <nmdrid1/>
- <nmdrid2/>
- <nmdrid3/>
- <nmspecyn/>
- <apcd/>
- <apdrid1/>
- <apdrid2/>
- <apdrid3/>
- <apspecyn/>
- <rdcd/>
- <rddrid1/>
- <rddrid2/>
- <rddrid3/>
- <rdspecyn/>
- <rtcd/>
- <rtdrid1/>
- <rtdrid2/>
- <rtdrid3/>
- <rtspecyn/>
- <ancd/>
- <andrid1/>
- <andrid2/>
- <andrid3/>
- <anspecyn/>
- <npcd/>
- <npdrid1/>
- <npdrid2/>
- <npdrid3/>
- <npspecyn/>
- <hospnm/>
- <signimgsign/>
- <signimgrela/>
- <signimgsign1/>
- <signimgrela1/>
- <elctsignkey1/>
- <elctsigncnts1/>
- <elctsignkey2/>
- <elctsigncnts2/>
- </patappinfo1>
- </rsltflag>
- <autinsuinfo/>
- </hidden>
- <init>
- <P0002list>
- <P0002>
- <cdid/>
- <cdnm/>
- </P0002>
- </P0002list>
- <P0006list>
- <P0006>
- <cdnm/>
- <cdid/>
- </P0006>
- </P0006list>
- <P0015list>
- <P0015>
- <cdnm/>
- <cdid/>
- </P0015>
- </P0015list>
- <P0016list>
- <P0016>
- <cdnm/>
- <cdid/>
- </P0016>
- </P0016list>
- <P0019list>
- <P0019>
- <cdnm/>
- <cdid/>
- </P0019>
- </P0019list>
- <P0021list>
- <P0021>
- <cdnm/>
- <cdid/>
- </P0021>
- </P0021list>
- <P0363list>
- <P0363>
- <cdid/>
- <cdnm/>
- </P0363>
- </P0363list>
- <P0032list>
- <P0032>
- <cdnm/>
- <cdid/>
- </P0032>
- </P0032list>
- <P0051list>
- <P0051>
- <cdnm/>
- <cdid/>
- </P0051>
- </P0051list>
- <P0149list>
- <P0149>
- <cdid/>
- <cdnm/>
- </P0149>
- </P0149list>
- <P0160list>
- <P0160>
- <cdnm/>
- <cdid/>
- </P0160>
- </P0160list>
- <M0157list>
- <M0157>
- <cdnm/>
- <cdid/>
- </M0157>
- </M0157list>
- <P0313list>
- <P0313>
- <cdnm/>
- <cdid/>
- </P0313>
- </P0313list>
- <P0327list>
- <P0327>
- <cdnm/>
- <cdid/>
- </P0327>
- </P0327list>
- <P0360list>
- <P0360>
- <cdnm/>
- <cdid/>
- </P0360>
- </P0360list>
- <P0363list>
- <P0363>
- <cdnm/>
- <cdid/>
- </P0363>
- </P0363list>
- <P0342list>
- <P0342>
- <cdnm/>
- <cdid/>
- </P0342>
- </P0342list>
- <P0312list>
- <P0312>
- <cdnm/>
- <cdid/>
- </P0312>
- </P0312list>
- <P0027list>
- <P0027>
- <cdnm>-</cdnm>
- <cdid>-</cdid>
- </P0027>
- </P0027list>
- <PAM>
- <P0018list>
- <P0018>
- <cdid/>
- <cdnm/>
- <detl/>
- </P0018>
- </P0018list>
- <P0041list>
- <P0041>
- <cdid/>
- <cdnm/>
- <detl/>
- </P0041>
- </P0041list>
- <PK020list>
- <PK020>
- <cdid/>
- <cdnm/>
- </PK020>
- </PK020list>
- <PK043list>
- <PK043>
- <cdid/>
- <cdnm/>
- </PK043>
- </PK043list>
- <PK059list>
- <PK059>
- <cdid/>
- <cdnm/>
- </PK059>
- </PK059list>
- <PK062list>
- <PK062>
- <cdid/>
- <cdnm/>
- </PK062>
- </PK062list>
- <PK018list>
- <PK018>
- <cdid/>
- <cdnm/>
- </PK018>
- </PK018list>
- <PK084list>
- <PK084>
- <cdid/>
- <cdnm/>
- </PK084>
- </PK084list>
- <PK225list>
- <PK225>
- <cdid/>
- <cdnm/>
- </PK225>
- </PK225list>
- <P6571list>
- <P6571>
- <cdid/>
- <cdnm/>
- </P6571>
- </P6571list>
- <P0022list>
- <P0022>
- <cdid/>
- <cdnm/>
- </P0022>
- </P0022list>
- <P0032list>
- <P0032>
- <cdid/>
- <cdnm/>
- </P0032>
- </P0032list>
- </PAM>
- </init>
- <temp>
- <insucdlist/>
- </temp>
- <tempchk>
- <specapp>
- <rgstyn/>
- </specapp>
- <specchk>
- <stat/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <choiflag/>
- <ordtype/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <specordyn/>
- <fromdd/>
- <rsrvdd/>
- </specchk>
- </tempchk>
- <temp10>
- <disclist>
- <disccd/>
- </disclist>
- </temp10>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data15" resultref="/root/hidden/h_rcv"/>
- <submission id="TRPMI00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ptbs"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
- <submission id="TRPMI02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data14" resultref="/root/hidden/original/patinfo"/>
- <submission id="TXPMI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/flag/rcv_flag"/>
- <submission id="TXPMI00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data20" resultref="/root/hidden/flag/rcv_flag"/>
- <!-- 신생아산모내역조회 -->
- <submission id="TRPMI00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data16" resultref="/root/hidden/roomcheck"/>
- <submission id="TRPAC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRPMI00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data21" resultref="/root/temp/insucdlist"/>
- <submission id="TRPMI00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data40" resultref="/root/hidden/h_deciprint"/>
- <submission id="TRPMI00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data14" resultref="/root/hidden/d_rcv"/>
- <submission id="TRPMI00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data9" resultref="/root/hidden/check"/>
- <submission id="TXPMI00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data10" resultref="/root/hidden/flag/rcv_flag"/>
- <submission id="TRPMC03802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/discpat" replace="instance" resultref="/root/temp/result"/>
- <!-- <submission id="TRPMI00118" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data11" resultref="/root/hidden/printers"/> -->
- <submission id="TRPMI00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data22" resultref="/root/hidden/h_receipt"/>
- <!-- 20090603, JHP, 등급죽은거 산거 구분 보기 위해서 추가함. TRPMB00303 참조, 기존에 cdid와, cdnm만 있었는데 typecd추가함. (등급콤보에 모두적용)_ 입원등록, 입원예약, 병실배정, 전과전실승인 -->
- <submission id="TRPMI00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data25" resultref="/root/hidden/roomgrdelist"/>
- <submission id="TRPMI00406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data26" replace="instance" resultref="/root/tempchk"/>
- <submission id="TRPMO00120" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/checkjabosasae" resultref="/root/hidden/rcv"/>
- <submission id="TRPMI01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data41" resultref="/root/hidden/rsltflag"/>
- <submission id="TRPMI01203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/autinsuinfo"/>
- <submission id="TRPAO00118" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data29" resultref="/root/temp10"/>
- <submission id="TRPMC01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/handcappat/send" resultref="/root/temp/handcappat"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../pam/ipatmngtweb/js/PMI001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 2009년 03월 20일, JHP
- // 서울성모이전으로 프린터를 2tray와 1tray짜리를 동시에 사용한다. 수납쪽(영수증, 중간계산서)은 1tray, 등록쪽(약정서, 입원카드)은 2tray를 쓰는데
- // 1트레이는 기본이므로 수납쪽은 그냥 둔다. 근데 2트레이는 렉스퍼트 출력시 트레이번호를 셋팅값으로 박아줘야하는데 프린터 정보는 동적으로 가지고 올수 없기때문에
- // 임의의 경로에 txt파일을 만들어 트레이값을 설정하여 저장하여놓고 불러와서 트레이번호를 매겨준다.
- // 이때 해당 파일이 없으면 해당파일을 사용자가 만들어준다.
- //fSetPrinterTray();
-
-
- //20090602 JHP 추가_ 등급을 공통코드로 가져오는데 이는 입원료 수가 매핑과 관련해서 종료된 입원료를 컨트롤 할수 있는 소지가 있기에
- // 실제 수가와 매핑코드를 조회하여 살아있는 입원료 등급 코드를 가져온다.
- // 해당 조회를 실행한다음에 병실등급에 해당하는 콤보박스를 이걸로 바꾼다. 기존은 P0025(/root/init/P0025list/P0025)였다.
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- //var posinstcd = UserInfosS_Array[2]; //소속기관코드
- //var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posinstcd = UserInfosS_Array[6]; //근무지기관코드 2009.04.15
- var posinstnm = UserInfosS_Array[7]; //근무지기관명 2009.04.15
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
- model.setValue("/root/send/data25/sess_posinstcd",posinstcd);
- submit("TRPMI00405");
-
-
- // 로딩창 열기
- var sWindowMsg = "화면 로딩중입니다..";
- callLoadingWindow(sWindowMsg);
-
- //2007.07.26 kshin 추가
- //세션정보
- fGetUserInfosSampling();
- // 20091216 JHP 수가재계산구분(IPHS.calcscorrecalflag) 공통코드(P0027) 추가
- zbcfGetCodeList(new Array("P0002","P0006","P0015","P0016","P0019",
- "P0021","P0363","P0032","P0051","P0148",
- "P0160","M0157","P0313","P0327","P0360",
- "P0363","P0342","P0312","P0027"),
- new Array("/root/init/P0002list", "/root/init/P0006list", "/root/init/P0015list","/root/init/P0016list","/root/init/P0019list",
- "/root/init/P0021list","/root/init/P0363list","/root/init/P0032list","/root/init/P0051list","/root/init/P0148list",
- "/root/init/P0160list","/root/init/M0157list","/root/init/P0313list","/root/init/P0327list","/root/init/P0360list",
- "/root/init/P0363list","/root/init/P0342list","/root/init/P0312list","/root/init/P0027list"));
- // 원무공통코드 조회
- pamfGetCodeList(new Array("P0018", "PK020", "P0041", "PK043", "PK059", "PK062", "PK018", "PK084", "P6571", "P0022", "PK225", "P0032"),
- new Array("/root/init/PAM/P0018list", "/root/init/PAM/PK020list", "/root/init/PAM/P0041list", "/root/init/PAM/PK043list", "/root/init/PAM/PK059list", "/root/init/PAM/PK062list", "/root/init/PAM/PK018list", "/root/init/PAM/PK084list", "/root/init/PAM/P6571list", "/root/init/PAM/P0022list", "/root/init/PAM/PK225list", "/root/init/PAM/P0032list"));
-
- // 개인정보이용동의서 출력을 위한 서식코드 취득
- reqHardCodeInfo("/root/send/reqdata", "/root/init/prncd", "5604");
- reqHardCodeInfo("/root/send/reqdata", "/root/init/atdoctid", "515");
-
- // 2009.08.07 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 시작
- //pamfGetCodeList(new Array("P0041"), new Array("/root/init/PAM/P0041list"));
- var rsrvYN = model.getValue("/root/init/PAM/P0041list/P0041[cdid = 'F01']/cdnm");
- model.setValue("/root/hidden/rsrvyn", rsrvYN);
- // 2009.08.07 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 끝
-
- // 2009.05.13 - 입원약정서, 입원환자카드 프린터명
- var sDeciPrinter = model.getValue("/root/init/PAM/P0018list/P0018[cdid = '1']/cdnm");
- var sCardPrinter = model.getValue("/root/init/PAM/P0018list/P0018[cdid = '2']/cdnm");
- model.setValue("/root/hidden/printers/deci_printer", sDeciPrinter); // 입원약정서
- model.setValue("/root/hidden/printers/card_printer", sCardPrinter); // 입원등록카드
-
- cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddeptcd[orddeptflag = 'D']"
- model.setValue("/root/send/ioflag","I");
- submit("TRPMI00106");
-
- model.setFocus("input17");
-
- cap_brateout.visible = false;
-
- addComboItem("combo32","-","-","above"); // 장애미수 - 설정
-
- model.refresh();
-
- if(model.getValue("/root/hidden/source/pid") != "" && model.getValue("/root/hidden/source/pid") != null) {
-
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2",model.getValue("/root/hidden/source/pid"));
-
-
- fQuery1();
-
- if(datagrid2.rows > 1) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1");
-
- combo6.dispatch("xforms-select");
- }
- } else if (checkOpener() && opener.javascript.getParameter("pid") != "" && opener.javascript.getParameter("pid") != null ) {
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2", opener.javascript.getParameter("pid"));
-
-
- fQuery1();
-
- if(datagrid2.rows > 1) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1");
-
- combo6.dispatch("xforms-select");
- }
-
- }
-
- model.refresh();
-
- // 로딩창 닫기
- removeLoadingWindow();
-
- // 상급병실 파라미터 초기화
- setParameter("SPZHA20101_PARM_PID", "");
- setParameter("SPZHA20101_PARM_INDD", "");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckSpecOrdApp(){
- // if (model.getValue("/root/main/inpt/inpt_specordyn") == "N") {
- // return false;
- // }
- // 선택진료폐지일자 이전의 진료에 대해서만 선택진료신청서 출력 by 조중래 20171227
- if (model.getValue("/root/init/PAM/P0032list/P0032[cdid='150']/cdnm") > model.getValue("/root/main/icdr/icdr_fromdd")) {
- model.makeValue("/root/send/data26/pid", model.getValue("/root/main/ptbs/ptbs_pid")); //환자번호
- model.makeValue("/root/send/data26/instcd", model.getValue("/root/hidden/session/posinstcd")); //기관코드
- model.makeValue("/root/send/data26/indd", model.getValue("/root/main/inpt/inpt_indd")); //입원일자
- model.makeValue("/root/send/data26/orddeptcd", model.getValue("/root/main/inpt/inpt_orddeptcd")); //진료과
- model.makeValue("/root/send/data26/medispclid", model.getValue("/root/main/inpt/inpt_medispclid")); //진료의
- model.makeValue("/root/send/data26/ordtype", model.getValue("/root/main/inpt/inpt_ordtype")); //진료형태 2009/10/13
-
- submit("TRPMI00406");
-
- if (model.getValue("/root/tempchk/specapp/rgstyn") == "N") {
- var sOrddeptcd = instance1.selectSingleNode("/root/hidden/init/orddeptcd[cd='" + model.getValue("/root/main/inpt/inpt_orddeptcd") + "']");
- if (sOrddeptcd == null) {
- var sOrddeptcdMsg = "";
- } else {
- var sOrddeptcdMsg = "[" + sOrddeptcd.nm.nodeValue + "]";
- }
- var sOrddrid = instance1.selectSingleNode("/root/hidden/init/orddrid[cd='" + model.getValue("/root/main/inpt/inpt_medispclid") + "']");
- if (sOrddrid == null) {
- var ssOrddridMsg = "";
- } else {
- var sOrddridMsg = " [" + sOrddrid.nm.nodeValue + "]";
- }
-
- sMsg = sOrddeptcdMsg + sOrddridMsg
-
- if( messageBox(sMsg + " 선택진료 등록이 되어 있지 않습니다. 등록하시겠습니까?", "Q999", "") == 6 ){
-
- /*
- model.makeValue("/root/tempchk/specchk/stat", "");
- model.makeValue("/root/tempchk/specchk/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
- model.makeValue("/root/tempchk/specchk/hngnm", model.getValue("/root/main/ptbs/ptbs_hngnm"));
- model.makeValue("/root/tempchk/specchk/rrgstno1", model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- model.makeValue("/root/tempchk/specchk/rrgstno2", model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- model.makeValue("/root/tempchk/specchk/choiflag", "");
- model.makeValue("/root/tempchk/specchk/ordtype", "I");
- model.makeValue("/root/tempchk/specchk/orddd", model.getValue("/root/main/inpt/inpt_indd"));
- model.makeValue("/root/tempchk/specchk/orddeptcd", model.getValue("/root/main/inpt/inpt_orddeptcd"));
- model.makeValue("/root/tempchk/specchk/orddrid", model.getValue("/root/main/inpt/inpt_medispclid"));
-
-
- if (model.getValue("/root/main/inpt/inpt_specordyn") != "N") {
- model.makeValue("/root/tempchk/specchk/specordyn", "Y");
- } else {
- model.makeValue("/root/tempchk/specchk/specordyn", "N");
- }
-
- model.makeValue("/root/tempchk/specchk/fromdd", model.getValue("/root/main/inpt/inpt_indd"));
- model.makeValue("/root/tempchk/specchk/rsrvdd", "");
-
- modal("SMPMC06500", "1", "0", "0" ,"SMPMC06500", "/root/tempchk/specchk", "/root/main/patappinfo/patappinfo1");
- */
-
- var s_pid = model.getValue("/root/main/ptbs/ptbs_pid");
- var s_ordtype = "I";
- var s_orddd = model.getValue("/root/main/inpt/inpt_indd");
- var s_orddeptcd = model.getValue("/root/main/inpt/inpt_orddeptcd");
- var s_orddrid = model.getValue("/root/main/inpt/inpt_medispclid");
- var s_fromdd = model.getValue("/root/main/inpt/inpt_indd");
- var s_cretno = model.getValue("/root/main/inpt/inpt_cretno");
- var s_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- var s_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var s_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- fCallSpecPopUp(s_pid,s_ordtype,s_orddd,s_orddeptcd,s_orddrid,s_fromdd,s_hngnm,s_rrgstno1,s_rrgstno2,s_cretno);
- return true;
- }
- }
- }
- }
-
-
- // 2009.09.23 zzui - 선택진료 추가 끝
-
- //2007.07.26 kshin 추가
- //세션정보
- function fGetUserInfosSampling()
- {
- var sUserInfosS = getUserInfos();
-
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
-
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- //var posinstcd = UserInfosS_Array[2]; //소속기관코드
- //var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posinstcd = UserInfosS_Array[6]; //근무지기관코드 2009.04.15
- var posinstnm = UserInfosS_Array[7]; //근무지기관명 2009.04.15
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
-
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.makeNode("/root/hidden/session/" + "posdeptcd");
- model.makeNode("/root/hidden/session/" + "posdeptnm")
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- //if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "";
-
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",posinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
- model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
-
- model.refresh();
- }
-
- // PMI001.js 로 이동 주석처리
- /*
- function fInDeciPrintlss(vpid, vindd, vcretno, vmskind, vorddeptcd, vmedispclid, vdeciflag)
- {
-
- model.removeNodeset("/root/hidden/h_deciprint/deciprint");
- model.makeNode("/root/hidden/h_deciprint/deciprint/indd"); //입원일 - 입원일시
- model.makeNode("/root/hidden/h_deciprint/deciprint/inpath"); //입원경로
- //입원구분
- model.makeNode("/root/hidden/h_deciprint/deciprint/roomcd"); //입원병실
- model.makeNode("/root/hidden/h_deciprint/deciprint/orddeptcd"); //진료과
- model.makeNode("/root/hidden/h_deciprint/deciprint/orddrid"); //선택의
- model.makeNode("/root/hidden/h_deciprint/deciprint/specordyn"); //선택의/지정의
- model.makeNode("/root/hidden/h_deciprint/deciprint/pid"); //등록번호
- model.makeNode("/root/hidden/h_deciprint/deciprint/hngnm"); //환자성명
- model.makeNode("/root/hidden/h_deciprint/deciprint/rrgstno"); //주민번호
- model.makeNode("/root/hidden/h_deciprint/deciprint/sex"); //성별1
- model.makeNode("/root/hidden/h_deciprint/deciprint/religncd"); //종교
- model.makeNode("/root/hidden/h_deciprint/deciprint/address"); //주소 = 상위주소 + 하위주소
- model.makeNode("/root/hidden/h_deciprint/deciprint/hometel"); //전화번호
- model.makeNode("/root/hidden/h_deciprint/deciprint/mpphontel"); //휴대폰
- //근무처
- //근무처연락처
- model.makeNode("/root/hidden/h_deciprint/deciprint/insukind"); //보험유형
- model.makeNode("/root/hidden/h_deciprint/deciprint/insucd"); //기관기호
- model.makeNode("/root/hidden/h_deciprint/deciprint/insuno"); //증번호
- model.makeNode("/root/hidden/h_deciprint/deciprint/insdnm"); //세대주(피보험자)
- model.makeNode("/root/hidden/h_deciprint/deciprint/diagcd"); //상병코드
- model.makeNode("/root/hidden/h_deciprint/deciprint/termhngnm"); //상병명
- model.makeNode("/root/hidden/h_deciprint/deciprint/inschedd"); //입원예정일
- model.makeNode("/root/hidden/h_deciprint/deciprint/opschedd"); //수술예정일
- model.makeNode("/root/hidden/h_deciprint/deciprint/indirecdrnm"); //의뢰자
- model.makeNode("/root/hidden/h_deciprint/deciprint/inrsrvacptdt"); //의뢰일시
- model.makeNode("/root/hidden/h_deciprint/deciprint/handicapryn1"); //장애인유무체크
- model.makeNode("/root/hidden/h_deciprint/deciprint/handicapryn2"); //장애인유무체크
- model.makeNode("/root/hidden/h_deciprint/deciprint/inrsrvrem"); //원무참고사항
- model.makeNode("/root/hidden/h_deciprint/deciprint/cnstyn"); //의뢰서제출여부
-
- model.makeValue("/root/send/data17/pid", vpid);
- model.makeValue("/root/send/data17/indd", vindd);
- model.makeValue("/root/send/data17/cretno", vcretno);
- model.makeValue("/root/send/data17/mskind", vmskind);
- model.makeValue("/root/send/data17/orddeptcd", vorddeptcd);
- model.makeValue("/root/send/data17/medispclid", vmedispclid);
- model.makeValue("/root/send/data17/deciflag", vdeciflag);
-
- if (submit("TRPMI00113") == true) {
-
- var indd = model.getValue("/root/hidden/h_deciprint/deciprint/indd");
- if (indd != null && indd != " " && indd != "") {
-
- var s_indd = indd.substr(0,4) + "-" +
- indd.substr(4,2) + "-" +
- indd.substr(6,2);
- model.setValue("/root/hidden/h_deciprint/deciprint/indd",s_indd);
- // model.setValue("/root/hidden/h_deciprint/deciprint/mm",indd.substr(4,2));
- // model.setValue("/root/hidden/h_deciprint/deciprint/dd",indd.substr(6,2));
- var rrgstno = model.getValue("/root/hidden/h_deciprint/deciprint/rrgstno");
- var s_rrgstno = rrgstno.substr(0,6) + "-" + rrgstno.substr(6,7);
-
- model.setValue("/root/hidden/h_deciprint/deciprint/rrgstno",s_rrgstno);
- var sinschedd = model.getValue("/root/hidden/h_deciprint/deciprint/inschedd");
- var sopschedd = model.getValue("/root/hidden/h_deciprint/deciprint/opschedd");
- var sinrsrvacptdt = model.getValue("/root/hidden/h_deciprint/deciprint/inrsrvacptdt");
- var s_inrsrvacptdt = sinrsrvacptdt.substr(0,4) + "/" +
- sinrsrvacptdt.substr(4,2) + "/" +
- sinrsrvacptdt.substr(6,2) + " " +
- sinrsrvacptdt.substr(8,2) + ":" +
- sinrsrvacptdt.substr(10,2);
- model.setValue("/root/hidden/h_deciprint/deciprint/inrsrvacptdt","");
-
- if (sinschedd != null && sinschedd != "" && sinschedd != " ") {
- model.setValue ("/root/hidden/h_deciprint/deciprint/inschedd", sinschedd.substr(0,4) + "년" + " " + sinschedd.substr(4,2) + "월" + " " + sinschedd.substr(6.2) + "일");
- }
- if (sopschedd != null && sopschedd != "" && sopschedd != " ") {
- model.setValue ("/root/hidden/h_deciprint/deciprint/opschedd",sopschedd.substr(0,4) + "년" + " " + sopschedd.substr(4,2) + "월" + " " + sopschedd.substr(6.2) + "일");
- }
- if (sinrsrvacptdt != null && sinrsrvacptdt != "" && sinrsrvacptdt != " ") {
- model.setValue("/root/hidden/h_deciprint/deciprint/inrsrvacptdt",s_inrsrvacptdt);
- }
-
- // 2009.08.05 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 시작
- var rsrvYn = model.getValue("/root/hidden/rsrvyn");
- if (rsrvYn == 'N'){
- model.setValue("/root/hidden/h_deciprint/deciprint/inrsrvrem","");
- model.setValue("/root/hidden/h_deciprint/deciprint/diagcd","");
- model.setValue("/root/hidden/h_deciprint/deciprint/termhngnm","");
- }
- // 2009.08.05 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 끝
- /*
- var sPrinter;
- var trayno;
-
- // 2009.06.19 - local에 설정된 파일을 우선시 한다.
- // print1:입원약정서, print2:입원환자카드, print3:선택신청
- var printInfo = pmifGetPrintSetting("print1");
- if (printInfo.length == 2) {
- sPrinter = printInfo[0];
- trayno = printInfo[1];
- } else {
- // 2008.09.21 입원약정서 출력용 프린터 이름 조회 - 최병진
- sPrinter = model.getValue("/root/hidden/printers/deci_printer");
- if (isNull(sPrinter)) {
- sPrinter = "true";
- }
- // 2009년 03월 20일, JHP, 트레이정보를 받아서 넣는다.
- trayno = model.getValue("/root/hidden/pam/printer/value");
- }
-
- exeReportPreview("RPPMI01200", "XMLSTR" , "" , "" , sPrinter , "", "", "", "", "true", "", "",trayno);
-
-
- //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 입원환자팔찌 프린터
- fGetPrintName();
- var print_name = getGlobalVariable("SPPAO00100_P0045_2_nm","p");
- var print_tray = getGlobalVariable("SPPAO00100_P0045_2_tray","p");
- //호출끝
- //alert("입원팔찌 프린터명: " + print_name + " 트레이번호: " + print_tray);
- //입원환자팔찌 프린터
- if(print_name != "false"){
- exeReportPreview("RPPMI01200", "XMLSTR" , "" , "" , print_name , "", "", "", "", "true", "", "",print_tray);
- }
-
- } else {
- var sOrdType = model.getValue("/root/main/inpt/inpt_ordtype");
- if (sOrdType == "E" || sOrdType == "D") {
- messageBox("응급/DSC/CHEMO 환자입니다. [전과전실승인]화면에서 출력하십시오.!", "I");
- }
- }
- }
- }
- */
-
- //병실 성별 체크 2007.11.21 신준영
- function fRoomSexCheck(inpt_wardcd, inpt_roomcd, ptbs_sex, inpt_sex, flag, rrgstno)
- {
- if (fRoomSexGubunCheck(rrgstno)) {
- return true;
- }
-
- if (flag == 1) {
- if (ptbs_sex != inpt_sex) {
- if (inpt_sex != "A" && inpt_sex != "" && inpt_sex != " " && inpt_sex != null) {
- messageBox("환자 성별과 병실정보 성별이 다릅니다. 다른 병실을","C002");
- model.setValue("/root/main/icdr/icdr_roomcd","");
- model.setValue("/root/main/icdr/icdr_roomgrdecd","");
- model.setValue("/root/main/icdr/icdr_roomtypecd","");
- model.refresh();
- return false;
- }
- }
- //분만실("2100300000")일 경우 남자 체크
- if (inpt_wardcd == "2100300000") {
- if (ptbs_sex == "M") {
- messageBox("성별이 남자입니다. 다른병동을","C002");
- model.setValue("/root/main/icdr/icdr_wardcd",model.getValue("/root/hidden/original/inpt/inpt_wardcd"));
- model.setValue("/root/main/icdr/icdr_roomcd","");
- model.setValue("/root/main/icdr/icdr_roomgrdecd","");
- model.setValue("/root/main/icdr/icdr_roomtypecd","");
- model.refresh();
- return false;
- }
- }
- } else if (flag == 2) {
- if (ptbs_sex != inpt_sex) {
- if (inpt_sex != "A" && inpt_sex != "" && inpt_sex != " " && inpt_sex != null) {
- messageBox("환자 성별과 병실정보 성별이 다릅니다. 다른 병실을","C002");
- model.setValue("/root/main/icdr/icdr_roomcd2","");
- model.setValue("/root/main/icdr/icdr_roomgrdecd2","");
- model.setValue("/root/main/icdr/icdr_roomtypecd2","");
- model.refresh();
- return false;
- }
- }
- //분만실("2100300000")일 경우 남자 체크
- if (inpt_wardcd == "2100300000") {
- if (ptbs_sex == "M") {
- messageBox("성별이 남자입니다. 다른병동을","C002");
- model.setValue("/root/main/icdr/icdr_wardcd2",model.getValue("/root/hidden/original/inpt/inpt_wardcd2"));
- model.setValue("/root/main/icdr/icdr_roomcd2","");
- model.setValue("/root/main/icdr/icdr_roomgrdecd2","");
- model.setValue("/root/main/icdr/icdr_roomtypecd2","");
- model.refresh();
- return false;
- }
- }
- }
- }
-
- function fSuppkindSet()
- {
- //2007.10.18 건강보험,의료급여2종일때 6세미만 유형보조 체크
- var ptbs_age = model.getValue("/root/main/ptbs/ptbs_age");
- var iphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- if (iphs_insukind == "11" || iphs_insukind == "22") {
- // if (ptbs_age == null || ptbs_age == " " || ptbs_age == "") {
- // alert("1");
- // model.setValue("/root/main/iphs/iphs_suppkind","00");
- // } else
- if ( ptbs_age >= 0 && ptbs_age < 6) {
- // alert("2");
- model.setValue("/root/main/iphs/iphs_suppkind","08");
- } //else {
- // alert("3");
- // model.setValue("/root/main/iphs/iphs_suppkind","00");
- }
- // } else {
- // alert("4");
- // model.setValue("/root/main/iphs/iphs_suppkind","00");
- // }
- // 입원요율에 따른 보조유형 재설정
- // 외래요율
- if (model.getValue("/root/main/inpt/inpt_brateflag") != null && model.getValue("/root/main/inpt/inpt_brateflag") == "O") {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/hidden/init/suppkind[up = '"+ iphs_insukind +"' and (io = 'A' or io = 'O')]";
- // 입원요율
- } else {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/hidden/init/suppkind[up = '"+ iphs_insukind +"' and (io = 'A' or io = 'I')]";
- }
- cmb_suppkind.refresh();
-
- }
-
- //2007.12.17 보험자명칭 조회
- function fInsunmRef(vInsucd,vInsukind) {
-
- model.resetInstanceNode("/root/send/data21");
- model.makeValue("/root/send/data21/srchcond", "1");
- model.makeValue("/root/send/data21/srchcnts", vInsucd);
- model.makeValue("/root/send/data21/insuflag", vInsukind.substr(0,1));
-
- if (submit("TRPMI00114")) {
- if (model.getValue("/root/temp/insucdlist/incd/insucdnm") != "") {
- var vinsucdnm = model.getValue("/root/temp/insucdlist/incd/insucdnm");
- return vinsucdnm;
- } else {
- return "-";
- }
- }
- }
-
- //병상수 체크 2007.11.21 신준영
- function fRoomBedCntCheck(flag)
- {
- if (flag == 1) {
- var icdr_roomcd = model.getValue("/root/main/icdr/icdr_roomcd");
-
- model.setValue("/root/send/data16/roomcd",icdr_roomcd);
- submit("TRPMI00111");
- var rm_chk = model.getValue("/root/hidden/roomcheck/rsltroom/rm_chk");
-
- if (rm_chk < 1 && icdr_roomcd != "ERBD") {
- messageBox("빈병상이 아닙니다. 다른 병실을","C002");
- return false;
- } else {
- if(icdr_roomcd == "ERBD") {
- model.setValue("/root/main/icdr/icdr_wardcd",2280200000);
- model.setValue("/root/main/icdr/icdr_roomcd",icdr_roomcd);
- model.setValue("/root/main/icdr/icdr_roomgrdecd","S1401");
- model.setValue("/root/main/icdr/icdr_roomtypecd","S14");
- }
- return true;
- }
- } else if (flag == 2) {
- var icdr_roomcd = model.getValue("/root/main/icdr/icdr_roomcd2");
-
- model.setValue("/root/send/data16/roomcd",icdr_roomcd);
- submit("TRPMI00111");
- var rm_chk = model.getValue("/root/hidden/roomcheck/rsltroom/rm_chk");
-
- if (rm_chk < 1) {
- messageBox("빈병상이 아닙니다. 다른 병실을","C002");
- return false;
- } else {
- return true;
- }
- }
- }
- function fInsdrelaSet()
- {
- //보험유형이 건강보험/의료보험/일반 일경우에는 피보험자관계 체크
- var iphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- // alert(ptin_insukind);
-
- if (iphs_insukind == gsBoHeom || iphs_insukind == gsBoHo1 || iphs_insukind == gsBoHo2 || iphs_insukind == gsIlBan) {
- model.setValue("/root/main/ptin/ptin_insuno","-");
- model.setValue("/root/main/ptin/ptin_insdrela","1");
- model.setValue("/root/main/ptin/ptin_insdnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
- model.setValue("/root/main/ptin/ptin_insdrrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- model.setValue("/root/main/ptin/ptin_insdrrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- } else {
- // model.setValue("/root/main/iphs/iphs_suppkind","00");
- model.setValue("/root/main/iphs/iphs_suppkindresn","-");
- // model.setValue("/root/main/ptin/ptin_insucd","-");
- model.setValue("/root/main/ptin/ptin_insdrela","");
- // model.setValue("/root/main/ptin/ptin_insucdnm","-");
- model.setValue("/root/main/ptin/ptin_insuno","-");
- model.setValue("/root/main/ptin/ptin_insdnm","-");
- model.setValue("/root/main/ptin/ptin_insdrrgstno1","-");
- model.setValue("/root/main/ptin/ptin_insdrrgstno2","-");
- // model.setValue("/root/main/ptin/ptin_insdrela","-");
- }
- }
-
-
- //2010-11-09 이동식 수정
- //산재 보조유형을 조회조건으로 추가
- function fGetPTIN(vpid,vinsukind,vsuppkind,vinsucd,vappdd) {
- fGetPTIN(vpid,vinsukind,vsuppkind,vinsucd,vappdd, '');
- }
-
-
- //2007.07.26 kshin 추가
- function fGetPTIN(vpid,vinsukind,vsuppkind,vinsucd,vappdd, vsuppkind)
- {
- var iphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- //등록번호,보험유형,보험자코드 세팅
- model.setValue("/root/send/data15/pid", vpid);
- model.setValue("/root/send/data15/insukind", vinsukind);
- model.setValue("/root/send/data15/insucd", vinsucd);
- model.setValue("/root/send/data15/appdd", vappdd);
- model.setValue("/root/send/data15/instcd", model.getValue("/root/hidden/session/posinstcd"));
- model.setValue("/root/send/data15/checkflag", "1");
- model.setValue("/root/send/data15/suppkind", vsuppkind);
-
- // /root/hidden/h_rcv/h_ptin/ptin 해당 노드에 결과값 받음
- submit("TRPMI00109");
-
- //조회하기전에 clear
- //model.resetInstanceNode("/root/main/outrgst/ptin");
- //model.setValue("/root/main/outrgst/ptin/ptin_insukind",vinsukind);
-
- //조회된 경우, 화면의 보험정보에 세팅
- var ptin_pid = model.getValue("/root/hidden/h_rcv/ptin/ptin_pid");
- if (ptin_pid != null && ptin_pid != "" && ptin_pid != " " ) {
- copyNodeType("/root/main/ptin","/root/hidden/h_rcv/ptin","replace");
- copyNodeType("/root/hidden/original/ptin","/root/hidden/h_rcv/ptin","replace");
- fSuppkindSet();
- } else {
- //copyNodesetType("/root/hidden/h_rcv/ptin","/root/hidden/temp/ptin","replace");
- model.setValue("/root/main/ptin/ptin_pid",vpid);
- model.setValue("/root/main/ptin/ptin_insukind",model.getValue("/root/send/data15/insukind"));
- fSuppkindSet();
- model.setValue("/root/main/iphs/iphs_suppkindresn","-");
- model.setValue("/root/main/ptin/ptin_insucdnm","-");
- if (vinsukind == gsBoHeom){
- model.setValue("/root/main/ptin/ptin_insucd","0015");
- model.setValue("/root/main/ptin/ptin_insucdnm", fInsunmRef( model.getValue("/root/main/ptin/ptin_insucd"),model.getValue("/root/main/ptin/ptin_insukind")));
- } else {
- model.setValue("/root/main/ptin/ptin_insucd","-");
- model.setValue("/root/main/ptin/ptin_insucdnm","-");
- }
-
- fInsdrelaSet();
- model.setValue("/root/main/ptin/ptin_fromdd",getCurrentDate());
- model.setValue("/root/main/ptin/ptin_todd","99991231");
- model.refresh();
-
- }
- //조회된 경우, 화면의 중증정보에 세팅
- var srdg_pid = model.getValue("/root/hidden/h_rcv/srdg/srdg_pid");
- if (srdg_pid != null && srdg_pid != "" && srdg_pid != " " ) {
- copyNodeType("/root/main/srdg","/root/hidden/h_rcv/srdg","replace");
- copyNodeType("/root/hidden/original/srdg","/root/hidden/h_rcv/srdg","replace");
- } else {
- //copyNodesetType("/root/hidden/h_rcv/srdg","/root/hidden/temp/srdg","replace");
- }
-
- // 20091215 JHP 수정추가 희귀정보보여주기 변경요청번호 9553 세팅
- // 20091215 JHP 수정추가 희귀질환번호가 있을때 보여주기, 중증번호 동시존재시 해당 기준에 따라서 보여주기
- var rooa_pid = model.getValue("/root/hidden/h_rcv/rooa/rooa/rooa_pid");
- if (rooa_pid != null && rooa_pid != "" && rooa_pid != " " ) {
- copyNodeType("/root/main/rooa","/root/hidden/h_rcv/rooa/rooa","replace");
- copyNodeType("/root/hidden/original/rooa","/root/hidden/h_rcv/rooa/rooa","replace");
- } else {
- }
-
- //조회된 경우, 화면의 자보정보 세팅
- var aipm_pid = model.getValue("/root/hidden/h_rcv/aipm/aipm_pid");
- if (aipm_pid != null && aipm_pid != "" && aipm_pid != " " ) {
- copyNodeType("/root/main/aipm","/root/hidden/h_rcv/aipm","replace");
- //여기부터
- model.setValue("/root/main/iphs/iphs_suppkind",model.getValue("/root/main/aipm/aipm_suppkind"));
- copyNodeType("/root/hidden/original/aipm","/root/hidden/h_rcv/aipm","replace");
- } else {
- //copyNodesetType("/root/hidden/h_rcv/aipm","/root/hidden/temp/aipm","replace");
- if (iphs_insukind == gsJaboKind){
-
- messageBox("자보환자등록 자료가 존재하지않아 변경","E001");
-
- /* 2008.09.25 - 전액본인부담으로 넣을 수 있도록 주석처리
- model.setValue("/root/main/iphs/iphs_insukind",model.getValue("/root/main/h_iphs/iphs/iphs_insukind"));
-
- var siphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- if (siphs_insukind == gsBoHeom || siphs_insukind == gsBoHo1 || siphs_insukind == gsBoHo2 ||
- siphs_insukind == gsIlBan || siphs_insukind == gsForIn || siphs_insukind == gsImSang) {
- copyNodeType("/root/main/ptin","/root/hidden/original/ptin","replace");
- }
-
- fInsukindTabSetting();
- */
- }
- }
-
- //조회된 경우, 화면의 산재정보 세팅
- var icpm_pid = model.getValue("/root/hidden/h_rcv/icpm/icpm_pid");
- if (icpm_pid != null && icpm_pid != "" && icpm_pid != " " ) {
- copyNodeType("/root/main/icpm","/root/hidden/h_rcv/icpm","replace");
- copyNodeType("/root/hidden/original/icpm","/root/hidden/h_rcv/icpm","replace");
- } else {
- //copyNodesetType("/root/hidden/h_rcv/icpm","/root/hidden/temp/icpm","replace");
- if (iphs_insukind == gsSanJae || iphs_insukind == gsGongSang){
- // 2009.06.10 - 전액본인부담으로 변경할 수 있도록 메시지만 출력
- // messageBox("산재 또는 공상환자등록 자료가 존재하지않아 변경","E001");
- // model.setValue("/root/main/iphs/iphs_insukind",model.getValue("/root/main/h_iphs/iphs/iphs_insukind"));
-
- /*
- var siphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- if (siphs_insukind == gsBoHeom || siphs_insukind == gsBoHo1 || siphs_insukind == gsBoHo2 ||
- siphs_insukind == gsIlBan || siphs_insukind == gsForIn || siphs_insukind == gsImSang) {
- copyNodeType("/root/main/ptin","/root/hidden/original/ptin","replace");
- }
- */
-
- messageBox("산재등록정보가 존재하지 않습니다!","I");
-
- fInsukindTabSetting();
- }
- }
-
- model.refresh();
- }
-
- function fInitSetting(){
- combo2.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid";
- combo2.refresh();
- }
-
- // 진료과,병동,병실의 콤보값을 셋팅한다.
- function fComboNodeSet(arg1){
- if (arg1 == 0){
- var sorddeptcd = model.getValue("/root/main/icdr/icdr_orddeptcd");
- combo2.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[dp = '" + sorddeptcd + "' ]";
- combo2.refresh();
- combo16.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[dp = '" + sorddeptcd + "' ]";
- combo16.refresh();
-
- var swardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- if (swardcd == null || swardcd == " " || swardcd == "") {
- combo3.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd";
- combo3.refresh();
- combo22.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd";
- combo22.refresh();
- } else {
- combo3.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd[wd = '" + swardcd + "' ]";
- combo3.refresh();
- combo22.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[wd = '" + swardcd + "' ]";
- combo22.refresh();
- }
-
- var swardcd2 = model.getValue("/root/main/icdr/icdr_wardcd2");
- if (swardcd2 == null || swardcd2 == " " || swardcd2 == "" || swardcd2 == "-") {
- combo12.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd";
- combo12.refresh();
- combo23.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd";
- combo23.refresh();
- } else {
- combo12.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd[wd = '" + swardcd2 + "' ]";
- combo12.refresh();
- combo23.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[wd = '" + swardcd2 + "' ]";
- combo23.refresh();
- }
-
- var iinsukind = model.getValue("/root/main/iphs/iphs_insukind");
-
- // 입원요율에 따른 보조유형 재설정
- // 외래요율
- if (model.getValue("/root/main/inpt/inpt_brateflag") != null && model.getValue("/root/main/inpt/inpt_brateflag") == "O") {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/hidden/init/suppkind[up = '" + iinsukind + "' and (io = 'A' or io = 'O')]";
- // 입원요율
- } else {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/hidden/init/suppkind[up = '" + iinsukind + "' and (io = 'A' or io = 'I')]";
- }
- cmb_suppkind.refresh();
- }else if (arg1 == 1){
- var sorddeptcd = model.getValue("/root/main/icdr/icdr_orddeptcd");
- //2010-12-16 이동식 수정 - jobposcd 사용 부분 삭제
- // combo2.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[dp = '" + sorddeptcd + "' and (jobposcd = 1782 or jobposcd = 1784 or jobposcd = 1786 or jobposcd = 1847 or jobposcd = 1848 or jobposcd = 1849 or jobposcd = 0545 or jobposcd = 1845 or jobposcd = 1781)]";
- // combo2.refresh();
- // combo16.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[dp = '" + sorddeptcd + "' and (jobposcd != 1782 and jobposcd != 1784 and jobposcd != 1786 and jobposcd != 1847 and jobposcd != 1848 and jobposcd != 1849 and jobposcd != 0545 and jobposcd != 1845 or jobposcd != 1781)]";
- // combo16.refresh();
- combo2.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[dp = '" + sorddeptcd + "' and jobposcd = 1782 ]";
- combo2.refresh();
- combo16.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid[dp = '" + sorddeptcd + "' ]";
- combo16.refresh();
- }else if (arg1 == 2){
- var swardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- if (swardcd == null || swardcd == " " || swardcd == "") {
- combo3.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd"
- //model.resetInstanceNode("/root/main/icdr/icdr_roomcd");
- combo3.refresh();
- combo22.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd";
- combo22.refresh();
- } else {
- combo3.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd[wd = '" + swardcd + "' ]";
- //model.resetInstanceNode("/root/main/icdr/icdr_roomcd");
- combo3.refresh();
- combo22.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[wd = '" + swardcd + "' ]";
- combo22.refresh();
- }
- } else if (arg1 == 3){
- var swardcd2 = model.getValue("/root/main/icdr/icdr_wardcd2");
- if (swardcd2 == null || swardcd2 == " " || swardcd2 == "" || swardcd2 == "-") {
- combo12.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd"
- //model.resetInstanceNode("/root/main/icdr/icdr_roomcd2");
- combo12.refresh();
- combo23.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd";
- combo23.refresh();
- } else {
- combo12.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomcd[wd = '" + swardcd2 + "' ]";
- //model.resetInstanceNode("/root/main/icdr/icdr_roomcd2");
- combo12.refresh();
- combo23.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[wd = '" + swardcd2 + "' ]";
- combo23.refresh();
- }
- } else if (arg1 == 4){
- var iinsukind = model.getValue("/root/main/iphs/iphs_insukind");
-
- // 입원요율에 따른 보조유형 재설정
- // 외래요율
- if (model.getValue("/root/main/inpt/inpt_brateflag") != null && model.getValue("/root/main/inpt/inpt_brateflag") == "O") {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/hidden/init/suppkind[up = '" + iinsukind + "' and (io = 'A' or io = 'O')]";
- // 입원요율
- } else {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/hidden/init/suppkind[up = '" + iinsukind + "' and (io = 'A' or io = 'I')]";
- }
- cmb_suppkind.refresh();
- }else if (arg1 == 5){ // 특진여부 셋팅
- // 2009.02.23 - 진료과코드도 조건으로 추가
- var sOrddeptcd = model.getValue("/root/main/icdr/icdr_orddeptcd");
- var sMedispclid = model.getValue("/root/main/icdr/icdr_medispclid");
-
- //var sspecordyn = model.getValue("/root/hidden/init/orddrid[cd = '" + sMedispclid + "' ]/sp")
- var sSpecOrdYN = model.getValue("/root/hidden/init/orddrid[dp='"+ sOrddeptcd +"' and cd='" + sMedispclid + "']/sp");
-
- if (sSpecOrdYN == "Y") {
- model.setValue("/root/main/icdr/icdr_specordyn", "Y");
- } else {
- model.setValue("/root/main/icdr/icdr_specordyn", "N");
- }
-
- //if (sspecordyn == null || sspecordyn == ""){
- // sspecordyn = "N";
- //}
- //model.setValue("/root/main/icdr/icdr_specordyn", sspecordyn);
-
- radio7.refresh();
- } else if (arg1 == 6){ // 형태에 따른 병실 등급
- var sroomtypecd = model.getValue("/root/main/icdr/icdr_roomtypecd");
- if (sroomtypecd == null || sroomtypecd == " " || sroomtypecd == "") {
- //combo7.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd"
- combo7.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde";
- combo7.refresh();
- } else {
- //combo7.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd[typecd = '" + sroomtypecd + "' ]";
- combo7.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[typecd = '" + sroomtypecd + "' ]";
- combo7.refresh();
- }
- } else if (arg1 == 7){ // 형태2에 따른 병실 등급2
- var sroomtypecd = model.getValue("/root/main/icdr/icdr_roomtypecd2");
- if (sroomtypecd == null || sroomtypecd == " " || sroomtypecd == "") {
- //combo9.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd"
- combo9.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde"
- combo9.refresh();
- } else {
- //combo9.choices.itemset.attribute("nodeset") = "/root/hidden/init/roomgrdecd[typecd = '" + sroomtypecd + "' ]";
- combo9.choices.itemset.attribute("nodeset") = "/root/hidden/roomgrdelist/roomgrde[typecd = '" + sroomtypecd + "' ]";
- combo9.refresh();
- }
- }
- }
-
- // 부유형은 병실변경하지 못하도록 기능제한 ( 일단 보류 )
- function fChngRoomSet()
- {
- var sinpt_mskind = model.getValue("/root/main/inpt/inpt_mskind");
- if (sinpt_mskind == 'M'){
- combo3.disabled = false;
- combo5.disabled = false;
- combo7.disabled = false;
- combo8.disabled = false;
- combo9.disabled = false;
- combo10.disabled = false;
- combo12.disabled = false;
- combo13.disabled = false;
- button19.disabled = false;
- button20.disabled = false;
-
- } else if (sinpt_mskind == 'S'){
- combo3.disabled = true;
- combo5.disabled = true;
- combo7.disabled = true;
- combo8.disabled = true;
- combo9.disabled = true;
- combo10.disabled = true;
- combo12.disabled = true;
- combo13.disabled = true;
- button19.disabled = true;
- button20.disabled = true;
- }
-
- }
-
- var is_prcs = '0'; // 인적사항의 조회가능여부 flag
- var curruntrow = 0;
-
- // 환자각종 정보 조회 : 인적사항, 보험정보, 감면정보, 재원유형, 재원이력, 신생아/산모내역, 입금내역 등
- function fQuery(curruntrow){
- if (model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_pid") =="" ||model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_pid") == null){
- return;
- }
-
- //2008.01.07 인스턴스 수정
- // model.setValue("/root/send/mode",'0');
- // model.setValue("/root/send/prestdd",getCurrentDate());
- // model.setValue("/root/send/pid",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_pid"));
- // model.setValue("/root/send/indd",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_indd"));
- // model.setValue("/root/send/cretno",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_cretno"));
- // model.setValue("/root/send/mskind",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_mskind"));
- // model.setValue("/root/send/insukind",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind"));
- model.setValue("/root/send/data1/mode",'0');
- model.setValue("/root/send/data1/prestdd",getCurrentDate());
- model.setValue("/root/send/data1/pid",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_pid"));
- model.setValue("/root/send/data1/indd",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_indd"));
- model.setValue("/root/send/data1/cretno",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_cretno"));
- model.setValue("/root/send/data1/mskind",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_mskind"));
- model.setValue("/root/send/data1/insukind",model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind"));
- // 기존의 값은 Reset해야함. ( 값이 없을경우 기존의 값이 현재의 값처럼 오인될수 있음 )
- model.resetInstanceNode("/root/main/ptbs");
- model.resetInstanceNode("/root/main/ptin");
- model.resetInstanceNode("/root/main/inpt");
- model.resetInstanceNode("/root/main/iphs");
- model.resetInstanceNode("/root/main/icdr");
- model.resetInstanceNode("/root/main/nbmo");
- model.resetInstanceNode("/root/main/admi");
- model.resetInstanceNode("/root/main/h_inpt/inpt");
- model.resetInstanceNode("/root/main/h_iphs/iphs");
- model.resetInstanceNode("/root/main/h_icdr/icdr");
- model.resetInstanceNode("/root/hidden/flag/icdr_app_flag");
- model.resetInstanceNode("/root/main/srdg");
- model.resetInstanceNode("/root/hidden/etc/disccd");
- //model.refresh();
-
- //기존의 노드를 삭제하지 않으면 현재의 노드가 추가되는 경우가 있음
- model.removeNodeset("/root/main/ptbs");
- model.removeNodeset("/root/main/ptin");
- model.removeNodeset("/root/main/aipm");
- model.removeNodeset("/root/main/icpm");
-
- model.removeNodeset("/root/main/inpt");
- model.removeNodeset("/root/main/iphs");
- model.removeNodeset("/root/main/icdr");
- // model.removeNodeset("/root/main/admi");
- model.removeNodeset("/root/main/h_inpt/inpt");
- model.removeNodeset("/root/main/h_iphs/iphs");
- model.removeNodeset("/root/main/h_icdr/icdr");
- model.removeNodeset("/root/hidden/original/ptbs");
- model.removeNodeset("/root/hidden/original/ptin");
- model.removeNodeset("/root/hidden/original/iphs");
- model.removeNodeset("/root/hidden/original/icdr");
- model.removeNodeset("/root/hidden/original/aipm");
- model.removeNodeset("/root/hidden/original/icpm");
- model.removeNodeset("/root/hidden/original/adrv");
- //model.refresh();
-
- model.resetInstanceNode("/root/hidden/rcv");
- model.resetInstanceNode("/root/hidden/d_rcv");
-
- if (submit("TRPMI00102","false") == true){ // 환자기본정보를 조회한다. (환자인적, 보험내역, 할인정보)
- copyNodeType("/root/main", "/root/hidden/rcv", "after");
- copyNodeType("/root/hidden/original", "/root/hidden/rcv", "after");
-
- // 보험, 감면정보는 없다가 신규로 등록하는 사람이 있으므로 인스턴스 노드를 삭제하면 신규 등록시에는 인스턴스 노드가 없어 등록할수 없다.
- // 그럼므로 신규일경우 생성한다. original쪽에도 같이 복사해야 저장시 변경여부를 체크해서 submit을 보낼수 있다.
- if( document.models( 0 ).instances( 0 ).selectSingleNode("/root/main/ptin") == null ){
- model.makeNode("/root/main/ptin");
- model.makeNode("/root/hidden/original/ptin");
- copyNodeType("/root/main/ptin", "/root/hidden/temp/ptin", "after");
- copyNodeType("/root/hidden/original/ptin", "/root/hidden/temp/ptin", "after");
- }
-
- // 2008.10.19 - 재원변경관리 이기 때문에 할인코드가 설정되어 있을 때만 보여준다.
- var sIphsDisccd = model.getValue("/root/main/iphs/iphs_disccd");
- if (!isNull(sIphsDisccd) && sIphsDisccd != "-") {
- // 2008.10.09 최종내원이력 중 감면정보가 있으면 자동으로 감면코드 셋팅
- /*
- var sDisccd = model.getValue("/root/main/disc/disc_disccd");
- var sRareobstflag = model.getValue("/root/main/disc/disc_rareobstflag");
-
- if (!isNull(sDisccd)) {
- model.setValue("/root/main/iphs/iphs_disccd", sDisccd);
- }
- // 2008.10.09 최종내원이력 중 희귀난치대상여부가 있으면 자동으로 셋팅
- if (!isNull(sRareobstflag)) {
- model.setValue("/root/main/iphs/iphs_rareobstflag", sRareobstflag);
- }
- */
- model.setValue("/root/main/iphs/iphs_emplnm", model.getValue("/root/main/disc/disc_emplname"));
- model.setValue("/root/main/iphs/iphs_famyrelnm", model.getValue("/root/main/disc/disc_famyrelnm"));
- model.setValue("/root/main/iphs/iphs_preststatnm", model.getValue("/root/main/disc/disc_preststatnm"));
- model.setValue("/root/main/iphs/iphs_remark", model.getValue("/root/main/disc/disc_remark"));
- }
- }
-
- submit("TRPMI00402","false"); // 재원이력을 조회한다. (재원유형, 재원이력)
- //submit("TRPMI00402"); // 재원이력을 조회한다. (재원유형, 재원이력)
- //copyNodeType("/root/main", "/root/hidden/rcv", "after");
- copyNodeType("/root/hidden/original", "/root/hidden/rcv", "after");
-
- //2008.01.07 신생아 산모내역 조회 수정 - 환자번호가 신생아일경우 산모내역을 디스플레이,환자번호가 산모일경우 신생아 내역을 디스플레이
- model.setValue("/root/send/data14/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- submit("TRPMI00404","false");
-
- // model.setValue("/root/send/data14/srchcond","1");
- // model.setValue("/root/send/data14/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- // submit("TRPMI02301","false"); // 신생아산모내역을 조회한다.
-
- submit("TRPMI00403","false"); // 입금내역을 조회한다. (입금내역)
- var admi_node = instance1.selectSingleNode("/root/hidden/rcv/admi");
- if (admi_node != null) {
- copyNodesetType("/root/main/admi","/root/hidden/rcv/admi","replace");
- }
- // copyNodeType("/root/hidden/original", "/root/hidden/rcv", "after");
-
- //2008.01.14 장애,중증정보 체크
- model.setValue("/root/send/data9/mode","11");
- model.setValue("/root/send/data9/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/send/data9/indd", model.getValue("/root/hidden/original/inpt/inpt_indd"));
- model.setValue("/root/send/data9/insukind", model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind"));
- model.setValue("/root/send/data9/orddeptcd", model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_orddeptcd"));
-
- submit("TRPMI00107");
-
- model.resetInstanceNode("/root/send/data9");
- var srdg_node = instance1.selectSingleNode("/root/hidden/check/srdg");
- if (srdg_node != null) {
- copyNodeType("/root/main/srdg","/root/hidden/check/srdg","replace");
- }
-
- // 20091215 JHP 수정추가 희귀정보보여주기 변경요청번호 9553 세팅
- // 20091215 JHP 수정추가 희귀질환번호가 있을때 보여주기, 중증번호 동시존재시 해당 기준에 따라서 보여주기
- var rooa_node = instance1.selectSingleNode("/root/hidden/check/rooa");
- if (rooa_node != null) {
- copyNodeType("/root/main/rooa","/root/hidden/check/rooa","replace");
- }
-
- // 20091215 JHP 재원변경화면 희귀질환번호 보여주기 추가 변경요청번호 9553 중증, 희귀 동시존재시 디스플레이변경
- // 20091215 JHP 수정추가 희귀질환번호가 있을때 보여주기, 중증번호 동시존재시 해당 기준에 따라서 보여주기
- fItemRareMsg();
-
- // 재원이력변경에 쓸 인스턴스 생성 및 복사
- model.makeNode("/root/main/inpt"); // main에 해당노드가 없으면 복사가 안되므로 추가한다.
- model.makeNode("/root/main/iphs");
- model.makeNode("/root/main/icdr");
- model.makeNode("/root/main/h_inpt/inpt"); // "h_" 노드는 사용자가 데이터를 변경하였을때 변경된 사항을 비교하기 위해 사용한다.
- model.makeNode("/root/main/h_iphs/iphs"); // "h_" 노드는 original쪽에 여러개의 row가 있을수 있는 경우 선택한 한건만 "h_" 노드로 복사해서 변경사항을 비교하고 나머지는 original과 비교한다.
- model.makeNode("/root/main/h_icdr/icdr");
- copyNodeType("/root/main/inpt","/root/hidden/original/inpt["+curruntrow+"]","after");
- copyNodeType("/root/main/iphs","/root/hidden/original/iphs[1]","after"); // 우선 재원내역의 첫번째 row를 적용한다.
- copyNodeType("/root/main/icdr","/root/hidden/original/icdr[icdr_lastyn = 'Y']" ,"after"); // 2008.12.20 신청정보를 제외한 것중 최종내역 선택 // 우선 재원이력의 첫번째 row를 적용한다.
- copyNodeType("/root/main/h_inpt/inpt","/root/hidden/original/inpt["+curruntrow+"]","after");
- copyNodeType("/root/main/h_iphs/iphs","/root/hidden/original/iphs[1]","after"); // 우선 재원내역의 첫번째 row를 적용한다.
- copyNodeType("/root/main/h_icdr/icdr","/root/hidden/original/icdr[icdr_lastyn = 'Y']","after"); // 2008.12.20 신청정보를 제외한 것중 최종내역 선택 // 우선 재원이력의 첫번째 row를 적용한다.
-
- // 전과전실이력의 선택한내용이 신청내용일경우 "신청승인여부"를 체크한다.
- if (model.getValue("/root/main/icdr/icdr_acptflagcd") == '1') {
- bool4.visible = true;
- caption44.visible = true;
- model.setValue("/root/hidden/flag/icdr_app_flag",'Y');
- } else if (model.getValue("/root/main/icdr/icdr_acptflagcd") != '1') {
- bool4.visible = false;
- caption44.visible = false;
- model.setValue("/root/hidden/flag/icdr_app_flag",'N');
- }
-
-
- //model.setValue("/root/main/iphs/iphs_fromdd",getCurrentDate());
- //model.setValue("/root/main/icdr/icdr_fromdd",getCurrentDate());
- //model.setValue("/root/hidden/flag/iphs_flag","N"); // 재원유형을 선택했는지 여부를 관리한다.
- //model.setValue("/root/hidden/flag/icdr_flag","N"); // 재원이력을 선택했는지 여부를 관리한다.
-
- //2008.01.14 수정 - 자보,산재,공상이면 내역을 조회한다
- /* 2009.11.13 MYIIM 수정
- @ desc model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "31" 제거
- 재원이력에서 가져와야지 자보마스터에서 조회하여 세팅되어 있음 자보마스터 내역과 다른걸 체크할 수 없음.
- */
- // 자보의 경우 재원유형이력에서 정보를 조회 by 조중래 20130705
- if (model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "31" ) {
- model.setValue("/root/main/aipm/aipm_insucmpycd", model.getValue("/root/hidden/original/iphs["+1+"]/iphs_insucd"));
- }
-
- if (model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "41"
- || model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "42") {
- combo15.dispatch("xforms-select");
- } else {
- fInsukindTabSetting();
- }
- fComboNodeSet(0);
- // fChngRoomSet();
- model.refresh();
- datagrid1.rebuild(); // 적용안하면 이전값이 화면에 보이므로 꼭 갱신해야한다.
- datagrid2.rebuild(); // 적용안하면 이전값이 화면에 보이므로 꼭 갱신해야한다.
- datagrid3.rebuild();
- datagrid4.rebuild();
-
- //fComboNodeSet(4);
-
- // 2008.12.20 - 신청정보가 아닌 이력중 최종 내역을 선택되도록 인덱스 설정
- var iIcdrCount = getNodesetCount("/root/hidden/original/icdr");
- var iLastYnIndex = 0;
- for (var idx = 1 ; idx < iIcdrCount ; idx++) {
- var sCurrentLastYn = model.getValue("/root/hidden/original/icdr[" + idx + "]/icdr_lastyn");
- if (sCurrentLastYn == "Y") {
- iLastYnIndex = idx;
- break;
- }
- }
- //datagrid4.row = iLastYnIndex;
-
- // 구현완료 : iphs와 icdr의 첫번째 ROW를 자동으로 Select 한다.
- datagrid3.isSelected(1) = true;
- datagrid4.isSelected(iLastYnIndex) = true;
- model.setValue("/root/hidden/flag/iphs_flag","Y"); // 재원유형을 선택했는지 여부를 관리한다.
- model.setValue("/root/hidden/flag/icdr_flag","Y"); // 재원이력을 선택했는지 여부를 관리한다.
-
- is_prcs = '1' // 조회되었을때 인적사항에서의 조회기능을 막고 수정기능으로 변경한다.
- // 구현예정 : 6세미만에서 벗어날때 유형보조 자동변경 및 메세지 처리
-
-
- // 외래요율 표시 기능 추가(보험유형 수정관련)
- if (model.getValue("/root/main/inpt/inpt_brateflag") == "O") {
- cap_brateout.visible = true;
- } else {
- cap_brateout.visible = false;
- }
-
- // 2009.03.26 - 재원환자조회 시 차상위2종체크로직을 태워서 변경이 있으면 메시지를 뿌리고 값을 변경한다.
- // 2009.04.06 - 알람만 주고 보조유형은 자동으로 변경하지 않도록 수정
- var sInsuKind = model.getValue("/root/hidden/original/iphs/iphs_insukind");
- var sInsuKindNew = model.getValue("/root/hidden/original/iphs/iphs_insukind_new");
-
- var sSuppKind = model.getValue("/root/hidden/original/iphs/iphs_suppkind");
- var sSuppKindNew = model.getValue("/root/hidden/original/iphs/iphs_suppkind_new");
-
- if (!isNull(sSuppKindNew) && sSuppKind != sSuppKindNew) {
- if (parseInt(sSuppKindNew) == 32) {
- messageBox("[차상위1종] 대상 환자입니다!!", "I");
- //model.setValue("/root/main/iphs/iphs_suppkind", sSuppKindNew);
- }
- if (parseInt(sSuppKindNew) >= 33) {
- messageBox("[차상위2종] 대상 환자입니다!!", "I");
- //model.setValue("/root/main/iphs/iphs_suppkind", sSuppKindNew);
- }
- }
-
- // 2009.04.22 사망환자알람메시지
- var sDethYn = model.getValue("/root/main/ptbs/ptbs_dethyn");
- var sDethDt = model.getValue("/root/main/ptbs/ptbs_dethdt");
- fCheckDethYN(sDethYn, sDethDt);
-
- // 격리병실정보 표시 추가 by 조중래 20120621
- fGetPatIsolateInfo(model.getValue("/root/main/inpt/inpt_isolateinfo"));
- }
-
- // 조회조건에 따른 조회문장(재원/가퇴원/퇴원에 따른 구분조회)
- function fQuery1()
- {
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/hidden/original");
- model.resetInstanceNode("/root/hidden/d_rcv");
- model.resetInstanceNode("/root/hidden/etc");
- model.resetInstanceNode("/root/send/data1");
- model.removeNodeset("/root/main/inpt");
- model.removeNodeset("/root/hidden/original/inpt");
-
-
- submit("TRPMI00401","false");
-
- var h_inpt_node = instance1.selectSingleNode("/root/hidden/rcv/inpt");
- if(h_inpt_node == null){
- messageBox("재원중인 내역이","I004");
- return;
- }
-
- copyNodeType("/root/hidden/original", "/root/hidden/rcv", "after");
-
- model.setValue("/root/hidden/flag/iphs_flag","N");
- model.setValue("/root/hidden/flag/icdr_flag","N");
- model.setValue("/root/hidden/flag/icdr_app_flag","N");
-
- datagrid2.rebuild();
-
- }
-
- // 환자보험정보 조회 ( 보험유형 콤보로 항목이 변경되었을때 )
- function fQuery_ptin()
- {
- model.setValue("/root/send/data1/mode",'2');
- model.setValue("/root/send/data1/prestdd",model.getValue("/root/main/iphs/iphs_fromdd"));
- model.setValue("/root/send/data1/pid",model.getValue("/root/main/inpt/inpt_pid"));
- model.setValue("/root/send/data1/indd",model.getValue("/root/main/inpt/inpt_indd"));
- model.setValue("/root/send/data1/mskind",model.getValue("/root/main/inpt/inpt_mskind"));
- model.setValue("/root/send/data1/insukind",model.getValue("/root/main/iphs/iphs_insukind"));
-
- submit("TRPMI00102","false"); // 환자기본정보를 조회한다. (환자인적, 보험내역, 할인정보)
-
- // "/root/hidden/original/ptin"의 값에는 copyNode하지 않는다. 그래야 저장시 변경된 보험정보가 새로운 적용일자로 저장될수 있다.
-
- // 기존의 값은 Reset해야함. ( 값이 없을경우 기존의 값이 현재의 값처럼 오인될수 있음 )
- model.resetInstanceNode("/root/main/ptin");
- model.resetInstanceNode("/root/hidden/original/ptin");
-
- copyNodeType("/root/main/ptin", "/root/hidden/rcv/ptin", "replace");
- copyNodeType("/root/hidden/original/ptin", "/root/hidden/rcv/ptin", "replace");
-
- // 보험, 감면정보는 없다가 신규로 등록하는 사람이 있으므로 인스턴스 노드를 삭제하면 신규 등록시에는 인스턴스 노드가 없어 등록할수 없다.
- // 그럼므로 신규일경우 생성한다. original쪽에도 같이 복사해야 저장시 변경여부를 체크해서 submit을 보낼수 있다.
- var sptin_pid = model.getValue("/root/main/ptin/ptin_pid")
- if( sptin_pid == null || sptin_pid == "" || sptin_pid == " " || sptin_pid == "-")
- {
- model.setValue("/root/main/ptin/ptin_insukind",model.getValue("/root/send/insukind"));
- // model.makeNode("/root/main/ptin");
- // copyNodeType("/root/main/ptin", "/root/hidden/temp/ptin", "replace");
- // copyNodeType("/root/hidden/original/ptin", "/root/hidden/temp/ptin", "replace");
- }
- //2008.01.14 수정 - 자보,산재,공상이면 내역을 조회한다
- //combo15.dispatch("xforms-value-changed"); // 보험형태별 UI를 반영한다.
- /*if (model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "31" || model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "41"
- || model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "42") {
- combo15.dispatch("xforms-value-changed");
- } else {
- fInsukindTabSetting();
- }*/
-
- // 자보의 경우 ipsh기준으로 보험사 정보를 참조하도록 수정 by 조중래 20130705
- if (model.getValue("/root/main/iphs/iphs_insukind") == "31") {
-
- model.setValue("/root/main/aipm/aipm_insucmpycd", model.getValue("/root/main/iphs/iphs_insucd"));
- model.makeValue("/root/main/aipm/aipm_paygrntno", "");
- }
-
- if ( model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "41"
- || model.getValue("/root/hidden/original/inpt["+curruntrow+"]/inpt_insukind") == "42") {
- combo15.dispatch("xforms-value-changed");
- } else {
- fInsukindTabSetting();
- }
- // fInsukindTabSetting();
- //combo15.dispatch("xforms-value-changed"); // 보험형태별 UI를 반영한다.
- }
-
- //필수 사항 체크(Validation Check)
- function fCheckFactChangeSave(arg1){
- var wardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- var roomcd = model.getValue("/root/main/icdr/icdr_roomcd");
- var bedcd = model.getValue("/root/main/icdr/icdr_bedcd");
- var roomgrdecd = model.getValue("/root/main/icdr/icdr_roomgrdecd");
- var roomtypecd = model.getValue("/root/main/icdr/icdr_roomtypecd");
-
- if( wardcd == '-' || wardcd == '' || wardcd == '0000000000' ){
- messageBox("병동정보가 입력되지 않았습니다. 확인 후 재원변경하세요!", "E999", "");
- return false;
- }else if( roomcd == '-' || roomcd == '' || roomcd == '000000' ){
- messageBox("병실정보가 입력되지 않았습니다. 확인 후 재원변경하세요!", "E999", "");
- return false;
- }else if( bedcd == '-' || bedcd == '' ){
- messageBox("병상정보가 입력되지 않았습니다. 확인 후 재원변경하세요!", "E999", "");
- return false;
- }else if( roomgrdecd == '-' || roomgrdecd == ''){
- messageBox("병실등급정보가 입력되지 않았습니다. 확인 후 재원변경하세요!", "E999", "");
- //return false;
- }else if( roomtypecd == '-' || roomtypecd == '' ){
- messageBox("병실형태가 입력되지 않았습니다. 확인 후 재원변경하세요!", "E999", "");
- //return false;
- }
-
- if (arg1 == 1 || arg1 == 2) {
- //2008.01.14 장애내역 체크
- if (model.getValue("/root/main/iphs/iphs_insukind") == "11"
- || model.getValue("/root/main/iphs/iphs_insukind") == "21" || model.getValue("/root/main/iphs/iphs_insukind") == "22") {
-
- var hndc_node = instance1.selectSingleNode("/root/hidden/check/hndc");
-
- if (hndc_node != null && model.getValue("/root/main/iphs/iphs_handicaprbookpossnyn") != "Y") {
- messageBox("장애내역이 있습니다.장애인 여부를 변경하세요.!","E999","");
- return false;
- }
- }
-
- //입원환자인지 체크
- var sinpt_cretno = model.getValue("/root/main/inpt/inpt_cretno");
- if (sinpt_cretno == null || sinpt_cretno == ""){
- var sinhospyn = model.getValue("/root/main/ptbs/ptbs_inhospyn");
- if (sinhospyn != "Y"){
- messageBox("입원등록이 정보가 없어서 재원변경을 ","E001");
- return false;
- }
- }
-
- //가퇴원자나 퇴원자는 유형변경을 막는다.
- //가퇴원환자는 유형변경이 되어야 한다. 2007.10.04 홍영표 ( 박광섭 요구 )
- var sindschacptstat = model.getValue("/root/main/inpt/inpt_indschacptstat");
- if (sindschacptstat == "D" ){
- messageBox("퇴원중인 환자는 재원변경을 ","E001");
- return false;
- }
-
- //퇴원심사진행상태 체크. 2007.09.03 홍영표
- // 심사과(4070700000), 심사팀(4072000000)의 경우에는 체크하지 않도록 수정 by 조중래 20131211
- if (getUserInfo("dutplcecd") != "4070700000"
- && getUserInfo("dutplcecd") != "4072000000") {
-
- // 미심 이외의 경우, 심사와 관련된 항목이 변경된 경우 변경제어처리
- if (model.getValue("/root/main/inpt/inpt_dschjudgprcsstat") != "A" ) {
-
- // 심사관련 항목 변경여부 조회
- if (fJudgCheck() == "Y") {
-
- messageBox("퇴원심사가 진행중이거나 완료되어 재원변경을 ","E001");
- return false;
- }
- }
- }
-
- // 전과전실적용일자는 오늘보다 클수 없다..
- if(model.getValue("/root/main/iphs/iphs_fromdd") > getCurrentDate() || model.getValue("/root/main/icdr/icdr_fromdd") > getCurrentDate()){
- messageBox("적용일자는 오늘일자보다 클수 ", "I004");
- return false;
- }
-
-
- // 2008.12.03 - iphs, icdr의 변경이 있는 항목에 대해서만 체크하도록 로직 수정
- var ins = document.models( 0 ).instances( 0 );
- var h_iphs_pat = ins.selectSingleNode("/root/main/h_iphs/iphs");
- var iphs_pat = ins.selectSingleNode("/root/main/iphs");
- var bIsIphsModified = false; // iphs 변경여부
- if (h_iphs_pat == null){
- bIsIphsModified = false;
- } else if (iphs_pat == null){
- bIsIphsModified = false;
- } else if (h_iphs_pat.xml == iphs_pat.xml) {
- bIsIphsModified = false;
- } else {
- bIsIphsModified = true;
- }
-
- var h_icdr_pat = ins.selectSingleNode("/root/main/h_icdr/icdr");
- var icdr_pat = ins.selectSingleNode("/root/main/icdr");
- var bIsIcdrModified = false; // icdr 변경여부
-
- if (h_icdr_pat == null){
- bIsIcdrModified = false;
- } else if (icdr_pat == null){
- bIsIcdrModified = false;
- } else if (h_icdr_pat.xml == icdr_pat.xml) {
- bIsIcdrModified = false;
- } else {
- bIsIcdrModified = true;
- }
-
- // 최종중간청구일자 이전 데이터는 수정할수 없다. 2007.09.03 홍영표
- var slastmdlclamdd = model.getValue("/root/main/inpt/inpt_lastmdlclamdd");
-
- if (slastmdlclamdd != null && slastmdlclamdd != "" && slastmdlclamdd != "-" && slastmdlclamdd != "00000000"){
- if ((model.getValue("/root/main/iphs/iphs_fromdd") <= slastmdlclamdd && bIsIphsModified == true)
- || (model.getValue("/root/main/icdr/icdr_fromdd") <= slastmdlclamdd && bIsIcdrModified == true)){
-
- // 심사관련 항목 변경여부 조회
- if (fJudgCheck() == "Y") {
-
- messageBox("최종중간청구일자 이전 데이터는 수정 할수 ", "I004");
- return false;
- }
- }
- }
-
- // 2008.11.28 - 최병진. 외래요율일 때는 아래 체크로직 타지 않도록 수정
- // 2009.03.26 - 차상위 2종 외래보조유형 체크 추가
- var sBrateFlag = model.getValue("/root/main/inpt/inpt_brateflag");
- /*
- if (sBrateFlag == "I") {
- //2008.01.10 산정특례(07),인공신장투석(02),복막관류술(03),장기이식(04) => 정상(00)으로 셋팅
- if(model.getValue("/root/main/iphs/iphs_suppkind") == "02" || model.getValue("/root/main/iphs/iphs_suppkind") == "03" ||
- model.getValue("/root/main/iphs/iphs_suppkind") == "04" || model.getValue("/root/main/iphs/iphs_suppkind") == "07" ||
- model.getValue("/root/main/iphs/iphs_suppkind") == "10" || model.getValue("/root/main/iphs/iphs_suppkind") == "11" ||
- model.getValue("/root/main/iphs/iphs_suppkind") == "34" || model.getValue("/root/main/iphs/iphs_suppkind") == "35" ||
- model.getValue("/root/main/iphs/iphs_suppkind") == "36" || model.getValue("/root/main/iphs/iphs_suppkind") == "37" ||
- model.getValue("/root/main/iphs/iphs_suppkind") == "38" || model.getValue("/root/main/iphs/iphs_suppkind") == "45") {
- messageBox("입원에서는 적용되지 않는 보조유형입니다. 보조유형을 확인하세요!","E999","");
- return false;
- }
- }
- */
-
- if (model.getValue("/root/main/iphs/iphs_suppkind") == ""
- || model.getValue("/root/main/iphs/iphs_suppkind") == null) {
- messageBox("보조유형이 선택되지 않았습니다. 보조유형을 확인하세요!","E999","");
- return false;
- }
-
- //2011.01.12 산정특례(07), 가정간호(10), 가정간호(등록암)(11), 차상위2종 가정간호(37), 차상위2종 가정간호 등록암(38), 차상위2종 산정특례(45)
- if(model.getValue("/root/main/iphs/iphs_suppkind") == "07" ||
- model.getValue("/root/main/iphs/iphs_suppkind") == "10" || model.getValue("/root/main/iphs/iphs_suppkind") == "11" ||
- model.getValue("/root/main/iphs/iphs_suppkind") == "37" || model.getValue("/root/main/iphs/iphs_suppkind") == "38" ||
- model.getValue("/root/main/iphs/iphs_suppkind") == "45") {
- messageBox("입원에서는 적용되지 않는 보조유형입니다. 보조유형을 확인하세요!","E999","");
- return false;
- }
-
- // 응급실,DSC환자는 전과전실못하게 막는다. 2007.10.18 홍영표
- var sinpt_ordtype = model.getValue("/root/main/inpt/inpt_ordtype");
- var sicdr_wardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- var sicdr_orddeptcd = model.getValue("/root/main/icdr/icdr_orddeptcd");
- if (sinpt_ordtype == 'E') {
- // if ( sicdr_wardcd != gsWardCd_ER1 || sicdr_orddeptcd != gsOrddeptCd_ER ) {
- // messageBox("응급실환자는 전과전실 할수 ", "I004");
- // return false;
- // }
- //응급실환자는 전실말 블럭킹!!
- if ( sicdr_wardcd != gsWardCd_ER1 ) {
- messageBox("응급실환자는 전과전실 할수 ", "I004");
- return false;
- }
- //2007.10.19 진찰료 미산정인경우 사유코드 필수 입력
- var inpt_medcostestmflag = model.getValue("/root/main/inpt/inpt_medcostestmflag");
- //진찰료 미산정
- if (inpt_medcostestmflag == "N")
- {
- var inpt_medamtfreeresn = model.getValue("/root/main/inpt/inpt_medamtfreeresn");
- if (inpt_medamtfreeresn == null || inpt_medamtfreeresn == "" || inpt_medamtfreeresn == " " || inpt_medamtfreeresn == "-" || inpt_medamtfreeresn == "00")
- {
- messageBox("진찰료 미산정인 경우 사유를 입력하셔야합니다!","E999","");
- return false;
- }
- }
- } else if (sinpt_ordtype == 'D'){
- var ins = document.models(0).instances(0);
- var original_icdr_pat = ins.selectSingleNode("/root/hidden/original/icdr[icdr_lastyn = 'Y']");
- var icdr_pat = ins.selectSingleNode("/root/main/icdr");
-
- var sOrgWardcd = model.getValue("/root/hidden/original/icdr[1]/icdr_wardcd");
- var sWardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- var sOrgRoomcd = model.getValue("/root/hidden/original/icdr[1]/icdr_roomcd");
- var sRoomcd = model.getValue("/root/main/icdr/icdr_roomcd");
- // 2008.11.03 - 병실이외의 정보는 변경할 수 있도록 수정
- if (sOrgWardcd != sWardcd || sOrgRoomcd != sRoomcd) {
- messageBox("DSC/CHEMO 환자는 병실변경을 할 수 ", "I004");
- return false;
- }
-
- // 2008.11.03 - 병실이외의 정보는 변경할 수 있도록 수정에 따른 주석처리
- // 조건 이외의 변경은 허용
- /*
- if (icdr_pat.xml != original_icdr_pat.xml) {
- // 2008.10.16 병동만 체크시 CHEMO가 제외되므로 original로 체크
- //if ( sicdr_wardcd != gsWardcd_DSC ) {
- messageBox("DSC환자는 전과전실 할수 ", "I004");
- return false;
- //}
- }
- */
- }
-
- // 2008.10.27 부유형은 병실변경을 할 수 없도록 막음 - 최병진
- var iIcdrRow = datagrid4.row;
- if (iIcdrRow < 1) iIcdrRow = 1; // 선택되어 있지 않으면 첫번째로 설정
-
- var sMskind = model.getValue("/root/main/inpt/inpt_mskind");
-
- var sWardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- var sRoomcd = model.getValue("/root/main/icdr/icdr_roomcd");
- var sRoomtypecd = model.getValue("/root/main/icdr/icdr_roomtypecd");
- var sRoomgrdecd = model.getValue("/root/main/icdr/icdr_roomgrdecd");
-
- var sOrgWardcd = model.getValue("/root/hidden/original/icdr[" + iIcdrRow + "]/icdr_wardcd");
- var sOrgRoomcd = model.getValue("/root/hidden/original/icdr[" + iIcdrRow + "]/icdr_roomcd");
- var sOrgRoomtypecd = model.getValue("/root/hidden/original/icdr[" + iIcdrRow + "]/icdr_roomtypecd");
- var sOrgRoomgrdecd = model.getValue("/root/hidden/original/icdr[" + iIcdrRow + "]/icdr_roomgrdecd");
-
- if (sMskind == "S") {
- if (sWardcd != sOrgWardcd || sRoomcd != sOrgRoomcd || sRoomtypecd != sOrgRoomtypecd || sRoomgrdecd != sOrgRoomgrdecd) {
- messageBox("[부유형]의 병실정보를 변경할 수 없습니다!", "I");
- return;
- }
- }
- }
-
- if (arg1 == 1 ) {
- // 수납된 내역 체크(해당iphs만) 2007.10.15 홍영표
- var srcptyn = model.getValue("/root/main/iphs/iphs_rcptyn");
- // 2008.10.27 퇴원환자만 재원변경 막도록 추가
- var sIndschAcptStat = model.getValue("/root/main/inpt/inpt_indschacptstat");
- if (srcptyn == "Y" && model.getValue("/root/main/inpt/inpt_dschdd") != "99991231" && sIndschAcptStat == "D") {
- messageBox("수납된 내역이 있어서 재원변경을 ","E001");
- return false;
- }
- } else if (arg1 == 2 ) { // 전체기간재원유형변경 모듈만 체크하는 사항
- // 수납된 내역 체크(입원기간 전체) 2007.10.15 홍영표
- var srcptyn = model.getValue("/root/hidden/original/iphs[iphs_rcptyn = 'Y']/iphs_rcptyn");
- // 2008.10.27 퇴원환자만 재원변경 막도록 추가
- var sIndschAcptStat = model.getValue("/root/main/inpt/inpt_indschacptstat" && sIndschAcptStat == "D");
- if (srcptyn == "Y" && model.getValue("/root/main/inpt/inpt_dschdd") != "99991231"){
- messageBox("수납된 내역이 있어서 재원변경을 ","E001");
- return false;
- }
- // 2007.10.15 홍영표
- // 환자보험유형은 통합저장안되며 전체기간재원유형변경을 할려면 먼저 보험유형과 기간을 등록,변경한후 실행해야한다.
- // 자보,산재,공상은 마스터 등록이 없으면 보험유형 변경이 안되므로 나머지 유형만 체크한다.(PTIN만)
- var sindd = model.getValue("/root/main/inpt/inpt_indd");
- var sdschdd = model.getValue("/root/main/inpt/inpt_dschdd");
- var sptin_pid = model.getValue("/root/hidden/h_rcv/ptin/ptin_pid");
- var siphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- var sptin_fromdd = model.getValue("/root/hidden/h_rcv/ptin/ptin_fromdd");
- var sptin_todd = model.getValue("/root/hidden/h_rcv/ptin/ptin_todd");
- if (siphs_insukind == gsBoHeom || siphs_insukind == gsBoHo1 || siphs_insukind == gsBoHo2 ||
- siphs_insukind == gsIlBan || siphs_insukind == gsForIn || siphs_insukind == gsImSang) {
- if (sptin_pid != null && sptin_pid != "" && sptin_pid != " " ) {
- if ( sptin_fromdd > sindd && sptin_todd < sdschdd ){
- messageBox("해당되는 환자보험유형 취득,종료일자가 재원기간 범위를 벋어나서 전체기간재원유형변경을 ","E001");
- return false;
- }
- } else {
- messageBox("해당되는 환자보험유형이 없어 전체기간재원유형변경을 ","E001");
- return false;
- }
- }
- }
-
- //2008.01.09 6세미만 체크및 28일 이전 신생아 체크
- var ptbs_age = parseInt(model.getValue("/root/main/ptbs/ptbs_age"));
- var s_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- var ptbs_birthdd = model.getValue("/root/main/ptbs/ptbs_brthdd");
- var dayno = getDateInterval(ptbs_birthdd,getCurrentDate()); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
-
- var sScndSuppKind = model.getValue("/root/hidden/original/iphs/iphs_suppkind_new"); // 환자조회 시 lib태운 후 들어온 보조유형 값
- var sScndSuptrgtFlag = model.getValue("/root/hidden/ScndSuptrgtFlag"); // 공단자격조회 후 들어온 차상위2종구분
-
- if (s_insukind == "11" || s_insukind == "22") {
- if (ptbs_age >= 0 && ptbs_age < 6 ) {
- if (dayno >= 1 && dayno <= 28 && s_insukind == "11") {
- if (model.getValue("/root/main/iphs/iphs_suppkind") != "31") {
- var result1 = messageBox("28일 이전의 신생아 환자입니다. 보조유형을 [신생아]로 변경하시겠습니까? (Y/N)","Q000","");
- if (result1 == "6") {
- model.setValue("/root/main/iphs/iphs_suppkind", "31");
- //model.setFocus("cmb_suppkind");
- //model.refresh();
- return true;
- }
- else {
- return true;
- }
- }
- } else {
- if ((!isNull(sScndSuppKind) && parseInt(sScndSuppKind) >= 33) || sScndSuptrgtFlag == "2") {
- if (model.getValue("/root/main/iphs/iphs_suppkind") != "41") {
- var result2 = messageBox("6세미만 환자입니다.! 보조유형을 [차상위2종 6세미만]으로 변경하시겠습니까?(Y/N)","Q000","");
- if (result2 == "6") { //아니오
- model.setValue("/root/main/iphs/iphs_suppkind", "41");
- //model.setFocus("cmb_suppkind");
- //model.refresh();
- return true;
- }
- else {
- return true;
- }
- }
- } else {
- if (model.getValue("/root/main/iphs/iphs_suppkind") != "08") {
- var result2 = messageBox("6세미만 환자입니다.! 보조유형을 [6세미만]으로 변경하시겠습니까?(Y/N)","Q000","");
- if (result2 == "6") { //아니오
- model.setValue("/root/main/iphs/iphs_suppkind", "08");
- //model.setFocus("cmb_suppkind");
- //model.refresh();
- return true;
- }
- else {
- return true;
- }
- }
- }
- }
- }
- }
-
- // 2009.03.30 - 차상위2종 입원정신과 체크
- if (s_insukind == "11" && (parseInt(sScndSuppKind) >= 33 || sScndSuptrgtFlag == "2" )&& (model.getValue("/root/main/iphs/iphs_suppkind") != "41" && model.getValue("/root/main/iphs/iphs_suppkind") != "43")) {
- var sOrddeptCd = model.getValue("/root/main/icdr/icdr_orddeptcd");
- if (sOrddeptCd == "2030000000") {
- var result = messageBox("[차상위2종] 환자입니다. 보조유형을 [차상위2종 입원정신과]로 변경하시겠습니까?", "Q");
- if (result == "6") {
- model.setValue("/root/main/iphs/iphs_suppkind", "43");
- }
- }
- }
-
- // 2009.03.30 - 차상위2종 입원정신과 체크
- if (s_insukind == "11" && (parseInt(sScndSuppKind) >= 33 || sScndSuptrgtFlag == "2") && model.getValue("/root/main/iphs/iphs_suppkind") == "43") {
- var sOrddeptCd = model.getValue("/root/main/icdr/icdr_orddeptcd");
- if (sOrddeptCd != "2030000000") {
- var result = messageBox("[정신과] 환자가 아닙니다. 보조유형을 [차상위2종 정상]으로 변경하시겠습니까?", "Q");
- if (result == "6") {
- model.setValue("/root/main/iphs/iphs_suppkind", "33");
- }
- }
- }
-
-
- //입력사항 체크(환자인적-성명)
- var sptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- if (sptbs_hngnm == null || sptbs_hngnm == "" || sptbs_hngnm == " ")
- {
- messageBox("환자인적사항에 성명을","C001");
- return false;
- }
-
- //입력사항 체크(환자인적-주민등록번호)
- var sptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var sptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- if (sptbs_rrgstno1 == null || sptbs_rrgstno1 == "" || sptbs_rrgstno1 == " " || sptbs_rrgstno2 == null || sptbs_rrgstno2 == "" || sptbs_rrgstno2 == " ")
- {
- messageBox("환자인적사항에 주민번호를","C001");
- return false;
- }
-
- //입력사항 체크(환자인적-성별)
- var sptbs_sex = model.getValue("/root/main/ptbs/ptbs_sex");
- if (sptbs_sex == null || sptbs_sex == "" || sptbs_sex == " ")
- {
- messageBox("환자인적사항에 성별을","C002");
- return false;
- }
-
- //입력사항 체크(환자인적-생년월일)
- var sptbs_brthdd = model.getValue("/root/main/ptbs/ptbs_brthdd");
- if (sptbs_brthdd == null || sptbs_brthdd == "" || sptbs_brthdd == " ")
- {
- messageBox("환자인적사항에 생년월일을","C001");
- return false;
- }
-
- //입력사항 체크(환자인적-우편번호)
- var sptbs_zipcd1 = model.getValue("/root/main/ptbs/ptbs_zipcd1");
- var sptbs_zipcd2 = model.getValue("/root/main/ptbs/ptbs_zipcd2");
- if (sptbs_zipcd1 == null || sptbs_zipcd1 == "" || sptbs_zipcd1 == " " || sptbs_zipcd2 == null || sptbs_zipcd2 == "" || sptbs_zipcd2 == " ")
- {
- messageBox("환자인적사항에 우편번호를","C001");
- return false;
- }
-
- //입력사항 체크(보험-보험유형)
- var siphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- if (siphs_insukind == null || siphs_insukind == "" || siphs_insukind == " " || siphs_insukind == "-" )
- {
- messageBox("환자보험에 보험유형을","C002");
- return false;
- }
-
- //입력사항 체크(보험-보험보조유형)
- var siphs_suppkind = model.getValue("/root/main/iphs/iphs_suppkind");
- if (siphs_suppkind == null || siphs_suppkind == "" || siphs_suppkind == " ")
- {
- messageBox("환자보험에 유형보조를","C002");
- return false;
- }
-
- if (siphs_insukind == gsBoHeom || siphs_insukind == gsBoHo1 || siphs_insukind == gsBoHo2) {
- //입력사항 체크(보험-보험보험자기호)
- var sptin_insucd = model.getValue("/root/main/ptin/ptin_insucd");
- if (sptin_insucd == null || sptin_insucd == "" || sptin_insucd == " " || sptin_insucd == "-")
- {
- messageBox("환자보험에 보험자기호를","C002");
- return false;
- }
-
- // 2008.09.05 건강보험일 때만 보험증번호 체크하도록 조건 추가
- if (siphs_insukind == gsBoHeom) {
- //입력사항 체크(보험-보험증번호)
- var sptin_insuno = model.getValue("/root/main/ptin/ptin_insuno");
- if (sptin_insuno == null || sptin_insuno == "" || sptin_insuno == " " || sptin_insuno == "-")
- {
- messageBox("환자보험에 보험증번호를","C001");
- return false;
- }
- }
-
- //입력사항 체크(보험-피보험자관계)
- var sptin_insdrela = model.getValue("/root/main/ptin/ptin_insdrela");
- if (sptin_insdrela == null || sptin_insdrela == "" || sptin_insdrela == " ")
- {
- messageBox("환자보험에 피보험자관계를","C002");
- return false;
- }
-
- //입력사항 체크(보험-피보험자성명)
- var sptin_insdnm = model.getValue("/root/main/ptin/ptin_insdnm");
- if (sptin_insdnm == null || sptin_insdnm == "" || sptin_insdnm == " ")
- {
- messageBox("환자보험에 피보험자성명을","C001");
- return false;
- }
- // 2008.07.09 최병진 주석처리 - 환자의 주민번호가 유효(정확)하면 피보험자 주민번호 없어도 된다.
- //입력사항 체크(보험-피보험자주민번호)
- //var sptin_insdrrgstno1 = model.getValue("/root/main/ptin/ptin_insdrrgstno1");
- // var sptin_insdrrgstno2 = model.getValue("/root/main/ptin/ptin_insdrrgstno2");
- // if (sptin_insdrrgstno1 == null || sptin_insdrrgstno1 == "" || sptin_insdrrgstno1 == " " || sptin_insdrrgstno2 == null || sptin_insdrrgstno2 == "" || sptin_insdrrgstno2 == " ")
- // {
- // messageBox("환자보험에 피보험자주민번호를","C001");
- // return false;
- // }
-
- //입력사항 체크(보험-취득일자)
- var sptin_fromdd = model.getValue("/root/main/ptin/ptin_fromdd");
- if (sptin_fromdd == null || sptin_fromdd == "" || sptin_fromdd == " ")
- {
- messageBox("환자보험에 취득일자를","C001");
- return false;
- }
- }else if (siphs_insukind == gsJaboKind ){ // 자보
- //var sJaboKindPid = model.getValue("/root/main/aipm/aipm_pid");
- //2009.11.15 MYKIM 자보마스터가 아닌 재원정보에서 가져옴.
- var sJaboKindPid = model.getValue("/root/main/iphs/iphs_pid");
- var sSuppKind = model.getValue("/root/main/iphs/iphs_suppkind");
-
- if (isNull(sJaboKindPid)) {
- if (sSuppKind != "01") { // 전액본인부담
- messageBox("자보등록을 먼저 ","C001");
- return false;
- }
- } /*else { // 승인기간을 벗어나면 메세지 처리한다.
- var siphs_fromdd = model.getValue("/root/main/iphs/iphs_fromdd");
- var saprvfromdd = model.getValue("/root/main/aipm/aipm_aprvfromdd");
- var saprvtodd = model.getValue("/root/main/aipm/aipm_aprvtodd");
- if (siphs_fromdd < saprvfromdd || siphs_fromdd > saprvtodd ) {
- messageBox("보험유형 적용일자가 자보승인기간을 ","E003");
- return false;
- }
- }*/
- }else if (siphs_insukind == gsSanJae ){ // 산재
- var sSanJaePid = model.getValue("/root/main/icpm/icpm_pid");
- var sSuppKind = model.getValue("/root/main/iphs/iphs_suppkind");
-
- if (isNull(sSanJaePid)) {
- if (sSuppKind != "01") { // 전액본인부담
- messageBox("산재등록을 먼저 ","C001");
- return false;
- }
- }
- }else if (siphs_insukind == gsGongSang ){ // 공상
- var sGongSangPid = model.getValue("/root/main/icpm/icpm_pid");
- if (sGongSangPid == null || sGongSangPid == "" || sGongSangPid == " ")
- {
- messageBox("공상등록을 먼저 ","C001");
- return false;
- }
- }
-
- //입력사항 체크(진료과)
- var sorddeptcd = model.getValue("/root/main/icdr/icdr_orddeptcd");
- if (sorddeptcd == null || sorddeptcd == "" || sorddeptcd == " ")
- {
- messageBox("진료과를","C002");
- return false;
- }
-
- //입력사항 체크(전문의)
- var smedispclid = model.getValue("/root/main/icdr/icdr_medispclid");
- if (smedispclid == null || smedispclid == "" || smedispclid == " " || smedispclid == "-")
- {
- messageBox("전문의를","C002");
- return false;
- }
-
- // 수정추가이력 : 20100219 JHP
- // 진료과 변경에 따른 전문의 주치의 변경여부 확인 시작
- var beforeorddeptcd = model.getValue("/root/main/h_icdr/icdr/icdr_orddeptcd");
- var afterorddeptcd = model.getValue("/root/main/icdr/icdr_orddeptcd");
-
- var beforemedispclid = model.getValue("/root/main/h_icdr/icdr/icdr_medispclid");
- var aftermedispclid = model.getValue("/root/main/icdr/icdr_medispclid");
-
- var beforeatdoctid = model.getValue("/root/main/h_icdr/icdr/icdr_atdoctid");
- var afteratdoctid = model.getValue("/root/main/icdr/icdr_atdoctid");
- /*2010-12-24 이동식 수정 이거 왜 체크함??? 경북대 칠곡의 경우 의사가 다른과에 중복 소속 가능.
- if(beforeorddeptcd != afterorddeptcd){
- if(beforemedispclid == aftermedispclid){
- messageBox("전문의를","C002");
- return false;
- }
- if(beforeatdoctid != '-' && beforeatdoctid != null){
- if(beforeatdoctid == afteratdoctid){
- messageBox("주치의를","C002");
- return false;
- }
- }
- }
- */
- // 진료과 변경에 따른 전문의 주치의 변경여부 확인 끝
-
- //입력사항 체크(병동,병실)
- var swardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- var sroomcd = model.getValue("/root/main/icdr/icdr_roomcd");
-
- if (swardcd == null || swardcd == "" || swardcd == " " || swardcd == "-")
- {
- messageBox("병동을","C002");
- return false;
- }
-
- if (sroomcd == null || sroomcd == "" || sroomcd == " " || sroomcd == "-")
- {
- messageBox("병실을","C002");
- return false;
- }
-
- var sroomtypecd = model.getValue("/root/main/icdr/icdr_roomtypecd");
- var sroomgrdecd = model.getValue("/root/main/icdr/icdr_roomgrdecd");
-
- if (sroomtypecd == null || sroomtypecd == "" || sroomtypecd == " " || sroomtypecd == "-")
- {
- messageBox("병실형태을","C002");
- return false;
- }
-
- if (sroomgrdecd == null || sroomgrdecd == "" || sroomgrdecd == " " || sroomgrdecd == "-")
- {
- messageBox("병실등급을","C002");
- return false;
- }
-
- // DRG 유효성 검사 추가
- // DRG는 건강보험일 경우에만 유효 by 조중래 20130627
- if ((model.getValue("/root/main/iphs/iphs_drgyn") == "A" || model.getValue("/root/main/iphs/iphs_drgyn") == "Y")
- && model.getValue("/root/main/iphs/iphs_insukind") != "11") {
-
- messageBox("DRG는 건강보험의 경우에만 적용 가능합니다. \r\n현재 DRG정보는 처리되지 않습니다. ", "C000")
-
- model.setValue("/root/main/inpt/inpt_drgyn", "N");
- model.setValue("/root/main/iphs/iphs_drgyn", "N");
- model.setValue("/root/main/iphs/iphs_drgno", "");
- model.refresh();
- }
-
- var disccd = model.getValue("/root/main/iphs/iphs_disccd");
-
- // 미용목적성형의 경우 감면정보 적용여부 점검 by 조중래 20140217
- if (model.getValue("/root/main/iphs/iphs_insukind") == "51" && model.getValue("/root/main/iphs/iphs_suppkind") == "85") {
-
- // 모발이식센터이외의 경우 블러킹
- if (disccd != '-' && model.getValue("/root/main/icdr/icdr_orddeptcd") != "2450000000") {
- alert("미용목적성형의 경우, 감면적용이 불가능합니다.");
- return false;
- }
-
- // 모발이식센터의 경우라도 모발관련(PK059) 코드가 아니면 블러킹
- if (disccd != '-' && model.getValue("/root/main/icdr/icdr_orddeptcd") == "2450000000" && model.getValue("/root/init/PAM/PK059list/PK059[cdid = '" + disccd + "']/cdnm") != "Y") {
- alert("모발이식센터의 경우 모발이식관련 감면코드만 적용가능합니다.\r\n(원무공통코드 - PK059)");
- return false;
- }
- }
-
- // 본인부담상한제 금액 검증
- fOwnBMaxGradeFlagSet();
-
- // 완화의료병동(3050136000) 일경우 값 셋팅함.
- var scalcscorrecalflag = model.getValue("/root/main/iphs/iphs_calcscorrecalflag");
- var sWardCd = model.getValue("/root/main/icdr/icdr_wardcd");
-
- if(sWardCd == '3050136000' && scalcscorrecalflag != "9"){
- if (messageBox("호스피스병동 환자의 수가계산 구분이 [완화의료정액]이 아닙니다. \r\n[완화의료정액]으로 설정하시겠습니까?", "Q000") == "6") {
- model.setValue("/root/main/iphs/iphs_calcscorrecalflag","9");
- }
- }else if(sWardCd != '3050136000' && scalcscorrecalflag == "9") {
- alert("호스피스병동 이외의 경우 수가계산 구분 [완화의료정액]을 사용할 수 없습니다.");
- return false;
- }
-
- return true;
- }
-
- //2008.01.18 재원심사중이여도 수정가능 항목체크
- // 2008.09.09 할인, 보험자기호, 보험증번호는 청구에 관계없이 수정가능하도록 변경 - 최병진
- // 심사완료 후 변경되면 안되는 항목점검으로 수정 by 조중래 20151209
- // 심사와 관련된 항목이 수정된 경우 Y 리턴
- function fJudgCheck() {
-
- var sCheckYN = "N";
-
- // 심사와 관련된 항목이 수정된 경우
- if ( model.getValue("/root/main/inpt/inpt_fsexamflag") != model.getValue("/root/main/h_inpt/inpt/inpt_fsexamflag")
- || model.getValue("/root/main/inpt/inpt_medcostestmflag") != model.getValue("/root/main/h_inpt/inpt/inpt_medcostestmflag")
- || model.getValue("/root/main/inpt/inpt_etcordflag") != model.getValue("/root/main/h_inpt/inpt/inpt_etcordflag")
-
- || model.getValue("/root/main/iphs/iphs_fromdd") != model.getValue("/root/main/h_iphs/iphs/iphs_fromdd")
- || model.getValue("/root/main/iphs/iphs_todd") != model.getValue("/root/main/h_iphs/iphs/iphs_todd")
- || model.getValue("/root/main/iphs/iphs_insukind") != model.getValue("/root/main/h_iphs/iphs/iphs_insukind")
- || model.getValue("/root/main/iphs/iphs_suppkind") != model.getValue("/root/main/h_iphs/iphs/iphs_suppkind")
- || model.getValue("/root/main/iphs/iphs_calcscorrecalflag") != model.getValue("/root/main/h_iphs/iphs/iphs_calcscorrecalflag")
- || model.getValue("/root/main/iphs/iphs_rareobstflag") != model.getValue("/root/main/h_iphs/iphs/iphs_rareobstflag")
- || model.getValue("/root/main/iphs/iphs_etcordflag") != model.getValue("/root/main/h_iphs/iphs/iphs_etcordflag")
- || model.getValue("/root/main/iphs/iphs_ownbmaxgradeflag") != model.getValue("/root/main/h_iphs/iphs/iphs_ownbmaxgradeflag")
- || model.getValue("/root/main/iphs/iphs_handicaprbookpossnyn") != model.getValue("/root/main/h_iphs/iphs/iphs_handicaprbookpossnyn")
-
- || model.getValue("/root/main/icdr/icdr_orddeptcd") != model.getValue("/root/main/h_icdr/icdr/icdr_orddeptcd")
- || model.getValue("/root/main/icdr/icdr_medispclid") != model.getValue("/root/main/h_icdr/icdr/icdr_medispclid")
- || model.getValue("/root/main/icdr/icdr_specordyn") != model.getValue("/root/main/h_icdr/icdr/icdr_specordyn")
- || model.getValue("/root/main/icdr/icdr_roomgrdecd") != model.getValue("/root/main/h_icdr/icdr/icdr_roomgrdecd")
- ) {
-
- sCheckYN = "Y";
-
- } else {
- sCheckYN = "N";
- }
-
- return sCheckYN;
- }
-
- // 저장시 항목별 변경사항을 체크한다.
- function fChangeSave(){
-
- var ins = document.models( 0 ).instances( 0 );
-
- var ptbs_flag = null;
- var ptin_flag = null;
-
- var inpt_flag = null;
- var iphs_flag = null;
- var icdr_flag = null;
- var iphs_insukind_flag = null;
- var iphs_suppkind_flag = null;
- var iphs_disccd_flag = null;
- var iphs_calcscorrecalflag_flag = null;
-
- var icdr_roomgrdecd_flag = null;
- var icdr_roomtypecd_flag = null;
- var icdr_specordyn_flag = null;
- var icdr_medispclid_flag = null;
-
- // 1. 환자인적사항 변경여부 체크
- var h_ptbs_pat = ins.selectSingleNode("/root/hidden/original/ptbs");
- var ptbs_pat = ins.selectSingleNode("/root/main/ptbs");
-
- model.resetInstanceNode("/root/send/s_ptbs");
-
- if(h_ptbs_pat == null){
- ptbs_flag = null; // 데이터가 없으면 인스턴스 노드가 없다.
- }else if (ptbs_pat == null){
- ptbs_flag = null;
- }else if (h_ptbs_pat.xml == ptbs_pat.xml) {
- ptbs_flag = null;
- }else if (h_ptbs_pat.xml != ptbs_pat.xml){
- ptbs_flag = 'U';
- model.setValue("/root/main/ptbs/ptbs_status",ptbs_flag);
- copyNodeType("/root/send/s_ptbs", "/root/main/ptbs", "replace");
- //submit("TXPMI00401");
-
- }
-
- // 2. 환자보험내역 변경여부 체크 ( 산재,자보,공상은 제외한다.)
- var iphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- if (iphs_insukind == gsBoHeom || iphs_insukind == gsBoHo1 || iphs_insukind == gsBoHo2 ||
- iphs_insukind == gsIlBan || iphs_insukind == gsForIn || iphs_insukind == gsImSang) {
- var h_ptin_pat = ins.selectSingleNode("/root/hidden/original/ptin");
- var ptin_pat = ins.selectSingleNode("/root/main/ptin");
-
- model.resetInstanceNode("/root/send/s_ptin");
-
- if(h_ptin_pat == null){
- ptin_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (ptin_pat == null){
- ptin_flag = null;
- }else if (h_ptin_pat.xml == ptin_pat.xml) {
- ptin_flag = null;
- }else if (h_ptin_pat.xml != ptin_pat.xml) {
- ptin_flag = 'U';
- model.setValue("/root/main/ptin/ptin_status",ptin_flag);
- // 2008.09.30 최병진 새로운 보험정보관리 로직 적용을 위해서 주석처리 - 과거내역도 변경가능
- // model.setValue("/root/main/ptin/ptin_fromdd",model.getValue("/root/main/iphs/iphs_fromdd"));
- // model.setValue("/root/main/ptin/ptin_todd",model.getValue("/root/main/iphs/iphs_todd")); // 필요에 따라서는 풀수 있다. (2007.09.19 홍영표)
-
- if(model.getValue("/root/main/ptin/ptin_pid") == "" ){
- model.setValue("/root/main/ptin/ptin_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/main/ptin/ptin_todd",'99991231');
- model.setValue("/root/main/ptin/ptin_histstat",'Y');
- }
- copyNodeType("/root/send/s_ptin", "/root/main/ptin", "replace");
- //submit("TXPMI00402");
- }
- }
-
-
- // 재원내역정보(유형) 변경여부는 환자보험내역(ㄱ.보험유형, ㄴ.유형보조)과 환자감면(ㄷ.직원감면)의 내용이 변경되어도 적용되어야한다.
- // 보험유형의 항목이 재원유형의 보험유형과 보조유형으로 대체됨에 따라 소스 수정됨(지금은 소급여부 체크시에만 사용한다.)
- // ㄱ.보험유형 변경체크
- var h_iphs_insukind = ins.selectSingleNode("/root/main/h_iphs/iphs/iphs_insukind");
- var iphs_insukind = ins.selectSingleNode("/root/main/iphs/iphs_insukind");
-
- if(h_iphs_insukind == null){
- iphs_insukind_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (iphs_insukind == null){
- iphs_insukind_flag = null;
- }else if (h_iphs_insukind.xml == iphs_insukind.xml) {
- iphs_insukind_flag = null;
- }else if (h_iphs_insukind.xml != iphs_insukind.xml) {
- iphs_insukind_flag = 'U';
- }
- //model.setValue("/root/main/iphs/iphs_insukind",model.getValue("/root/main/ptin/ptin_insukind"));
-
- // ㄴ.유형보조 변경체크
- var h_iphs_suppkind = ins.selectSingleNode("/root/main/h_iphs/iphs/iphs_suppkind");
- var iphs_suppkind = ins.selectSingleNode("/root/main/iphs/iphs_suppkind");
-
- if(h_iphs_suppkind == null){
- iphs_suppkind_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (iphs_suppkind == null){
- iphs_suppkind_flag = null;
- }else if (h_iphs_suppkind.xml == iphs_suppkind.xml) {
- iphs_suppkind_flag = null;
- }else if (h_iphs_suppkind.xml != iphs_suppkind.xml) {
- iphs_suppkind_flag = 'U';
- }
-
- // ㄷ.할인코드 변경체크
- var h_iphs_disccd = ins.selectSingleNode("/root/main/h_iphs/iphs/iphs_disccd");
- var iphs_disccd = ins.selectSingleNode("/root/main/iphs/iphs_disccd");
-
- if(h_iphs_disccd == null){
- iphs_disccd_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (iphs_disccd == null){
- iphs_disccd_flag = null;
- }else if (h_iphs_disccd.xml == iphs_disccd.xml) {
- iphs_disccd_flag = null;
- }else if (h_iphs_disccd.xml != iphs_disccd.xml) {
- iphs_disccd_flag = 'U';
- }
- //model.setValue("/root/main/iphs/iphs_suppkind",model.getValue("/root/main/ptin/ptin_suppkind"));
-
- // ㄹ.수가계산 코드체크
- var h_iphs_calcscorrecalflag = ins.selectSingleNode("/root/main/h_iphs/iphs/iphs_calcscorrecalflag");
- var iphs_calcscorrecalflag = ins.selectSingleNode("/root/main/iphs/iphs_calcscorrecalflag");
-
- if(h_iphs_calcscorrecalflag == null){
- iphs_calcscorrecalflag_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (iphs_calcscorrecalflag == null){
- iphs_calcscorrecalflag_flag = null;
- }else if (h_iphs_calcscorrecalflag.xml == iphs_calcscorrecalflag.xml) {
- iphs_calcscorrecalflag_flag = null;
- }else if (h_iphs_calcscorrecalflag.xml != iphs_calcscorrecalflag.xml) {
- iphs_calcscorrecalflag_flag = 'U';
- }
-
- // 4. 입원등록정보 변경여부 체크
- // INPT 입원등록의 경우 IPHS나 ICDR에서 변경한 사항이 있으면 INPT에도 반영을 해야한다.
- // 단, IPHS와 ICDR의 내역중 가장 최근내용이 수정되었을때만 반영해야 한다. ( TODD가 99991231인경우만 )
- // iphs_todd == inpt_dschdd 일때만 입원정보에 반영
- if ( model.getValue("/root/main/iphs/iphs_todd") == model.getValue("/root/main/inpt/inpt_dschdd")){
-
- model.setValue("/root/main/inpt/inpt_insukind", model.getValue("/root/main/iphs/iphs_insukind"));
- model.setValue("/root/main/inpt/inpt_suppkind", model.getValue("/root/main/iphs/iphs_suppkind"));
- model.setValue("/root/main/inpt/inpt_drgyn", model.getValue("/root/main/iphs/iphs_drgyn"));
- model.setValue("/root/main/inpt/inpt_bmtyn", model.getValue("/root/main/iphs/iphs_bmtyn"));
- model.setValue("/root/main/inpt/inpt_clincstdycd", model.getValue("/root/main/iphs/iphs_clincstdycd"));
- }
-
- var sicdr_app_flag = isNull(model.getValue("/root/hidden/flag/icdr_app_flag"));
- var sicdr_acptflagcd = isNull(model.getValue("/root/main/icdr/icdr_acptflagcd"));
-
- if ( model.getValue("/root/main/icdr/icdr_acptflagcd") == "-"
- || model.getValue("/root/main/icdr/icdr_acptflagcd") == ""
- ||model.getValue("/root/main/icdr/icdr_acptflagcd") == null) { // 신청내역이 아닌 원무에서의 변경의 경우 inpt에 바로반영한다.
-
- if ( model.getValue("/root/main/icdr/icdr_todd") == model.getValue("/root/main/inpt/inpt_dschdd") ){
-
- model.setValue("/root/main/inpt/inpt_dutdeptcd", model.getValue("/root/main/icdr/icdr_dutdeptcd"));
- model.setValue("/root/main/inpt/inpt_centcd", model.getValue("/root/main/icdr/icdr_centcd"));
- model.setValue("/root/main/inpt/inpt_suporddeptcd", model.getValue("/root/main/icdr/icdr_suporddeptcd"));
- model.setValue("/root/main/inpt/inpt_orddeptcd", model.getValue("/root/main/icdr/icdr_orddeptcd"));
- model.setValue("/root/main/inpt/inpt_medispclid", model.getValue("/root/main/icdr/icdr_medispclid"));
- model.setValue("/root/main/inpt/inpt_atdoctid", model.getValue("/root/main/icdr/icdr_atdoctid"));
- model.setValue("/root/main/inpt/inpt_specordyn", model.getValue("/root/main/icdr/icdr_specordyn"));
- model.setValue("/root/main/inpt/inpt_wardcd", model.getValue("/root/main/icdr/icdr_wardcd"));
- model.setValue("/root/main/inpt/inpt_roomcd", model.getValue("/root/main/icdr/icdr_roomcd"));
- model.setValue("/root/main/inpt/inpt_bedcd", model.getValue("/root/main/icdr/icdr_bedcd"));
- model.setValue("/root/main/inpt/inpt_roomgrdecd", model.getValue("/root/main/icdr/icdr_roomgrdecd"));
- model.setValue("/root/main/inpt/inpt_roomtypecd", model.getValue("/root/main/icdr/icdr_roomtypecd"));
- }
-
- } else if ( model.getValue("/root/main/icdr/icdr_acptflagcd") == "1"
- && model.getValue("/root/hidden/flag/icdr_app_flag") == "Y"
- && model.getValue("/root/main/icdr/icdr_appflagcd") == "2" ) { // 신청내역이면서 승인여부 "Y" 인경우 그리고 전과신청만 INPT에 바로반영한다.(전실신청이나 전과+전실은 간호 확인후 반영한다.)
- // alert(sicdr_app_flag);
- // alert(sicdr_acptflagcd);
-
- if ( model.getValue("/root/main/icdr/icdr_todd") == model.getValue("/root/main/inpt/inpt_dschdd") ){
-
- model.setValue("/root/main/inpt/inpt_dutdeptcd", model.getValue("/root/main/icdr/icdr_dutdeptcd"));
- model.setValue("/root/main/inpt/inpt_centcd", model.getValue("/root/main/icdr/icdr_centcd"));
- model.setValue("/root/main/inpt/inpt_suporddeptcd", model.getValue("/root/main/icdr/icdr_suporddeptcd"));
- model.setValue("/root/main/inpt/inpt_orddeptcd", model.getValue("/root/main/icdr/icdr_orddeptcd"));
- model.setValue("/root/main/inpt/inpt_medispclid", model.getValue("/root/main/icdr/icdr_medispclid"));
- model.setValue("/root/main/inpt/inpt_atdoctid", model.getValue("/root/main/icdr/icdr_atdoctid"));
- model.setValue("/root/main/inpt/inpt_specordyn", model.getValue("/root/main/icdr/icdr_specordyn"));
- model.setValue("/root/main/inpt/inpt_wardcd", model.getValue("/root/main/icdr/icdr_wardcd"));
- model.setValue("/root/main/inpt/inpt_roomcd", model.getValue("/root/main/icdr/icdr_roomcd"));
- model.setValue("/root/main/inpt/inpt_bedcd", model.getValue("/root/main/icdr/icdr_bedcd"));
- model.setValue("/root/main/inpt/inpt_roomgrdecd", model.getValue("/root/main/icdr/icdr_roomgrdecd"));
- model.setValue("/root/main/inpt/inpt_roomtypecd", model.getValue("/root/main/icdr/icdr_roomtypecd"));
- }
- }
-
- // 2009.07.07 -- 과거로직 제거
- /*
- // 입원환자를 응급실로 전과전실시에는 입원취소를 하고 응급실로 되돌리는 것으로 판단하고 INPT의 ordtype을 I -> E로 셋팅한다. 2007.09.28 홍영표
- var sicdr_wardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- // var sicdr_orddeptcd = model.getValue("/root/main/icdr/icdr_orddeptcd");
- // if ( sicdr_wardcd == gsWardCd_ER1 && sicdr_orddeptcd == gsOrddeptCd_ER ) {
- if ( sicdr_wardcd == gsWardCd_ER1 ) {
- var sinpt_ordtype = model.getValue("/root/main/inpt/inpt_ordtype");
- // alert("sinpt_ordtype : " + sinpt_ordtype);
- if ( sinpt_ordtype == 'I' ){
- model.setValue("/root/main/inpt/inpt_ordtype", 'E');
- model.setValue("/root/main/icdr/icdr_ordtype", 'E');
- messageBox("응급실로 전환합니다.","I999");
- }
- }
- // alert("44");
- // 입원환자를 DSC로 전과전실시에는 입원취소를 하고 DSC로 되돌리는 것으로 판단하고 INPT의 ordtype을 I -> D로 셋팅한다. 2007.09.28 홍영표
- if ( sicdr_wardcd == gsWardcd_DSC ) {
- var sinpt_ordtype = model.getValue("/root/main/inpt/inpt_ordtype");
- if ( sinpt_ordtype == 'I' ){
- model.setValue("/root/main/inpt/inpt_ordtype", 'D');
- model.setValue("/root/main/icdr/icdr_ordtype", 'D');
- messageBox("DSC로 전환합니다.","I999");
- }
- }
- */
- var h_inpt_pat = ins.selectSingleNode("/root/main/h_inpt/inpt");
- var inpt_pat = ins.selectSingleNode("/root/main/inpt");
-
- model.resetInstanceNode("/root/send/s_inpt");
-
- if (h_inpt_pat == null){
- inpt_flag = null;
- }else if (inpt_pat == null){
- inpt_flag = null;
- }else if (h_inpt_pat.xml == inpt_pat.xml) {
- inpt_flag = null;
- }else if (h_inpt_pat.xml != inpt_pat.xml) {
- inpt_flag = 'U';
- model.setValue("/root/main/inpt/inpt_status",inpt_flag);
- copyNodeType("/root/send/s_inpt", "/root/main/inpt", "replace");
- //submit("TXPMI00404");
- }
-
- // 5. 재원내역정보(유형) 변경여부 체크
- var h_iphs_pat = ins.selectSingleNode("/root/main/h_iphs/iphs");
- var iphs_pat = ins.selectSingleNode("/root/main/iphs");
-
- model.resetInstanceNode("/root/send/s_iphs");
- //model.alert("h_iphs_pat.xml : " + h_iphs_pat.xml + "\n" +
- // "iphs_pat.xml : " + iphs_pat.xml);
-
- if (h_iphs_pat == null){
- iphs_flag = null;
- }else if (iphs_pat == null){
- iphs_flag = null;
- }else if (h_iphs_pat.xml == iphs_pat.xml) {
- iphs_flag = null;
- }else if (h_iphs_pat.xml != iphs_pat.xml) {
- iphs_flag = 'U';
- model.setValue("/root/main/iphs/iphs_status",iphs_flag);
-
- // DRG정보가 초기화된 경우 심사인터페이스 처리위한 파라미터 추가 by 조중래
- if ((model.getValue("/root/main/h_iphs/iphs/drgyn") == "A" || model.getValue("/root/main/h_iphs/iphs/drgyn") == "Y")
- && (model.getValue("/root/main/iphs/drgyn") != "A" && model.getValue("/root/main/iphs/drgyn") != "Y")) {
-
- model.makeValue("/root/main/iphs/iphs_drgstatus", "X");
- }
-
- // 수정추가 : 2009.05.28 JHP, 임상시험유형으로 보험유형변경시 계정감면은 무조건 '-'... 김흥준과장님 요청.. 시작 -------------------------
- // 주유형일때...
- if( model.getValue("/root/main/iphs/iphs_insukind") == "71" ){
- model.setValue("/root/main/iphs/iphs_disccd", "-");
- }
- // 수정추가 : 2009.05.28 JHP, 임상시험유형으로 보험유형변경시 계정감면은 무조건 '-'... 김흥준과장님 요청.. 끝 -------------------------
-
- //<!-- 수정이력 : JHP 20090803 상한액 관련 IPHS ownbmaxgradeflag : '본인부담상한액 차등적용 구분 (-:해당없음, 1:400, 2:300, 3:200만원)' 추가-->
- // 본인부담상한액 차등적용구분 값체크. 기본적으로 400만원이고 사용자가 임으로 300으로 바꿀수 있음. 200은 보조유형 50(희귀난치산정특례)일때 가능
- fOwnBMaxGradeFlagSet();
- // var ssuppkindobmgf = model.getValue("/root/main/iphs/iphs_suppkind");
- // var ownbmaxgradeflag = model.getValue("/root/main/iphs/iphs_ownbmaxgradeflag");
- /*
- if(ssuppkindobmgf == "32" || ssuppkindobmgf == "33" || ssuppkindobmgf == "34" || ssuppkindobmgf == "35" || ssuppkindobmgf == "36" || ssuppkindobmgf == "37" || ssuppkindobmgf == "38" ||
- ssuppkindobmgf == "39" || ssuppkindobmgf == "40" || ssuppkindobmgf == "41" || ssuppkindobmgf == "42" || ssuppkindobmgf == "43" || ssuppkindobmgf == "44" || ssuppkindobmgf == "45" ||
- ssuppkindobmgf == "46"){
- if(ownbmaxgradeflag != "3"){
- messageBox("차상위 환자는 본인부담상한액 200만원","I009");
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag","3");
- }
- }else{
- if (ownbmaxgradeflag == null || ownbmaxgradeflag ==" " || ownbmaxgradeflag == "") {
- messageBox("본인부담상한액정보가 미존재함으로 기본상한액적용됩니다.","");
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag","1");
- }else if(ownbmaxgradeflag == "3"){
- messageBox("차상위 환자에 대해 본인부담상한액 200만원 적용됩니다. \n기본상한액적용됩니다.","");
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag","1");
- }
- }
- */
- // if (ownbmaxgradeflag == null || ownbmaxgradeflag ==" " || ownbmaxgradeflag == "") {
- // messageBox("본인부담상한액정보가 미존재함으로 기본상한액적용됩니다.","");
- // model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag","1");
- // }
-
- copyNodeType("/root/send/s_iphs", "/root/main/iphs", "replace");
- //submit("TXPMI00405");
- }
- //model.alert("s_iphs : " + ins.selectSingleNode("/root/send/s_iphs").xml);
- // 6. 재원이력정보(진료과,병실,의사 등) 변경여부 체크
- var h_icdr_pat = ins.selectSingleNode("/root/main/h_icdr/icdr");
- var icdr_pat = ins.selectSingleNode("/root/main/icdr");
-
- model.resetInstanceNode("/root/send/s_icdr");
-
- // 전과전실이력중 신청내역을 승인할경우에는 신청내역을 변경하지 않아도 신청승인여부만 체크되어있으면 승인처리한다.
- if ( model.getValue("/root/hidden/flag/icdr_app_flag") == 'Y' ) {
- icdr_flag = 'I';
- model.setValue("/root/main/icdr/icdr_status",icdr_flag);
- copyNodeType("/root/send/s_icdr", "/root/main/icdr", "replace");
- }else if ( model.getValue("/root/hidden/flag/icdr_app_flag") != 'Y' ) {
-
- if (h_icdr_pat == null){
- icdr_flag = null;
- }else if (icdr_pat == null){
- icdr_flag = null;
- }else if (h_icdr_pat.xml == icdr_pat.xml) {
- icdr_flag = null;
- }else if (h_icdr_pat.xml != icdr_pat.xml) {
- icdr_flag = 'U';
- model.setValue("/root/main/icdr/icdr_status",icdr_flag);
- copyNodeType("/root/send/s_icdr", "/root/main/icdr", "replace");
-
- // 의사변경여부 설정
- if (model.getValue("/root/main/h_icdr/icdr/icdr_medispclid") != model.getValue("/root/main/icdr/icdr_medispclid")) {
- model.makeValue("/root/send/s_icdr/icdr_medispclid_flag", "Y");
- } else {
- model.makeValue("/root/send/s_icdr/icdr_medispclid_flag", "N");
- }
- //submit("TXPMI00406");
- }
- }
-
- // 7. 소급일자 체크 및 처리( IPHS : 보험유형, 보조유형, 감면코드 / ICDR : 병실등급, 병실형태, 특진여부 발생시)
- // inpt 체크로직 추가 : 초재진구분, 진찰료산정여부, 기타구분 by 조중래 20150410
- var sIpsc_yn = null;
- var sIpsc_inpt_yn = null;
- var sIpsc_iphs_yn = null;
- var sIpsc_icdr_yn = null;
- var sIpsc_fromdd = null;
- var sIpsc_todd = null;
-
- // 7.1 재원유형의 소급적용일자 체크
- //2008.01.18 퇴원통보일자가 있는경우 iphs_todd를 통보일자로 넣어주고 그날까지만 소급한다.
- var iphs_fromdd = model.getValue("/root/main/iphs/iphs_fromdd");
- var iphs_todd = model.getValue("/root/main/iphs/iphs_todd");
- var inpt_dschnotidt = model.getValue("/root/main/inpt/inpt_dschnotidt");
- inpt_dschnotidt = inpt_dschnotidt.substr(0, 8)
-
- if (iphs_fromdd <= getCurrentDate()){
- // 보험유형
- if(iphs_insukind_flag == 'U'){
- sIpsc_iphs_yn = 'Y';
- }
- // 보조유형
- if (iphs_suppkind_flag == 'U'){
- sIpsc_iphs_yn = 'Y';
- }
- // 할인코드
- if (iphs_disccd_flag == 'U'){
- sIpsc_iphs_yn = 'Y';
- }
- // 수가계산
- if (iphs_calcscorrecalflag_flag == 'U') {
- sIpsc_iphs_yn = 'Y';
- }
-
- // 소급할일자 범위 산정 ( 적용일자가 오늘보다 적어도 소급할 항목의 변경이 있을때만 반영한다. )
- if(sIpsc_iphs_yn == 'Y'){
- sIpsc_fromdd = iphs_fromdd;
-
- // 완화의료 소급시작일자 보정처리
- if (iphs_calcscorrecalflag_flag == 'U') {
-
- // 직전유형의 최종일자에 의약품 관리료 생성을 위하여
- // 현재유형 시작일자에서 하루를 감해서 설정(입원당일 제외)
- if (iphs_fromdd > model.getValue("/root/main/inpt/inpt_indd")) {
- iphs_fromdd = iphs_fromdd.toDate().getAddDate(-1, 'D');
- sIpsc_fromdd = iphs_fromdd.getDateFormat("YYYYMMDD");
- }
- }
-
- if(iphs_todd < getCurrentDate()){
- sIpsc_todd = iphs_todd;
- } else if (iphs_todd >= getCurrentDate()){
- // sIpsc_todd = getCurrentDate();
- // sIpsc_todd = sIpsc_todd.toDate().getAddDate(-1, 'D');
- // sIpsc_todd = sIpsc_todd.getDateFormat("YYYYMMDD")
- if (inpt_dschnotidt != null && inpt_dschnotidt != " " && inpt_dschnotidt != "" && inpt_dschnotidt != "-") {
- if(getCurrentDate() >= inpt_dschnotidt) {
- sIpsc_todd = inpt_dschnotidt;
- } else {
- sIpsc_todd = getCurrentDate();
- // sIpsc_todd = sIpsc_todd.toDate().getAddDate(-1, 'D');
- // sIpsc_todd = sIpsc_todd.getDateFormat("YYYYMMDD")
- }
- } else {
- sIpsc_todd = getCurrentDate();
- // sIpsc_todd = sIpsc_todd.toDate().getAddDate(-1, 'D');
- // sIpsc_todd = sIpsc_todd.getDateFormat("YYYYMMDD")
- }
- }
- }
- }
-
- // 7.2 전과전실의 소급적용일자 체크
- var icdr_fromdd = model.getValue("/root/main/icdr/icdr_fromdd");
- var icdr_todd = model.getValue("/root/main/icdr/icdr_todd");
-
- if (icdr_fromdd <= getCurrentDate()){
- // ㄹ.병실등급 변경체크
- var h_icdr_roomgrdecd = ins.selectSingleNode("/root/main/h_icdr/icdr/icdr_roomgrdecd");
- var icdr_roomgrdecd = ins.selectSingleNode("/root/main/icdr/icdr_roomgrdecd");
-
- if(h_icdr_roomgrdecd == null){
- icdr_roomgrdecd_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (icdr_roomgrdecd == null){
- icdr_roomgrdecd_flag = null;
- }else if (h_icdr_roomgrdecd.xml == icdr_roomgrdecd.xml) {
- icdr_roomgrdecd_flag = null;
- }else if (h_icdr_roomgrdecd.xml != icdr_roomgrdecd.xml) {
- icdr_roomgrdecd_flag = 'U';
- }
-
- // ㅁ.병실형태 변경체크
- var h_icdr_roomtypecd = ins.selectSingleNode("/root/main/h_icdr/icdr/icdr_roomtypecd");
- var icdr_roomtypecd = ins.selectSingleNode("/root/main/icdr/icdr_roomtypecd");
-
- if(h_icdr_roomtypecd == null){
- icdr_roomtypecd_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (icdr_roomtypecd == null){
- icdr_roomtypecd_flag = null;
- }else if (h_icdr_roomtypecd.xml == icdr_roomtypecd.xml) {
- icdr_roomtypecd_flag = null;
- }else if (h_icdr_roomtypecd.xml != icdr_roomtypecd.xml) {
- icdr_roomtypecd_flag = 'U';
- }
-
- // ㅂ.특진의사여부 변경체크
- var h_icdr_specordyn = ins.selectSingleNode("/root/main/h_icdr/icdr/icdr_specordyn");
- var icdr_specordyn = ins.selectSingleNode("/root/main/icdr/icdr_specordyn");
-
- if(h_icdr_specordyn == null){
- icdr_specordyn_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (icdr_specordyn == null){
- icdr_specordyn_flag = null;
- }else if (h_icdr_specordyn.xml == icdr_specordyn.xml) {
- icdr_specordyn_flag = null;
- }else if (h_icdr_specordyn.xml != icdr_specordyn.xml) {
- icdr_specordyn_flag = 'U';
- }
-
- // ㅅ.의사 변경체크
- var h_icdr_medispclid = ins.selectSingleNode("/root/main/h_icdr/icdr/icdr_medispclid");
- var icdr_medispclid = ins.selectSingleNode("/root/main/icdr/icdr_medispclid");
-
- if(h_icdr_medispclid == null){
- icdr_medispclid_flag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }else if (icdr_medispclid == null){
- icdr_medispclid_flag = null;
- }else if (h_icdr_medispclid.xml == icdr_medispclid.xml) {
- icdr_medispclid_flag = null;
- }else if (h_icdr_medispclid.xml != icdr_medispclid.xml) {
- icdr_medispclid_flag = 'U';
- }
-
- if(icdr_roomgrdecd_flag == 'U'){
- sIpsc_icdr_yn = 'Y';
- } else if (icdr_roomtypecd_flag == 'U'){
- sIpsc_icdr_yn = 'Y';
- } else if (icdr_specordyn_flag == 'U'){
- sIpsc_icdr_yn = 'Y';
- } else if (icdr_medispclid_flag == 'U') {
- sIpsc_icdr_yn = 'Y';
- }
-
- // 소급할일자 범위 산정 ( 적용일자가 오늘보다 적어도 소급할 항목의 변경이 있을때만 반영한다. )
- if(sIpsc_icdr_yn == 'Y'){
- if(sIpsc_fromdd == null) {
- sIpsc_fromdd = icdr_fromdd;
- }else if(icdr_fromdd <= sIpsc_fromdd){
- sIpsc_fromdd = icdr_fromdd;
- }
-
- if(icdr_todd < getCurrentDate()) {
- if(sIpsc_todd == null) {
- sIpsc_todd = icdr_todd;
- }else if(icdr_todd >= sIpsc_todd){
- sIpsc_todd = icdr_todd;
- }
- } else if (icdr_todd >= getCurrentDate()){
- // sIpsc_todd = getCurrentDate();
- // sIpsc_todd = sIpsc_todd.toDate().getAddDate(-1, 'D');
- // sIpsc_todd = sIpsc_todd.getDateFormat("YYYYMMDD")
- if (inpt_dschnotidt != null && inpt_dschnotidt != " " && inpt_dschnotidt != "" && inpt_dschnotidt != "-") {
- if(getCurrentDate() >= inpt_dschnotidt) {
- sIpsc_todd = inpt_dschnotidt;
- } else {
- sIpsc_todd = getCurrentDate();
- sIpsc_todd = sIpsc_todd.toDate().getAddDate(-1, 'D');
- sIpsc_todd = sIpsc_todd.getDateFormat("YYYYMMDD")
- }
- } else {
- sIpsc_todd = getCurrentDate();
- sIpsc_todd = sIpsc_todd.toDate().getAddDate(-1, 'D');
- sIpsc_todd = sIpsc_todd.getDateFormat("YYYYMMDD")
- }
- }
- }
- }
-
- // 7.3 입원마스터의 소급적용일자 체크
- if ((model.getValue("/root/main/inpt/inpt_fsexamflag") != model.getValue("/root/main/h_inpt/inpt/inpt_fsexamflag"))
- || (model.getValue("/root/main/inpt/inpt_medcostestmflag") != model.getValue("/root/main/h_inpt/inpt/inpt_medcostestmflag"))
- || (model.getValue("/root/main/inpt/inpt_etcordflag") != model.getValue("/root/main/h_inpt/inpt/inpt_etcordflag"))) {
-
- sIpsc_inpt_yn = "Y"
- sIpsc_fromdd = model.getValue("/root/main/inpt/inpt_indd");
-
- // 종료일자는 IPHS, ICDR에서 적용되지 않았을 때만 설정
- if (sIpsc_todd == null || sIpsc_todd == "") {
- sIpsc_todd = model.getValue("/root/main/inpt/inpt_indd");
- }
- }
-
- // 7.4 소급처리할 데이터 생성
- if (sIpsc_inpt_yn == 'Y' || sIpsc_iphs_yn == 'Y'||sIpsc_icdr_yn == 'Y'){
- sIpsc_yn = 'Y';
- }
-
- if (sIpsc_yn == 'Y') {
-
- model.resetInstanceNode("/root/main/ipsc");
- model.resetInstanceNode("/root/send/s_ipsc");
-
- model.setValue("/root/main/ipsc/ipsc_status","U");
- model.setValue("/root/main/ipsc/ipsc_pid",model.getValue("/root/main/inpt/inpt_pid"));
- model.setValue("/root/main/ipsc/ipsc_indd",model.getValue("/root/main/inpt/inpt_indd"));
- model.setValue("/root/main/ipsc/ipsc_cretno",model.getValue("/root/main/inpt/inpt_cretno"));
- model.setValue("/root/main/ipsc/ipsc_recalfromdd",sIpsc_fromdd);
- model.setValue("/root/main/ipsc/ipsc_recaltodd",sIpsc_todd);
- model.setValue("/root/main/ipsc/ipsc_instcd",model.getValue("/root/main/inpt/inpt_instcd"));
- model.setValue("/root/main/ipsc/ipsc_mskind",model.getValue("/root/main/inpt/inpt_mskind"));
- model.setValue("/root/main/ipsc/ipsc_histstat","Y");
- model.setValue("/root/main/ipsc/ipsc_genrdd",getCurrentDate());
- model.setValue("/root/main/ipsc/ipsc_tretrslt","M");
- model.setValue("/root/main/ipsc/ipsc_retcgenrplce","W");
-
- // 삭제예정 : // 입원등록테이블(INPT)에 진료비 소급일자를 업데이트 한다.
- // model.setValue("/root/main/inpt/inpt_ordcostretcdd",sIpsc_fromdd);
- // inpt_flag = 'U';
- // model.setValue("/root/main/inpt/inpt_status",'U');
- // copyNodeType("/root/send/s_inpt", "/root/main/inpt", "replace"); // 기존의 INPT변경사항에 상관없이 다시한번 COPY한다.
-
- copyNodeType("/root/send/s_ipsc", "/root/main/ipsc", "replace");
-
- // 구현예정(서버모듈) : 소급테이블에 같은날짜에 처리결과가 없는경우에만 건너뛴다. 해당날짜에 처리결과가 있으면 다시 소급등록한다. : 완료 (무조건 등록한다)
- }
- /*
- model.alert( "ptbs_flag:" + ptbs_flag +
- "\n"+"ptin_flag:" + ptin_flag +
- "\n"+"inpt_flag:" + inpt_flag +
- "\n"+"iphs_flag:" + iphs_flag +
- "\n"+"icdr_flag:" + icdr_flag +
- "\n"+"ipsc_flag:" + sIpsc_yn);
- */
- /* 2009.11.15 MYKIM 추가
- * desc 재원 중 환자를 조회시 현재 보조유형이나 기간이 맞지 않는 환자인 경우 수정하도록 유도함.
- * but 마스터를 확인하고 변경해야할 경우도 있으므로 자보내역을 수정하지 않아도 저장은 됨. (김흥준 과장 요청)
- */
- if (model.getValue("/root/hidden/original/inpt/inpt_insukind") == "31" ) {
- fCheckJabo();
- }
-
- // 8. 전체변경데이터를 모아서 변경한다.
- // 구현예정 : 변경된 값이 있을때만 submit 던지고 아니면 변경된사항이 없다는 메세지 처리한다. : 완료
- if (ptbs_flag == 'U' || ptin_flag == 'U' || inpt_flag == 'U' || iphs_flag == 'U' || icdr_flag == 'I' || icdr_flag == 'U' ||sIpsc_yn == 'Y'){
-
- if ( submit("TXPMI00401") == true ) {
-
- // 상급병실신청용 팝업표시
- // 실료차가 있는 병실이거나, 격리병실의 경우에는 상급병실신청팝업 띄움 111114 조중래
- // 병실이 변경되었거나, 병실등급이 변경되었을 경우에만 처리
- if (( model.getValue("/root/main/icdr/icdr_roomcd") != model.getValue("/root/main/h_icdr/icdr/icdr_roomcd" ))
- || ( model.getValue("/root/main/icdr/icdr_roomgrdecd") != model.getValue("/root/main/h_icdr/icdr/icdr_roomgrdecd") )) {
-
- var diffamt = 0;
- var roomgrdecd = model.getValue("/root/main/icdr/icdr_roomgrdecd");
- var nodeList = instance1.selectNodes("/root/hidden/init/roomgrdecd");
-
- // 병실등급으로 병실차액을 가져옴
- for ( i = 1; i < nodeList.length; i++) {
- var cd = model.getValue("/root/hidden/init/roomgrdecd[" + i + "]/cd");
-
- if (cd == roomgrdecd) {
-
- // 병실차액 설정
- diffamt = model.getValue("/root/hidden/init/roomgrdecd[" + i + "]/cdamt");
- break;
- }
- }
-
- // 실료차가 있는 병실이거나, 격리병실의 경우에는 상급병실신청팝업 띄움 111114 조중래
- if (diffamt > 0 || roomgrdecd == 'S0701') {
-
- fUpRoomSignMngt(model.getValue("/root/main/inpt/inpt_pid"), model.getValue("/root/main/inpt/inpt_indd"), "Y");
- }
- }
-
- // 변경이 성공하면 세부사항을 최신DB내역으로 갱신한다. 안그러면 연속 변경저장시 오류발생함.
- // curruntrow는 원래 선택해서 변수에 담은 재원내역 Row
- // 구현예정 : 리턴값 체크해서 성공시에만 재조회한다. 그리고 INPT의 변경사항에 대한 변경값 REFRESH기능 필요 : 완료
-
- model.resetInstanceNode("/root/send/s_ptbs");
- model.resetInstanceNode("/root/send/s_ptin");
- model.resetInstanceNode("/root/send/s_inpt");
- model.resetInstanceNode("/root/send/s_iphs");
- model.resetInstanceNode("/root/send/s_icdr");
- model.resetInstanceNode("/root/send/s_ipsc");
-
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2",model.getValue("/root/main/ptbs/ptbs_pid"));
-
- fipatrefchlind('1');
-
- fQuery1();
-
- if(datagrid2.rows > 1) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1");
- }
- }
- } else {
- messageBox("변경되어진 항목이 ","I004");
- }
- //submit("TXPMI00401");
- // messageBox( "ptbs_flag:" + ptbs_flag +
- // "\n"+"ptin_flag:" + ptin_flag +
- // "\n"+"inpt_flag:" + inpt_flag +
- // "\n"+"iphs_flag:" + iphs_flag +
- // "\n"+"icdr_flag:" + icdr_flag +
- // "\n"+"ipsc_flag:" + sIpsc_yn , "I001");
-
-
- }
-
- function fipatrefchlind(ipatrefflag)
- {
- if (ipatrefflag == '1' || ipatrefflag == '13') {
- input11.attribute("top") = "8xp";
- input11.attribute("left") = "365px";
- input36.visible = false;
- combo24.visible = false;
- input11.visible = true;
- model.setFocus("input11");
- model.refresh();
- } else if (ipatrefflag == '2') {
- combo24.attribute("top") = "8xp";
- combo24.attribute("left") = "365xp";
- input36.visible = false;
- combo24.visible = true;
- input11.visible = false;
- combo24.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddeptcd";
- combo24.refresh();
- } else if (ipatrefflag == '3') {
- combo24.attribute("top") = "8xp";
- combo24.attribute("left") = "365xp";
- input36.visible = false;
- combo24.visible = true;
- input11.visible = false;
- combo24.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid";
- combo24.refresh();
- } else if (ipatrefflag == '4') {
- combo24.attribute("top") = "8xp";
- combo24.attribute("left") = "365xp";
- input36.visible = false;
- combo24.visible = true;
- input11.visible = false;
- combo24.choices.itemset.attribute("nodeset") = "/root/hidden/init/orddrid";
- combo24.refresh();
- } else if (ipatrefflag == '5') {
- combo24.attribute("top") = "8xp";
- combo24.attribute("left") = "365xp";
- input36.visible = false;
- combo24.visible = true;
- input11.visible = false;
- combo24.choices.itemset.attribute("nodeset") = "/root/hidden/init/wardcd";
- combo24.refresh();
- } else if (ipatrefflag == '6' || ipatrefflag == '7') {
- input36.attribute("top") = "8xp";
- input36.attribute("left") = "365xp";
- input36.visible = true;
- combo24.visible = false;
- input11.visible = false;
- model.setValue("/root/send/srchcond2", getCurrentDate());
- model.refresh();
- } else if (ipatrefflag == '8') {
- combo24.attribute("top") = "8xp";
- combo24.attribute("left") = "365xp";
- input36.visible = false;
- combo24.visible = true;
- input11.visible = false;
- combo24.choices.itemset.attribute("nodeset") = "/root/hidden/init/insukind";
- combo24.refresh();
- } else if (ipatrefflag == '0') {
- combo24.visible = false;
- input36.visible = false;
- input11.visible = false;
- }
- }
-
- // function fPidVeri()
- // {
- // var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid").getTrim();
- //
- // if (ptbs_pid != null && ptbs_pid != "" && ptbs_pid != " " && ptbs_pid != "-")
- // {
- // if (ptbs_pid.length != 0)
- // {
- // if (ptbs_pid.isNumber() == true)
- // {
- // //환자조회
- // }
- // else{
- // messageBox("환자번호는 숫자만 입력해야합니다!","E999","");
- // fOneInstanceReset("all"); //단일구조 인스턴스 초기화
- // fMultiInstanceReset(); //멀티구조 인스턴스 초기화
- // fMultiInstanceCopy(); //멀티 인스턴스 copy
- // fBaseDataInit("all"); //기본데이터 초기화
- // model.refresh();
- // return false;
- // }
- // }
- // else{
- // fOneInstanceReset("all"); //단일구조 인스턴스 초기화
- // fMultiInstanceReset(); //멀티구조 인스턴스 초기화
- // fMultiInstanceCopy(); //멀티 인스턴스 copy
- // fBaseDataInit("all"); //기본데이터 초기화
- // model.refresh();
- // return false;
- // }
- // }
- // else{
- // fOneInstanceReset("all"); //단일구조 인스턴스 초기화
- // fMultiInstanceReset(); //멀티구조 인스턴스 초기화
- // fMultiInstanceCopy(); //멀티 인스턴스 copy
- // fBaseDataInit("all"); //기본데이터 초기화
- // model.refresh();
- // return false;
- // }
- // }
- function fAgeVeri()
- {
- var ptbs_age = model.getValue("/root/main/ptbs/ptbs_age");
- if (ptbs_age != null && ptbs_age != "" && ptbs_age != " " && ptbs_age != "-")
- {
- if (ptbs_age.length >= 1)
- {
- if (ptbs_age.isNumber() != true)
- {
- messageBox("나이항목의 형식이 ","E004");
- model.setFocus("ipt_age");
- return false;
- }
- }
- }
- }
- function fHngNmVeri(gubn)
- {
- var ptbs_hngnm;
- if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- else if (gubn == "onkeypress" || gubn == "onkeyup")
- {
- ptbs_hngnm = (input2.currentText).toString();
- }
- //한글 한글자를 그냥 길이1로 계산
- if (eval((ptbs_hngnm.length).toString()) < 2)
- {
-
- messageBox("환자성명은 2글자 이상 ","C001");
- model.setFocus("input2");
- return false;
- }
- }
- function fRrgstNo1Veri()
- {
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
-
- if (ptbs_rrgstno1 != null && ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-")
- {
- if (ptbs_rrgstno1.length != 6)
- {
- messageBox("주민번호1은 6자리 이상 ","C001");
- model.setFocus("input15");
- return false;
- }
-
- if (ptbs_rrgstno1.isNumber() != true)
- {
- messageBox("주민번호1은 숫자형태로 ","C001");
- model.setFocus("input15");
- return false;
- }
- }
- else
- {
- messageBox("주민번호1은 6자리 이상 ","C001");
- model.setFocus("input15");
- return false;
- }
- }
-
- function fRrgstNo2Veri()
- {
- var ptbs_brthdd;
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
-
- if (ptbs_rrgstno1.length != 6)
- {
- messageBox("주민번호1은 6자리 이상 ","C001");
- model.setFocus("input38");
- return false;
- }
-
- var gubn = ptbs_rrgstno2.substr(0,1);
- switch(gubn){
- case '1' :
- case '2' :
- case '5' :
- case '6' :
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- case '3' :
- case '4' :
- case '7' :
- case '8' :
- ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
- break;
- case '9' :
- case '0' :
- ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
- break;
- default :
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- }
- model.setValue("/root/main/ptbs/ptbs_brthdd",ptbs_brthdd);
-
- if (isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false)
- {
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 ","C001");
- model.setValue("/root/main/ptbs/ptbs_rrgstno1","");
- model.setValue("/root/main/ptbs/ptbs_rrgstno2","");
- model.setValue("/root/main/ptbs/ptbs_brthdd","");
- model.refresh();
- return false;
- }
-
- var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- model.setValue("/root/main/ptbs/ptbs_sex",getGender(ptbs_sex));
-
- //var ptbs_age = ptbs_rrgstno1.concat(ptbs_rrgstno2);
- var ptbs_age = ptbs_rrgstno1;
- model.setValue("/root/main/ptbs/ptbs_age",getFullAge(model.getValue("/root/main/ptbs/ptbs_brthdd")));
- model.refresh();
-
- if (isResidentNo(ptbs_age) == false)
- {
- messageBox("유효하지 않은 주민번호 ","E008");
- return false;
- }
- }
-
- function fHomeTelVeri()
- {
- var ptbs_hometel = model.getValue("/root/main/ptbs/ptbs_hometel");
- if (ptbs_hometel != null && ptbs_hometel != "" && ptbs_hometel != " " && ptbs_hometel != "-" )
- {
- if (ptbs_hometel.length >= 1)
- {
- if (ptbs_hometel.length < 7)
- {
- messageBox("전화번호는 7자리 이상 ","C001");
- model.setFocus("input1");
- return false;
- }
- }
- }
- }
-
- function fMpphonTelVeri()
- {
- var ptbs_mpphontel = model.getValue("/root/main/ptbs/ptbs_mpphontel");
- if (ptbs_mpphontel != null && ptbs_mpphontel != "" && ptbs_mpphontel != " " && ptbs_mpphontel != "-")
- {
- if (ptbs_mpphontel.length >= 1)
- {
- if (ptbs_mpphontel.length < 10)
- {
- messageBox("휴대폰 전화번호는 10자리 이상 ","C001");
- model.setFocus("input11");
- return false;
- }
- else
- {
- var ptbs_mpphontel_sub = ptbs_mpphontel.substr(0,3);
-
- if (ptbs_mpphontel_sub != "011" && ptbs_mpphontel_sub != "010" && ptbs_mpphontel_sub != "017" &&
- ptbs_mpphontel_sub != "016" && ptbs_mpphontel_sub != "019" && ptbs_mpphontel_sub != "018")
- {
- messageBox("휴대폰 앞3자리 형식이 ","E004");
- model.setFocus("input11");
- return false;
- }
- }
- }
- }
- }
-
- //보험 탭 세팅하기
- function fInsukindTabSetting(){
- var iphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
-
- //보조유형 세팅하기
- model.setValue("/root/main/ptin/ptin_insukind",model.getValue("/root/main/iphs/iphs_insukind"));
-
- // 입원요율에 따른 보조유형 재설정
- // 외래요율
- if (model.getValue("/root/main/inpt/inpt_brateflag") != null && model.getValue("/root/main/inpt/inpt_brateflag") == "O") {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/hidden/init/suppkind[up = '" + iphs_insukind + "' and (io = 'A' or io = 'O')]";
- } else {
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/hidden/init/suppkind[up = '" + iphs_insukind + "' and (io = 'A' or io = 'I')]";
- }
-
- //건강보험,의료급여1,2종,일반,외국인
- if (iphs_insukind == gsBoHeom || iphs_insukind == gsBoHo1 || iphs_insukind == gsBoHo2 ||
- iphs_insukind == gsIlBan || iphs_insukind == gsForIn || iphs_insukind == gsImSang) {
- model.toggle("case_base");
- }
- //산재
- if (iphs_insukind == gsSanJae) {
- model.toggle("case_inducs");
- }
- //자보
- if (iphs_insukind == gsJaboKind) {
- model.toggle("case_ta");
- }
- //공상
- if (iphs_insukind == gsGongSang) {
- model.toggle("case_dutywund");
- }
- }
-
- function fPatEmplInfoRefDir() {
-
- var rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- var hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- var rrgstno = rrgstno1 + rrgstno2;
- var pid = model.getValue("/root/main/ptbs/ptbs_pid");
-
- model.makeNode("/root/temp/result/famylist");
-
- //send
- model.makeNode("/root/send/discpat/checkcount");
- model.makeNode("/root/send/discpat/rrgstno1");
- model.makeNode("/root/send/discpat/rrgstno2");
- model.makeNode("/root/send/discpat/rrgstno");
- model.makeNode("/root/send/discpat/emplnm");
- model.makeNode("/root/send/discpat/pid");
- model.setValue("/root/send/discpat/checkcount", 1);
- model.setValue("/root/send/discpat/rrgstno1", rrgstno1);
- model.setValue("/root/send/discpat/rrgstno2", rrgstno2);
- model.setValue("/root/send/discpat/rrgstno", rrgstno);
- model.setValue("/root/send/discpat/emplnm", hngnm);
- model.setValue("/root/send/discpat/pid", pid);
-
- if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
- submit("TRPMC03802");
-
- if( getNodesetCount("/root/temp/result/famylist/cretinstcd") > 0 ){
-
- model.setValue("/root/main/inpt/inpt_emplno", model.getValue("/root/temp/result/famylist/emplno")); // 직원번호
- model.setValue("/root/main/iphs/iphs_emplnm", model.getValue("/root/temp/result/famylist/emplnm")); // 직원성명
- model.setValue("/root/main/iphs/iphs_disccd", model.getValue("/root/temp/result/famylist/discuncocd")); // 할인코드(discuncocd)
- model.setValue("/root/main/iphs/iphs_famyrelnm", model.getValue("/root/temp/result/famylist/famyrelnm")); // 관계
- model.setValue("/root/main/iphs/iphs_preststatnm", model.getValue("/root/temp/result/famylist/preststatnm")); // 근무상태
- model.setValue("/root/main/iphs/iphs_profacptyn", model.getValue("/root/temp/result/famylist/profacptyn")); // 증명서접수여부
- model.setValue("/root/main/iphs/iphs_profacptdd", model.getValue("/root/temp/result/famylist/profacptdd")); // 증명서접수일자
- model.setValue("/root/main/iphs/iphs_remark", model.getValue("/root/temp/result/famylist/remark")); // 참고사항
- }
- }
-
- model.refresh();
- }
-
- // 2008.07.13 인사정보 조회 함수로 분리
- function fPatEmplInfoRef() {
- //2007.11.28 인사정보의 직원, 직원가족정보 조회
- var rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- var hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- var pid = model.getValue("/root/main/ptbs/ptbs_pid");
- // 2008.07.12 - 직원정보 조회 방법변경에 따른 소스수정
- if( rrgstno1.length == 6 && rrgstno2.length == 7 ){
- var sEmplInfo = fGetPsnWorkInfo(rrgstno1 + rrgstno2, hngnm, pid);
- if (!isNull(sEmplInfo)) {
- var arrayEmplInfo = sEmplInfo.split("▦");
- model.setValue("/root/main/inpt/inpt_emplno", arrayEmplInfo[0]); // 직원번호
- model.setValue("/root/main/iphs/iphs_emplnm", arrayEmplInfo[1]); // 직원성명
- model.setValue("/root/main/iphs/iphs_disccd", arrayEmplInfo[2]); // 할인코드(discuncocd)
- model.setValue("/root/main/iphs/iphs_famyrelnm", arrayEmplInfo[3]); // 관계
- model.setValue("/root/main/iphs/iphs_preststatnm", arrayEmplInfo[4]); // 근무상태
- model.setValue("/root/main/iphs/iphs_profacptyn", arrayEmplInfo[5]); // 증명서접수여부
- model.setValue("/root/main/iphs/iphs_profacptdd", arrayEmplInfo[6]); // 증명서접수일자
- model.setValue("/root/main/iphs/iphs_remark", arrayEmplInfo[7]); // 참고사항
- }
- }
-
- model.refresh();
- }
-
- function fInRgstCardIss() {
- var inpt_pid = model.getValue("/root/main/inpt/inpt_pid");
- if (inpt_pid == null || inpt_pid == " " || inpt_pid == "") {
- messageBox("환자번호가 없거나 재원중인 환자가 아닙니다.!","E999","");
- return false;
- }
- model.setValue("/root/send/data22/pid",model.getValue("/root/main/inpt/inpt_pid"));
- model.setValue("/root/send/data22/indd",model.getValue("/root/main/inpt/inpt_indd"));
- model.setValue("/root/send/data22/cretno",model.getValue("/root/main/inpt/inpt_cretno"));
- model.setValue("/root/send/data22/mskind",model.getValue("/root/main/inpt/inpt_mskind"));
- model.setValue("/root/send/data22/histstat",model.getValue("/root/main/inpt/inpt_histstat"));
- model.setValue("/root/send/data22/ioflag", "I");
-
- if (submit("TRPMI00112")) {
- model.resetInstanceNode("/root/send/data22");
- }
- var rrgstno = model.getValue("/root/hidden/h_receipt/receipt/rrgstno");
- var s_rrgstno = rrgstno.substr(0,6) + "-" + rrgstno.substr(6,1);
- model.setValue("/root/hidden/h_receipt/receipt/rrgstno",s_rrgstno);
-
- // 2009.10.23 - rexpert에서 자체적으로 생성
- //var wardcd = model.getValue("/root/hidden/h_receipt/receipt/wardcd");
- //var roomcd = model.getValue("/root/hidden/h_receipt/receipt/roomcd");
- //var swardcd = wardcd.replace("병동", "") + " " + roomcd + "호";
- //var swardcd = wardcd + " " + roomcd + "호"; // 2008.09.01 병동명 다나오도록 수정
- //model.setValue("/root/hidden/h_receipt/receipt/wardcd",swardcd);
-
- var sindd = model.getValue("/root/hidden/h_receipt/receipt/indd");
- model.setValue("/root/hidden/h_receipt/receipt/indd",sindd.substr(0, 4) + "/" + sindd.substr(4,2) + "/" + sindd.substr(6,2));
-
- //2007.10.23 정신과일 경우 약어 나오지 않게 요청
- if (model.getValue("/root/hidden/h_receipt/receipt/orddeptcd") == "2030000000") {
- model.setValue("/root/hidden/h_receipt/receipt/orddeptnm","");
- }
-
- /*
- var sPrinter;
- var trayno;
-
- // 2009.06.19 - local에 설정된 파일을 우선시 한다.
- // print1:입원약정서, print2:입원환자카드, print3:선택신청
- var printInfo = pmifGetPrintSetting("print2");
- if (printInfo.length == 2) {
- sPrinter = printInfo[0];
- trayno = printInfo[1];
- } else {
- // 2008.09.21 입원약정서 출력용 프린터 이름 조회 - 최병진
- sPrinter = model.getValue("/root/hidden/printers/card_printer");
- if (isNull(sPrinter)) {
- sPrinter = "true";
- }
- // 2009년 03월 20일, JHP, 트레이정보를 받아서 넣는다.
- trayno = model.getValue("/root/hidden/pam/printer/value");
- }
-
- exeReportPreview("RPPMI03100", "XMLSTR" , "" , "" , sPrinter , "", "", "", "", "true", "", "", trayno);
- */
-
- //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 입원환자카드(네임판)
- fGetPrintName();
- var print_name = getGlobalVariable("SPPAO00100_P0045_3_nm","p");
- var print_tray = getGlobalVariable("SPPAO00100_P0045_3_tray","p");
- //호출끝
-
- //입원환자카드(네임판)
- if(print_name != "false"){
- exeReportPreview("RPPMI03100", "XMLSTR" , "" , "" , print_name , "", "", "", "", "", "", "grp_card", print_tray);
- }
-
- }
-
-
- // 2009년 03월 20일, JHP
- // 서울성모이전으로 프린터를 2tray와 1tray짜리를 동시에 사용한다. 수납쪽(영수증, 중간계산서)은 1tray, 등록쪽(약정서, 입원카드)은 2tray를 쓰는데
- // 1트레이는 기본이므로 수납쪽은 그냥 둔다. 근데 2트레이는 렉스퍼트 출력시 트레이번호를 셋팅값으로 박아줘야하는데 프린터 정보는 동적으로 가지고 올수 없기때문에
- // 임의의 경로에 txt파일을 만들어 트레이값을 설정하여 저장하여놓고 불러와서 트레이번호를 매겨준다.
- // 이때 해당 파일이 없으면 해당파일을 사용자가 만들어준다.
- function fSetPrinterTray(){
- var printerfileno = document.readIniFile("Tray", "trayno", "X", "C:\\cmcnuprinter\\printer.ini");
-
- if ( printerfileno == "X") {
- if ( messageBox("프린터 트레이정보가 존재하지 않습니다. ''예 = 트레이1개'', ''아니오 = 트레이2개'' ","Q003") == "6"){
- printerfileno = "1";
- } else {
- printerfileno = "2";
- }
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- var a = fso.CreateFolder("C:\\cmcnuprinter");
- document.writeinifile("Tray", "trayno", printerfileno,"C:\\cmcnuprinter\\printer.ini");
- model.makeValue("/root/hidden/pam/printer/value",printerfileno);
- model.setValue("/root/hidden/pam/printer/value",printerfileno);
-
- } else {
- model.makeValue("/root/hidden/pam/printer/value",printerfileno);
- model.setValue("/root/hidden/pam/printer/value",printerfileno);
- }
- }
-
- function fCheckJabo(gubun)
- {
- var sPid = model.getValue("/root/main/ptbs/ptbs_pid");
- var sIndd = model.getValue("/root/main/inpt/inpt_indd");
- var sOrddeptcd = model.getValue("/root/main/inpt/inpt_orddeptcd");
- var sInsuKind = model.getValue("/root/main/iphs/iphs_insukind");
- var sSuppKind = model.getValue("/root/main/iphs/iphs_suppkind");
- var sInsucd = "";
- //2009.11.20 MYKIM 수정 .입원등록시는 무조건 ioflag가 i로 입력하지만 재원변경에서는 응급환자도 있음.
- //var sIOFlag = "I";
- var sIOFlag = model.getValue("/root/main/inpt/inpt_ordtype");
-
- var sInsuKindNm = "";
- if (sInsuKind == gsInsu_JaboKind) {
- sInsuKindNm = "자보";
- sInsucd = model.getValue("/root/main/aipm/aipm_insucmpycd");
- }
- // 자보, 산재, (+공상)
- if (sInsuKind == gsInsu_JaboKind || sInsuKind == gsInsu_SanJae || sInsuKind == gsInsu_GongSang) {
- // PAM.js - 등록내역 및 기간 체크
- var bIsTrue = checkJaboSanjae(sPid, sIndd, sOrddeptcd, sInsuKind, sSuppKind, sInsucd, sIOFlag);
- if (bIsTrue == false) {
- messageBox("[" + sInsuKindNm + "]등록정보의 보조유형과 기간을 확인하십시오!", "I");
- //환자번호만 쳤을 때는 자보 마스터내역과 맞지 않을 경우 자보 팝업 띄워줌.
- if(gubun=="1"){
- button61.dispatch("DOMActivate");
- }
- return false;
- }
- }
- }
-
-
- // 20091215 JHP 수정추가 희귀질환번호가 있을때 보여주기, 중증번호 동시존재시 해당 기준에 따라서 보여주기
- // 변경요청번호 9553.
- function fItemRareMsg(){
- var itemmsg = model.getValue("/root/main/srdg/srdg_pid");
- var raremsg = model.getValue("/root/main/rooa/rooa/rooa_pid");
-
- // 중증번호만 존재시..itemmsg
- if(itemmsg != "" && raremsg == ""){
- cap_sdoa.attribute("text") = "중증번호";
- cap_rooa.visible = false;
- opt_srdginsukind.visible = true;
- opt_rooainsukind.visible= false;
- opt_srdgseridiagno.visible = true;
- opt_rooarareobstno.visible= false;
- opt_srdgfromdd.visible = true;
- opt_rooafromdd.visible= false;
- opt_srdgtodd.visible = true;
- opt_rooatodd.visible= false;
- // 희귀번호만 존재시.. raremsg
- }else if(itemmsg == "" && raremsg != ""){
- cap_sdoa.attribute("text") = "희귀번호";
- cap_rooa.visible = false;
- opt_srdginsukind.visible = false;
- opt_rooainsukind.visible= true;
- opt_srdgseridiagno.visible = false;
- opt_rooarareobstno.visible= true;
- opt_srdgfromdd.visible = false;
- opt_rooafromdd.visible= true;
- opt_srdgtodd.visible = false;
- opt_rooatodd.visible= true;
- // 두번호 모두 존재시.. itemmsg, raremsg
- }else if(itemmsg != "" && raremsg != ""){
- cap_sdoa.attribute("text") = "중증";
- cap_rooa.visible = true;
- cap_sdoa.attribute("color") = "red";
- cap_rooa.attribute("color") = "black";
- opt_srdginsukind.visible = true;
- opt_rooainsukind.visible= false;
- opt_srdgseridiagno.visible = true;
- opt_rooarareobstno.visible= false;
- opt_srdgfromdd.visible = true;
- opt_rooafromdd.visible= false;
- opt_srdgtodd.visible = true;
- opt_rooatodd.visible= false;
- }else{
- cap_sdoa.attribute("text") = "중증번호";
- cap_rooa.visible = false;
- opt_srdginsukind.visible = true;
- opt_rooainsukind.visible= false;
- opt_srdgseridiagno.visible = true;
- opt_rooarareobstno.visible= false;
- opt_srdgfromdd.visible = true;
- opt_rooafromdd.visible= false;
- opt_srdgtodd.visible = true;
- opt_rooatodd.visible= false;
- }
- model.refresh();
- }
-
- // 입퇴원결정서 추가 노회식 20101218
- function fInDeciPrint2() {
- model.removenode("/root/hidden/rsltflag/indeciprint/diagnm");
- model.makeNode("/root/hidden/rsltflag/indeciprint/diagnm");
- model.setValue("/root/hidden/rsltflag/indeciprint/diagnm", model.getValue("/root/temp/diagnm"));
-
- //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 입퇴원결정서
- fGetPrintName();
- var print_name = getGlobalVariable("SPPAO00100_P0045_6_nm","p");
- var print_tray = getGlobalVariable("SPPAO00100_P0045_6_tray","p");
- //호출끝
- //입퇴원결정서 프린터
- if(print_name != "false"){
- exeReportPreview("RPPMI01201", "XMLSTR", "", "", print_name, "", "", "", "", "true", "", "", print_tray, "", "", "", "", "", "", "", "");
- }
-
- // 자보환자안내문 출력
- if(model.getValue("/root/hidden/rsltflag/indeciprint/insukindcd") == "31") {
- //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 자보환자안내문
- // fGetPrintName();
- submit("TRPMI01203");
- var print_name = getGlobalVariable("SPPAO00100_P0045_100_nm","p");
- var print_tray = getGlobalVariable("SPPAO00100_P0045_100_tray","p");
- //호출끝
- //디폴트 프린터
- if(print_name != "false"){
- exeReportPreview("RPPMI01203", "XMLSTR", "", "", print_name, "", "", "", "", "true", "", "", print_tray, "", "", "2", "", "", "", "", "");
- }
- }
- }
-
- /*
- 본인부담상한제 최종 정리 by 조중래 20140311
- (관련근거 : 보건복지부 고시 제2013-139호, 제2013-196호)
- 1. 가입자의 소득수준별 연간 의료비 본인부담상한액을 달리함
- 2. 가입자의 소득수준의 결정은 다음연도 4월이며, 이때 결정된 소득수준을 기준으로
- 환불금액이 결정되며, 환불절차에 따라 환불이 이루어짐
- 3. 2의 내용에 의하여 진료일 해당연도의 소득수준은 그 다음연도에 결정되므로
- 요양기관 사전적용의 경우 소득수준은 가입자의 100/90에 해당하는 단계로 적용
-
- 위 고시에 의거하여, 보험유형관리화면에서 건강보험의 본인부담상한금액을 설정(원무팀)
- 해당 금액을 읽어들여 코드로 변환하여 사용
- (pam.pmbminsu.ownbmaxammt -> pam.pmcmcode.cdgrupid='PK062' -> pam.pmihiphs.ownbmaxgradeflag)
- */
- function fOwnBMaxGradeFlagSet(){
-
- // 건강보험만 적용
- if (model.getValue("/root/main/iphs/iphs_insukind") == "11"
- && model.getValue("/root/main/iphs/iphs_suppkind") != "01") {
-
- var suppkind = model.getValue("/root/main/iphs/iphs_suppkind");
-
- var fromdd = model.getValue("/root/main/iphs/iphs_fromdd");
-
- var ownbmaxamt = model.getValue("/root/hidden/init/suppkindhist[up='11' and cd='" + suppkind + "' and fromdd<='" + fromdd + "' and todd>='" + fromdd + "']/amt");
-
- var ownbmaxappyn = model.getValue("/root/hidden/init/suppkindhist[up='11' and cd='" + suppkind + "' and fromdd<='" + fromdd + "' and todd>='" + fromdd + "']/ownbmaxappyn");
-
- var ownbmaxgradeflag = model.getValue("/root/init/PAM/PK062list/PK062[cdnm='" + ownbmaxamt + "']/cdid");
-
- if (ownbmaxgradeflag == null || ownbmaxgradeflag == "") {
-
- alert("본인부담상한금액을 조회할 수 없습니다. 본인부담상한금액을 확인하십시오.");
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag", "-");
- model.refreshpart("/root/main/iphs/iphs_ownbmaxgradeflag");
- return false;
-
- } else {
-
- // 본인부담상한금 적용인 경우에만
- if (ownbmaxappyn == "Y") {
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag", ownbmaxgradeflag);
- } else {
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag", "-");
- }
- model.refreshpart("/root/main/iphs/iphs_ownbmaxgradeflag");
-
- }
- } else {
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag", "-");
- model.refreshpart("/root/main/iphs/iphs_ownbmaxgradeflag");
- }
- }
-
- /*
- * 자보환자안내문 출력 함수 - 입퇴원결정서 와 같이 출력되었으나 상급병실 신청서 전자서명 관계로 입원등록시 입퇴원결정서 출력을 하지 않아
- * 안내문출력함수를 따로 만듬. 2011.11.22. 노회식
- */
- function fAutoPrint() {
-
- //자보동의서 전자동의서를 위한 처리로직 추가 by 조중래 20130305
- if (model.getValue("/root/init/PAM/PK018list/PK018[cdid='" + app.clientIp + "']/cdnm") == "Y"
- && messageBox("자보동의서", "Q017") == "6") {
- model.makeValue("/root/temp/consent/pid", model.getValue("/root/main/inpt/inpt_pid"));
- model.makeValue("/root/temp/consent/orddd", model.getValue("/root/main/inpt/inpt_indd"));
- model.makeValue("/root/temp/consent/cretno", model.getValue("/root/main/inpt/inpt_cretno"));
- model.makeValue("/root/temp/consent/ordtype", "I");
- model.makeValue("/root/temp/consent/flag", "J"); // J:자보동의서
- model.makeValue("/root/temp/consent/formcd", model.getValue("/root/init/prncd/hardcd[cdseqno='8']/hardcd")); // 8:자보동의서
-
- fPrintOcrConsent("/root/temp/consent");
-
- }else{
-
- //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 자보환자안내문
- submit("TRPMI01203");
- var print_name = getGlobalVariable("SPPAO00100_P0045_100_nm","p");
- var print_tray = getGlobalVariable("SPPAO00100_P0045_100_tray","p");
- //호출끝
- //디폴트 프린터
-
- if(print_name != "false"){
- exeReportPreview("RPPMI01203", "XMLSTR", "", "", print_name, "", "", "", "", "true", "", "", print_tray, "", "", "2", "", "", "", "", "");
- }
- }
- }
-
- // 산재환자안내문 출력 함수 추가 by 조중래 20130313
- function fIndPrint() {
-
- // 산재동의서 전자동의서를 위한 처리로직 추가 by 조중래 20130305
- if (model.getValue("/root/init/PAM/PK018list/PK018[cdid='" + app.clientIp + "']/cdnm") == "Y"
- && messageBox("산재동의서", "Q017") == "6") {
- model.makeValue("/root/temp/consent/pid", model.getValue("/root/main/inpt/inpt_pid"));
- model.makeValue("/root/temp/consent/orddd", model.getValue("/root/main/inpt/inpt_indd"));
- model.makeValue("/root/temp/consent/cretno", model.getValue("/root/main/inpt/inpt_cretno"));
- model.makeValue("/root/temp/consent/ordtype", "I");
- model.makeValue("/root/temp/consent/flag", "I"); // I:산재동의서
- model.makeValue("/root/temp/consent/formcd", model.getValue("/root/init/prncd/hardcd[cdseqno='9']/hardcd")); // 9:산재동의서
-
- fPrintOcrConsent("/root/temp/consent");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,628;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:13px; width:1195px; height:744px; ">
- <select1 id="combo25" ref="/root/main/ptbs/ptbs_recmerrela" visibility="hidden" appearance="minimal" style="left:292px; top:199px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0327list/P0327">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button16" class="icon_search" visibility="hidden" style="left:272px; top:200px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/hidden/oneselect");
- model.makeNode("/root/hidden/oneselect");
-
- model.setValue("/root/hidden/userpopupinfo/param", "_OneS");
- model.setValue("/root/hidden/userpopupinfo/flag","userid");
- model.setValue("/root/hidden/userpopupinfo/searchitem",model.getValue("/root/main/ptbs/ptbs_recmerid"));
-
- modal("../../userdeptinfoweb/xrw/SPZSU10103_사용자부서선택조회", "", "200", "200", "SPZSU10103","/root/hidden/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- setCSVToNode("/root/hidden/oneselect", iParam);
- clearParameter("SPZSU10103_");
-
- model.setValue("/root/main/ptbs/ptbs_recmerid",model.getValue("/root/hidden/oneselect/list/userid"));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="output24" ref="/root/main/ptbs/ptbs_recmerid" class="output_fix" visibility="hidden" appearance="output" style="left:188px; top:199px; width:80px; height:19px; "/>
- <caption id="caption64" visibility="hidden" style="left:133px; top:200px; width:50px; height:20px; font-size:8pt; ">직원소개</caption>
- <bool id="bool2" visibility="hidden" checkvalue="Y,N" ref="/root/main/ptbs/ptbs_recmyn" style="left:114px; top:200px; width:20px; height:20px; text-align:left; "/>
- <caption id="caption16" class="cell_1" visibility="hidden" style="left:0px; top:198px; width:112px; height:23px; vertical-align:middle; ">직원소개/추천인</caption>
- <line id="line16" class="line_2" visibility="hidden" style="x1:0px; y1:244px; x2:397px; y2:244px; "/>
- <line id="line46" class="line_2" style="x1:868px; y1:377px; x2:1194px; y2:377px; "/>
- <line id="line37" class="line_2" style="x1:868px; y1:329px; x2:1194px; y2:329px; "/>
- <line id="line40" class="line_2" style="x1:868px; y1:497px; x2:1194px; y2:497px; "/>
- <line id="line50" class="line_2" style="x1:868px; y1:668px; x2:1194px; y2:668px; "/>
- <line id="line60" class="line_2" style="x1:868px; y1:425px; x2:1194px; y2:425px; "/>
- <line id="line39" class="line_2" style="x1:868px; y1:257px; x2:1194px; y2:257px; "/>
- <line id="line49" class="line_2" style="x1:868px; y1:353px; x2:1194px; y2:353px; "/>
- <line id="line23" class="line_2" style="x1:868px; y1:281px; x2:1194px; y2:281px; "/>
- <line id="line56" class="line_2" style="x1:868px; y1:401px; x2:1194px; y2:401px; "/>
- <line id="line45" class="line_2" style="x1:868px; y1:644px; x2:1194px; y2:644px; "/>
- <line id="line44" class="line_2" style="x1:868px; y1:572px; x2:1194px; y2:572px; "/>
- <line id="line43" class="line_2" style="x1:868px; y1:305px; x2:1194px; y2:305px; "/>
- <line id="line21" class="line_2" style="x1:868px; y1:449px; x2:1194px; y2:449px; "/>
- <line id="line42" class="line_2" style="x1:868px; y1:620px; x2:1194px; y2:620px; "/>
- <line id="line53" class="line_2" style="x1:868px; y1:716px; x2:1194px; y2:716px; "/>
- <line id="line41" class="line_2" style="x1:868px; y1:596px; x2:1194px; y2:596px; "/>
- <line id="line52" class="line_2" style="x1:868px; y1:692px; x2:1194px; y2:692px; "/>
- <select1 id="combo16" ref="/root/main/icdr/icdr_atdoctid" class="combo_default" appearance="minimal" itemcount="10" style="left:1094px; top:599px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nmsp"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo26" ref="/root/main/ptbs/ptbs_sex" appearance="minimal" style="left:314px; top:31px; width:53px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0313list/P0313">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo12" ref="/root/main/icdr/icdr_roomcd2" class="combo_default" disabled="true" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:1066px; top:695px; width:54px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 2008.09.30 - 최병진 주석처리 - 병동정보 없어도 팝업되도록
- /*
- if (isNull(model.getValue("/root/main/icdr/icdr_wardcd1"))){
- model.setValue("/root/main/icdr/icdr_roomcd2", "");
- messageBox("병동2를 먼저","C002");
- return;
- }
- */
-
- model.resetInstanceNode("/root/main/icdr/icdr_bedcd2");
-
- var icdr_wardcd = model.getValue("/root/main/icdr/icdr_wardcd2");
- var icdr_roomcd = model.getValue("/root/main/icdr/icdr_roomcd2");
- // var icdr_bedcd = model.getValue("/root/main/icdr/icdr_bedcd2");
- var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_sex");
- var ptbs_rrgstno = model.getValue("/root/main/ptbs/ptbs_rrgstno1").concat(model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- var inpt_sex = model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/sex");
- var flag = 2;
- // 병실형태 - 집중치료(S02)일 때는 병상수체크 제외
- var sRoomTypeCd = model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/ty");
- if (sRoomTypeCd != "S02") {
- //병상수 체크
- if (fRoomBedCntCheck(2) == false) {
- model.setValue("/root/main/icdr/icdr_roomcd2","");
- model.setValue("/root/main/icdr/icdr_bedcd2","");
- model.setValue("/root/main/icdr/icdr_roomgrdecd2","");
- model.setValue("/root/main/icdr/icdr_roomtypecd2","");
-
- model.refresh();
-
- return false;
- }
- }
- //병실 성별 체크
- if (fRoomSexCheck(icdr_wardcd, icdr_roomcd, ptbs_sex, inpt_sex, flag, ptbs_rrgstno) == false) {
- model.setValue("/root/main/icdr/icdr_roomcd2","");
- model.setValue("/root/main/icdr/icdr_bedcd2","");
- model.setValue("/root/main/icdr/icdr_roomgrdecd2","");
- model.setValue("/root/main/icdr/icdr_roomtypecd2","");
-
- model.refresh();
-
- return false;
- }
-
- model.setValue("/root/main/icdr/icdr_wardcd2", model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/wd"));
- model.setValue("/root/main/icdr/icdr_roomgrdecd2", model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/gr"));
- model.setValue("/root/main/icdr/icdr_roomtypecd2", model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/ty"));
-
- combo23.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[rm = '" + icdr_roomcd + "' ]";
- combo23.refresh();
-
- fComboNodeSet(7); // 형태에 따른 등급 셋팅
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/main/icdr/icdr_roomcd" class="combo_default" disabled="true" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:1066px; top:647px; width:54px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- model.resetInstanceNode("/root/main/icdr/icdr_bedcd");
-
- var icdr_wardcd = model.getValue("/root/main/icdr/icdr_wardcd");
- var icdr_roomcd = model.getValue("/root/main/icdr/icdr_roomcd");
- // var icdr_bedcd = model.getValue("/root/main/icdr/icdr_bedcd");
- var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_sex");
- var ptbs_rrgstno = model.getValue("/root/main/ptbs/ptbs_rrgstno1").concat(model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- var inpt_sex = model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/sex");
- var flag = 1;
-
- // 병실형태 - 집중치료(S02)일 때는 병상수체크 제외, 신생아(S01), 분만(S09) 추가
- var sRoomTypeCd = model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/ty");
- if (sRoomTypeCd != "S01" && sRoomTypeCd != "S02" && sRoomTypeCd != "S09") {
- //병상수 체크
- if (fRoomBedCntCheck(1) == false) {
- model.setValue("/root/main/icdr/icdr_roomcd","");
- model.setValue("/root/main/icdr/icdr_bedcd","");
- model.setValue("/root/main/icdr/icdr_roomgrdecd","");
- model.setValue("/root/main/icdr/icdr_roomtypecd","");
-
- model.refresh();
-
- return false;
- }
- }
- //병실 성별 체크
- if (fRoomSexCheck(icdr_wardcd, icdr_roomcd, ptbs_sex, inpt_sex, flag, ptbs_rrgstno) == false) {
- model.setValue("/root/main/icdr/icdr_roomcd2","");
- model.setValue("/root/main/icdr/icdr_bedcd2","");
- model.setValue("/root/main/icdr/icdr_roomgrdecd2","");
- model.setValue("/root/main/icdr/icdr_roomtypecd2","");
-
- model.refresh();
-
- return false;
- }
-
- // var sroomcd = model.getValue("/root/main/icdr/icdr_roomcd");
- if(icdr_roomcd == "ERBD") {
- model.setValue("/root/main/icdr/icdr_wardcd",model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/wd"));
- model.setValue("/root/main/icdr/icdr_roomgrdecd",model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/gr"));
- model.setValue("/root/main/icdr/icdr_roomtypecd",model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/ty"));
- }
-
- //2007.07.27 병실선택시 병동이 바뀌도록 요구
- model.setValue("/root/main/icdr/icdr_wardcd",model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/wd"));
- model.setValue("/root/main/icdr/icdr_roomgrdecd",model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/gr"));
- model.setValue("/root/main/icdr/icdr_roomtypecd",model.getValue("/root/hidden/init/roomcd[cd = '" + icdr_roomcd + "' ]/ty"));
- combo22.choices.itemset.attribute("nodeset") = "/root/hidden/init/bedcd[rm = '" + icdr_roomcd + "' ]";
- combo22.refresh();
-
- fComboNodeSet(6); // 형태에 따른 등급 셋팅
- model.refresh();
- ]]>
- </script>
- </select1>
- <group id="group2" style="left:402px; top:10px; width:792px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:791px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <button id="button1" class="btn1_letter2" style="left:720px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sFlag = model.getValue("/root/send/ipatflag");
- if (sFlag == "2") {
- var sCond1 = model.getValue("/root/send/srchcond1");
- var sCond2 = model.getValue("/root/send/srchcond2");
- if (sCond1 == "0" && isNull(sCond2)) {
- messageBox("가퇴원/퇴원 조회 시 세부조회조건을 선택해야 합니다.", "I");
- return;
- }
- }
-
- // 격리환자정보 초기화
- cap_isolate.visible = false;
- cap_isolate.hint = "";
-
- fQuery1();
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:705px; y1:7px; x2:705px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="radio1" ref="/root/send/ipatflag" class="radio_search" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:108px; top:10px; width:137px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>재원</label>
- <value>3</value>
- </item>
- <item>
- <label>가퇴원/퇴원</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 2008.09.25 가퇴원/퇴원 조회 시 '퇴원일자'를 기본 조건으로 설정
- var sFlag = model.getValue("/root/send/ipatflag");
- if (sFlag == "3") {
- model.setValue("/root/send/srchcond1", "7");
- fipatrefchlind("0");
- }
-
- if (sFlag == "2") {
- model.setValue("/root/send/srchcond1", "7");
- fipatrefchlind("7");
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo1" ref="/root/send/srchcond1" class="combo_search" appearance="minimal" style="left:253px; top:8px; width:102px; height:19px; ">
- <choices>
- <item>
- <label>환자번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자이름</label>
- <value>13</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>0</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var ipatrefflag = model.getValue("/root/send/srchcond1");
- model.resetInstanceNode("/root/send/srchcond2");
- input11.refresh();
- input36.refresh();
- combo24.refresh();
-
- fipatrefchlind(ipatrefflag);
-
- if (ipatrefflag == '0'){
- button1.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </select1>
- <input id="input36" ref="/root/send/srchcond2" class="input_default" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:370px; top:8px; width:102px; height:19px; "/>
- <input id="input11" ref="/root/send/srchcond2" class="input_default" visibility="hidden" style="left:365px; top:8px; width:102px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("button1", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="combo24" ref="/root/send/srchcond2" class="combo_default" visibility="hidden" appearance="minimal" style="left:375px; top:8px; width:102px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- button1.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:100px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
- <caption id="cap_privacy" visibility="hidden" style="left:116px; top:3px; width:60px; height:20px; font-size:10pt; font-weight:bold; color:#000000; text-align:center; background-color:#ff0000; border-color:#000000; border-style:solid; ">사생활</caption>
- <caption id="cap_isolate" visibility="hidden" style="left:177px; top:3px; width:44px; height:20px; font-size:10pt; font-weight:bold; color:#000000; text-align:center; background-color:#ff0000; border-color:#000000; border-style:solid; ">격리</caption>
- <caption id="caption40" class="tit_2" style="left:407px; top:55px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">재원내역</caption>
- <caption id="caption42" class="tit_2" style="left:873px; top:215px; width:102px; height:13px; font-family:돋움; vertical-align:middle; ">재원유형변경</caption>
- <input id="input5" ref="/root/main/iphs/iphs_fromdd" class="input_default" inputtype="date" style="left:991px; top:260px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( input5.value > getCurrentDate() || input5.value > model.getValue("/root/main/h_iphs/iphs/iphs_todd")){
- messageBox("오늘일자나 종료일자보다 클수 ", "I004");
- input5.value = input5.attribute("_value");
- }else if (input5.value < model.getValue("/root/main/h_iphs/iphs/iphs_fromdd")){
- messageBox("이력일자보다 작을수 ", "I004");
- input5.value = input5.attribute("_value");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- input5.attribute("_value") = input5.value;
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/main/iphs/iphs_todd" class="input_default" disabled="true" inputtype="date" style="left:1094px; top:260px; width:100px; height:19px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- input6.attribute("_value") = input6.value;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( input6.value > model.getValue("/root/main/h_iphs/iphs/iphs_todd") || input6.value < model.getValue("/root/main/h_iphs/iphs/iphs_fromdd")){
- messageBox("적용일자보다 작거나 종료일자보다 클수 ", "I004");
- input6.value = input6.attribute("_value");
- }
- ]]>
- </script>
- </input>
- <output id="output1" ref="/root/main/inpt/inpt_indd" class="output_fix" format="yyyy-mm-dd" style="left:991px; top:236px; width:100px; height:19px; "/>
- <output id="output2" ref="/root/main/inpt/inpt_dschdd" class="output_fix" format="yyyy-mm-dd" style="left:1094px; top:236px; width:100px; height:19px; "/>
- <select1 id="combo4" ref="/root/main/inpt/inpt_fsexamflag" class="combo_default" appearance="minimal" style="left:991px; top:284px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo5" ref="/root/main/icdr/icdr_wardcd" class="combo_default" disabled="true" appearance="minimal" style="left:992px; top:647px; width:72px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/icdr/icdr_roomcd");
- model.resetInstanceNode("/root/main/icdr/icdr_bedcd");
- fComboNodeSet(2);
-
- ]]>
- </script>
- </select1>
- <!-- 20090602 JHP 수정 : 병실등급 살아있는걸로만...(기존거는 주석처리) nodeset="/root/hidden/init/roomgrdecd" label ref="nm" value ref="cd"-->
- <select1 id="combo7" ref="/root/main/icdr/icdr_roomgrdecd" class="combo_default" appearance="minimal" style="left:1094px; top:671px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/roomgrdelist/roomgrde">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- /*
- var cdid = combo7.value;
- var newcdid = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/newcdid");
- var cdnm = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/cdnm");
- if(newcdid == "" || newcdid == null) {
- messageBox("'" + cdnm + "' \n\n수가코드 종료된 병실등급입니다.!!!!!!!!!!!!! ","I007");
- */
- //20090720 - zzu - cdnm 공통코드기준아닌 수가기준으로 보여주기
- var cdid = combo7.value;
- var yn = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/yn");
- var cdyn = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/cdyn");
- var cdnm = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/cdnm");
- if(yn == "종료됨" || cdyn == "종료됨") {
- messageBox("'" + cdnm + "' \n\n수가코드 종료된 병실등급입니다.!!!!!!!!!!!!! ","I007");
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo8" ref="/root/main/icdr/icdr_roomtypecd" class="combo_default" appearance="minimal" style="left:991px; top:671px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomtypecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fComboNodeSet(6); // 형태에 따른 등급 셋팅
- ]]>
- </script>
- </select1>
- <!-- 20090602 JHP 수정 : 병실등급 살아있는걸로만...(기존거는 주석처리) nodeset="/root/hidden/init/roomgrdecd" label ref="nm" value ref="cd"-->
- <select1 id="combo9" ref="/root/main/icdr/icdr_roomgrdecd2" class="combo_default" appearance="minimal" style="left:1094px; top:719px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/roomgrdelist/roomgrde">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- /*
- var cdid = combo8.value;
- var newcdid = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/newcdid");
- var cdnm = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/cdnm");
- if(newcdid == "" || newcdid == null) {
- messageBox("'" + cdnm + "' \n\n수가코드 종료된 병실등급입니다.!!!!!!!!!!!!! ","I007");
- */
- //20090720 - zzu - cdnm 공통코드기준아닌 수가기준으로 보여주기
- var cdid = combo9.value;
- var yn = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/yn");
- var cdyn = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/cdyn");
- var cdnm = model.getValue("/root/hidden/roomgrdelist/roomgrde[cdid = '" + cdid + "']/cdnm");
- if(yn == "종료됨" || cdyn == "종료됨") {
- messageBox("'" + cdnm + "' \n\n수가코드 종료된 병실등급입니다.!!!!!!!!!!!!! ","I007");
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo10" ref="/root/main/icdr/icdr_roomtypecd2" class="combo_default" appearance="minimal" style="left:991px; top:719px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/roomtypecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fComboNodeSet(7); // 형태에 따른 등급 셋팅
- ]]>
- </script>
- </select1>
- <select1 id="combo11" ref="/root/main/inpt/inpt_inpath" class="combo_default" disabled="true" appearance="minimal" style="left:991px; top:381px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0002list/P0002">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo13" ref="/root/main/icdr/icdr_wardcd2" class="combo_default" disabled="true" appearance="minimal" style="left:992px; top:695px; width:72px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.resetInstanceNode("/root/main/icdr/icdr_roomcd2");
- model.resetInstanceNode("/root/main/icdr/icdr_bedcd2");
- fComboNodeSet(3);
-
- ]]>
- </script>
- </select1>
- <output id="output5" class="output_fix" format="#,###" style="left:115px; top:199px; width:140px; height:19px; text-align:right; "/>
- <output id="output6" class="output_fix" format="#,###" style="left:258px; top:199px; width:139px; height:19px; text-align:right; "/>
- <select1 id="combo15" ref="/root/main/iphs/iphs_insukind" class="combo_default" appearance="minimal" style="left:115px; top:416px; width:282px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //보험 탭 세팅하기
- fInsukindTabSetting();
-
- var sptbs_pid = isNull(model.getValue("/root/main/ptbs/ptbs_pid"));
-
- if (sptbs_pid == false ) {
- //환자의 보험정보 조회(환자별 보험정보 테이블에서)
- fGetPTIN(model.getValue("/root/main/ptbs/ptbs_pid")
- ,model.getValue("/root/main/ptin/ptin_insukind")
- ,""
- ,""
- ,getCurrentDate()
- );
- //fSuppkindSet();
-
- // 보조유형 초기화
- model.setValue("/root/main/iphs/iphs_suppkind", "");
- }
-
- // 본인부담상한제 처리
- fOwnBMaxGradeFlagSet();
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption50" class="tit_2" style="left:5px; top:395px; width:55px; height:13px; ">보험</caption>
- <select1 id="cmb_suppkind" ref="/root/main/iphs/iphs_suppkind" class="combo_default" appearance="minimal" itemcount="10" style="left:115px; top:440px; width:139px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var ssuppkindobmgf = model.getValue("/root/main/iphs/iphs_suppkind");
- // var ownbmaxgradeflag = model.getValue("/root/main/iphs/iphs_ownbmaxgradeflag");
-
- if( model.getValue("/root/main/ptbs/ptbs_pid") != '' && model.getValue("/root/main/ptin/ptin_insukind") == gsSanJae ){
- fGetPTIN( model.getValue("/root/main/ptbs/ptbs_pid")
- ,model.getValue("/root/main/ptin/ptin_insukind")
- ,""
- ,""
- ,getCurrentDate()
- ,ssuppkindobmgf
- );
- }
-
- fOwnBMaxGradeFlagSet();
-
- // if (ownbmaxgradeflag == null || ownbmaxgradeflag ==" " || ownbmaxgradeflag == "") {
- // messageBox("본인부담상한액정보가 미존재함으로 기본상한액적용됩니다.","");
- // model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag","1");
- // }
- /*
- if(ssuppkindobmgf == "32" || ssuppkindobmgf == "33" || ssuppkindobmgf == "34" || ssuppkindobmgf == "35" || ssuppkindobmgf == "36" || ssuppkindobmgf == "37" ||ssuppkindobmgf == "38" ||
- ssuppkindobmgf == "39" || ssuppkindobmgf == "40" || ssuppkindobmgf == "41" || ssuppkindobmgf == "42" || ssuppkindobmgf == "43" || ssuppkindobmgf == "44" || ssuppkindobmgf == "45" ||
- ssuppkindobmgf == "46"){
- if(ownbmaxgradeflag != "3"){
- messageBox("차상위 환자는 본인부담상한액 200만원","I009");
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag","3");
- }
- }else{
- if (ownbmaxgradeflag == null || ownbmaxgradeflag ==" " || ownbmaxgradeflag == "") {
- messageBox("본인부담상한액정보가 미존재함으로 기본상한액적용됩니다.","");
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag","1");
- }else if(ownbmaxgradeflag == "3"){
- messageBox("차상위 환자에 대해 본인부담상한액 200만원 적용됩니다. \n기본상한액적용됩니다.","");
- model.setValue("/root/main/iphs/iphs_ownbmaxgradeflag","1");
- }
- }
- */
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="combo18" ref="/root/main/iphs/iphs_suppkindresn" class="combo_default" appearance="minimal" style="left:257px; top:440px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0032list/P0032">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button3" class="btn2_letter2" style="left:310px; top:390px; width:42px; height:19px; ">
- <caption>장애</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/data14");
- model.setValue("/root/send/data14/srchcond", 1);
- model.setValue("/root/send/data14/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
- modal("../../../pam/patinfomngtweb/xrw/SMPMC01700", "1","", "", "SMPMC01700", "/root/send/data14", "/root/source");
- ]]>
- </script>
- </button>
- <line id="line7" class="line_1" style="x1:0px; y1:410px; x2:397px; y2:410px; "/>
- <button id="button6" class="btn2_letter2" style="left:355px; top:390px; width:42px; height:19px; ">
- <caption>중증</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2007.12.06 중증 진료화면 사용
- var pid = model.getValue("/root/main/ptbs/ptbs_pid");
- setParameter("SPMRD00900_pid", pid); //등록번호
- setParameter("SPMRD00900_genrflagcd", 'I'); //외래='O', 입원='I'
- modal("SPMRD00900", "1","100", "100", "SPMRD00900", "", "");
-
- //보험정보 재조회
- combo15.dispatch("xforms-select");
- // model.resetInstanceNode("/root/send/data14");
- // model.setValue("/root/send/data14/srchcond", 1);
- // model.setValue("/root/send/data14/pid", model.getValue("/root/main/ptbs/ptbs_pid"));
- // modal("../../../pam/patinfomngtweb/xrw/SMPMC01200", "1","", "", "SMPMC01200", "/root/send/data14", "/root/source");
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:868px; y1:230px; x2:1194px; y2:230px; "/>
- <select1 id="radio7" ref="/root/main/icdr/icdr_specordyn" appearance="full" cellspacing="8" cols="2" overflow="hidden" style="left:991px; top:625px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo19" ref="/root/main/inpt/inpt_clincstdycd" class="combo_default" disabled="true" appearance="minimal" style="left:1094px; top:333px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="input7" ref="/root/main/inpt/inpt_dschnotidt" class="input_default" disabled="true" format="yyyy-mm-dd hh:nn:ss" style="left:991px; top:452px; width:121px; height:19px; "/>
- <select1 id="combo20" ref="/root/main/inpt/inpt_dschjudgprcsstat" class="combo_default" disabled="true" appearance="minimal" style="left:1094px; top:501px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0363list/P0363">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo21" ref="/root/main/inpt/inpt_dschtype" class="combo_default" disabled="true" appearance="minimal" style="left:1094px; top:381px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/M0157list/M0157">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line28" class="line_1" style="x1:0px; y1:636px; x2:397px; y2:636px; "/>
- <caption id="caption60" class="tit_2" style="left:5px; top:621px; width:144px; height:13px; ">감면</caption>
- <button id="button13" class="btn2_letter6" style="left:311px; top:616px; width:86px; height:19px; ">
- <caption>직원가족사항</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- button29.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption62" class="tit_2" style="left:407px; top:402px; width:159px; height:14px; ">진료과병실변경이력</caption>
- <line id="line5" class="line_1" style="x1:402px; y1:230px; x2:863px; y2:230px; "/>
- <line id="line6" class="line_1" style="x1:402px; y1:69px; x2:1194px; y2:69px; "/>
- <datagrid id="datagrid2" nodeset="/root/hidden/original/inpt" caption="O^상태^ER경유^병동^병실^병상^환자번호^환자성명^진료과^주/부^입원일자^시간^퇴원일자^시간^보험유형^보험보조유형^소급일자^진료비계산일자^심사^최종정산일^연구용^주민번호^생년월일^진료형태^최초접수자^최초접수일시^최종수정담당자^최종수정일시^cretno" colsep="^" colwidth="24, 40, 50, 80, 50, 50, 79, 63, 86, 55, 80, 45, 80, 45, 65, 80, 80, 90, 80, 80, 100, 112, 90, 60, 83, 116, 90, 121, 10" dataheight="23" explorerbar="sort" frozencols="7" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:402px; top:74px; width:792px; height:131px; ">
- <col type="inputbutton"/>
- <col disabled="true" ref="inpt_indschacptstat" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0019list/P0019">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="inpt_inpath" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0002list/P0002">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="inpt_wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="inpt_roomcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="inpt_bedcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/bedcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="inpt_pid"/>
- <col ref="inpt_hngnm"/>
- <col disabled="true" ref="inpt_orddeptnm" type="output"/>
- <col disabled="true" ref="inpt_mskind" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0006list/P0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="inpt_indd" format="yyyy-mm-dd"/>
- <col ref="inpt_intm" format="hh:nn"/>
- <col ref="inpt_dschdd" format="yyyy-mm-dd"/>
- <col ref="inpt_dschtm" format="hh:nn"/>
- <col disabled="true" ref="inpt_insukind" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="inpt_suppkind" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="inpt_ordcostretcdd" format="yyyy-mm-dd"/>
- <col ref="inpt_ordcostcalcdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="inpt_dschjudgprcsstat" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0363list/P0363">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="inpt_calclastdd" format="yyyy-mm-dd"/>
- <col ref="inpt_clincstdycd"/>
- <col ref="inpt_rrgstno" format="999999-9999999"/>
- <col ref="inpt_brthdd" format="yyyy-mm-dd"/>
- <col ref="inpt_ordtype" style="text-align:center; "/>
- <col ref="inpt_fstrgstrid"/>
- <col ref="inpt_fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="inpt_lastupdtrid"/>
- <col ref="inpt_lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="inpt_cretno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- curruntrow = datagrid2.row;
- var fmlydisc = model.getValue("/root/main/iphs/iphs_disccd");
- // 로딩창 열기
- var sWindowMsg = "환자의 정보를 조회중입니다...";
- callLoadingWindow(sWindowMsg);
-
- // 각종환자정보 조회 ( 현재 선택된 재원내역 Row )
- fQuery(curruntrow);
-
- var iphsdisc = model.getValue("/root/main/iphs/iphs_disccd");
-
- if ( fmlydisc != iphsdisc ) {
- messageBox("입원등록시 등록된 감면코드가 직원감면정보에 등록된 감면코드와 다릅니다. 확인하십시오.", "E999");
- }
- //2007.11.28 인사정보의 직원, 직원가족정보 조회
- fPatEmplInfoRef();
-
- model.refresh();
-
- // 로딩창 닫기
- removeLoadingWindow();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid2.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption63" class="tit_2" style="left:407px; top:215px; width:95px; height:13px; font-family:돋움; vertical-align:middle; ">
- <![CDATA[재원유형이력]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //button9.visible = true;
- ]]>
- </script>
- </caption>
- <line id="line8" class="line_1" style="x1:402px; y1:417px; x2:863px; y2:417px; "/>
- <datagrid id="datagrid3" nodeset="/root/hidden/original/iphs" caption="S^^적용일자^종료일자^유형^보조^희귀/결핵^장애^DRG상태^DRG번호^할인^보험사코드^SNo^최종수정담당자^최종수정일시^상한차등구분^수가계산구분^심사상태^심사일시^심사자^심사자^강제분리사유^심사후처방변경^심사후처방변경" colsep="^" colwidth="30, 25, 80, 80, 80, 80, 60, 32, 64, 72, 200, 100, 30, 110, 110, 80, 100, 65, 120, 100, 100, 100, 25, 80" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:402px; top:235px; width:461px; height:159px; ">
- <col ref="iphs_histstat" visibility="hidden"/>
- <col ref="checkflag" type="checkbox"/>
- <col ref="iphs_fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="iphs_todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="iphs_insukind" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/init/insukind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="iphs_suppkind" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="iphs_rareobstflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>정상</label>
- <value>I</value>
- </item>
- <item>
- <label>결핵</label>
- <value>L</value>
- </item>
- <item>
- <label>희귀</label>
- <value>H</value>
- </item>
- </choices>
- </col>
- <col ref="iphs_handicaprbookpossnyn" style="text-align:center; "/>
- <col disabled="true" ref="iphs_drgyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK020list/PK020">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="iphs_drgno" style="text-align:center; "/>
- <col disabled="true" ref="iphs_disccd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/disccd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="iphs_insucd" style="text-align:center; "/>
- <col ref="iphs_seqno"/>
- <col ref="iphs_lastupdtrnm"/>
- <col ref="iphs_lastupdtdt"/>
- <col disabled="true" ref="iphs_ownbmaxgradeflag" type="combo">
- <choices>
- <item>
- <label>1</label>
- <value>400</value>
- </item>
- <item>
- <label>2</label>
- <value>300</value>
- </item>
- <item>
- <label>3</label>
- <value>200</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="iphs_calcscorrecalflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0027list/P0027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="iphs_dschjudgprcsstat" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0363list/P0363">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="iphs_judgdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="iphs_lastjudgendid" style="text-align:center; "/>
- <col ref="iphs_lastjudgendnm" style="text-align:center; "/>
- <col disabled="true" ref="iphs_forcesepcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK084list/PK084">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="iphs_judgchgyn" style="text-align:center; "/>
- <col ref="iphs_judgchgdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( datagrid3.isCell(event.target) && datagrid3.row >= datagrid3.fixedRows ){
- var curruntrow = datagrid3.row;
- var curruntrow1 = curruntrow + 1;
-
- if(curruntrow < 1) return false; // 스크롤시 onclick 이벤트가 적용되므로
- else
- {
- model.removeNodeset("/root/main/iphs");
- model.removeNodeset("/root/main/h_iphs");
- model.makeNode("/root/main/iphs");
- model.makeNode("/root/main/h_iphs/iphs");
-
- copyNodeType("/root/main/iphs","/root/hidden/original/iphs["+curruntrow+"]","after"); // 재원내역의 선택한 row를 적용한다.
- copyNodeType("/root/main/h_iphs/iphs","/root/hidden/original/iphs["+curruntrow+"]","after"); // 재원내역의 선택한 row를 적용한다.
-
- model.setValue("/root/hidden/flag/iphs_flag","Y"); // 재원유형을 선택했는지 여부를 관리한다.
-
- // 구현예정 : 선택한 유형의 보험정보나 감면정보를 조회한다. : 완료
- fQuery_ptin();
-
- model.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <input id="input1" ref="/root/main/ptbs/ptbs_hometel" class="input_default" style="left:115px; top:103px; width:128px; height:19px; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- if (fHomeTelVeri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- if (fHomeTelVeri() == false) return;
- }
- ]]>
- </script>
- </input>
- <button id="button5" class="icon_search" style="left:227px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
-
- if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
- model.resetInstanceNode("/root/send/data5");
- } else {
- model.resetInstanceNode("/root/send/data5");
- model.setValue("/root/send/data5/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
- model.setValue("/root/send/data5/srchcond","1")
-
- }
-
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data5", "/root/send");
-
- if ( model.getValue("/root/main/popupendflag") == "ok" ) {
-
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2",model.getValue("/root/main/ptbs/ptbs_pid"));
-
-
- // 로딩창 열기
- var sWindowMsg = "환자의 정보를 조회중입니다...";
- callLoadingWindow(sWindowMsg);
-
- fQuery1();
-
- if(datagrid2.rows > 1) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1")
-
- combo6.dispatch("xforms-select");
- }
- //2007.11.28 인사정보의 직원, 직원가족정보 조회
- fPatEmplInfoRef();
-
- model.refresh();
- // 로딩창 닫기
- removeLoadingWindow();
- }
- ]]>
- </script>
- </button>
- <input id="input8" ref="/root/main/ptbs/ptbs_zipcd1" class="input_default" style="left:115px; top:127px; width:30px; height:19px; "/>
- <input id="input9" ref="/root/main/ptbs/ptbs_zipcd2" class="input_default" style="left:148px; top:127px; width:30px; height:19px; "/>
- <button id="button15" class="icon_search" style="left:205px; top:128px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var rcv_zipcdhead_path = '/root/main/ptbs/ptbs_zipcd1';
- var rcv_zipcdfoot_path = '/root/main/ptbs/ptbs_zipcd2';
- var rcv_seqno_path = '/root/main/ptbs/ptbs_zipcdseq';
- var rcv_address_path = '/root/main/ptbs/ptbs_zipcdaddr';
- var term = model.getValue("recv_zipcdhead_path");
-
- zbcfOpenZipCodeList("address"
- , term
- , rcv_zipcdhead_path
- , rcv_zipcdfoot_path
- , rcv_seqno_path
- , rcv_address_path
- , ""
- , "/root/main/ptbs/ptbs_detladdr"
-
- );
- */
-
- zbcfOpenZipCodeList("combination"
- , ""
- , "/root/main/ptbs/ptbs_zipcd1"
- , "/root/main/ptbs/ptbs_zipcd2"
- , "/root/main/ptbs/ptbs_zipcdseq"
- , "/root/main/ptbs/ptbs_zipcdaddr"
- , ""
- , "/root/main/ptbs/ptbs_detladdr"
- , "/root/main/ptbs/ptbs_builno"
- );
- ]]>
- </script>
- </button>
- <output id="opt_addr" ref="/root/main/ptbs/ptbs_zipcdaddr" class="output_fix" appearance="output" style="left:225px; top:127px; width:172px; height:19px; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- opt_addr.hint = opt_addr.label;
- ]]>
- </script>
- </output>
- <input id="input2" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" imemode="hangul" style="left:115px; top:55px; width:109px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( event.keyCode == 13){
- setInputNodeCurText();
- if (fHngNmVeri("onkeypress") == false) return;
- model.setValue("/root/send/data5/autoflag","Y");
- model.setValue("/root/send/data5/hngnm", input2.currentText);
- inputEnterKey("button7", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="input12" ref="/root/main/ptbs/ptbs_mpphontel" class="input_default" style="left:246px; top:103px; width:151px; height:19px; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- if (fMpphonTelVeri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- if (fMpphonTelVeri() == false) return;
- }
- ]]>
- </script>
- </input>
- <input id="input14" ref="/root/main/ptbs/ptbs_detladdr" class="input_default" style="left:115px; top:151px; width:282px; height:19px; "/>
- <input id="input15" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_s_essential" style="left:115px; top:79px; width:50px; height:19px; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- //if (fRrgstNo1Veri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- //if (fRrgstNo1Veri() == false) return;
- }
- ]]>
- </script>
- </input>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:397px; y2:25px; "/>
- <input id="input16" ref="/root/main/ptbs/ptbs_brthdd" class="input_default" format="yyyy-mm-dd" style="left:314px; top:79px; width:83px; height:19px; text-align:center; "/>
- <input id="input17" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" appearance="input" style="left:115px; top:31px; width:109px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if( event.keyCode == 13){
- //if (fPidVeri() == false) return;
-
- // if( is_prcs == '0' ) // 이미 조회되었을때 인적사항에서의 조회기능을 막고 수정기능으로 변경한다. ( '0' : 조회기능 , '1' : 수정기능 ){
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2",input17.currentText);
-
- input11.attribute("top") = "8xp";
- input11.attribute("left") = "365px";
- input36.visible = false;
- combo24.visible = false;
- input11.visible = true;
-
- // 격리병실정보 초기화
- cap_isolate.visible = false;
- cap_isolate.hint = "";
-
-
- // 로딩창 열기
- var sWindowMsg = "환자의 정보를 조회중입니다...";
- callLoadingWindow(sWindowMsg);
-
- fQuery1();
-
- if(datagrid2.rows > 1 && model.getValue("/root/hidden/original/inpt[1]/pid") != null ) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1");
-
- //20091014 입원원무팀 조진희샘 요청 : 입원 선택메세지창 띄우는 시점은 입원일자 2009/10/08부터 입원한 환자부터 띄워달라.
- var inddspec = model.getValue("/root/init/PAM/P0041list/P0041[cdid = 'J01']/cdnm");
-
- if(model.getValue("/root/main/inpt/inpt_indd") >= inddspec){
- fCheckSpecOrdApp(); //2009.09.23 zzui - 입원일자에 선택진료 서명이 없는 환자 선택진료창 띄우기
- }
-
- combo6.dispatch("xforms-select");
-
- }else{
- //messageBox("재원정보가 ","I004");
- model.setFocus("input17");
- }
-
- //2007.11.28 인사정보의 직원, 직원가족정보 조회
- fPatEmplInfoRef();
-
- //2009.11.13 MYKIM 자보 내역 체크(자보 마스터와 비교함)
- if (model.getValue("/root/hidden/original/inpt/inpt_insukind") == "31" ) {
- fCheckJabo("1");
- }
-
- // }else{
- // messageBox("신환환자이거나 이미 조회한 상태 ", "E008");
- // return;
- // }
- // 신우편번호 수정대상여부 체크 by 조중래 20150729
- if (model.getValue("/root/init/PAM/P0022list/P0022[cdid='94']/cdnm") == "Y"
- && fNewZipCode(model.getValue("/root/main/ptbs/ptbs_zipcd1"), model.getValue("/root/main/ptbs/ptbs_zipcd2"))) {
- button15.dispatch("DOMActivate");
- }
- model.refresh();
-
- // 로딩창 닫기
- removeLoadingWindow();
- }
- ]]>
- </script>
- </input>
- <textarea id="textarea1" ref="/root/main/ptbs/ptbs_remfact" scroll="vertical" editable="false" style="left:115px; top:223px; width:282px; height:86px; "/>
- <caption id="caption8" class="cell_1" style="left:246px; top:30px; width:65px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption17" class="cell_1" style="left:246px; top:78px; width:65px; height:23px; vertical-align:middle; ">생년월일</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:223px; width:112px; height:88px; vertical-align:middle; ">참고사항</caption>
- <input id="input22" ref="/root/main/ptbs/ptbs_age" class="input_default" style="left:370px; top:31px; width:27px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
- if (fAgeVeri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- if (fAgeVeri() == false) return;
- }
- ]]>
- </script>
- </input>
- <input id="input24" ref="/root/hidden/d_rcv/drnb/hngnm" class="input_default" disabled="true" style="left:505px; top:624px; width:119px; height:19px; "/>
- <select1 id="radio4" ref="/root/hidden/d_rcv/drnb/sickbabyyn" disabled="true" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:505px; top:698px; width:119px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption39" class="cell_1" style="left:402px; top:720px; width:100px; height:23px; vertical-align:middle; ">미숙아여부</caption>
- <caption id="caption41" class="tit_2" style="left:407px; top:579px; width:144px; height:13px; ">신생아/산모내역</caption>
- <input id="input25" ref="/root/hidden/d_rcv/drnb/pid" class="input_default" disabled="true" style="left:505px; top:648px; width:119px; height:19px; "/>
- <select1 id="radio6" ref="/root/hidden/d_rcv/drnb/immatureyn" disabled="true" appearance="full" cellspacing="8" cols="2" overflow="visible" style="left:505px; top:723px; width:119px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="input32" ref="/root/hidden/d_rcv/drnb/indd" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:505px; top:672px; width:119px; height:19px; "/>
- <input id="input33" class="input_default" style="left:246px; top:55px; width:151px; height:19px; "/>
- <input id="input27" ref="/root/hidden/d_rcv/drnb/bthdt" class="input_default" disabled="true" format="yyyy-mm-dd hh:nn:ss" style="left:505px; top:600px; width:119px; height:19px; "/>
- <select1 id="combo2" ref="/root/main/icdr/icdr_medispclid" class="combo_default" appearance="minimal" itemcount="10" style="left:991px; top:599px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddrid">
- <label ref="nmsp"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fComboNodeSet(5); // 특진여부 셋팅
- ]]>
- </script>
- </select1>
- <output id="input40" ref="/root/main/iphs/iphs_emplnm" class="output_fix" appearance="output" style="left:115px; top:666px; width:75px; height:19px; "/>
- <button id="button29" class="icon_search" style="left:194px; top:667px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SPPMC03800_emplid", '');
- setParameter("SPPMC03800_emplnm", model.getValue("/root/main/ptbs/ptbs_hngnm"));
- setParameter("SPPMC03800_rrgstno1", model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- setParameter("SPPMC03800_rrgstno2", model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- setParameter("SPPMC03800_pid", model.getValue("/root/main/ptbs/ptbs_pid"));
- modal("SPPMC03800", "1","150", "150", "SPPMC03800", "", "");
-
- //선택한 직원정보 세팅
- var emplno = getParameter("SPPMC03800_emplid");
- var emplnm = getParameter("SPPMC03800_emplnm");
- var discuncocd = getParameter("SPPMC03800_discuncocd");
- var famyrelnm = getParameter("SPPMC03800_famyrelnm");
- var preststatnm = getParameter("SPPMC03800_preststatnm");
- var profacptyn = getParameter("SPPMC03800_profacptyn");
- var profacptdd = getParameter("SPPMC03800_profacptdd");
- var remark = getParameter("SPPMC03800_remark");
-
- clearParameter("SPPMC03800_emplid");
- clearParameter("SPPMC03800_emplnm");
- clearParameter("SPPMC03800_discuncoflag");
- clearParameter("SPPMC03800_discuncocd");
- clearParameter("SPPMC03800_pid");
- clearParameter("SPPMC03800_famyrelnm");
- clearParameter("SPPMC03800_preststatnm");
- clearParameter("SPPMC03800_profacptyn");
- clearParameter("SPPMC03800_profacptdd");
- clearParameter("SPPMC03800_remark");
-
- if ( emplno == "" || emplno == null) {
- emplno = "-";
- }
- if ( emplnm == "" || emplnm == null) {
- emplnm = "-";
- }
- if ( discuncocd == "" || discuncocd == null) {
- discuncocd = "-";
- }
- if ( famyrelnm == "" || famyrelnm == null) {
- famyrelnm = "-";
- }
- if ( preststatnm == "" || preststatnm == null) {
- preststatnm = "-";
- }
- if ( profacptyn == "" || profacptyn == null) {
- profacptyn = "-";
- }
- if ( profacptdd == "" || profacptdd == null) {
- profacptdd = "-";
- }
- if ( remark == "" || remark == null) {
- remark = "-";
- }
- // if( emplno != '' && emplno != ' ' ){
- model.setValue("/root/main/inpt/inpt_emplno", emplno); // 직원번호
- model.setValue("/root/main/iphs/iphs_emplnm", emplnm); // 직원성명
- model.setValue("/root/main/iphs/iphs_disccd", discuncocd); // 감면계정
- model.setValue("/root/main/iphs/iphs_famyrelnm", famyrelnm); // 관계
- model.setValue("/root/main/iphs/iphs_preststatnm", preststatnm); // 근무상태
- model.setValue("/root/main/iphs/iphs_profacptyn", profacptyn); // 증명서접수여부
- model.setValue("/root/main/iphs/iphs_profacptdd", profacptdd); // 증명서접수일자
- model.setValue("/root/main/iphs/iphs_remark", remark); // 참고사항
- // } else {
- // model.setValue("/root/main/inpt/inpt_emplno", "-"); // 직원번호
- // model.setValue("/root/main/iphs/iphs_emplnm", "-"); // 직원성명
- // model.setValue("/root/main/iphs/iphs_disccd", "-"); // 감면계정
- // model.setValue("/root/main/iphs/iphs_famyrelnm", "-"); // 관계
- // model.setValue("/root/main/iphs/iphs_preststatnm", "-"); // 근무상태
- // model.setValue("/root/main/iphs/iphs_profacptyn", "-"); // 증명서접수여부
- // model.setValue("/root/main/iphs/iphs_profacptdd", "-"); // 증명서접수일자
- // model.setValue("/root/main/iphs/iphs_remark", "-"); // 참고사항
- // }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="input41" ref="/root/main/inpt/inpt_emplno" class="output_fix" appearance="output" style="left:214px; top:666px; width:183px; height:19px; "/>
- <caption id="caption52" class="cell_1" style="left:0px; top:713px; width:112px; height:29px; vertical-align:middle; ">참고사항</caption>
- <select1 id="combo6" ref="/root/main/iphs/iphs_disccd" class="combo_default" disabled="true" appearance="minimal" editmode="search" itemcount="10" showvalue="true" style="left:193px; top:642px; width:204px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/disccd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- // 2008.07.13 주석처리
- /*
- var sptbs_pid = isNull(model.getValue("/root/main/ptbs/ptbs_pid"));
-
- var ptdc_disccd = model.getValue("/root/main/ptdc/ptdc_disccd");
-
- if (ptdc_disccd != null && ptdc_disccd != " " && ptdc_disccd != "" && ptdc_disccd != "-") {
- model.setValue("/root/hidden/etc/disccd",ptdc_disccd);
- }
- //model.setValue("/root/main/ptin/ptin_suppkind",model.getValue("/root/main/iphs/iphs_suppkind"));
- //model.setValue("/root/main/ptin/ptin_suppkindresn",model.getValue("/root/main/iphs/iphs_suppkindresn"));
-
- if (sptbs_pid == false ){
- fQuery_ptdc();
- var sptdc_pid = isNull(model.getValue("/root/main/ptdc/ptdc_pid"));
- if (sptdc_pid == false ){
- model.setValue("/root/main/ptdc/ptdc_disccd",model.getValue("/root/send/disccd"));
- }
- }
- model.refresh();
- */
- ]]>
- </script>
- </select1>
- <textarea id="textarea2" ref="/root/main/iphs/iphs_remark" scroll="autovscroll" editable="false" style="left:115px; top:713px; width:282px; height:27px; "/>
- <output id="output3" ref="/root/main/iphs/iphs_preststatnm" class="output_fix" appearance="output" style="left:215px; top:690px; width:182px; height:19px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:52px; x2:397px; y2:52px; "/>
- <button id="button7" class="icon_search" style="left:227px; top:56px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
-
- if (ptbs_hngnm == null || ptbs_hngnm ==" " || ptbs_hngnm == "") {
-
- model.resetInstanceNode("/root/send/data5");
- } else {
- model.setValue("/root/send/data5/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
- model.setValue("/root/send/data5/srchcond","2")
-
- }
-
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data5", "/root/send");
-
- model.resetInstanceNode("/root/send/data5");
-
- if ( model.getValue("/root/main/popupendflag") == "ok" ) {
-
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2",model.getValue("/root/main/ptbs/ptbs_pid"));
-
-
- // 로딩창 열기
- var sWindowMsg = "환자의 정보를 조회중입니다...";
- callLoadingWindow(sWindowMsg);
-
- fQuery1();
-
- if(datagrid2.rows > 1) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1");
-
- combo6.dispatch("xforms-select");
- }
- //2007.11.28 인사정보의 직원, 직원가족정보 조회
- fPatEmplInfoRef();
-
- model.refresh();
-
- // 로딩창 닫기
- removeLoadingWindow();
- } else {
- var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
- if (ptbs_pid != null && ptbs_pid != "" ){
- model.setValue("/root/main/ptbs/ptbs_hngnm",model.getValue("/root/hidden/original/ptbs[ptbs_pid = "+ ptbs_pid +"]/ptbs_hngnm"));
- }else{
- model.setValue("/root/main/ptbs/ptbs_hngnm","");
- }
- input2.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button17" class="icon_search" style="left:227px; top:80px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var ptbs_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
-
- if ((ptbs_rrgstno1 == null || ptbs_rrgstno1 ==" " || ptbs_rrgstno1 == "")&&(ptbs_rrgstno2 == null || ptbs_rrgstno2 ==" " || ptbs_rrgstno2 == "")) {
-
- model.resetInstanceNode("/root/send/data5");
- } else {
- model.setValue("/root/send/data5/rrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- model.setValue("/root/send/data5/rrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- model.setValue("/root/send/data5/srchcond","3")
-
- }
-
- modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data5", "/root/send");
- model.resetInstanceNode("/root/send/data5");
- if ( model.getValue("/root/main/popupendflag") == "ok" ) {
-
- model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2",model.getValue("/root/main/ptbs/ptbs_pid"));
-
-
- fQuery1();
-
- if(datagrid2.rows > 1) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1")
- }
-
- //2007.11.28 인사정보의 직원, 직원가족정보 조회
- fPatEmplInfoRef();
- } else {
-
- }
- ]]>
- </script>
- </button>
- <line id="line9" class="line_2" style="x1:0px; y1:76px; x2:397px; y2:76px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:100px; x2:397px; y2:100px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:124px; x2:397px; y2:124px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:148px; x2:397px; y2:148px; "/>
- <line id="line13" class="line_2" style="x1:0px; y1:172px; x2:397px; y2:172px; "/>
- <line id="line14" class="line_2" style="x1:0px; y1:196px; x2:397px; y2:196px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:221px; x2:397px; y2:221px; "/>
- <line id="line17" class="line_3" style="x1:0px; y1:311px; x2:397px; y2:311px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:437px; x2:397px; y2:437px; "/>
- <line id="line20" class="line_2" style="x1:0px; y1:461px; x2:397px; y2:461px; "/>
- <line id="line26" class="line_3" style="x1:0px; y1:605px; x2:397px; y2:605px; "/>
- <line id="line27" class="line_2" style="x1:402px; y1:645px; x2:624px; y2:645px; "/>
- <line id="line29" class="line_2" style="x1:402px; y1:669px; x2:624px; y2:669px; "/>
- <line id="line30" class="line_2" style="x1:402px; y1:693px; x2:624px; y2:693px; "/>
- <line id="line31" class="line_2" style="x1:402px; y1:718px; x2:624px; y2:718px; "/>
- <line id="line32" class="line_3" style="x1:402px; y1:742px; x2:624px; y2:742px; "/>
- <line id="line33" class="line_2" style="x1:0px; y1:663px; x2:397px; y2:663px; "/>
- <line id="line34" class="line_2" style="x1:0px; y1:687px; x2:397px; y2:687px; "/>
- <line id="line35" class="line_2" style="x1:0px; y1:711px; x2:397px; y2:711px; "/>
- <line id="line36" class="line_2" style="x1:0px; y1:735px; x2:35px; y2:735px; "/>
- <line id="line38" class="line_3" style="x1:0px; y1:742px; x2:397px; y2:742px; "/>
- <line id="line51" class="line_2" style="x1:890px; y1:694px; x2:1194px; y2:694px; "/>
- <line id="line61" class="line_3" style="x1:868px; y1:742px; x2:1194px; y2:742px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:126px; width:112px; height:23px; vertical-align:middle; ">우편번호</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:54px; width:112px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:198px; width:112px; height:23px; vertical-align:middle; ">외래미수/퇴원미수</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:150px; width:112px; height:23px; vertical-align:middle; ">하위주소</caption>
- <caption id="caption14" class="cell_1" style="left:0px; top:78px; width:112px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption15" class="cell_1" style="left:0px; top:174px; width:112px; height:23px; vertical-align:middle; ">외국인여부 / VIP</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:30px; width:112px; height:23px; vertical-align:middle; ">환자번호</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:102px; width:112px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
- <caption id="caption51" class="cell_1" style="left:0px; top:439px; width:112px; height:23px; vertical-align:middle; ">유형보조/보조사유</caption>
- <caption id="caption49" class="cell_1" style="left:0px; top:415px; width:112px; height:23px; vertical-align:middle; ">보험유형</caption>
- <caption id="caption45" class="cell_1" style="left:0px; top:641px; width:112px; height:23px; vertical-align:middle; ">직원감면</caption>
- <caption id="caption57" class="cell_1" style="left:0px; top:689px; width:112px; height:23px; vertical-align:middle; ">직원관계/재직여부</caption>
- <caption id="caption59" class="cell_1" style="left:0px; top:665px; width:112px; height:23px; vertical-align:middle; ">직원성명</caption>
- <caption id="caption20" class="cell_1" style="left:402px; top:623px; width:100px; height:23px; vertical-align:middle; ">산모성명</caption>
- <caption id="caption3" class="cell_1" style="left:402px; top:671px; width:100px; height:23px; vertical-align:middle; ">산모입원일자</caption>
- <caption id="caption19" class="cell_1" style="left:402px; top:695px; width:100px; height:23px; vertical-align:middle; ">환아여부</caption>
- <caption id="caption30" class="cell_1" style="left:868px; top:670px; width:120px; height:23px; vertical-align:middle; ">형태1/등급1</caption>
- <caption id="caption31" class="cell_1" style="left:868px; top:694px; width:120px; height:23px; vertical-align:middle; ">병동2/병실2/병상2</caption>
- <caption id="caption21" class="cell_1" style="left:868px; top:574px; width:120px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption32" class="cell_1" style="left:868px; top:718px; width:120px; height:23px; vertical-align:middle; ">형태2/등급2</caption>
- <caption id="caption22" class="cell_1" style="left:868px; top:598px; width:120px; height:23px; vertical-align:middle; ">전문의/담당의</caption>
- <caption id="caption33" class="cell_1" style="left:868px; top:379px; width:120px; height:23px; font-size:9pt; vertical-align:middle; ">입원경로/퇴원형태</caption>
- <caption id="caption12" class="cell_1" style="left:868px; top:235px; width:120px; height:23px; vertical-align:middle; ">입원/퇴원일자</caption>
- <caption id="caption23" class="cell_1" style="left:868px; top:283px; width:120px; height:23px; vertical-align:middle; ">초재진/본인부담</caption>
- <caption id="caption24" class="cell_1" style="left:868px; top:622px; width:120px; height:23px; vertical-align:middle; ">선택진료/신청승인</caption>
- <caption id="caption25" class="cell_1" style="left:868px; top:355px; width:120px; height:23px; vertical-align:middle; ">DRG상태/번호</caption>
- <caption id="caption36" class="cell_1" style="left:868px; top:403px; width:120px; height:23px; vertical-align:middle; ">희귀결핵/구분</caption>
- <caption id="caption38" class="cell_1" style="left:868px; top:427px; width:121px; height:23px; vertical-align:middle; ">장애인/입원유형</caption>
- <caption id="caption18" class="cell_1" style="left:868px; top:259px; width:120px; height:23px; vertical-align:middle; ">적용/종료일자</caption>
- <caption id="caption29" class="cell_1" style="left:868px; top:646px; width:120px; height:23px; vertical-align:middle; ">병동1/병실1/병상1</caption>
- <button id="button8" class="btn2_letter6" visibility="hidden" style="left:790px; top:49px; width:86px; height:19px; ">
- <caption>전과전실조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/source");
- model.setValue("/root/hidden/source/pid",model.getValue("/root/main/inpt/inpt_pid"));
- model.setValue("/root/hidden/source/indd",model.getValue("/root/main/inpt/inpt_indd"));
- model.setValue("/root/hidden/source/cretno",model.getValue("/root/main/inpt/inpt_cretno"));
- model.setValue("/root/hidden/source/mskind",model.getValue("/root/main/inpt/inpt_mskind"));
- if (model.getValue("/root/hidden/source/pid") != null && model.getValue("/root/hidden/source/pid") != ""){
- modal("../../../pam/ipatmngtweb/xrw/SPPMI01900", "1","50", "50", "SPPMI01900", "/root/hidden/source", "/root/hidden/target");
- }
- ]]>
- </script>
- </button>
- <line id="line62" class="line_2" style="x1:402px; y1:621px; x2:624px; y2:622px; "/>
- <caption id="caption34" class="cell_1" style="left:402px; top:599px; width:100px; height:23px; vertical-align:middle; ">출산일자</caption>
- <caption id="caption35" class="cell_1" style="left:402px; top:647px; width:100px; height:23px; vertical-align:middle; ">등록번호</caption>
- <line id="line63" class="line_1" style="x1:632px; y1:594px; x2:862px; y2:594px; "/>
- <caption id="caption37" class="tit_2" style="left:635px; top:579px; width:144px; height:13px; ">입금내역</caption>
- <datagrid id="datagrid4" nodeset="/root/hidden/original/icdr" caption="S^접수구분^신청구분^적용일자^종료일자^병동1^병실1^병상1^등급1^형태1^병동2^병실2^병상2^등급2^형태2^진료과^전문의^담당의^선택여부^Oxy여부^Suction여부^비고1^비고2^SNo^최종수정담당자^최종수정일시" colsep="^" colwidth="30, 60, 60, 80, 80, 70, 60, 50, 100, 70, 70, 60, 63, 100, 70, 130, 100, 100, 62, 60, 75, 140, 100, 30, 110, 110" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:402px; top:422px; width:461px; height:146px; ">
- <col ref="icdr_histstat" visibility="hidden"/>
- <col disabled="true" ref="icdr_acptflagcd" type="combo">
- <choices>
- <item>
- <label>신청</label>
- <value>1</value>
- </item>
- <item>
- <label>승인</label>
- <value>2</value>
- </item>
- <item>
- <label>확인</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="icdr_appflagcd" type="combo">
- <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>
- </choices>
- </col>
- <col ref="icdr_fromdd" format="yyyy-mm-dd"/>
- <col ref="icdr_todd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="icdr_wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="icdr_roomcd"/>
- <col ref="icdr_bedcd"/>
- <col disabled="true" ref="icdr_roomgrdecd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomgrdecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_roomtypecd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomtypecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_wardcd2" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/wardcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="icdr_roomcd2"/>
- <col ref="icdr_bedcd2"/>
- <col disabled="true" ref="icdr_roomgrdecd2" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomgrdecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_roomtypecd2" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/init/roomtypecd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="icdr_orddeptnm" type="output"/>
- <col disabled="true" ref="icdr_medispclnm" type="output"/>
- <col disabled="true" ref="icdr_atdoctnm" type="output"/>
- <col ref="icdr_specordyn"/>
- <col ref="icdr_oxyyn" style="text-align:center; "/>
- <col ref="icdr_suctyn" style="text-align:center; "/>
- <col disabled="true" ref="icdr_prestremcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0360list/P0360">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="icdr_chngprestrem"/>
- <col ref="icdr_seqno"/>
- <col ref="icdr_lastupdtrnm"/>
- <col ref="icdr_lastupdtdt"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //2008.01.27 전과전실 이력 클릭시 전과전실변경내용에 영향을 주지 않게 요청.
- if( datagrid4.isCell(event.target) && datagrid4.row >= datagrid4.fixedRows ){
- var curruntrow = datagrid4.row;
-
- if(isDataCell()) {
- // 2008.10.19 - 전과, 전실 신청내역은 전과전실승인화면에서 처리하도록 임시 막음
- var sAppFlag = model.getValue("/root/hidden/original/icdr["+curruntrow+"]/icdr_appflagcd");
- if (!isNull(sAppFlag)) {
- messageBox("전과, 전실 신청내역은 [전과전실승인]화면에서 처리하십시오!", "I");
- return;
- }
-
- model.removeNodeset("/root/main/icdr");
- model.removeNodeset("/root/main/h_icdr/icdr");
- model.makeNode("/root/main/icdr");
- model.makeNode("/root/main/h_icdr/icdr");
-
- copyNodeType("/root/main/icdr","/root/hidden/original/icdr["+curruntrow+"]","after"); // 재원이력의 선택한 row를 적용한다.
- copyNodeType("/root/main/h_icdr/icdr","/root/hidden/original/icdr["+curruntrow+"]","after"); // 재원이력의 선택한 row를 적용한다.
-
- // 2008.10.12 임시주석처리
- // 전과전실이력의 선택한내용이 신청내용일경우 "신청승인여부"를 체크한다.
- /*
- if (model.getValue("/root/main/icdr/icdr_acptflagcd") == '1') {
- bool4.visible = true;
- caption44.visible = true;
- model.setValue("/root/hidden/flag/icdr_app_flag",'Y');
- } else if (model.getValue("/root/main/icdr/icdr_acptflagcd") != '1') {
- bool4.visible = false;
- caption44.visible = false;
- model.setValue("/root/hidden/flag/icdr_app_flag",'N');
- }
-
- model.setValue("/root/hidden/flag/icdr_flag","Y"); // 재원이력을 선택했는지 여부를 관리한다.
-
- */
- fComboNodeSet(1); // 전문의 설정
- fComboNodeSet(6); // 형태에 따른 등급 셋팅
- fComboNodeSet(7); // 형태에 따른 등급 셋팅
-
- model.refresh();
- }
-
- //fInitSetting();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption61" class="cell_1" style="left:868px; top:550px; width:120px; height:23px; vertical-align:middle; ">적용/종료일자</caption>
- <button id="button19" class="icon_search" style="left:1178px; top:649px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //구현예정: datagrid2의 선택되어진 row 가 없으면 메세지 처리
- // model.alert("확인! 변경할 재원내역과 재원이력을 정확히 선택하십시요!");
-
- //구현예정: datagrid2의 선택되어진 row 가 부유형이면 병실 변경 팝업 을 오픈 하지 않는다. 확인요함!
- // model.alert("확인! 주유형입원내역만 병실정보를 변경할 수 있습니다!");
-
- //구현예정: 병실정보팝업 처리 ( 잔여병상에 따른 색상처리 및 메세지 처리 ) : 완료
- model.removenode("/root/hidden/target");
- model.makeNode("/root/hidden/target");
- // 2008.09.30 - 최병진 주석처리 - 병동정보 없어도 팝업되도록
- //if (model.getValue("/root/main/icdr/icdr_wardcd") != null && model.getValue("/root/main/icdr/icdr_wardcd") != ""){
-
- setParameter("SMPMI00100_Param1", model.getValue("/root/main/icdr/icdr_orddeptcd"));
- modal("SPPMI02001", "1","50", "50", "SPPMI02001", "", "");
- // modal("../../../pam/ipatmngtweb/xrw/SPPMI02000", "1","50", "50", "SPPMI02000", "/root/main/icdr/icdr_wardcd", "/root/hidden/target/wardcd");
-
- var swardcd = instance1.selectSingleNode("/root/hidden/target/grdbedspec/wardcd");
-
- if (swardcd != null) {
- var inpt_wardcd = model.getValue("/root/hidden/target/grdbedspec/wardcd");
- var inpt_roomcd = model.getValue("/root/hidden/target/grdbedspec/roomcd");
- var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_sex");
- var ptbs_rrgstno = model.getValue("/root/main/ptbs/ptbs_rrgstno1").concat(model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- var inpt_sex = model.getValue("/root/hidden/target/grdbedspec/sex");
- var flag = 1;
- if( model.getValue("/root/hidden/target/grdbedspec/roomtypecd") != 'S02' ){
- if (fRoomSexCheck(inpt_wardcd, inpt_roomcd, ptbs_sex, inpt_sex, flag, ptbs_rrgstno) == false) {
- return false;
- }
- }
-
- model.setValue("/root/main/icdr/icdr_wardcd",model.getValue("/root/hidden/target/grdbedspec/wardcd"));
- model.setValue("/root/main/icdr/icdr_roomcd",model.getValue("/root/hidden/target/grdbedspec/roomcd"));
- model.setValue("/root/main/icdr/icdr_bedcd",model.getValue("/root/hidden/target/grdbedspec/bedcd"));
- model.setValue("/root/main/icdr/icdr_roomgrdecd",model.getValue("/root/hidden/target/grdbedspec/roomgrdecd"));
- model.setValue("/root/main/icdr/icdr_roomtypecd",model.getValue("/root/hidden/target/grdbedspec/roomtypecd"));
- fComboNodeSet(2);
-
- model.setValue("/root/main/icdr/icdr_fromdd", getCurrentDate());
- model.refresh();
- }
- //}
-
- ]]>
- </script>
- </button>
- <button id="button20" class="icon_search" style="left:1178px; top:699px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/hidden/target");
- model.makeNode("/root/hidden/target");
-
- // 2008.09.30 - 최병진 주석처리 - 병동정보 없어도 팝업되도록
- //if (model.getValue("/root/main/icdr/icdr_wardcd2") != null && model.getValue("/root/main/icdr/icdr_wardcd2") != ""){
- var sWardCd2 = model.getValue("/root/main/icdr/icdr_wardcd2");
- if (sWardCd2 == "-") {
- model.setValue("/root/main/icdr/icdr_wardcd2", "");
- }
-
- setParameter("SMPMI00100_Param1", model.getValue("/root/main/icdr/icdr_orddeptcd"));
- modal("SPPMI02001", "1","50", "50", "SPPMI02001", "", "");
-
- // modal("../../../pam/ipatmngtweb/xrw/SPPMI02000", "1","50", "50", "SPPMI02000", "/root/main/icdr/icdr_wardcd2", "/root/hidden/target/wardcd");
-
- var swardcd = instance1.selectSingleNode("/root/hidden/target/grdbedspec/wardcd");
-
- if (swardcd != null) {
- var inpt_wardcd = model.getValue("/root/hidden/target/grdbedspec/wardcd");
- var inpt_roomcd = model.getValue("/root/hidden/target/grdbedspec/roomcd");
- var ptbs_sex = model.getValue("/root/main/ptbs/ptbs_sex");
- var ptbs_rrgstno = model.getValue("/root/main/ptbs/ptbs_rrgstno1").concat(model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- var inpt_sex = model.getValue("/root/hidden/target/grdbedspec/sex");
- var flag = 2;
- if( model.getValue("/root/hidden/target/grdbedspec/roomtypecd") != 'S02' ){
- if (fRoomSexCheck(inpt_wardcd, inpt_roomcd, ptbs_sex, inpt_sex, flag, ptbs_rrgstno) == false) {
- return false;
- }
- }
- model.setValue("/root/main/icdr/icdr_wardcd2",model.getValue("/root/hidden/target/grdbedspec/wardcd"));
- model.setValue("/root/main/icdr/icdr_roomcd2",model.getValue("/root/hidden/target/grdbedspec/roomcd"));
- model.setValue("/root/main/icdr/icdr_bedcd2",model.getValue("/root/hidden/target/grdbedspec/bedcd"));
- model.setValue("/root/main/icdr/icdr_roomgrdecd2",model.getValue("/root/hidden/target/grdbedspec/roomgrdecd"));
- model.setValue("/root/main/icdr/icdr_roomtypecd2",model.getValue("/root/hidden/target/grdbedspec/roomtypecd"));
- fComboNodeSet(3);
-
- model.setValue("/root/main/icdr/icdr_fromdd", getCurrentDate());
- model.refresh();
- }
- //} else {
- // messageBox("병동2를 먼저","C002");
- //}
- ]]>
- </script>
- </button>
- <line id="line48" class="line_1" style="x1:868px; y1:545px; x2:1194px; y2:545px; "/>
- <input id="input23" ref="/root/main/icdr/icdr_fromdd" class="input_default" inputtype="date" style="left:991px; top:551px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/icdr/icdr_fromdd") > getCurrentDate() || input23.value >model.getValue("/root/main/icdr/icdr_todd")){
- messageBox("오늘일자나 종료일자보다 클수 ", "I004");
- input23.value = input23.attribute("_value");
- }else if (input23.value < input23.attribute("_value")){
- messageBox("이력일자보다 작을수 ", "I004");
- input23.value = input23.attribute("_value");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- input23.attribute("_value") = input23.value;
- ]]>
- </script>
- </input>
- <input id="input35" ref="/root/main/icdr/icdr_todd" class="input_default" disabled="true" inputtype="date" style="left:1094px; top:551px; width:100px; height:19px; "/>
- <caption id="caption27" class="tit_2" style="left:873px; top:530px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">진료과병실변경</caption>
- <bool id="bool1" checkvalue="Y,N" ref="/root/main/ptbs/ptbs_vipyn" style="left:209px; top:175px; width:20px; height:20px; text-align:left; "/>
- <caption id="caption28" style="left:228px; top:175px; width:30px; height:20px; font-size:8pt; ">VIP</caption>
- <bool id="bool3" checkvalue="Y,N" ref="/root/main/ptbs/ptbs_forgeryn" style="left:114px; top:175px; width:20px; height:20px; text-align:left; "/>
- <bool id="bool4" disabled="true" checkvalue="Y,N" ref="/root/hidden/flag/icdr_app_flag" style="left:1097px; top:623px; width:20px; height:20px; text-align:left; "/>
- <caption id="caption44" style="left:1118px; top:624px; width:75px; height:20px; ">신청승인여부</caption>
- <caption id="caption65" style="left:133px; top:175px; width:38px; height:20px; font-size:8pt; ">외국인</caption>
- <input id="input38" ref="/root/main/ptbs/ptbs_rrgstno2" class="input_s_essential" style="left:168px; top:79px; width:56px; height:19px; ">
- <script type="javascript" ev:event="xforms-next">
- <![CDATA[
-
- //if (fRrgstNo2Veri() == false) return;
-
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- //if (fRrgstNo2Veri() == false) return;
- model.setValue("/root/send/data5/autoflag", "Y");
- inputEnterKey("button17", "DOMActivate");
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="input13" ref="/root/main/ptbs/ptbs_zipcdseq" class="input_default" style="left:181px; top:127px; width:20px; height:19px; "/>
- <switch id="switch2" style="left:0px; top:463px; width:397px; height:147px; ">
- <case id="case_base" selected="true">
- <line id="line138" class="line_2" style="x1:0px; y1:46px; x2:394px; y2:46px; "/>
- <line id="line137" class="line_2" style="x1:0px; y1:22px; x2:394px; y2:22px; "/>
- <line id="line141" class="line_2" style="x1:0px; y1:118px; x2:394px; y2:118px; "/>
- <line id="line140" class="line_2" style="x1:0px; y1:94px; x2:394px; y2:94px; "/>
- <line id="line139" class="line_2" style="x1:0px; y1:70px; x2:394px; y2:70px; "/>
- <caption id="caption127" class="cell_1" style="left:0px; top:72px; width:110px; height:23px; vertical-align:middle; ">피보험자 주민번호</caption>
- <caption id="cap_sdoa" class="cell_1" style="left:0px; top:120px; width:110px; height:23px; vertical-align:middle; ">
- <![CDATA[중증번호]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 20091215 JHP 수정추가 희귀질환번호가 있을때 보여주기, 중증번호 동시존재시 해당 기준에 따라서 보여주기
- cap_sdoa.attribute("color") = "red";
- cap_rooa.attribute("color") = "black";
- opt_srdginsukind.visible = true;
- opt_rooainsukind.visible= false;
- opt_srdgseridiagno.visible = true;
- opt_rooarareobstno.visible= false;
- opt_srdgfromdd.visible = true;
- opt_rooafromdd.visible= false;
- opt_srdgtodd.visible = true;
- opt_rooatodd.visible= false;
- model.refresh();
- ]]>
- </script>
- </caption>
- <caption id="cap_rooa" class="cell_1" visibility="hidden" style="left:30px; top:120px; width:80px; height:23px; text-align:left; vertical-align:middle; padding-left:0; ">
- <![CDATA[/희귀]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 20091215 JHP 수정추가 희귀질환번호가 있을때 보여주기, 중증번호 동시존재시 해당 기준에 따라서 보여주기
- cap_sdoa.attribute("color") = "black";
- cap_rooa.attribute("color") = "red";
- opt_srdginsukind.visible = false;
- opt_rooainsukind.visible= true;
- opt_srdgseridiagno.visible = false;
- opt_rooarareobstno.visible= true;
- opt_srdgfromdd.visible = false;
- opt_rooafromdd.visible= true;
- opt_srdgtodd.visible = false;
- opt_rooatodd.visible= true;
- model.refresh();
- ]]>
- </script>
- </caption>
- <output id="opt_srdginsukind" ref="/root/main/srdg/srdg_insukind" class="output_fix" style="left:82px; top:122px; width:25px; height:19px; "/>
- <output id="opt_rooainsukind" ref="/root/main/rooa/rooa/rooa_insukind" class="output_fix" style="left:82px; top:122px; width:25px; height:19px; "/>
- <output id="opt_srdgseridiagno" ref="/root/main/srdg/srdg_seridiagno" class="output_fix" appearance="output" style="left:114px; top:122px; width:96px; height:19px; "/>
- <output id="opt_rooarareobstno" ref="/root/main/rooa/rooa/rooa_rareobstno" class="output_fix" appearance="output" style="left:114px; top:122px; width:96px; height:19px; "/>
- <output id="opt_srdgfromdd" ref="/root/main/srdg/srdg_fromdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:212px; top:122px; width:90px; height:19px; "/>
- <output id="opt_rooafromdd" ref="/root/main/rooa/rooa/rooa_fromdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:212px; top:122px; width:90px; height:19px; "/>
- <output id="opt_srdgtodd" ref="/root/main/srdg/srdg_todd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:305px; top:122px; width:90px; height:19px; "/>
- <output id="opt_rooatodd" ref="/root/main/rooa/rooa/rooa_todd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:305px; top:122px; width:90px; height:19px; "/>
- <caption id="caption129" class="cell_1" style="left:0px; top:48px; width:110px; height:23px; vertical-align:middle; ">피보관계/피보성명</caption>
- <caption id="caption130" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; vertical-align:middle; ">보험자기호/명칭</caption>
- <caption id="caption131" class="cell_1" style="left:0px; top:96px; width:110px; height:23px; vertical-align:middle; ">취득일자/종료일자</caption>
- <caption id="caption132" class="cell_1" style="left:0px; top:24px; width:110px; height:23px; vertical-align:middle; ">보험증번호</caption>
- <input id="ipt_insucd" ref="/root/main/ptin/ptin_insucd" class="input_default" navindex="43" style="left:114px; top:1px; width:116px; height:19px; "/>
- <input id="ipt_insunm" ref="/root/main/ptin/ptin_insucdnm" class="input_default" navindex="44" style="left:256px; top:1px; width:139px; height:19px; "/>
- <input id="ipt_insuno" ref="/root/main/ptin/ptin_insuno" class="input_default" navindex="46" maxlength="20" style="left:114px; top:25px; width:256px; height:19px; "/>
- <select1 id="cmb_insdrela" ref="/root/main/ptin/ptin_insdrela" class="combo_default" navindex="48" appearance="minimal" style="left:114px; top:49px; width:139px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0016list/P0016">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var ptin_insdrela = model.getValue("/root/main/ptin/ptin_insdrela");
-
- // if (ptin_insdrela != "" && ptin_insdrela != "-")
- // {
- if (ptin_insdrela == "1") //본인
- {
- model.setValue("/root/main/ptin/ptin_insdnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
- model.setValue("/root/main/ptin/ptin_insdrrgstno1",model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
- model.setValue("/root/main/ptin/ptin_insdrrgstno2",model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
- model.setFocus("ipt_fromdd"); //취득일자
- }
- else
- {
- model.setValue("/root/main/ptin/ptin_insdnm","-");
- model.setValue("/root/main/ptin/ptin_insdrrgstno1","-");
- model.setValue("/root/main/ptin/ptin_insdrrgstno2","-");
- model.setFocus("ipt_insdnm"); //피보성명
- }
- // }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_insdnm" ref="/root/main/ptin/ptin_insdnm" class="input_default" navindex="49" style="left:256px; top:49px; width:139px; height:19px; "/>
- <input id="ipt_insdrrgstno1" ref="/root/main/ptin/ptin_insdrrgstno1" class="input_default" navindex="50" maxlength="6" style="left:114px; top:73px; width:139px; height:19px; "/>
- <input id="ipt_insdrrgstno2" ref="/root/main/ptin/ptin_insdrrgstno2" class="input_default" navindex="51" maxlength="7" style="left:256px; top:73px; width:139px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/main/ptin/ptin_fromdd" class="input_default" navindex="52" inputtype="date" style="left:114px; top:97px; width:139px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/ptin/ptin_todd" class="input_default" navindex="53" inputtype="date" style="left:256px; top:97px; width:139px; height:19px; "/>
- <button id="btn_insucd_search" class="icon_search" navindex="45" style="left:236px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ptin_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- //보험
- if (ptin_insukind == gsBoHeom) {
- model.setValue("/root/hidden/popup/insuflag","1");
- //보호1종,보호2종
- } else if (ptin_insukind == gsBoHo1 || ptin_insukind == gsBoHo2) {
- model.setValue("/root/hidden/popup/insuflag","2");
- //자보
- } else if (ptin_insukind == gsJaboKind) {
- model.setValue("/root/hidden/popup/insuflag","3");
- //산재,공상
- } else if (ptin_insukind == gsSanJae || ptin_insukind == gsGongSang) {
- model.setValue("/root/hidden/popup/insuflag","4");
- //일반
- } else if (ptin_insukind == gsIlBan) {
- model.setValue("/root/hidden/popup/insuflag","5");
- //외국인
- } else if (ptin_insukind == gsForIn) {
- model.setValue("/root/hidden/popup/insuflag","6");
- //임상시험
- } else if (ptin_insukind == gsImSang) {
- model.setValue("/root/hidden/popup/insuflag","7");
- }
- var ptin_insucd = model.getValue("/root/main/ptin/ptin_insucd");
- if (ptin_insucd == null || ptin_insucd == "" || ptin_insucd == " " || ptin_insucd == "-") {
- } else {
- model.setValue("/root/hidden/popup/srchcnts",ptin_insucd);
- model.setValue("/root/hidden/popup/srchcond","1");
- }
-
- modal("../../../pam/pamcomnweb/xrw/SPPMB01500", "1","400", "400", "SPPMB01500", "/root/hidden/popup", "/root/send");
-
- if (getParameter("SPPMB01500_RTN") == "N" || getParameter("SPPMB01500_RTN") == "") return;
-
- if (getParameter("SPPMB01500_RTN") == "Y") {
- var insucd = getParameter("SPPMB01500_insucd");
- var insucdnm = getParameter("SPPMB01500_insucdnm");
-
- model.setValue("/root/main/ptin/ptin_insucd", insucd);
- model.setValue("/root/main/ptin/ptin_insucdnm", insucdnm);
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_insuno_search" class="icon_search" navindex="47" style="left:376px; top:28px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //보험증번호 조회(보험자격조회)
- var parm = model.getValue("/root/main/ptbs/ptbs_rrgstno1") +
- model.getValue("/root/main/ptbs/ptbs_rrgstno2") + "▦" + //주민번호
- model.getValue("/root/main/ptbs/ptbs_hngnm") + "▦" + //이름
- getCurrentDate() + "▦" +//진료일자
- "" + "▦" + //생성번호
- "" + "▦" + //진료형태
- "" + "▦" + //퇴원일자
- "" + "▦" + //본인일부부담금
- "" + "▦" + //기관부담금
- model.getValue("/root/main/ptbs/ptbs_pid") + "▦" + //등록번호
- "" + "▦" ; //진료과
-
- setParameter("SPPMC03900_PARM",parm);
- // setParameter("SPPMC03700_RTN","");
- modal("SPPMC03900", "1","150", "150", "SPPMC03900", "", "");
- if (getParameter("SPPMC03900_RTN") == "N" || getParameter("SPPMC03900_RTN") == "") return;
-
- if (getParameter("SPPMC03900_RTN") == "Y") {
-
- //return 값이 있으면, 보험유형,증번호,보험자기호,취득일자,피보험자성명
- var sInsuKind = getParameter("SPPMC03900_insukind");
- var sInsuNo = getParameter("SPPMC03900_insuno");
- var sInsuCD = getParameter("SPPMC03900_insucd");
- var sInsdNm = getParameter("SPPMC03900_insdnm");
- var sInsuFromDD = getParameter("SPPMC03900_insufromdd");
- // 2008.09.17 - 희귀난치대상자, 차상위대상여부 추가
- var sRareObstFlag = getParameter("SPPMC03900_rareobstflag");
- var sDisRegPrson3 = getParameter("SPPMC03900_suppkind"); // 차상위대상자일 경우 보조유형의 차상위에 해당하는 '32'를 넘겨줌, 아니면, '00'
- var sOwnbFlag = getParameter("SPPMC03900_ownbflag");
- var sSetInsuCD = "";
-
- clearParameter("SPPMC03900_");
-
- if (isNull(sInsuCD)) {
- // 건강보험 지역가입자일 경우 기본값으로 설정
- if (sInsuKind == "11") {
- sSetInsuCD = "0015"
- }
- } else {
- sSetInsuCD = sInsuCD;
- }
-
- // 2008.11.06 - 세대주성명과 환자이름이 같으면 본인으로 관계 설정
- var sHngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- if (sHngnm == sInsdNm) {
- model.setValue("/root/main/ptin/ptin_insdrela", "1");
- }
-
- //return 값이 있으면, 보험유형,증번호,보험자기호,취득일자,피보험자성명
- model.setValue("/root/main/iphs/iphs_insukind", sInsuKind);
- model.setValue("/root/main/ptin/ptin_insukind", sInsuKind);
- fInsukindTabSetting();
- model.setValue("/root/main/ptin/ptin_insucd", sSetInsuCD);
- model.setValue("/root/main/ptin/ptin_insuno", sInsuNo);
- model.setValue("/root/main/ptin/ptin_insdnm", sInsdNm);
- model.setValue("/root/main/ptin/ptin_fromdd", sInsuFromDD);
- model.setValue("/root/main/ptin/ptin_todd", "99991231");
-
- // 희귀난치대상자
- model.setValue("/root/main/iphs/iphs_rareobstflag", sRareObstFlag);
- // 차상위대상자 - 보조유형으로 설정
- if (sDisRegPrson3 == "32") { // 차상위1종
- model.setValue("/root/main/iphs/iphs_suppkind", "32");
- model.setValue("/root/hidden/ScndSuptrgtFlag", "1");
- }
-
- if (sDisRegPrson3 == "33") { // 차상위2종
- model.setValue("/root/main/iphs/iphs_suppkind", "33");
- model.setValue("/root/hidden/ScndSuptrgtFlag", "2");
- }
-
- // 본인부담구분
- if (!isNull(sOwnbFlag)) {
- model.setValue("/root/main/inpt/inpt_ownbflag", sOwnbFlag);
- }
- //피보험자성명이 환자명과 같으면, 관계에 [본인]세팅
- // if ( model.getValue("/root/main/ptbs/ptbs_hngnm") == model.getValue("/root/main/ptin/ptin_insdnm") ) {
- // model.setValue("/root/main/ptin/ptin_insdrela","1");
- // cmb_insdrela.dispatch("xforms-value-changed");
- // }
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="case_inducs">
- <line id="line144" class="line_2" style="x1:0px; y1:22px; x2:395px; y2:22px; "/>
- <line id="line145" class="line_2" style="x1:0px; y1:46px; x2:395px; y2:46px; "/>
- <line id="line146" class="line_2" style="x1:0px; y1:70px; x2:395px; y2:70px; "/>
- <line id="line147" class="line_2" style="x1:0px; y1:94px; x2:395px; y2:94px; "/>
- <line id="line148" class="line_3" style="x1:0px; y1:118px; x2:395px; y2:118px; "/>
- <output id="output74" ref="/root/main/icpm/icpm_acddd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:115px; top:73px; width:140px; height:19px; "/>
- <output id="output7" ref="/root/main/icpm/icpm_aprytodd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:258px; top:97px; width:139px; height:19px; "/>
- <caption id="caption135" class="cell_1" style="left:0px; top:48px; width:112px; height:23px; vertical-align:middle; ">산재지사</caption>
- <output id="output75" ref="/root/main/icpm/icpm_ordopendd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:258px; top:73px; width:139px; height:19px; "/>
- <caption id="caption136" class="cell_1" style="left:0px; top:24px; width:112px; height:23px; vertical-align:middle; ">사업장명</caption>
- <output id="output76" ref="/root/main/icpm/icpm_apryfromdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:115px; top:97px; width:140px; height:19px; "/>
- <caption id="caption137" class="cell_1" style="left:0px; top:72px; width:112px; height:23px; vertical-align:middle; ">사고일자/진료개시</caption>
- <output id="output70" ref="/root/main/icpm/icpm_mngtno" class="output_fix" appearance="output" style="left:115px; top:1px; width:282px; height:19px; "/>
- <output id="output71" ref="/root/main/icpm/icpm_bizplcenm" class="output_fix" appearance="output" style="left:115px; top:25px; width:282px; height:19px; "/>
- <output id="output72" ref="/root/main/icpm/icpm_inducsbrchcd" class="output_fix" appearance="output" style="left:115px; top:49px; width:105px; height:19px; "/>
- <caption id="caption133" class="cell_1" style="left:0px; top:0px; width:112px; height:23px; vertical-align:middle; ">관리번호</caption>
- <output id="output8" ref="/root/main/icpm/icpm_insucdnm" class="output_fix" appearance="output" style="left:223px; top:49px; width:174px; height:19px; "/>
- <caption id="caption134" class="cell_1" style="left:0px; top:96px; width:112px; height:23px; vertical-align:middle; ">요양승인기간</caption>
- </case>
- <case id="case_ta">
- <caption id="caption139" class="cell_1" style="left:0px; top:96px; width:112px; height:23px; vertical-align:middle; ">승인기간</caption>
- <caption id="caption140" class="cell_1" style="left:0px; top:72px; width:112px; height:23px; vertical-align:middle; ">승인과</caption>
- <caption id="caption141" class="cell_1" style="left:0px; top:0px; width:112px; height:23px; vertical-align:middle; ">보험회사</caption>
- <caption id="caption143" class="cell_1" style="left:0px; top:48px; width:112px; height:23px; vertical-align:middle; ">발생금액</caption>
- <caption id="caption144" class="cell_1" style="left:0px; top:24px; width:112px; height:23px; vertical-align:middle; ">지불보증번호/한도</caption>
- <line id="line150" class="line_2" style="x1:0px; y1:22px; x2:395px; y2:22px; "/>
- <line id="line151" class="line_2" style="x1:0px; y1:46px; x2:395px; y2:46px; "/>
- <line id="line152" class="line_2" style="x1:0px; y1:70px; x2:395px; y2:70px; "/>
- <line id="line153" class="line_2" style="x1:0px; y1:94px; x2:395px; y2:94px; "/>
- <line id="line154" class="line_3" style="x1:0px; y1:118px; x2:395px; y2:118px; "/>
- <output id="output77" ref="/root/main/aipm/aipm_insucmpycd" class="output_fix" appearance="output" style="left:115px; top:1px; width:110px; height:19px; "/>
- <output id="output78" ref="/root/main/aipm/aipm_paylimamt" class="output_fix" format="#,###" appearance="output" style="left:258px; top:25px; width:134px; height:19px; text-align:right; "/>
- <output id="output79" class="output_fix" format="#,###" appearance="output" style="left:115px; top:49px; width:276px; height:19px; "/>
- <output id="output80" class="output_fix" appearance="output" style="left:115px; top:74px; width:276px; height:19px; "/>
- <output id="output81" ref="/root/main/aipm/aipm_aprvfromdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:115px; top:97px; width:140px; height:19px; "/>
- <output id="output9" ref="/root/main/aipm/aipm_aprvtodd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:258px; top:97px; width:134px; height:19px; "/>
- <button id="button24" class="btn5_letter2" style="left:348px; top:1px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //자보환자 심사에 따른 제어 로직 추가 by 조중래 20130703
- setParameter("SPPMC02601_PID", model.getValue("/root/main/ptbs/ptbs_pid"));
- setParameter("SPPMC02601_ORDDD", model.getValue("/root/main/iphs/iphs_fromdd"));
-
- //사고번호조회화면 호출
- modal("SPPMC02601");
-
- var okflag = getParameter("SPPMC02601_OKFLAG");
- var suppkind = getParameter("SPPMC02601_SUPPKIND");
- var insucd = getParameter("SPPMC02601_INSUCD");
- var insunm = getParameter("SPPMC02601_INSUNM");
- var paygrntno = getParameter("SPPMC02601_PAYGRNTNO");
-
- if(okflag == "Y"){
- if(suppkind != ""){
- model.setValue("root/main/iphs/iphs_suppkind", suppkind);
- }
- if(insucd != ""){
- model.setValue("/root/main/aipm/aipm_insucmpycd", insucd);
- model.setValue("/root/main/aipm/aipm_insucdnm", insunm);
- model.setValue("/root/main/iphs/iphs_insucd", insucd);
- }
- if(paygrntno != ""){
- model.makeValue("/root/main/aipm/aipm_paygrntno", paygrntno);
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="output10" ref="/root/main/aipm/aipm_paygrntno" class="output_fix" appearance="output" style="left:115px; top:25px; width:140px; height:19px; text-align:right; "/>
- <select1 id="combo29" ref="/root/main/aipm/aipm_insucmpycd" class="output_fix" disabled="true" appearance="minimal" style="left:228px; top:1px; width:117px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/insucd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_dutywund">
- <caption id="caption145" class="cell_1" style="left:0px; top:0px; width:112px; height:23px; vertical-align:middle; ">공상적용 잔여일수</caption>
- <line id="line155" class="line_3" style="x1:0px; y1:22px; x2:395px; y2:22px; "/>
- <output id="output83" ref="/root/main/icpm/icpm_spredayno" class="output_fix" appearance="output" style="left:115px; top:1px; width:282px; height:19px; "/>
- </case>
- </switch>
- <button id="button9" class="btn4_letter10" visibility="hidden" style="left:711px; top:208px; width:152px; height:22px; ">
- <caption>전체기간재원유형변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //전체기간재원유형변경 2007.10.05 홍영표 ( inpt, iphs, ptin, ptdc 변경 )
- var inpt_hngnm = model.getValue("/root/main/inpt/inpt_hngnm");
- var inpt_indd = model.getValue("/root/main/inpt/inpt_indd");
- var iphs_insukind = model.getValue("/root/main/iphs/iphs_insukind");
- var iphs_insukindnm = model.getValue("/root/hidden/init/insukind[cd = '"+ iphs_insukind +"']/nm");
- var iphs_suppkind = model.getValue("/root/main/iphs/iphs_suppkind");
- var iphs_suppkindnm = model.getValue("/root/hidden/init/suppkind[cd = '"+ iphs_suppkind +"']/nm");
- var ptdc_disccd = model.getValue("/root/main/ptdc/ptdc_disccd");
- var ptdc_disccdnm = model.getValue("/root/hidden/init/disccd[cd = '"+ ptdc_disccd +"']/nm");
-
- var smsgrtn = messageBox(inpt_hngnm + " 환자의 입원 전체기간의 \n\n보험유형을 '"+ iphs_insukindnm + "' 의 '"+ iphs_suppkindnm +"' 으로 \n\n감면은 '" + ptdc_disccdnm +"' 으로 변경을","Q004");
- if (smsgrtn == "6"){
- if (fCheckFactChangeSave(2) == true) { //필수입력사항 체크
- model.resetInstanceNode("/root/send/data20");
- model.setValue("/root/send/data20/data20_status", "U");
- model.setValue("/root/send/data20/data20_pid", model.getValue("/root/main/inpt/inpt_pid"));
- model.setValue("/root/send/data20/data20_cretno", model.getValue("/root/main/inpt/inpt_cretno"));
- model.setValue("/root/send/data20/data20_instcd", model.getValue("/root/main/inpt/inpt_instcd"));
- model.setValue("/root/send/data20/data20_mskind", model.getValue("/root/main/inpt/inpt_mskind"));
- model.setValue("/root/send/data20/data20_indd", model.getValue("/root/main/inpt/inpt_indd"));
- model.setValue("/root/send/data20/data20_dschdd", model.getValue("/root/main/inpt/inpt_dschdd"));
- model.setValue("/root/send/data20/data20_insukind", iphs_insukind);
- model.setValue("/root/send/data20/data20_suppkind", iphs_suppkind);
- model.setValue("/root/send/data20/data20_disccd", ptdc_disccd);
- if ( submit("TXPMI00402") == true ) {
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2",model.getValue("/root/main/ptbs/ptbs_pid"));
-
- fipatrefchlind('1');
-
- fQuery1();
-
- if(datagrid2.rows > 1) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1")
- }
- }
- }
- button9.visible = false;
- }else if (smsgrtn == "7"){
- button9.visible = false;
- return;
- }
-
- ]]>
- </script>
- </button>
- <select1 id="radio2" ref="/root/main/inpt/inpt_medcostestmflag" appearance="full" cellspacing="8" cols="3" overflow="visible" style="left:991px; top:309px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var inpt_medcostestmflag = model.getValue("/root/main/inpt/inpt_medcostestmflag");
-
- if (inpt_medcostestmflag == "Y") {
- cmb_medamtfreeresn.disabled = true;
- model.setValue("/root/main/inpt/inpt_medamtfreeresn","");
-
- } else if (inpt_medcostestmflag == "N") {
- cmb_medamtfreeresn.disabled = false;
- model.setFocus("cmb_medamtfreeresn");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_medamtfreeresn" ref="/root/main/inpt/inpt_medamtfreeresn" disabled="true" appearance="minimal" style="left:1094px; top:308px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0342list/P0342">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/main/icdr/icdr_orddeptcd" class="combo_default" appearance="minimal" style="left:991px; top:575px; width:203px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fComboNodeSet(1);
- ]]>
- </script>
- </select1>
- <select1 id="radio3" ref="/root/main/iphs/iphs_handicaprbookpossnyn" appearance="full" cols="2" overflow="hidden" style="left:991px; top:429px; width:59px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //2008.01.10 장애인내역조회
- if (model.getValue("/root/main/iphs/iphs_handicaprbookpossnyn") == "Y") {
- model.setValue("/root/send/data9/mode","12");
- model.setValue("/root/send/data9/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
-
- submit("TRPMI00107","false");
- var hndc_node = instance1.selectSingleNode("/root/hidden/check/hndc");
- if (hndc_node == null) {
- messageBox("장애내역이 없습니다.장애내역 등록을 해주세요.","E999","");
- model.setValue("/root/main/iphs/iphs_handicaprbookpossnyn","N");
- model.refresh();
- return false;
- }
- }
- ]]>
- </script>
- </select1>
- <input id="input3" ref="/root/main/iphs/iphs_disccd" class="input_default" disabled="true" imemode="alpha" style="left:115px; top:642px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- var sDisccd = input3.currentText.toUpperCase();
-
- // 존재하지 않는 할인코드 입력시 메시지 처리
- var sCheckDisccd = model.getValue("/root/hidden/init/disccd[cd = '" + sDisccd + "']/cd");
- if (isNull(sCheckDisccd)) {
- messageBox("존재하지 않는 감면계정입니다. [해당사항 없음]으로 설정합니다.!!", "I");
- model.setValue("/root/main/iphs/iphs_disccd", "-");
- model.setFocus("input3");
- } else {
- model.setValue("/root/main/iphs/iphs_disccd", sDisccd);
- model.setFocus("combo6");
- }
- input3.refresh();
- combo6.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sDisccd = input3.currentText.toUpperCase();
-
- // 존재하지 않는 할인코드 입력시 메시지 처리
- var sCheckDisccd = model.getValue("/root/hidden/init/disccd[cd = '" + sDisccd + "']/cd");
- if (isNull(sCheckDisccd)) {
- messageBox("존재하지 않는 감면계정입니다. [해당사항 없음]으로 설정합니다.!!", "I");
- model.setValue("/root/main/iphs/iphs_disccd", "-");
- model.setFocus("input3");
- } else {
- model.setValue("/root/main/iphs/iphs_disccd", sDisccd);
- model.setFocus("combo6");
- }
- input3.refresh();
- combo6.refresh();
- ]]>
- </script>
- </input>
- <datagrid id="datagrid1" nodeset="/root/main/admi" caption="입금구분^현금입금액^카드결재액^적용일자^수납일자^영수증^작업시간" colsep="^" colwidth="70, 90, 90, 90, 90, 80, 80" dataheight="23" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:632px; top:599px; width:230px; height:142px; ">
- <col disabled="true" ref="admi_rcptflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0312list/P0312">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="admi_cashamt" format="#,###" style="text-align:right; "/>
- <col ref="admi_cardamt" format="#,###" style="text-align:right; "/>
- <col ref="admi_appdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="admi_rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="admi_rcptno" style="text-align:right; "/>
- <col ref="admi_rcpttm" format="hh:nn:ss" style="text-align:center; "/>
- </datagrid>
- <button id="button11" class="btn4_letter5" visibility="visible" style="left:771px; top:208px; width:92px; height:22px; ">
- <caption>유형합치기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var result = messageBox("[유형합치기]를", "Q004");
- if (result == "06") {
- model.removeNodeset("/root/send/data10");
- model.makeNode("/root/send/data10");
- // 2008.07.17 주석처리 - 아래 조건 서버에서 체크
- /*
- var cur_row = datagrid3.row;
- var cur_row1 = cur_row - 1;
- var cur_row2 = cur_row + 1;
-
- if (model.getValue("/root/hidden/original/iphs["+ cur_row +"]/checkflag") == "true") {
- if (model.getValue("/root/hidden/original/iphs["+ cur_row1 + "]/checkflag") == "true" ||
- model.getValue("/root/hidden/original/iphs["+ cur_row2 + "]/checkflag") == "true") {
- if (model.getValue("/root/hidden/original/iphs["+ cur_row1 + "]/checkflag") == "true") {
- if (model.getValue("/root/hidden/original/iphs["+ cur_row +"]/iphs_insukind") !=
- model.getValue("/root/hidden/original/iphs["+ cur_row1 +"]/iphs_insukind")) {
- messageBox("보험유형이 틀려 합칠 수","I004");
- model.refresh();
- return false;
- }
- }
- if (model.getValue("/root/hidden/original/iphs["+ cur_row2 + "]/checkflag") == "true") {
- if (model.getValue("/root/hidden/original/iphs["+ cur_row +"]/iphs_insukind") !=
- model.getValue("/root/hidden/original/iphs["+ cur_row2 +"]/iphs_insukind")) {
- messageBox("보험유형이 틀려 합칠 수","I004");
- model.refresh();
- return false;
- }
- }
- } else {
- messageBox("보험유형을 합칠수","I004");
- model.refresh();
- return false;
- }
- }
- */
-
- var nodeList = instance1.selectNodes("/root/hidden/original/iphs[checkflag='true']");
-
- var rCSV = getNodeListCSV(nodeList);
- model.setValue("/root/hidden/iphschk/temp", rCSV);
- var CSV = model.getValue("/root/hidden/iphschk/temp");
-
- setCSVToNode("/root/send/data10", CSV);
-
- var iphs_cnt = getNodesetCount("/root/send/data10/list");
- if (iphs_cnt > 1) {
- for(i = 1; i <= iphs_cnt; i++) {
- var s_insukind = model.getValue("/root/send/data10/list[1]/iphs_insukind");
- if (s_insukind != model.getValue("/root/send/data10/list[" + i +"]/iphs_insukind")) {
- messageBox("다른 보험유형이 있어 합칠 수","I004");
- return false;
- }
- }
-
- // 가장 작은 시작일자와 가장 큰 종료일자 찾기
- var first_fromdd = model.getValue("/root/send/data10/list[1]/iphs_fromdd");
- var last_todd = model.getValue("/root/send/data10/list[1]/iphs_todd");
-
- for(i = 1; i <= iphs_cnt ; i++) {
-
- var next_fromdd = model.getValue("/root/send/data10/list[" + i +"]/iphs_fromdd")
- if (first_fromdd > next_fromdd) {
- first_fromdd = next_fromdd;
- }
-
- var next_todd = model.getValue("/root/send/data10/list[" + i +"]/iphs_todd")
- if (last_todd < next_todd) {
- last_todd = next_todd;
- }
- }
-
- model.makeValue("/root/send/data10/todo_pid", model.getValue("/root/send/data10/list[1]/iphs_pid"));
- model.makeValue("/root/send/data10/todo_indd", model.getValue("/root/send/data10/list[1]/iphs_indd"));
- model.makeValue("/root/send/data10/todo_cretno", model.getValue("/root/send/data10/list[1]/iphs_cretno"));
- model.makeValue("/root/send/data10/todo_mskind", model.getValue("/root/send/data10/list[1]/iphs_mskind"));
- model.makeValue("/root/send/data10/todo_instcd", model.getValue("/root/send/data10/list[1]/iphs_instcd"));
- model.makeValue("/root/send/data10/todo_fromdd", first_fromdd);
- model.makeValue("/root/send/data10/todo_todd", last_todd);
- //model.makeValue("/root/send/data10/todo_insukind", model.getValue("/root/send/data10/list[1]/iphs_insukind"));
- //model.makeValue("/root/send/data10/todo_suppkind", model.getValue("/root/send/data10/list[1]/iphs_suppkind"));
- }
-
-
-
- if (iphs_cnt > 1) {
- submit("TXPMI00403");
- //if(submit("TXPMI00403")) {
- //model.resetInstanceNode("/root/send/s_ptbs");
- //model.resetInstanceNode("/root/send/s_ptin");
- //model.resetInstanceNode("/root/send/s_inpt");
- //model.resetInstanceNode("/root/send/s_iphs");
- //model.resetInstanceNode("/root/send/s_icdr");
- //model.resetInstanceNode("/root/send/s_ipsc");
-
- var sPid = model.getValue("/root/main/ptbs/ptbs_pid");
-
- model.resetInstanceNode("/root/send");
-
- model.removeNodeset("/root/send/data10");
- model.makeNode("/root/send/data10");
-
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/hidden/h_rcv");
- model.resetInstanceNode("/root/hidden/flag");
- model.resetInstanceNode("/root/hidden/temp");
- model.resetInstanceNode("/root/hidden/iphschk");
- model.resetInstanceNode("/root/hidden/original");
-
- model.setValue("/root/send/ipatflag",'3');
- model.setValue("/root/send/srchcond1",'1');
- model.setValue("/root/send/srchcond2", sPid);
-
- fipatrefchlind('1');
-
- fQuery1();
- //}
-
- if(datagrid2.rows > 1) // 재원내역에 조회된 결과값이 있으면 해당환자의 정보를 조회한다.
- {
- fQuery("1")
- }
- } else {
- messageBox("보험유형이 2개이상이여야 합치기가","I006");
- return false;
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <output id="output12" ref="/root/main/iphs/iphs_famyrelnm" class="output_fix" appearance="output" style="left:115px; top:690px; width:94px; height:19px; "/>
- <line id="line24" class="line_1" style="x1:402px; y1:594px; x2:624px; y2:594px; "/>
- <line id="line25" class="line_3" style="x1:632px; y1:742px; x2:862px; y2:742px; "/>
- <button id="button61" class="btn2_letter2" style="left:265px; top:390px; width:42px; height:19px; ">
- <caption>자보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMPMC02600_pid", model.getValue("/root/main/ptbs/ptbs_pid")); //등록번호
- modal("SMPMC02600");
- ]]>
- </script>
- </button>
- <caption id="caption147" class="tit_2" style="left:5px; top:323px; width:144px; height:13px; ">예약정보</caption>
- <textarea id="textarea6" ref="/root/hidden/original/adrv/adrv_inrsrvrem" scroll="vertical" editable="false" style="left:115px; top:344px; width:282px; height:38px; "/>
- <caption id="caption148" class="cell_1" style="left:0px; top:343px; width:112px; height:41px; vertical-align:middle; ">원무 전달사항</caption>
- <line id="line123" class="line_1" style="x1:0px; y1:338px; x2:397px; y2:338px; "/>
- <line id="line126" class="line_3" style="x1:0px; y1:384px; x2:397px; y2:384px; "/>
- <button id="button18" class="btn2_letter4" visibility="visible" style="left:1129px; top:49px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid2.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/main/inpt/inpt_visitrefyn" overflow="visible" appearance="full" style="left:69px; top:33px; width:40px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>숨김</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/main/inpt/inpt_visitrefyn", "Y");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.setValue("/root/main/inpt/inpt_visitrefyn", "N");
- ]]>
- </script>
- </select>
- <select1 id="combo17" ref="/root/main/inpt/inpt_etcordflag" class="combo_default" appearance="minimal" style="left:991px; top:477px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>주사</label>
- <value>J</value>
- </item>
- <item>
- <label>사본발행</label>
- <value>D</value>
- </item>
- <item>
- <label>진단서발행</label>
- <value>G</value>
- </item>
- <item>
- <label>응급실접퇴</label>
- <value>X</value>
- </item>
- </choices>
- </select1>
- <line id="line18" class="line_2" style="x1:868px; y1:473px; x2:1194px; y2:473px; "/>
- <caption id="caption6" class="cell_1" style="left:868px; top:475px; width:120px; height:23px; vertical-align:middle; ">기타구분/수가계산</caption>
- <!-- 수정이력 : JHP 20090804 상한액 관련 IPHS ownbmaxgradeflag : '본인부담상한액 차등적용 구분 (-:해당없음, 1:400, 2:300, 3:200만원)' 추가-->
- <select1 id="cmb_ownbmaxgradeflag" ref="/root/main/iphs/iphs_ownbmaxgradeflag" class="combo_default" appearance="minimal" style="left:1115px; top:452px; width:79px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK062list/PK062">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <!-- 수정이력 : JHP 20091221 수가재계산구분 IPHS calcscorrecalflag : '완화의학호스피스병동구분 _ P0027' ('7':완화정액수가16일미만, '8':완화정액수가16일이상)' 추가-->
- <select1 id="cmb_calcscorrecalflag" ref="/root/main/iphs/iphs_calcscorrecalflag" class="combo_default" appearance="minimal" style="left:1094px; top:477px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0027list/P0027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo22" ref="/root/main/icdr/icdr_bedcd" class="combo_default" disabled="true" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:1122px; top:647px; width:54px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/bedcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo23" ref="/root/main/icdr/icdr_bedcd2" class="combo_default" disabled="true" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:1122px; top:695px; width:54px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/bedcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button39" class="btn2_letter4" style="left:199px; top:390px; width:64px; height:19px; ">
- <caption>산재공상</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMPMC02700_pid", model.getValue("/root/main/ptbs/ptbs_pid")); //등록번호
- modal("SMPMC02700", "1","100", "100", "SMPMC02700", "", "");
- ]]>
- </script>
- </button>
- <select1 id="combo27" ref="/root/main/iphs/iphs_rareobstflag" class="combo_default" appearance="minimal" style="left:991px; top:404px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/P6571list/P6571">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_remfact" class="btn2_letter2" style="left:68px; top:258px; width:42px; height:19px; ">
- <caption>펼침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/ptbs/ptbs_pid") == "") {
- return;
- }
-
- model.setValue("/root/main/ptbs/ptbs_remfact",
- fCallSpecPopUp_remfact(model.getValue("/root/main/ptbs/ptbs_pid"),model.getValue("/root/main/ptbs/ptbs_remfact")));
-
- textarea1.refresh();
-
- ]]>
- </script>
- </button>
- <select1 id="radio5" ref="/root/main/iphs/iphs_cpyn" disabled="true" appearance="full" cellspacing="8" cols="2" overflow="hidden" style="left:991px; top:334px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption46" class="cell_1" style="left:868px; top:331px; width:120px; height:23px; vertical-align:middle; ">CP여부/임상시험</caption>
- <input id="input4" ref="/root/main/iphs/iphs_drgno" disabled="true" style="left:1094px; top:357px; width:100px; height:19px; "/>
- <select1 id="combo28" ref="/root/main/iphs/iphs_drgyn" disabled="true" appearance="minimal" style="left:991px; top:357px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK020list/PK020">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input18" ref="/root/main/inpt/inpt_ownbflag" disabled="true" style="left:1094px; top:284px; width:100px; height:19px; color:#0000ff; text-align:center; "/>
- <caption id="caption43" class="cell_1" style="left:868px; top:451px; width:120px; height:23px; vertical-align:middle; ">
- <![CDATA[퇴원통보/상한차등]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fOwnBMaxGradeFlagSet();
- ]]>
- </script>
- </caption>
- <line id="line22" class="line_3" style="x1:867px; y1:523px; x2:1193px; y2:523px; "/>
- <caption id="caption48" class="cell_1" style="left:868px; top:307px; width:120px; height:23px; vertical-align:middle; ">진찰료산정/사유</caption>
- <select1 id="combo30" ref="/root/main/iphs/iphs_etcordflag" class="combo_default" appearance="minimal" style="left:1094px; top:404px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK043list/PK043">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_brateout" visibility="hidden" style="left:75px; top:393px; width:107px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; ">
- <![CDATA[[외래요율환자]]]>
- <hint>
- <![CDATA[보조유형이 전체 또는 외래에 해당하는 유형으로 설정됩니다.]]>
- </hint>
- </caption>
- <caption id="caption47" class="cell_1" style="left:868px; top:499px; width:120px; height:23px; vertical-align:middle; ">분리사유/사전심사</caption>
- <select1 id="combo31" ref="/root/main/iphs/iphs_forcesepcd" appearance="minimal" style="left:991px; top:501px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK084list/PK084">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo32" ref="/root/main/iphs/iphs_uncocd" appearance="minimal" style="left:1050px; top:429px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/PAM/PK225list/PK225">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button2" class="btn2_letter4" style="left:1130px; top:429px; width:64px; height:19px; ">
- <caption>보호입원</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SPPMI03800_PID", model.getValue("/root/main/ptbs/ptbs_pid"));
-
- // 보호입원 대상자 조회화면
- modal ("SPPMI03800");
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption26" class="tit_1" style="left:0px; top:0px; width:100px; height:13px; font-family:돋움; vertical-align:middle; ">재원변경관리</caption>
- </group>
- <group id="group3" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button31" class="btn3_letter3" style="left:391px; top:4px; width:68px; height:22px; ">
- <caption>진단서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMMMR02300");
- ]]>
- </script>
- </button>
- <button id="button34" class="btn3_letter4" visibility="visible" style="left:225px; top:4px; width:72px; height:22px; ">
- <caption>환자팔찌</caption>
- </button>
- <button id="button12" class="btn4_letter4" style="left:1114px; top:4px; width:80px; height:22px; ">
- <caption>재원변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //감면정보 확인
- model.setValue("/root/send/data29/pid", model.getValue("/root/main/ptbs/ptbs_pid") );
- model.setValue("/root/send/data29/name", model.getValue("/root/main/ptbs/ptbs_hngnm") );
- model.setValue("/root/send/data29/rgstno1", model.getValue("/root/main/ptbs/ptbs_rrgstno1") );
- model.setValue("/root/send/data29/rgstno2", model.getValue("/root/main/ptbs/ptbs_rrgstno2") );
- model.setValue("/root/send/data29/orddd", model.getValue("/root/main/iphs/iphs_fromdd") );
-
- var siphs_flag = model.getValue("/root/hidden/flag/iphs_flag"); // 재원유형을 선택했는지 여부를 관리한다.
- var sicdr_flag = model.getValue("/root/hidden/flag/icdr_flag"); // 재원이력을 선택했는지 여부를 관리한다.
-
- if( siphs_flag != 'Y') {
- messageBox("변경할 재원유형을 ", "C002");
- return false;
- } else if (sicdr_flag != 'Y' ) {
- messageBox("변경할 재원이력을 ", "C002");
- return false;
- } else {
- var sAnswer = messageBox("변경하시겠습니까?", "Q");
- if (sAnswer == "6") {
- if (fCheckFactChangeSave(1) == true) { //필수입력사항 체크
- // 로딩창 열기
- var sWindowMsg = "재원변경 처리중입니다..";
- callLoadingWindow(sWindowMsg);
-
- fChangeSave(); //재원변경실행
-
- //2010-12-17 이동식 - 선택진료 서명 체크로직 추가
- fCheckSpecOrdApp();
-
- combo6.dispatch("xforms-select");
-
- model.refresh();
-
- //로딩창 닫기
- removeLoadingWindow();
- }
- }
- }
- ]]>
- </script>
- </button>
- <line id="line58" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button10" class="btn3_letter3" style="left:71px; top:4px; width:68px; height:22px; ">
- <caption>약정서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2008.01.04 재원변경관리에서 입원약정서 출력하는 조건은 입원환자의 최종내역을 찍는다.
- var ptbs_inhospyn = model.getValue("/root/main/ptbs/ptbs_inhospyn");
- var inpt_pid = model.getValue("/root/main/inpt/inpt_pid");
- var inpt_orgordtype = model.getValue("/root/main/inpt/inpt_orgordtype");
-
- if (ptbs_inhospyn == "Y" && inpt_pid != null && inpt_pid != " " && inpt_pid != "") {
- var sDeciFlag = "I"; //default : 입원
- if (inpt_orgordtype == "E" || inpt_orgordtype == "D" || inpt_orgordtype == "C") {
- sDeciFlag = "C"; // 전과전실승인과 같은 로직을 타도록 수정
- } else {
- sDeciFlag = "I"; // 입원
- }
- setGlobalVariable("SPPAO00100_강제출력여부", "Y" ,"p");
- fInDeciPrintlss(model.getValue("/root/main/inpt/inpt_pid"),
- model.getValue("/root/main/inpt/inpt_indd"),
- model.getValue("/root/main/inpt/inpt_cretno"),
- model.getValue("/root/main/inpt/inpt_mskind"),
- model.getValue("/root/main/inpt/inpt_orddeptcd"),
- model.getValue("/root/main/inpt/inpt_medispclid"),
- sDeciFlag);
- setGlobalVariable("SPPAO00100_강제출력여부", "" ,"p");
-
- } else {
- messageBox("재원 중인 환자가 아닙니다.!","E999","");
- return false;
- }
- ]]>
- </script>
- </button>
- <button id="btn_SMASB02100" class="btn3_letter4" visibility="visible" style="left:545px; top:4px; width:80px; height:22px; ">
- <caption>격리병실</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMASB02100");
- ]]>
- </script>
- </button>
- <button id="button14" class="btn3_letter4" style="left:308px; top:4px; width:116px; height:22px; ">
- <caption>입원카드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setGlobalVariable("SPPAO00100_강제출력여부", "Y" ,"p");
- fInRgstCardIss();
- setGlobalVariable("SPPAO00100_강제출력여부", "" ,"p");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter4" style="left:627px; top:4px; width:80px; height:22px; ">
- <caption>전과전실</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 현재선택한 전과전실 데이터의 전과전실승인 프로그램으로 연동한다.
- var spid = model.getValue("/root/main/ptbs/ptbs_pid");
- model.setValue("/root/hidden/source/pid", spid);
- modal("../../../pam/ipatmngtweb/xrw/SMPMI01600", "1","50", "50", "SMPMI01600", "/root/hidden/source/pid", "/root/hidden/source/pid");
- ]]>
- </script>
- </button>
- <button id="button36" class="btn3_letter7" style="left:710px; top:4px; width:116px; height:22px; ">
- <caption>진료비상세내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/ptbs/ptbs_pid") == "" || model.getValue("/root/main/ptbs/ptbs_pid") == null) {
- modal("../../../pam/inordamtmngtweb/xrw/SMPAI00200", "1","","", "SMPAI00200", "","");
- } else {
- modal("../../../pam/inordamtmngtweb/xrw/SMPAI00200", "1","","", "SMPAI00200", "/root/main/ptbs/ptbs_pid","/root/send/pid");
- }
- ]]>
- </script>
- </button>
- <button id="button23" class="btn3_letter4" style="left:462px; top:4px; width:80px; height:22px; ">
- <caption>선택신청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // 입원같은 경우에는 무조건 입력을 하기때문에 기여부를 존재하는것 자체가 무의미한다.
- // 하여 일단 해당 입력값들을 넘긴다음에 해당건이 존재하면 이력으로 발생을 시키고
- // 없으면 입력한다.
-
- // 넘길값들 인스턴스에 담기
- /*
- model.makeNode("/root/hidden/patappinfo/patappinfo1/stat");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/pid");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/hngnm");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/rrgstno1");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/rrgstno2");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/choiflag");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/ordtype");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/orddd");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/orddeptcd");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/orddrid");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/specordyn");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/fromdd");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/rsrvdd");
- model.makeNode("/root/hidden/patappinfo/patappinfo1/flag");
-
- model.setValue("/root/hidden/patappinfo/patappinfo1/stat", ""); // stat
- model.setValue("/root/hidden/patappinfo/patappinfo1/pid", model.getValue("/root/main/ptbs/ptbs_pid")); // pid
- model.setValue("/root/hidden/patappinfo/patappinfo1/hngnm", model.getValue("/root/main/ptbs/ptbs_hngnm")); // hngnm
- model.setValue("/root/hidden/patappinfo/patappinfo1/rrgstno1", model.getValue("/root/main/ptbs/ptbs_rrgstno1")); // rrgstno1
- model.setValue("/root/hidden/patappinfo/patappinfo1/rrgstno2", model.getValue("/root/main/ptbs/ptbs_rrgstno2")); // rrgstno2
- model.setValue("/root/hidden/patappinfo/patappinfo1/choiflag", ""); // choiflag
- model.setValue("/root/hidden/patappinfo/patappinfo1/ordtype", "I"); // ordtype
- model.setValue("/root/hidden/patappinfo/patappinfo1/orddd", model.getValue("/root/main/inpt/inpt_indd")); // orddd
- model.setValue("/root/hidden/patappinfo/patappinfo1/orddeptcd", model.getValue("/root/main/inpt/inpt_orddeptcd")); // orddeptcd
- model.setValue("/root/hidden/patappinfo/patappinfo1/orddrid", model.getValue("/root/main/inpt/inpt_medispclid")); // orddrid
- model.setValue("/root/hidden/patappinfo/patappinfo1/specordyn", "Y"); // specordyn
- model.setValue("/root/hidden/patappinfo/patappinfo1/fromdd", model.getValue("/root/main/inpt/inpt_indd")); // fromdd
- model.setValue("/root/hidden/patappinfo/patappinfo1/rsrvdd", ""); // rsrvdd
- model.setValue("/root/hidden/patappinfo/patappinfo1/flag", "ins"); // flag(upt, ins)
-
- // 선택진료신청화면열기
- modal("../../patinfomngtweb/xrw/SMPMC06500_선택진료신청관리", "", "100", "100", "SMPMC06500","/root/hidden/patappinfo/patappinfo1","/root/main/patappinfo/patappinfo1");
-
- model.removeNodeset("/root/hidden/patappinfo/patappinfo1");
-
- model.refresh();
- */
-
- var s_pid = model.getValue("/root/main/ptbs/ptbs_pid");
- var s_ordtype = "I";
- var s_orddd = model.getValue("/root/main/inpt/inpt_indd");
- var s_orddeptcd = model.getValue("/root/main/inpt/inpt_orddeptcd");
- var s_orddrid = model.getValue("/root/main/inpt/inpt_medispclid");
- var s_fromdd = model.getValue("/root/main/inpt/inpt_indd");
- var s_cretno = model.getValue("/root/main/inpt/inpt_cretno");
- var s_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
- var s_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
- var s_rrgstno2 = model.getValue("/root/main/ptbs/ptbs_rrgstno2");
- fCallSpecPopUp(s_pid,s_ordtype,s_orddd,s_orddeptcd,s_orddrid,s_fromdd,s_hngnm,s_rrgstno1,s_rrgstno2,s_cretno);
- ]]>
- </script>
- </button>
- <button id="button21" class="btn3_letter3" style="left:0px; top:4px; width:104px; height:22px; ">
- <caption>결정서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var inpt_pid = model.getValue("/root/main/inpt/inpt_pid");
- if (!isNull(inpt_pid)) {
- model.makeNode("/root/send/data41/pid");
- model.makeNode("/root/send/data41/indd");
- model.makeNode("/root/send/data41/orddeptcd");
- model.makeNode("/root/send/data41/cretno");
- model.makeNode("/root/send/data41/instcd");
- model.makeNode("/root/send/data41/wardcd");
- model.makeNode("/root/send/data41/roomcd");
- model.makeNode("/root/send/data41/roomgrdecd");
- model.makeNode("/root/send/data41/fromdd");
-
- model.setValue("/root/send/data41/pid", model.getValue("/root/main/inpt/inpt_pid"));
- model.setValue("/root/send/data41/indd", model.getValue("/root/main/inpt/inpt_indd"));
- model.setValue("/root/send/data41/orddeptcd", model.getValue("/root/main/inpt/inpt_orddeptcd"));
- model.setValue("/root/send/data41/cretno", model.getValue("/root/main/inpt/inpt_cretno"));
- model.setValue("/root/send/data41/instcd", model.getValue("/root/main/inpt/inpt_instcd"));
- model.setValue("/root/send/data41/wardcd", model.getValue("/root/main/icdr/icdr_wardcd"));
- model.setValue("/root/send/data41/roomcd", model.getValue("/root/main/icdr/icdr_roomcd"));
- model.setValue("/root/send/data41/roomgrdecd", model.getValue("/root/main/icdr/icdr_roomgrdecd"));
- model.setValue("/root/send/data41/fromdd", model.getValue("/root/main/icdr/icdr_fromdd"));
-
- submit("TRPMI01202");
- model.makeValue("/root/hidden/rsltflag/patappinfo1/signimgsign", model.getValue("/root/hidden/rsltflag/patappinfo1/elctappsigncnts"));
- model.makeValue("/root/hidden/rsltflag/patappinfo1/signimgrela", model.getValue("/root/hidden/rsltflag/patappinfo1/elctapprelacnts"));
- // 상급병실 신청내역 있을경우 기존 병실정보에 엎어서 출력.
- if (model.getValue("/root/hidden/rsltflag/patappinfo1/wardnm") != "" && model.getValue("/root/hidden/rsltflag/patappinfo1/wardnm") != null) {
- model.setValue("/root/hidden/rsltflag/indeciprint/wardnm", model.getValue("/root/hidden/rsltflag/patappinfo1/wardnm"));
- model.setValue("/root/hidden/rsltflag/indeciprint/roomcd", model.getValue("/root/hidden/rsltflag/patappinfo1/roomcd"));
- model.setValue("/root/hidden/rsltflag/indeciprint/bedcnt", model.getValue("/root/hidden/rsltflag/patappinfo1/bedcnt"));
- model.setValue("/root/hidden/rsltflag/indeciprint/diffamt", model.getValue("/root/hidden/rsltflag/patappinfo1/extrapay"));
- }
- // 전과전실 선택진료 사인 추가 2011.11.17 노회식
- model.makeValue("/root/hidden/rsltflag/patappinfo1/signimgsign1", model.getValue("/root/hidden/rsltflag/patappinfo1/elctsigncnts1"));
- model.makeValue("/root/hidden/rsltflag/patappinfo1/signimgrela1", model.getValue("/root/hidden/rsltflag/patappinfo1/elctsigncnts2"));
- setGlobalVariable("SPPAO00100_강제출력여부", "Y" ,"p");
- fInDeciPrint2();
- setGlobalVariable("SPPAO00100_강제출력여부", "" ,"p");
-
- } else {
- messageBox("검색된 입원환자가 없습니다.","E");
- return false;
- }
-
-
- ]]>
- </script>
- </button>
- <button id="button22" class="btn3_letter4" style="left:142px; top:4px; width:80px; height:22px; ">
- <caption>상급병실</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUpRoomSignMngt(model.getValue("/root/main/inpt/inpt_pid"), model.getValue("/root/main/inpt/inpt_indd"), "N");
- ]]>
- </script>
- </button>
- <button id="button25" class="btn3_letter7" style="left:829px; top:4px; width:128px; height:22px; ">
- <caption>자보산재동의서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var insukind = model.getValue("/root/main/iphs/iphs_insukind");
-
- if (insukind != '31' && insukind != '41') {
-
- messageBox("자보 또는 산재의 경우만 출력가능합니다.", "C000");
- return;
- }
-
- if (insukind == "31") {
-
- //자보환자안내문 출력
- fAutoPrint();
-
- } else if (insukind == "41") {
-
- //산재환자안내문 출력
- fIndPrint();
- }
- ]]>
- </script>
- </button>
- </group>
- <select1 id="cmb_building" ref="/root/hidden/building1" class="combo_default" visibility="hidden" appearance="minimal" style="left:945px; top:660px; width:35px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>본관</label>
- <value>M</value>
- </item>
- <item>
- <label>별관</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sBuilding = model.getValue("/root/hidden/building1");
- if (sBuilding != null) {
- combo5.choices.itemset.attribute("nodeset") = "/root/hidden/init/wardcd[build = '" + sBuilding + "' ]";
- combo5.refresh();
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo14" ref="/root/hidden/building2" class="combo_default" visibility="hidden" appearance="minimal" style="left:945px; top:708px; width:35px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>본관</label>
- <value>M</value>
- </item>
- <item>
- <label>별관</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var sBuilding = model.getValue("/root/hidden/building2");
- if (sBuilding != null) {
- combo13.choices.itemset.attribute("nodeset") = "/root/hidden/init/wardcd[build = '" + sBuilding + "' ]";
- combo13.refresh();
- }
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|