eFormServer.iBATIS.log_2016-10-21.1 999 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647
  1. [Logging Date Time: 2016-10-21 13:48:10,186] =====================================================================================
  2. SQL Command - Statement Id: [getFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[formcd,1300010585], param4=[ocrtag,2016102161576], param5=[pageno,0]]
  3. [Logging Date Time: 2016-10-21 13:48:10,186] =====================================================================================
  4. SQL Command - Statement Id: [getFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[formcd,1300010585], param4=[ocrtag,2016102161576], param5=[pageno,0]]
  5. [Logging Date Time: 2016-10-21 13:48:10,218] =====================================================================================
  6. SQL Command - Statement Id: [getFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String]]
  7. [Logging Date Time: 2016-10-21 13:48:10,218] =====================================================================================
  8. SQL Command - Statement Id: [getFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String]]
  9. [Logging Date Time: 2016-10-21 13:48:10,250] =====================================================================================
  10. SQL Command - Statement Id: [GET_SEQUENCE] PreparedStatement : [select ud1_num as seq from EFORM_CODE where main_cd = 'SEQUENCE' and sub_cd = :param0 for update]
  11. [Logging Date Time: 2016-10-21 13:48:10,250] =====================================================================================
  12. SQL Command - Statement Id: [GET_SEQUENCE] PreparedStatement : [select ud1_num as seq from EFORM_CODE where main_cd = 'SEQUENCE' and sub_cd = :param0 for update]
  13. [Logging Date Time: 2016-10-21 13:48:10,250] =====================================================================================
  14. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_IMAGE]]
  15. [Logging Date Time: 2016-10-21 13:48:10,250] =====================================================================================
  16. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_IMAGE]]
  17. [Logging Date Time: 2016-10-21 13:48:10,250] =====================================================================================
  18. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  19. [Logging Date Time: 2016-10-21 13:48:10,250] =====================================================================================
  20. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  21. [Logging Date Time: 2016-10-21 13:48:10,255] =====================================================================================
  22. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  23. [Logging Date Time: 2016-10-21 13:48:10,255] =====================================================================================
  24. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  25. [Logging Date Time: 2016-10-21 13:48:10,255] =====================================================================================
  26. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,474], param1=[sub_cd,CONSENT_IMAGE]]
  27. [Logging Date Time: 2016-10-21 13:48:10,255] =====================================================================================
  28. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,474], param1=[sub_cd,CONSENT_IMAGE]]
  29. [Logging Date Time: 2016-10-21 13:48:10,256] =====================================================================================
  30. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  31. [Logging Date Time: 2016-10-21 13:48:10,256] =====================================================================================
  32. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  33. [Logging Date Time: 2016-10-21 13:48:10,258] =====================================================================================
  34. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] PreparedStatement : [insert into CONSENT_IMAGE ( CONSENT_Image_RID, CONSENT_MST_RID, FORM_RID, IMAGE_PATH, IMAGE_FILENAME, COMPLETE_YN, CREATE_USER_ID, CREATE_DATETIME ) values ( :param0 , :param1 , :param2 , :param3 , :param4 , :param5 , :param6 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') )]
  35. [Logging Date Time: 2016-10-21 13:48:10,258] =====================================================================================
  36. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] PreparedStatement : [insert into CONSENT_IMAGE ( CONSENT_Image_RID, CONSENT_MST_RID, FORM_RID, IMAGE_PATH, IMAGE_FILENAME, COMPLETE_YN, CREATE_USER_ID, CREATE_DATETIME ) values ( :param0 , :param1 , :param2 , :param3 , :param4 , :param5 , :param6 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') )]
  37. [Logging Date Time: 2016-10-21 13:48:10,259] =====================================================================================
  38. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Parameters: [param0=[consentImageRid,474], param1=[consentMstRid,764], param2=[formRid,676], param3=[imagePath,Image3\fnuImage\201610\21], param4=[imageFilename,103137629.jpg], param5=[completeYn,Y], param6=[userId,103043]]
  39. [Logging Date Time: 2016-10-21 13:48:10,259] =====================================================================================
  40. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Parameters: [param0=[consentImageRid,474], param1=[consentMstRid,764], param2=[formRid,676], param3=[imagePath,Image3\fnuImage\201610\21], param4=[imageFilename,103137629.jpg], param5=[completeYn,Y], param6=[userId,103043]]
  41. [Logging Date Time: 2016-10-21 13:48:10,259] =====================================================================================
  42. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Types: [param0=[Int32, System.Int32], param1=[Int32, System.Int32], param2=[Int32, System.Int32], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String]]
  43. [Logging Date Time: 2016-10-21 13:48:10,259] =====================================================================================
  44. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Types: [param0=[Int32, System.Int32], param1=[Int32, System.Int32], param2=[Int32, System.Int32], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String]]
  45. [Logging Date Time: 2016-10-21 13:48:10,325] =====================================================================================
  46. SQL Command - CLIP.eForm File Upload Start
  47. [Logging Date Time: 2016-10-21 13:48:10,325] =====================================================================================
  48. SQL Command - CLIP.eForm File Upload: Image3\fnuImage\201610\21\103137629.jpg
  49. [Logging Date Time: 2016-10-21 13:48:10,325] =====================================================================================
  50. SQL Command - CLIP.eForm File Upload: D:\TeamDFH_Consent\DFH-Consent\CLIP.e-Form.Consent.Dfh.Web\Image3\fnuImage\201610\21\103137629.jpg
  51. [Logging Date Time: 2016-10-21 13:48:10,325] =====================================================================================
  52. SQL Command - CLIP.eForm File Upload Impersonate START workemr
  53. [Logging Date Time: 2016-10-21 13:48:10,329] =====================================================================================
  54. SQL Command - CLIP.eForm File Upload Impersonate END
  55. [Logging Date Time: 2016-10-21 13:48:10,330] =====================================================================================
  56. SQL Command - CLIP.eForm File Upload Impersonate CLOSE
  57. [Logging Date Time: 2016-10-21 13:48:10,330] =====================================================================================
  58. SQL Command - CLIP.eForm File Upload End
  59. [Logging Date Time: 2016-10-21 13:48:10,348] =====================================================================================
  60. SQL Command - Statement Id: [setFileName] PreparedStatement : [declare I_PID VARCHAR2(10) := :param0 ; I_IOFLAG VARCHAR2(1) := :param1 ; I_ORDDD VARCHAR2(8) := :param2 ; I_DSCHDD VARCHAR2(8) := :param3 ; I_CRETNO NUMBER(10) := :param4 ; I_FILESIZE NUMBER(18) := :param5 ; I_FORMCD VARCHAR2(10) := :param6 ; I_PAGE NUMBER(18) := :param7 ; I_OCRCODE VARCHAR2(13) := :param8 ; I_USERID VARCHAR2(10) := :param9 ; begin EMR.LCTECH_PROCESS(I_PID, I_IOFLAG, I_ORDDD, I_DSCHDD, I_CRETNO, I_FILESIZE, I_FORMCD, I_PAGE, I_OCRCODE, I_USERID); end;]
  61. [Logging Date Time: 2016-10-21 13:48:10,348] =====================================================================================
  62. SQL Command - Statement Id: [setFileName] PreparedStatement : [declare I_PID VARCHAR2(10) := :param0 ; I_IOFLAG VARCHAR2(1) := :param1 ; I_ORDDD VARCHAR2(8) := :param2 ; I_DSCHDD VARCHAR2(8) := :param3 ; I_CRETNO NUMBER(10) := :param4 ; I_FILESIZE NUMBER(18) := :param5 ; I_FORMCD VARCHAR2(10) := :param6 ; I_PAGE NUMBER(18) := :param7 ; I_OCRCODE VARCHAR2(13) := :param8 ; I_USERID VARCHAR2(10) := :param9 ; begin EMR.LCTECH_PROCESS(I_PID, I_IOFLAG, I_ORDDD, I_DSCHDD, I_CRETNO, I_FILESIZE, I_FORMCD, I_PAGE, I_OCRCODE, I_USERID); end;]
  63. [Logging Date Time: 2016-10-21 13:48:10,348] =====================================================================================
  64. SQL Command - Statement Id: [setFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[dschdd,20161021], param4=[cretno,1], param5=[filesize,500], param6=[formcd,1300010585], param7=[pageno,1], param8=[ocrtag,2016102161576], param9=[userid,103043]]
  65. [Logging Date Time: 2016-10-21 13:48:10,348] =====================================================================================
  66. SQL Command - Statement Id: [setFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[dschdd,20161021], param4=[cretno,1], param5=[filesize,500], param6=[formcd,1300010585], param7=[pageno,1], param8=[ocrtag,2016102161576], param9=[userid,103043]]
  67. [Logging Date Time: 2016-10-21 13:48:10,348] =====================================================================================
  68. SQL Command - Statement Id: [setFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String], param7=[AnsiString, System.String], param8=[AnsiString, System.String], param9=[AnsiString, System.String]]
  69. [Logging Date Time: 2016-10-21 13:48:10,348] =====================================================================================
  70. SQL Command - Statement Id: [setFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String], param7=[AnsiString, System.String], param8=[AnsiString, System.String], param9=[AnsiString, System.String]]
  71. [Logging Date Time: 2016-10-21 13:48:10,355] =====================================================================================
  72. SQL Command - Statement Id: [getFileName] PreparedStatement : [SELECT d.alias||'\'||'fnuImage'||'\'||substr(c.cdate,1,6)||'\'||substr(c.cdate,7)||'\'||to_char(c.pageno) AS filename FROM cmr.treatt a, cmr.chartpaget b, cmr.paget c, cmr.patht d WHERE a.patid = :param0 AND a.class = :param1 AND a.indate = :param2 and a.TREATNO = b.TREATNO and b.formcode = :param3 and b.ocrcode = :param4 and b.page = :param5 and b.pageno = c.pageno and d.pathid = c.pathid and d.active = 'Y']
  73. [Logging Date Time: 2016-10-21 13:48:10,355] =====================================================================================
  74. SQL Command - Statement Id: [getFileName] PreparedStatement : [SELECT d.alias||'\'||'fnuImage'||'\'||substr(c.cdate,1,6)||'\'||substr(c.cdate,7)||'\'||to_char(c.pageno) AS filename FROM cmr.treatt a, cmr.chartpaget b, cmr.paget c, cmr.patht d WHERE a.patid = :param0 AND a.class = :param1 AND a.indate = :param2 and a.TREATNO = b.TREATNO and b.formcode = :param3 and b.ocrcode = :param4 and b.page = :param5 and b.pageno = c.pageno and d.pathid = c.pathid and d.active = 'Y']
  75. [Logging Date Time: 2016-10-21 13:48:10,355] =====================================================================================
  76. SQL Command - Statement Id: [getFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[formcd,1300010585], param4=[ocrtag,2016102161576], param5=[pageno,1]]
  77. [Logging Date Time: 2016-10-21 13:48:10,355] =====================================================================================
  78. SQL Command - Statement Id: [getFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[formcd,1300010585], param4=[ocrtag,2016102161576], param5=[pageno,1]]
  79. [Logging Date Time: 2016-10-21 13:48:10,355] =====================================================================================
  80. SQL Command - Statement Id: [getFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String]]
  81. [Logging Date Time: 2016-10-21 13:48:10,355] =====================================================================================
  82. SQL Command - Statement Id: [getFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String]]
  83. [Logging Date Time: 2016-10-21 13:48:10,374] =====================================================================================
  84. SQL Command - Statement Id: [GET_SEQUENCE] PreparedStatement : [select ud1_num as seq from EFORM_CODE where main_cd = 'SEQUENCE' and sub_cd = :param0 for update]
  85. [Logging Date Time: 2016-10-21 13:48:10,374] =====================================================================================
  86. SQL Command - Statement Id: [GET_SEQUENCE] PreparedStatement : [select ud1_num as seq from EFORM_CODE where main_cd = 'SEQUENCE' and sub_cd = :param0 for update]
  87. [Logging Date Time: 2016-10-21 13:48:10,375] =====================================================================================
  88. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_IMAGE]]
  89. [Logging Date Time: 2016-10-21 13:48:10,375] =====================================================================================
  90. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_IMAGE]]
  91. [Logging Date Time: 2016-10-21 13:48:10,375] =====================================================================================
  92. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  93. [Logging Date Time: 2016-10-21 13:48:10,375] =====================================================================================
  94. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  95. [Logging Date Time: 2016-10-21 13:48:10,377] =====================================================================================
  96. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  97. [Logging Date Time: 2016-10-21 13:48:10,377] =====================================================================================
  98. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  99. [Logging Date Time: 2016-10-21 13:48:10,377] =====================================================================================
  100. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,475], param1=[sub_cd,CONSENT_IMAGE]]
  101. [Logging Date Time: 2016-10-21 13:48:10,377] =====================================================================================
  102. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,475], param1=[sub_cd,CONSENT_IMAGE]]
  103. [Logging Date Time: 2016-10-21 13:48:10,377] =====================================================================================
  104. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  105. [Logging Date Time: 2016-10-21 13:48:10,377] =====================================================================================
  106. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  107. [Logging Date Time: 2016-10-21 13:48:10,378] =====================================================================================
  108. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] PreparedStatement : [insert into CONSENT_IMAGE ( CONSENT_Image_RID, CONSENT_MST_RID, FORM_RID, IMAGE_PATH, IMAGE_FILENAME, COMPLETE_YN, CREATE_USER_ID, CREATE_DATETIME ) values ( :param0 , :param1 , :param2 , :param3 , :param4 , :param5 , :param6 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') )]
  109. [Logging Date Time: 2016-10-21 13:48:10,378] =====================================================================================
  110. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] PreparedStatement : [insert into CONSENT_IMAGE ( CONSENT_Image_RID, CONSENT_MST_RID, FORM_RID, IMAGE_PATH, IMAGE_FILENAME, COMPLETE_YN, CREATE_USER_ID, CREATE_DATETIME ) values ( :param0 , :param1 , :param2 , :param3 , :param4 , :param5 , :param6 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') )]
  111. [Logging Date Time: 2016-10-21 13:48:10,378] =====================================================================================
  112. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Parameters: [param0=[consentImageRid,475], param1=[consentMstRid,764], param2=[formRid,676], param3=[imagePath,Image3\fnuImage\201610\21], param4=[imageFilename,103137630.jpg], param5=[completeYn,Y], param6=[userId,103043]]
  113. [Logging Date Time: 2016-10-21 13:48:10,378] =====================================================================================
  114. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Parameters: [param0=[consentImageRid,475], param1=[consentMstRid,764], param2=[formRid,676], param3=[imagePath,Image3\fnuImage\201610\21], param4=[imageFilename,103137630.jpg], param5=[completeYn,Y], param6=[userId,103043]]
  115. [Logging Date Time: 2016-10-21 13:48:10,378] =====================================================================================
  116. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Types: [param0=[Int32, System.Int32], param1=[Int32, System.Int32], param2=[Int32, System.Int32], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String]]
  117. [Logging Date Time: 2016-10-21 13:48:10,378] =====================================================================================
  118. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Types: [param0=[Int32, System.Int32], param1=[Int32, System.Int32], param2=[Int32, System.Int32], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String]]
  119. [Logging Date Time: 2016-10-21 13:48:10,420] =====================================================================================
  120. SQL Command - CLIP.eForm File Upload Start
  121. [Logging Date Time: 2016-10-21 13:48:10,420] =====================================================================================
  122. SQL Command - CLIP.eForm File Upload: Image3\fnuImage\201610\21\103137630.jpg
  123. [Logging Date Time: 2016-10-21 13:48:10,420] =====================================================================================
  124. SQL Command - CLIP.eForm File Upload: D:\TeamDFH_Consent\DFH-Consent\CLIP.e-Form.Consent.Dfh.Web\Image3\fnuImage\201610\21\103137630.jpg
  125. [Logging Date Time: 2016-10-21 13:48:10,420] =====================================================================================
  126. SQL Command - CLIP.eForm File Upload Impersonate START workemr
  127. [Logging Date Time: 2016-10-21 13:48:10,420] =====================================================================================
  128. SQL Command - CLIP.eForm File Upload Impersonate END
  129. [Logging Date Time: 2016-10-21 13:48:10,421] =====================================================================================
  130. SQL Command - CLIP.eForm File Upload Impersonate CLOSE
  131. [Logging Date Time: 2016-10-21 13:48:10,421] =====================================================================================
  132. SQL Command - CLIP.eForm File Upload End
  133. [Logging Date Time: 2016-10-21 13:48:10,445] =====================================================================================
  134. SQL Command - Statement Id: [setFileName] PreparedStatement : [declare I_PID VARCHAR2(10) := :param0 ; I_IOFLAG VARCHAR2(1) := :param1 ; I_ORDDD VARCHAR2(8) := :param2 ; I_DSCHDD VARCHAR2(8) := :param3 ; I_CRETNO NUMBER(10) := :param4 ; I_FILESIZE NUMBER(18) := :param5 ; I_FORMCD VARCHAR2(10) := :param6 ; I_PAGE NUMBER(18) := :param7 ; I_OCRCODE VARCHAR2(13) := :param8 ; I_USERID VARCHAR2(10) := :param9 ; begin EMR.LCTECH_PROCESS(I_PID, I_IOFLAG, I_ORDDD, I_DSCHDD, I_CRETNO, I_FILESIZE, I_FORMCD, I_PAGE, I_OCRCODE, I_USERID); end;]
  135. [Logging Date Time: 2016-10-21 13:48:10,445] =====================================================================================
  136. SQL Command - Statement Id: [setFileName] PreparedStatement : [declare I_PID VARCHAR2(10) := :param0 ; I_IOFLAG VARCHAR2(1) := :param1 ; I_ORDDD VARCHAR2(8) := :param2 ; I_DSCHDD VARCHAR2(8) := :param3 ; I_CRETNO NUMBER(10) := :param4 ; I_FILESIZE NUMBER(18) := :param5 ; I_FORMCD VARCHAR2(10) := :param6 ; I_PAGE NUMBER(18) := :param7 ; I_OCRCODE VARCHAR2(13) := :param8 ; I_USERID VARCHAR2(10) := :param9 ; begin EMR.LCTECH_PROCESS(I_PID, I_IOFLAG, I_ORDDD, I_DSCHDD, I_CRETNO, I_FILESIZE, I_FORMCD, I_PAGE, I_OCRCODE, I_USERID); end;]
  137. [Logging Date Time: 2016-10-21 13:48:10,445] =====================================================================================
  138. SQL Command - Statement Id: [setFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[dschdd,20161021], param4=[cretno,1], param5=[filesize,500], param6=[formcd,1300010585], param7=[pageno,2], param8=[ocrtag,2016102161576], param9=[userid,103043]]
  139. [Logging Date Time: 2016-10-21 13:48:10,445] =====================================================================================
  140. SQL Command - Statement Id: [setFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[dschdd,20161021], param4=[cretno,1], param5=[filesize,500], param6=[formcd,1300010585], param7=[pageno,2], param8=[ocrtag,2016102161576], param9=[userid,103043]]
  141. [Logging Date Time: 2016-10-21 13:48:10,445] =====================================================================================
  142. SQL Command - Statement Id: [setFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String], param7=[AnsiString, System.String], param8=[AnsiString, System.String], param9=[AnsiString, System.String]]
  143. [Logging Date Time: 2016-10-21 13:48:10,445] =====================================================================================
  144. SQL Command - Statement Id: [setFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String], param7=[AnsiString, System.String], param8=[AnsiString, System.String], param9=[AnsiString, System.String]]
  145. [Logging Date Time: 2016-10-21 13:48:10,452] =====================================================================================
  146. SQL Command - Statement Id: [getFileName] PreparedStatement : [SELECT d.alias||'\'||'fnuImage'||'\'||substr(c.cdate,1,6)||'\'||substr(c.cdate,7)||'\'||to_char(c.pageno) AS filename FROM cmr.treatt a, cmr.chartpaget b, cmr.paget c, cmr.patht d WHERE a.patid = :param0 AND a.class = :param1 AND a.indate = :param2 and a.TREATNO = b.TREATNO and b.formcode = :param3 and b.ocrcode = :param4 and b.page = :param5 and b.pageno = c.pageno and d.pathid = c.pathid and d.active = 'Y']
  147. [Logging Date Time: 2016-10-21 13:48:10,452] =====================================================================================
  148. SQL Command - Statement Id: [getFileName] PreparedStatement : [SELECT d.alias||'\'||'fnuImage'||'\'||substr(c.cdate,1,6)||'\'||substr(c.cdate,7)||'\'||to_char(c.pageno) AS filename FROM cmr.treatt a, cmr.chartpaget b, cmr.paget c, cmr.patht d WHERE a.patid = :param0 AND a.class = :param1 AND a.indate = :param2 and a.TREATNO = b.TREATNO and b.formcode = :param3 and b.ocrcode = :param4 and b.page = :param5 and b.pageno = c.pageno and d.pathid = c.pathid and d.active = 'Y']
  149. [Logging Date Time: 2016-10-21 13:48:10,452] =====================================================================================
  150. SQL Command - Statement Id: [getFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[formcd,1300010585], param4=[ocrtag,2016102161576], param5=[pageno,2]]
  151. [Logging Date Time: 2016-10-21 13:48:10,452] =====================================================================================
  152. SQL Command - Statement Id: [getFileName] Parameters: [param0=[pid,1975027], param1=[ordtype,S], param2=[orddd,20161021], param3=[formcd,1300010585], param4=[ocrtag,2016102161576], param5=[pageno,2]]
  153. [Logging Date Time: 2016-10-21 13:48:10,452] =====================================================================================
  154. SQL Command - Statement Id: [getFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String]]
  155. [Logging Date Time: 2016-10-21 13:48:10,452] =====================================================================================
  156. SQL Command - Statement Id: [getFileName] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String]]
  157. [Logging Date Time: 2016-10-21 13:48:10,468] =====================================================================================
  158. SQL Command - Statement Id: [GET_SEQUENCE] PreparedStatement : [select ud1_num as seq from EFORM_CODE where main_cd = 'SEQUENCE' and sub_cd = :param0 for update]
  159. [Logging Date Time: 2016-10-21 13:48:10,468] =====================================================================================
  160. SQL Command - Statement Id: [GET_SEQUENCE] PreparedStatement : [select ud1_num as seq from EFORM_CODE where main_cd = 'SEQUENCE' and sub_cd = :param0 for update]
  161. [Logging Date Time: 2016-10-21 13:48:10,469] =====================================================================================
  162. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_IMAGE]]
  163. [Logging Date Time: 2016-10-21 13:48:10,469] =====================================================================================
  164. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_IMAGE]]
  165. [Logging Date Time: 2016-10-21 13:48:10,469] =====================================================================================
  166. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  167. [Logging Date Time: 2016-10-21 13:48:10,469] =====================================================================================
  168. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  169. [Logging Date Time: 2016-10-21 13:48:10,474] =====================================================================================
  170. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  171. [Logging Date Time: 2016-10-21 13:48:10,474] =====================================================================================
  172. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  173. [Logging Date Time: 2016-10-21 13:48:10,474] =====================================================================================
  174. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,476], param1=[sub_cd,CONSENT_IMAGE]]
  175. [Logging Date Time: 2016-10-21 13:48:10,474] =====================================================================================
  176. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,476], param1=[sub_cd,CONSENT_IMAGE]]
  177. [Logging Date Time: 2016-10-21 13:48:10,474] =====================================================================================
  178. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  179. [Logging Date Time: 2016-10-21 13:48:10,474] =====================================================================================
  180. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  181. [Logging Date Time: 2016-10-21 13:48:10,475] =====================================================================================
  182. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] PreparedStatement : [insert into CONSENT_IMAGE ( CONSENT_Image_RID, CONSENT_MST_RID, FORM_RID, IMAGE_PATH, IMAGE_FILENAME, COMPLETE_YN, CREATE_USER_ID, CREATE_DATETIME ) values ( :param0 , :param1 , :param2 , :param3 , :param4 , :param5 , :param6 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') )]
  183. [Logging Date Time: 2016-10-21 13:48:10,475] =====================================================================================
  184. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] PreparedStatement : [insert into CONSENT_IMAGE ( CONSENT_Image_RID, CONSENT_MST_RID, FORM_RID, IMAGE_PATH, IMAGE_FILENAME, COMPLETE_YN, CREATE_USER_ID, CREATE_DATETIME ) values ( :param0 , :param1 , :param2 , :param3 , :param4 , :param5 , :param6 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') )]
  185. [Logging Date Time: 2016-10-21 13:48:10,476] =====================================================================================
  186. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Parameters: [param0=[consentImageRid,476], param1=[consentMstRid,764], param2=[formRid,676], param3=[imagePath,Image3\fnuImage\201610\21], param4=[imageFilename,103137631.jpg], param5=[completeYn,Y], param6=[userId,103043]]
  187. [Logging Date Time: 2016-10-21 13:48:10,476] =====================================================================================
  188. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Parameters: [param0=[consentImageRid,476], param1=[consentMstRid,764], param2=[formRid,676], param3=[imagePath,Image3\fnuImage\201610\21], param4=[imageFilename,103137631.jpg], param5=[completeYn,Y], param6=[userId,103043]]
  189. [Logging Date Time: 2016-10-21 13:48:10,476] =====================================================================================
  190. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Types: [param0=[Int32, System.Int32], param1=[Int32, System.Int32], param2=[Int32, System.Int32], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String]]
  191. [Logging Date Time: 2016-10-21 13:48:10,476] =====================================================================================
  192. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE] Types: [param0=[Int32, System.Int32], param1=[Int32, System.Int32], param2=[Int32, System.Int32], param3=[AnsiString, System.String], param4=[AnsiString, System.String], param5=[AnsiString, System.String], param6=[AnsiString, System.String]]
  193. [Logging Date Time: 2016-10-21 13:48:10,518] =====================================================================================
  194. SQL Command - CLIP.eForm File Upload Start
  195. [Logging Date Time: 2016-10-21 13:48:10,519] =====================================================================================
  196. SQL Command - CLIP.eForm File Upload: Image3\fnuImage\201610\21\103137631.jpg
  197. [Logging Date Time: 2016-10-21 13:48:10,519] =====================================================================================
  198. SQL Command - CLIP.eForm File Upload: D:\TeamDFH_Consent\DFH-Consent\CLIP.e-Form.Consent.Dfh.Web\Image3\fnuImage\201610\21\103137631.jpg
  199. [Logging Date Time: 2016-10-21 13:48:10,519] =====================================================================================
  200. SQL Command - CLIP.eForm File Upload Impersonate START workemr
  201. [Logging Date Time: 2016-10-21 13:48:10,519] =====================================================================================
  202. SQL Command - CLIP.eForm File Upload Impersonate END
  203. [Logging Date Time: 2016-10-21 13:48:10,521] =====================================================================================
  204. SQL Command - CLIP.eForm File Upload Impersonate CLOSE
  205. [Logging Date Time: 2016-10-21 13:48:10,521] =====================================================================================
  206. SQL Command - CLIP.eForm File Upload End
  207. [Logging Date Time: 2016-10-21 13:48:10,543] =====================================================================================
  208. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE_SIGN] PreparedStatement : [insert into CONSENT_IMAGE_SIGN ( CONSENT_MST_RID, CONSENT_IMAGE_RID, CERT_TARGET, CERT_RESULT, CERT_STATUS, CREATE_USER_ID, CREATE_DATETIME, MODIFY_USER_ID, MODIFY_DATETIME ) values ( :param0 , :param1 , :param2 , :param3 , 'N', :param4 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss'), :param4 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') )]
  209. [Logging Date Time: 2016-10-21 13:48:10,543] =====================================================================================
  210. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE_SIGN] PreparedStatement : [insert into CONSENT_IMAGE_SIGN ( CONSENT_MST_RID, CONSENT_IMAGE_RID, CERT_TARGET, CERT_RESULT, CERT_STATUS, CREATE_USER_ID, CREATE_DATETIME, MODIFY_USER_ID, MODIFY_DATETIME ) values ( :param0 , :param1 , :param2 , :param3 , 'N', :param4 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss'), :param4 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') )]
  211. [Logging Date Time: 2016-10-21 13:48:10,543] =====================================================================================
  212. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE_SIGN] Parameters: [param0=[consentMstRid,764], param1=[consentImageRid,474], param2=[certTarget,ff47add3a69df93ab732b3a8e4f185c4ed3f599abaf296d8a8d94f5ac8e8681^ddf3a391aafcb362dce9a84fbcbd5de46a61c48bc3b6eda86e666dc35ca33b^f34fb8328cf6d87fb9528f97798431414f30bd2457de2438c39a49451fa85f], param3=[certResult,-99], param4=[userId,103043]]
  213. [Logging Date Time: 2016-10-21 13:48:10,543] =====================================================================================
  214. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE_SIGN] Parameters: [param0=[consentMstRid,764], param1=[consentImageRid,474], param2=[certTarget,ff47add3a69df93ab732b3a8e4f185c4ed3f599abaf296d8a8d94f5ac8e8681^ddf3a391aafcb362dce9a84fbcbd5de46a61c48bc3b6eda86e666dc35ca33b^f34fb8328cf6d87fb9528f97798431414f30bd2457de2438c39a49451fa85f], param3=[certResult,-99], param4=[userId,103043]]
  215. [Logging Date Time: 2016-10-21 13:48:10,543] =====================================================================================
  216. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE_SIGN] Types: [param0=[Int32, System.Int32], param1=[Int32, System.Int32], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  217. [Logging Date Time: 2016-10-21 13:48:10,543] =====================================================================================
  218. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE_SIGN] Types: [param0=[Int32, System.Int32], param1=[Int32, System.Int32], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  219. [Logging Date Time: 2016-10-21 13:48:10,546] =====================================================================================
  220. SQL Command - Statement Id: [UPDATE_CONSENT_MST_STATUS] PreparedStatement : [UPDATE CONSENT_MST SET CONSENT_STATE = :param0 , MODIFY_USER_ID = :param1 , MODIFY_DATETIME = TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') WHERE CONSENT_MST_RID = :param2]
  221. [Logging Date Time: 2016-10-21 13:48:10,546] =====================================================================================
  222. SQL Command - Statement Id: [UPDATE_CONSENT_MST_STATUS] PreparedStatement : [UPDATE CONSENT_MST SET CONSENT_STATE = :param0 , MODIFY_USER_ID = :param1 , MODIFY_DATETIME = TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss') WHERE CONSENT_MST_RID = :param2]
  223. [Logging Date Time: 2016-10-21 13:48:10,546] =====================================================================================
  224. SQL Command - Statement Id: [UPDATE_CONSENT_MST_STATUS] Parameters: [param0=[consentState,CERTIFY_CMP], param1=[userId,103043], param2=[consentMstRid,764]]
  225. [Logging Date Time: 2016-10-21 13:48:10,546] =====================================================================================
  226. SQL Command - Statement Id: [UPDATE_CONSENT_MST_STATUS] Parameters: [param0=[consentState,CERTIFY_CMP], param1=[userId,103043], param2=[consentMstRid,764]]
  227. [Logging Date Time: 2016-10-21 13:48:10,546] =====================================================================================
  228. SQL Command - Statement Id: [UPDATE_CONSENT_MST_STATUS] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[Int32, System.Int32]]
  229. [Logging Date Time: 2016-10-21 13:48:10,546] =====================================================================================
  230. SQL Command - Statement Id: [UPDATE_CONSENT_MST_STATUS] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[Int32, System.Int32]]
  231. [Logging Date Time: 2016-10-21 13:48:10,587] =====================================================================================
  232. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  233. [Logging Date Time: 2016-10-21 13:48:10,587] =====================================================================================
  234. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  235. [Logging Date Time: 2016-10-21 13:48:10,587] =====================================================================================
  236. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,1975027], param2=[startDt,20010601]]
  237. [Logging Date Time: 2016-10-21 13:48:10,587] =====================================================================================
  238. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,1975027], param2=[startDt,20010601]]
  239. [Logging Date Time: 2016-10-21 13:48:10,587] =====================================================================================
  240. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  241. [Logging Date Time: 2016-10-21 13:48:10,587] =====================================================================================
  242. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  243. [Logging Date Time: 2016-10-21 13:48:10,647] =====================================================================================
  244. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  245. [Logging Date Time: 2016-10-21 13:48:10,647] =====================================================================================
  246. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  247. [Logging Date Time: 2016-10-21 13:48:10,647] =====================================================================================
  248. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,1975027], param2=[startDt,20010601]]
  249. [Logging Date Time: 2016-10-21 13:48:10,647] =====================================================================================
  250. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,1975027], param2=[startDt,20010601]]
  251. [Logging Date Time: 2016-10-21 13:48:10,647] =====================================================================================
  252. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  253. [Logging Date Time: 2016-10-21 13:48:10,647] =====================================================================================
  254. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  255. [Logging Date Time: 2016-10-21 13:48:13,859] =====================================================================================
  256. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  257. [Logging Date Time: 2016-10-21 13:48:13,859] =====================================================================================
  258. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  259. [Logging Date Time: 2016-10-21 13:48:13,859] =====================================================================================
  260. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,1975027], param2=[startDt,20010601]]
  261. [Logging Date Time: 2016-10-21 13:48:13,859] =====================================================================================
  262. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,1975027], param2=[startDt,20010601]]
  263. [Logging Date Time: 2016-10-21 13:48:13,859] =====================================================================================
  264. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  265. [Logging Date Time: 2016-10-21 13:48:13,859] =====================================================================================
  266. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  267. [Logging Date Time: 2016-10-21 13:48:14,123] =====================================================================================
  268. SQL Command - Statement Id: [GET_CONSENT_IMAGE] PreparedStatement : [SELECT CONSENT_MST_RID , CONSENT_IMAGE_RID , FORM_RID , CASE WHEN SUBSTR(IMAGE_PATH,0,6) = 'Image1' THEN '\\192.168.100.32\image_a01' || SUBSTR(IMAGE_PATH,7) WHEN SUBSTR(IMAGE_PATH,0,6) = 'Image2' THEN '\\192.168.100.32\image_a02' || SUBSTR(IMAGE_PATH,7) WHEN SUBSTR(IMAGE_PATH,0,6) = 'Image3' THEN '\\192.168.100.32\image_a03' || SUBSTR(IMAGE_PATH,7) ELSE IMAGE_PATH END IMAGE_PATH , IMAGE_FILENAME , COMPLETE_YN , CREATE_USER_ID , CREATE_DATETIME FROM CONSENT_IMAGE WHERE COMPLETE_YN = 'Y' AND CONSENT_MST_RID = :param0 ORDER BY CONSENT_IMAGE_RID]
  269. [Logging Date Time: 2016-10-21 13:48:14,123] =====================================================================================
  270. SQL Command - Statement Id: [GET_CONSENT_IMAGE] PreparedStatement : [SELECT CONSENT_MST_RID , CONSENT_IMAGE_RID , FORM_RID , CASE WHEN SUBSTR(IMAGE_PATH,0,6) = 'Image1' THEN '\\192.168.100.32\image_a01' || SUBSTR(IMAGE_PATH,7) WHEN SUBSTR(IMAGE_PATH,0,6) = 'Image2' THEN '\\192.168.100.32\image_a02' || SUBSTR(IMAGE_PATH,7) WHEN SUBSTR(IMAGE_PATH,0,6) = 'Image3' THEN '\\192.168.100.32\image_a03' || SUBSTR(IMAGE_PATH,7) ELSE IMAGE_PATH END IMAGE_PATH , IMAGE_FILENAME , COMPLETE_YN , CREATE_USER_ID , CREATE_DATETIME FROM CONSENT_IMAGE WHERE COMPLETE_YN = 'Y' AND CONSENT_MST_RID = :param0 ORDER BY CONSENT_IMAGE_RID]
  271. [Logging Date Time: 2016-10-21 13:48:14,123] =====================================================================================
  272. SQL Command - Statement Id: [GET_CONSENT_IMAGE] Parameters: [param0=[consent-mst-rid,764]]
  273. [Logging Date Time: 2016-10-21 13:48:14,123] =====================================================================================
  274. SQL Command - Statement Id: [GET_CONSENT_IMAGE] Parameters: [param0=[consent-mst-rid,764]]
  275. [Logging Date Time: 2016-10-21 13:48:14,123] =====================================================================================
  276. SQL Command - Statement Id: [GET_CONSENT_IMAGE] Types: [param0=[Int32, System.Int32]]
  277. [Logging Date Time: 2016-10-21 13:48:14,123] =====================================================================================
  278. SQL Command - Statement Id: [GET_CONSENT_IMAGE] Types: [param0=[Int32, System.Int32]]
  279. [Logging Date Time: 2016-10-21 13:48:14,140] =====================================================================================
  280. SQL Command - CLIP.eForm File Upload Impersonate START workemr
  281. [Logging Date Time: 2016-10-21 13:48:14,141] =====================================================================================
  282. SQL Command - CLIP.eForm File Upload Impersonate END
  283. [Logging Date Time: 2016-10-21 13:48:14,142] =====================================================================================
  284. SQL Command - CLIP.eForm GetConsentImage orgFile: \\192.168.100.32\image_a03\fnuImage\201610\21\103137629.jpg
  285. [Logging Date Time: 2016-10-21 13:48:14,361] =====================================================================================
  286. SQL Command - CLIP.eForm GetConsentImage error: '\\192.168.100.32\image_a03\fnuImage\201610\21\103137629.jpg' 파일을 찾을 수 없습니다.
  287. [Logging Date Time: 2016-10-21 15:10:21,556] =====================================================================================
  288. SQL Command - CLIP.eForm error: Error comparing in conditional fragment. Uknown 'compare to' values.
  289. [Logging Date Time: 2016-10-21 15:12:23,911] =====================================================================================
  290. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate from cmr.consent_mst a where a.cosign_dc_id = :param0]
  291. [Logging Date Time: 2016-10-21 15:12:23,911] =====================================================================================
  292. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate from cmr.consent_mst a where a.cosign_dc_id = :param0]
  293. [Logging Date Time: 2016-10-21 15:12:23,945] =====================================================================================
  294. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  295. [Logging Date Time: 2016-10-21 15:12:23,945] =====================================================================================
  296. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  297. [Logging Date Time: 2016-10-21 15:12:23,945] =====================================================================================
  298. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  299. [Logging Date Time: 2016-10-21 15:12:23,945] =====================================================================================
  300. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  301. [Logging Date Time: 2016-10-21 15:15:10,406] =====================================================================================
  302. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate from cmr.consent_mst a where a.cosign_dc_id = :param0]
  303. [Logging Date Time: 2016-10-21 15:15:10,406] =====================================================================================
  304. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate from cmr.consent_mst a where a.cosign_dc_id = :param0]
  305. [Logging Date Time: 2016-10-21 15:15:10,406] =====================================================================================
  306. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  307. [Logging Date Time: 2016-10-21 15:15:10,406] =====================================================================================
  308. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  309. [Logging Date Time: 2016-10-21 15:15:10,406] =====================================================================================
  310. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  311. [Logging Date Time: 2016-10-21 15:15:10,406] =====================================================================================
  312. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  313. [Logging Date Time: 2016-10-21 15:17:20,869] =====================================================================================
  314. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  315. [Logging Date Time: 2016-10-21 15:17:20,869] =====================================================================================
  316. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  317. [Logging Date Time: 2016-10-21 15:17:20,870] =====================================================================================
  318. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  319. [Logging Date Time: 2016-10-21 15:17:20,870] =====================================================================================
  320. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  321. [Logging Date Time: 2016-10-21 15:17:20,870] =====================================================================================
  322. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  323. [Logging Date Time: 2016-10-21 15:17:20,870] =====================================================================================
  324. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  325. [Logging Date Time: 2016-10-21 15:17:21,030] =====================================================================================
  326. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  327. [Logging Date Time: 2016-10-21 15:17:21,030] =====================================================================================
  328. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  329. [Logging Date Time: 2016-10-21 15:17:21,031] =====================================================================================
  330. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  331. [Logging Date Time: 2016-10-21 15:17:21,031] =====================================================================================
  332. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  333. [Logging Date Time: 2016-10-21 15:17:21,031] =====================================================================================
  334. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  335. [Logging Date Time: 2016-10-21 15:17:21,031] =====================================================================================
  336. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  337. [Logging Date Time: 2016-10-21 15:17:21,597] =====================================================================================
  338. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  339. [Logging Date Time: 2016-10-21 15:17:21,597] =====================================================================================
  340. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  341. [Logging Date Time: 2016-10-21 15:17:21,598] =====================================================================================
  342. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  343. [Logging Date Time: 2016-10-21 15:17:21,598] =====================================================================================
  344. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  345. [Logging Date Time: 2016-10-21 15:17:21,598] =====================================================================================
  346. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  347. [Logging Date Time: 2016-10-21 15:17:21,598] =====================================================================================
  348. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  349. [Logging Date Time: 2016-10-21 15:17:21,848] =====================================================================================
  350. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  351. [Logging Date Time: 2016-10-21 15:17:21,848] =====================================================================================
  352. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  353. [Logging Date Time: 2016-10-21 15:17:21,848] =====================================================================================
  354. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  355. [Logging Date Time: 2016-10-21 15:17:21,848] =====================================================================================
  356. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  357. [Logging Date Time: 2016-10-21 15:17:21,849] =====================================================================================
  358. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  359. [Logging Date Time: 2016-10-21 15:17:21,849] =====================================================================================
  360. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  361. [Logging Date Time: 2016-10-21 15:17:21,942] =====================================================================================
  362. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  363. [Logging Date Time: 2016-10-21 15:17:21,942] =====================================================================================
  364. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  365. [Logging Date Time: 2016-10-21 15:17:21,943] =====================================================================================
  366. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  367. [Logging Date Time: 2016-10-21 15:17:21,943] =====================================================================================
  368. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  369. [Logging Date Time: 2016-10-21 15:17:21,943] =====================================================================================
  370. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  371. [Logging Date Time: 2016-10-21 15:17:21,943] =====================================================================================
  372. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  373. [Logging Date Time: 2016-10-21 15:17:22,247] =====================================================================================
  374. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  375. [Logging Date Time: 2016-10-21 15:17:22,247] =====================================================================================
  376. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  377. [Logging Date Time: 2016-10-21 15:17:22,247] =====================================================================================
  378. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  379. [Logging Date Time: 2016-10-21 15:17:22,247] =====================================================================================
  380. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  381. [Logging Date Time: 2016-10-21 15:17:22,247] =====================================================================================
  382. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  383. [Logging Date Time: 2016-10-21 15:17:22,247] =====================================================================================
  384. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  385. [Logging Date Time: 2016-10-21 15:17:22,384] =====================================================================================
  386. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  387. [Logging Date Time: 2016-10-21 15:17:22,384] =====================================================================================
  388. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  389. [Logging Date Time: 2016-10-21 15:17:22,385] =====================================================================================
  390. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  391. [Logging Date Time: 2016-10-21 15:17:22,385] =====================================================================================
  392. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  393. [Logging Date Time: 2016-10-21 15:17:22,385] =====================================================================================
  394. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  395. [Logging Date Time: 2016-10-21 15:17:22,385] =====================================================================================
  396. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  397. [Logging Date Time: 2016-10-21 15:17:31,193] =====================================================================================
  398. SQL Command - CLIP.eForm error: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다.
  399. [Logging Date Time: 2016-10-21 15:21:57,316] =====================================================================================
  400. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  401. [Logging Date Time: 2016-10-21 15:21:57,316] =====================================================================================
  402. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  403. [Logging Date Time: 2016-10-21 15:21:57,317] =====================================================================================
  404. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  405. [Logging Date Time: 2016-10-21 15:21:57,317] =====================================================================================
  406. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  407. [Logging Date Time: 2016-10-21 15:21:57,317] =====================================================================================
  408. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  409. [Logging Date Time: 2016-10-21 15:21:57,317] =====================================================================================
  410. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  411. [Logging Date Time: 2016-10-21 15:21:57,533] =====================================================================================
  412. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  413. [Logging Date Time: 2016-10-21 15:21:57,533] =====================================================================================
  414. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  415. [Logging Date Time: 2016-10-21 15:21:57,533] =====================================================================================
  416. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  417. [Logging Date Time: 2016-10-21 15:21:57,533] =====================================================================================
  418. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  419. [Logging Date Time: 2016-10-21 15:21:57,533] =====================================================================================
  420. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  421. [Logging Date Time: 2016-10-21 15:21:57,533] =====================================================================================
  422. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  423. [Logging Date Time: 2016-10-21 15:21:57,965] =====================================================================================
  424. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  425. [Logging Date Time: 2016-10-21 15:21:57,965] =====================================================================================
  426. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  427. [Logging Date Time: 2016-10-21 15:21:57,966] =====================================================================================
  428. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  429. [Logging Date Time: 2016-10-21 15:21:57,966] =====================================================================================
  430. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  431. [Logging Date Time: 2016-10-21 15:21:57,966] =====================================================================================
  432. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  433. [Logging Date Time: 2016-10-21 15:21:57,966] =====================================================================================
  434. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  435. [Logging Date Time: 2016-10-21 15:21:58,200] =====================================================================================
  436. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  437. [Logging Date Time: 2016-10-21 15:21:58,200] =====================================================================================
  438. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  439. [Logging Date Time: 2016-10-21 15:21:58,200] =====================================================================================
  440. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  441. [Logging Date Time: 2016-10-21 15:21:58,200] =====================================================================================
  442. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  443. [Logging Date Time: 2016-10-21 15:21:58,200] =====================================================================================
  444. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  445. [Logging Date Time: 2016-10-21 15:21:58,200] =====================================================================================
  446. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  447. [Logging Date Time: 2016-10-21 15:21:58,285] =====================================================================================
  448. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  449. [Logging Date Time: 2016-10-21 15:21:58,285] =====================================================================================
  450. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  451. [Logging Date Time: 2016-10-21 15:21:58,286] =====================================================================================
  452. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  453. [Logging Date Time: 2016-10-21 15:21:58,286] =====================================================================================
  454. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  455. [Logging Date Time: 2016-10-21 15:21:58,286] =====================================================================================
  456. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  457. [Logging Date Time: 2016-10-21 15:21:58,286] =====================================================================================
  458. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  459. [Logging Date Time: 2016-10-21 15:21:58,560] =====================================================================================
  460. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  461. [Logging Date Time: 2016-10-21 15:21:58,560] =====================================================================================
  462. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  463. [Logging Date Time: 2016-10-21 15:21:58,560] =====================================================================================
  464. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  465. [Logging Date Time: 2016-10-21 15:21:58,560] =====================================================================================
  466. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  467. [Logging Date Time: 2016-10-21 15:21:58,560] =====================================================================================
  468. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  469. [Logging Date Time: 2016-10-21 15:21:58,560] =====================================================================================
  470. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  471. [Logging Date Time: 2016-10-21 15:21:58,704] =====================================================================================
  472. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  473. [Logging Date Time: 2016-10-21 15:21:58,704] =====================================================================================
  474. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  475. [Logging Date Time: 2016-10-21 15:21:58,704] =====================================================================================
  476. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  477. [Logging Date Time: 2016-10-21 15:21:58,704] =====================================================================================
  478. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  479. [Logging Date Time: 2016-10-21 15:21:58,704] =====================================================================================
  480. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  481. [Logging Date Time: 2016-10-21 15:21:58,704] =====================================================================================
  482. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  483. [Logging Date Time: 2016-10-21 15:22:02,075] =====================================================================================
  484. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = '1']
  485. [Logging Date Time: 2016-10-21 15:22:02,075] =====================================================================================
  486. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = '1']
  487. [Logging Date Time: 2016-10-21 15:22:02,215] =====================================================================================
  488. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = (SELECT CATEGORY_RID FROM EFORM_CATEGORY WHERE CATEGORY_ID = :param0 )]
  489. [Logging Date Time: 2016-10-21 15:22:02,215] =====================================================================================
  490. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = (SELECT CATEGORY_RID FROM EFORM_CATEGORY WHERE CATEGORY_ID = :param0 )]
  491. [Logging Date Time: 2016-10-21 15:22:02,215] =====================================================================================
  492. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA]]
  493. [Logging Date Time: 2016-10-21 15:22:02,215] =====================================================================================
  494. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA]]
  495. [Logging Date Time: 2016-10-21 15:22:02,215] =====================================================================================
  496. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Types: [param0=[AnsiString, System.String]]
  497. [Logging Date Time: 2016-10-21 15:22:02,215] =====================================================================================
  498. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Types: [param0=[AnsiString, System.String]]
  499. [Logging Date Time: 2016-10-21 15:22:05,572] =====================================================================================
  500. SQL Command - Statement Id: [getInPatList] PreparedStatement : [SELECT ptbs.pid AS pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) AS indd, inpt.indd AS orddd, inpt.cretno AS cretno, inpt.seqno AS seqno, inpt.instcd AS instcd, ptbs.hngnm AS hngnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'P0021' and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd and code.cdid = inpt.fsexamflag) AS fsexamflag, /*+ index_desc(icdr IX_PMIHICDR_03) */ icdr.orddeptcd AS orddeptcd, icdr.medispclid AS doctorid, TO_DATE('20161021') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.depthngnm AS deptnm, dept.DEPTENGABBR AS deptengabbr, NVL((SELECT usernm FROM com.zsumusrb WHERE userid = icdr.medispclid AND userfromdd <= :param0 AND usertodd >= :param0 ), '-') AS doctornm, (SELECT term.termengnm FROM emr.mmohdiag diag, emr.mrtmterm term WHERE diag.diagcd = term.termcd AND diag.instcd = term.instcd AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.pid = inpt.pid AND diag.orddd = inpt.indd AND diag.cretno = inpt.cretno AND diag.orddeptcd = icdr.orddeptcd AND diag.instcd = inpt.instcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND ROWNUM = 1) AS diagnm, CASE inpt.indschacptstat WHEN 'D' THEN '퇴원' WHEN 'T' THEN '가퇴원' ELSE (CASE inpt.dschnotiyn WHEN 'Y' THEN '퇴원통보' ELSE (CASE inpt.dschdclrtyn WHEN 'Y' THEN '퇴원예고' ELSE '-' END) END) END AS dschnoti, icdr.roomcd AS roomcd, CASE WHEN (SELECT COUNT(instcd) FROM emr.mmrhcnstinfo WHERE pid = inpt.pid AND orddd = inpt.indd AND cretno = inpt.cretno AND reqdd = :param0 AND chosflag IN ('I','E') AND cnstflag IN ('1','2') AND ROWNUM = 1) > 0 THEN 'Y' ELSE 'N' END AS cnst, icdr.ordtype AS ordtype, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' AS elbulbodstat, 'N' AS ordtm FROM pam.pmihinpt inpt, pam.pmihicdr icdr, com.zsdddept dept, pam.pmcmptbs ptbs WHERE inpt.histstat = 'Y' AND inpt.mskind = 'M' AND icdr.ordtype IN ('I', 'D') AND inpt.instcd = :param1 AND inpt.pid = icdr.pid AND inpt.pid = icdr.pid AND inpt.indd = icdr.indd AND inpt.cretno = icdr.cretno AND inpt.instcd = icdr.instcd AND inpt.histstat = icdr.histstat AND icdr.fromdd <= :param0 AND icdr.todd >= :param0 AND icdr.pid = ptbs.pid AND icdr.instcd = ptbs.instcd AND icdr.instcd = dept.instcd AND icdr.orddeptcd = dept.deptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.valifromdd <= :param0 AND dept.valitodd >= :param0 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  501. [Logging Date Time: 2016-10-21 15:22:05,572] =====================================================================================
  502. SQL Command - Statement Id: [getInPatList] PreparedStatement : [SELECT ptbs.pid AS pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) AS indd, inpt.indd AS orddd, inpt.cretno AS cretno, inpt.seqno AS seqno, inpt.instcd AS instcd, ptbs.hngnm AS hngnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'P0021' and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd and code.cdid = inpt.fsexamflag) AS fsexamflag, /*+ index_desc(icdr IX_PMIHICDR_03) */ icdr.orddeptcd AS orddeptcd, icdr.medispclid AS doctorid, TO_DATE('20161021') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.depthngnm AS deptnm, dept.DEPTENGABBR AS deptengabbr, NVL((SELECT usernm FROM com.zsumusrb WHERE userid = icdr.medispclid AND userfromdd <= :param0 AND usertodd >= :param0 ), '-') AS doctornm, (SELECT term.termengnm FROM emr.mmohdiag diag, emr.mrtmterm term WHERE diag.diagcd = term.termcd AND diag.instcd = term.instcd AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.pid = inpt.pid AND diag.orddd = inpt.indd AND diag.cretno = inpt.cretno AND diag.orddeptcd = icdr.orddeptcd AND diag.instcd = inpt.instcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND ROWNUM = 1) AS diagnm, CASE inpt.indschacptstat WHEN 'D' THEN '퇴원' WHEN 'T' THEN '가퇴원' ELSE (CASE inpt.dschnotiyn WHEN 'Y' THEN '퇴원통보' ELSE (CASE inpt.dschdclrtyn WHEN 'Y' THEN '퇴원예고' ELSE '-' END) END) END AS dschnoti, icdr.roomcd AS roomcd, CASE WHEN (SELECT COUNT(instcd) FROM emr.mmrhcnstinfo WHERE pid = inpt.pid AND orddd = inpt.indd AND cretno = inpt.cretno AND reqdd = :param0 AND chosflag IN ('I','E') AND cnstflag IN ('1','2') AND ROWNUM = 1) > 0 THEN 'Y' ELSE 'N' END AS cnst, icdr.ordtype AS ordtype, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' AS elbulbodstat, 'N' AS ordtm FROM pam.pmihinpt inpt, pam.pmihicdr icdr, com.zsdddept dept, pam.pmcmptbs ptbs WHERE inpt.histstat = 'Y' AND inpt.mskind = 'M' AND icdr.ordtype IN ('I', 'D') AND inpt.instcd = :param1 AND inpt.pid = icdr.pid AND inpt.pid = icdr.pid AND inpt.indd = icdr.indd AND inpt.cretno = icdr.cretno AND inpt.instcd = icdr.instcd AND inpt.histstat = icdr.histstat AND icdr.fromdd <= :param0 AND icdr.todd >= :param0 AND icdr.pid = ptbs.pid AND icdr.instcd = ptbs.instcd AND icdr.instcd = dept.instcd AND icdr.orddeptcd = dept.deptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.valifromdd <= :param0 AND dept.valitodd >= :param0 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  503. [Logging Date Time: 2016-10-21 15:22:05,573] =====================================================================================
  504. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161021], param1=[instcd,111]]
  505. [Logging Date Time: 2016-10-21 15:22:05,573] =====================================================================================
  506. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161021], param1=[instcd,111]]
  507. [Logging Date Time: 2016-10-21 15:22:05,573] =====================================================================================
  508. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  509. [Logging Date Time: 2016-10-21 15:22:05,573] =====================================================================================
  510. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  511. [Logging Date Time: 2016-10-21 15:28:35,370] =====================================================================================
  512. SQL Command - CLIP.eForm error: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다.
  513. [Logging Date Time: 2016-10-21 15:29:23,758] =====================================================================================
  514. SQL Command - CLIP.eForm error: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다.
  515. [Logging Date Time: 2016-10-21 15:29:51,176] =====================================================================================
  516. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  517. [Logging Date Time: 2016-10-21 15:29:51,176] =====================================================================================
  518. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  519. [Logging Date Time: 2016-10-21 15:29:51,197] =====================================================================================
  520. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  521. [Logging Date Time: 2016-10-21 15:29:51,197] =====================================================================================
  522. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  523. [Logging Date Time: 2016-10-21 15:29:51,198] =====================================================================================
  524. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  525. [Logging Date Time: 2016-10-21 15:29:51,198] =====================================================================================
  526. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  527. [Logging Date Time: 2016-10-21 15:29:51,464] =====================================================================================
  528. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  529. [Logging Date Time: 2016-10-21 15:29:51,464] =====================================================================================
  530. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  531. [Logging Date Time: 2016-10-21 15:29:51,465] =====================================================================================
  532. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  533. [Logging Date Time: 2016-10-21 15:29:51,465] =====================================================================================
  534. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  535. [Logging Date Time: 2016-10-21 15:29:51,465] =====================================================================================
  536. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  537. [Logging Date Time: 2016-10-21 15:29:51,465] =====================================================================================
  538. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  539. [Logging Date Time: 2016-10-21 15:29:51,973] =====================================================================================
  540. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  541. [Logging Date Time: 2016-10-21 15:29:51,973] =====================================================================================
  542. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  543. [Logging Date Time: 2016-10-21 15:29:51,973] =====================================================================================
  544. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  545. [Logging Date Time: 2016-10-21 15:29:51,973] =====================================================================================
  546. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  547. [Logging Date Time: 2016-10-21 15:29:51,973] =====================================================================================
  548. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  549. [Logging Date Time: 2016-10-21 15:29:51,973] =====================================================================================
  550. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  551. [Logging Date Time: 2016-10-21 15:29:52,216] =====================================================================================
  552. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  553. [Logging Date Time: 2016-10-21 15:29:52,216] =====================================================================================
  554. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  555. [Logging Date Time: 2016-10-21 15:29:52,216] =====================================================================================
  556. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  557. [Logging Date Time: 2016-10-21 15:29:52,216] =====================================================================================
  558. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  559. [Logging Date Time: 2016-10-21 15:29:52,216] =====================================================================================
  560. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  561. [Logging Date Time: 2016-10-21 15:29:52,216] =====================================================================================
  562. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  563. [Logging Date Time: 2016-10-21 15:29:52,292] =====================================================================================
  564. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  565. [Logging Date Time: 2016-10-21 15:29:52,292] =====================================================================================
  566. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  567. [Logging Date Time: 2016-10-21 15:29:52,292] =====================================================================================
  568. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  569. [Logging Date Time: 2016-10-21 15:29:52,292] =====================================================================================
  570. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  571. [Logging Date Time: 2016-10-21 15:29:52,292] =====================================================================================
  572. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  573. [Logging Date Time: 2016-10-21 15:29:52,292] =====================================================================================
  574. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  575. [Logging Date Time: 2016-10-21 15:29:52,654] =====================================================================================
  576. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  577. [Logging Date Time: 2016-10-21 15:29:52,654] =====================================================================================
  578. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  579. [Logging Date Time: 2016-10-21 15:29:52,654] =====================================================================================
  580. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  581. [Logging Date Time: 2016-10-21 15:29:52,654] =====================================================================================
  582. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  583. [Logging Date Time: 2016-10-21 15:29:52,654] =====================================================================================
  584. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  585. [Logging Date Time: 2016-10-21 15:29:52,654] =====================================================================================
  586. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  587. [Logging Date Time: 2016-10-21 15:29:52,806] =====================================================================================
  588. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  589. [Logging Date Time: 2016-10-21 15:29:52,806] =====================================================================================
  590. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  591. [Logging Date Time: 2016-10-21 15:29:52,806] =====================================================================================
  592. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  593. [Logging Date Time: 2016-10-21 15:29:52,806] =====================================================================================
  594. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  595. [Logging Date Time: 2016-10-21 15:29:52,806] =====================================================================================
  596. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  597. [Logging Date Time: 2016-10-21 15:29:52,806] =====================================================================================
  598. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  599. [Logging Date Time: 2016-10-21 15:40:57,852] =====================================================================================
  600. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  601. [Logging Date Time: 2016-10-21 15:40:57,852] =====================================================================================
  602. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  603. [Logging Date Time: 2016-10-21 15:40:57,950] =====================================================================================
  604. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  605. [Logging Date Time: 2016-10-21 15:40:57,950] =====================================================================================
  606. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  607. [Logging Date Time: 2016-10-21 15:40:57,950] =====================================================================================
  608. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  609. [Logging Date Time: 2016-10-21 15:40:57,950] =====================================================================================
  610. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  611. [Logging Date Time: 2016-10-21 15:40:58,239] =====================================================================================
  612. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  613. [Logging Date Time: 2016-10-21 15:40:58,239] =====================================================================================
  614. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  615. [Logging Date Time: 2016-10-21 15:40:58,240] =====================================================================================
  616. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  617. [Logging Date Time: 2016-10-21 15:40:58,240] =====================================================================================
  618. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  619. [Logging Date Time: 2016-10-21 15:40:58,240] =====================================================================================
  620. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  621. [Logging Date Time: 2016-10-21 15:40:58,240] =====================================================================================
  622. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  623. [Logging Date Time: 2016-10-21 15:40:58,899] =====================================================================================
  624. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  625. [Logging Date Time: 2016-10-21 15:40:58,899] =====================================================================================
  626. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  627. [Logging Date Time: 2016-10-21 15:40:58,900] =====================================================================================
  628. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  629. [Logging Date Time: 2016-10-21 15:40:58,900] =====================================================================================
  630. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  631. [Logging Date Time: 2016-10-21 15:40:58,900] =====================================================================================
  632. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  633. [Logging Date Time: 2016-10-21 15:40:58,900] =====================================================================================
  634. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  635. [Logging Date Time: 2016-10-21 15:40:59,092] =====================================================================================
  636. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  637. [Logging Date Time: 2016-10-21 15:40:59,092] =====================================================================================
  638. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  639. [Logging Date Time: 2016-10-21 15:40:59,092] =====================================================================================
  640. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  641. [Logging Date Time: 2016-10-21 15:40:59,092] =====================================================================================
  642. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  643. [Logging Date Time: 2016-10-21 15:40:59,093] =====================================================================================
  644. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  645. [Logging Date Time: 2016-10-21 15:40:59,093] =====================================================================================
  646. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  647. [Logging Date Time: 2016-10-21 15:40:59,173] =====================================================================================
  648. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  649. [Logging Date Time: 2016-10-21 15:40:59,173] =====================================================================================
  650. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  651. [Logging Date Time: 2016-10-21 15:40:59,174] =====================================================================================
  652. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  653. [Logging Date Time: 2016-10-21 15:40:59,174] =====================================================================================
  654. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  655. [Logging Date Time: 2016-10-21 15:40:59,174] =====================================================================================
  656. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  657. [Logging Date Time: 2016-10-21 15:40:59,174] =====================================================================================
  658. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  659. [Logging Date Time: 2016-10-21 15:40:59,456] =====================================================================================
  660. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  661. [Logging Date Time: 2016-10-21 15:40:59,456] =====================================================================================
  662. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  663. [Logging Date Time: 2016-10-21 15:40:59,456] =====================================================================================
  664. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  665. [Logging Date Time: 2016-10-21 15:40:59,456] =====================================================================================
  666. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  667. [Logging Date Time: 2016-10-21 15:40:59,457] =====================================================================================
  668. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  669. [Logging Date Time: 2016-10-21 15:40:59,457] =====================================================================================
  670. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  671. [Logging Date Time: 2016-10-21 15:40:59,585] =====================================================================================
  672. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  673. [Logging Date Time: 2016-10-21 15:40:59,585] =====================================================================================
  674. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  675. [Logging Date Time: 2016-10-21 15:40:59,585] =====================================================================================
  676. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  677. [Logging Date Time: 2016-10-21 15:40:59,585] =====================================================================================
  678. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  679. [Logging Date Time: 2016-10-21 15:40:59,585] =====================================================================================
  680. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  681. [Logging Date Time: 2016-10-21 15:40:59,585] =====================================================================================
  682. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  683. [Logging Date Time: 2016-10-21 15:41:03,459] =====================================================================================
  684. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  685. [Logging Date Time: 2016-10-21 15:41:03,459] =====================================================================================
  686. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  687. [Logging Date Time: 2016-10-21 15:41:03,620] =====================================================================================
  688. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  689. [Logging Date Time: 2016-10-21 15:41:03,620] =====================================================================================
  690. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  691. [Logging Date Time: 2016-10-21 15:41:03,621] =====================================================================================
  692. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  693. [Logging Date Time: 2016-10-21 15:41:03,621] =====================================================================================
  694. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  695. [Logging Date Time: 2016-10-21 15:41:03,621] =====================================================================================
  696. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  697. [Logging Date Time: 2016-10-21 15:41:03,621] =====================================================================================
  698. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  699. [Logging Date Time: 2016-10-21 15:41:03,926] =====================================================================================
  700. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  701. [Logging Date Time: 2016-10-21 15:41:03,926] =====================================================================================
  702. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  703. [Logging Date Time: 2016-10-21 15:41:03,927] =====================================================================================
  704. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  705. [Logging Date Time: 2016-10-21 15:41:03,927] =====================================================================================
  706. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  707. [Logging Date Time: 2016-10-21 15:41:03,927] =====================================================================================
  708. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  709. [Logging Date Time: 2016-10-21 15:41:03,927] =====================================================================================
  710. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  711. [Logging Date Time: 2016-10-21 15:42:38,350] =====================================================================================
  712. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  713. [Logging Date Time: 2016-10-21 15:42:38,350] =====================================================================================
  714. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  715. [Logging Date Time: 2016-10-21 15:42:38,401] =====================================================================================
  716. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  717. [Logging Date Time: 2016-10-21 15:42:38,401] =====================================================================================
  718. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  719. [Logging Date Time: 2016-10-21 15:42:38,401] =====================================================================================
  720. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  721. [Logging Date Time: 2016-10-21 15:42:38,401] =====================================================================================
  722. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  723. [Logging Date Time: 2016-10-21 15:42:38,559] =====================================================================================
  724. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  725. [Logging Date Time: 2016-10-21 15:42:38,559] =====================================================================================
  726. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  727. [Logging Date Time: 2016-10-21 15:42:38,560] =====================================================================================
  728. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  729. [Logging Date Time: 2016-10-21 15:42:38,560] =====================================================================================
  730. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  731. [Logging Date Time: 2016-10-21 15:42:38,560] =====================================================================================
  732. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  733. [Logging Date Time: 2016-10-21 15:42:38,560] =====================================================================================
  734. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  735. [Logging Date Time: 2016-10-21 15:42:39,080] =====================================================================================
  736. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  737. [Logging Date Time: 2016-10-21 15:42:39,080] =====================================================================================
  738. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  739. [Logging Date Time: 2016-10-21 15:42:39,081] =====================================================================================
  740. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  741. [Logging Date Time: 2016-10-21 15:42:39,081] =====================================================================================
  742. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  743. [Logging Date Time: 2016-10-21 15:42:39,081] =====================================================================================
  744. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  745. [Logging Date Time: 2016-10-21 15:42:39,081] =====================================================================================
  746. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  747. [Logging Date Time: 2016-10-21 15:42:39,314] =====================================================================================
  748. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  749. [Logging Date Time: 2016-10-21 15:42:39,314] =====================================================================================
  750. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  751. [Logging Date Time: 2016-10-21 15:42:39,315] =====================================================================================
  752. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  753. [Logging Date Time: 2016-10-21 15:42:39,315] =====================================================================================
  754. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  755. [Logging Date Time: 2016-10-21 15:42:39,315] =====================================================================================
  756. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  757. [Logging Date Time: 2016-10-21 15:42:39,315] =====================================================================================
  758. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  759. [Logging Date Time: 2016-10-21 15:42:39,402] =====================================================================================
  760. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  761. [Logging Date Time: 2016-10-21 15:42:39,402] =====================================================================================
  762. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  763. [Logging Date Time: 2016-10-21 15:42:39,403] =====================================================================================
  764. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  765. [Logging Date Time: 2016-10-21 15:42:39,403] =====================================================================================
  766. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  767. [Logging Date Time: 2016-10-21 15:42:39,403] =====================================================================================
  768. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  769. [Logging Date Time: 2016-10-21 15:42:39,403] =====================================================================================
  770. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  771. [Logging Date Time: 2016-10-21 15:42:39,788] =====================================================================================
  772. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  773. [Logging Date Time: 2016-10-21 15:42:39,788] =====================================================================================
  774. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  775. [Logging Date Time: 2016-10-21 15:42:39,789] =====================================================================================
  776. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  777. [Logging Date Time: 2016-10-21 15:42:39,789] =====================================================================================
  778. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  779. [Logging Date Time: 2016-10-21 15:42:39,789] =====================================================================================
  780. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  781. [Logging Date Time: 2016-10-21 15:42:39,789] =====================================================================================
  782. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  783. [Logging Date Time: 2016-10-21 15:42:39,972] =====================================================================================
  784. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  785. [Logging Date Time: 2016-10-21 15:42:39,972] =====================================================================================
  786. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  787. [Logging Date Time: 2016-10-21 15:42:39,972] =====================================================================================
  788. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  789. [Logging Date Time: 2016-10-21 15:42:39,972] =====================================================================================
  790. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  791. [Logging Date Time: 2016-10-21 15:42:39,972] =====================================================================================
  792. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  793. [Logging Date Time: 2016-10-21 15:42:39,972] =====================================================================================
  794. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  795. [Logging Date Time: 2016-10-21 15:42:41,800] =====================================================================================
  796. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  797. [Logging Date Time: 2016-10-21 15:42:41,800] =====================================================================================
  798. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  799. [Logging Date Time: 2016-10-21 15:42:41,932] =====================================================================================
  800. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  801. [Logging Date Time: 2016-10-21 15:42:41,932] =====================================================================================
  802. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  803. [Logging Date Time: 2016-10-21 15:42:41,932] =====================================================================================
  804. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  805. [Logging Date Time: 2016-10-21 15:42:41,932] =====================================================================================
  806. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  807. [Logging Date Time: 2016-10-21 15:42:41,932] =====================================================================================
  808. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  809. [Logging Date Time: 2016-10-21 15:42:41,932] =====================================================================================
  810. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  811. [Logging Date Time: 2016-10-21 15:42:42,085] =====================================================================================
  812. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  813. [Logging Date Time: 2016-10-21 15:42:42,085] =====================================================================================
  814. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  815. [Logging Date Time: 2016-10-21 15:42:42,086] =====================================================================================
  816. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  817. [Logging Date Time: 2016-10-21 15:42:42,086] =====================================================================================
  818. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  819. [Logging Date Time: 2016-10-21 15:42:42,086] =====================================================================================
  820. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  821. [Logging Date Time: 2016-10-21 15:42:42,086] =====================================================================================
  822. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  823. [Logging Date Time: 2016-10-21 15:42:44,322] =====================================================================================
  824. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  825. [Logging Date Time: 2016-10-21 15:42:44,322] =====================================================================================
  826. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  827. [Logging Date Time: 2016-10-21 15:42:44,323] =====================================================================================
  828. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  829. [Logging Date Time: 2016-10-21 15:42:44,323] =====================================================================================
  830. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  831. [Logging Date Time: 2016-10-21 15:42:44,323] =====================================================================================
  832. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  833. [Logging Date Time: 2016-10-21 15:42:44,323] =====================================================================================
  834. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  835. [Logging Date Time: 2016-10-21 15:42:44,445] =====================================================================================
  836. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  837. [Logging Date Time: 2016-10-21 15:42:44,445] =====================================================================================
  838. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  839. [Logging Date Time: 2016-10-21 15:42:44,446] =====================================================================================
  840. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  841. [Logging Date Time: 2016-10-21 15:42:44,446] =====================================================================================
  842. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  843. [Logging Date Time: 2016-10-21 15:42:44,446] =====================================================================================
  844. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  845. [Logging Date Time: 2016-10-21 15:42:44,446] =====================================================================================
  846. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  847. [Logging Date Time: 2016-10-21 15:43:55,735] =====================================================================================
  848. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  849. [Logging Date Time: 2016-10-21 15:43:55,735] =====================================================================================
  850. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  851. [Logging Date Time: 2016-10-21 15:43:55,777] =====================================================================================
  852. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  853. [Logging Date Time: 2016-10-21 15:43:55,777] =====================================================================================
  854. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  855. [Logging Date Time: 2016-10-21 15:43:55,777] =====================================================================================
  856. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  857. [Logging Date Time: 2016-10-21 15:43:55,777] =====================================================================================
  858. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  859. [Logging Date Time: 2016-10-21 15:43:55,894] =====================================================================================
  860. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  861. [Logging Date Time: 2016-10-21 15:43:55,894] =====================================================================================
  862. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  863. [Logging Date Time: 2016-10-21 15:43:55,894] =====================================================================================
  864. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  865. [Logging Date Time: 2016-10-21 15:43:55,894] =====================================================================================
  866. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  867. [Logging Date Time: 2016-10-21 15:43:55,894] =====================================================================================
  868. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  869. [Logging Date Time: 2016-10-21 15:43:55,894] =====================================================================================
  870. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  871. [Logging Date Time: 2016-10-21 15:43:56,107] =====================================================================================
  872. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  873. [Logging Date Time: 2016-10-21 15:43:56,107] =====================================================================================
  874. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  875. [Logging Date Time: 2016-10-21 15:43:56,107] =====================================================================================
  876. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  877. [Logging Date Time: 2016-10-21 15:43:56,107] =====================================================================================
  878. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  879. [Logging Date Time: 2016-10-21 15:43:56,107] =====================================================================================
  880. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  881. [Logging Date Time: 2016-10-21 15:43:56,107] =====================================================================================
  882. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  883. [Logging Date Time: 2016-10-21 15:43:56,207] =====================================================================================
  884. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  885. [Logging Date Time: 2016-10-21 15:43:56,207] =====================================================================================
  886. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  887. [Logging Date Time: 2016-10-21 15:43:56,207] =====================================================================================
  888. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  889. [Logging Date Time: 2016-10-21 15:43:56,207] =====================================================================================
  890. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  891. [Logging Date Time: 2016-10-21 15:43:56,207] =====================================================================================
  892. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  893. [Logging Date Time: 2016-10-21 15:43:56,207] =====================================================================================
  894. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  895. [Logging Date Time: 2016-10-21 15:43:56,244] =====================================================================================
  896. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  897. [Logging Date Time: 2016-10-21 15:43:56,244] =====================================================================================
  898. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  899. [Logging Date Time: 2016-10-21 15:43:56,245] =====================================================================================
  900. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  901. [Logging Date Time: 2016-10-21 15:43:56,245] =====================================================================================
  902. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  903. [Logging Date Time: 2016-10-21 15:43:56,245] =====================================================================================
  904. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  905. [Logging Date Time: 2016-10-21 15:43:56,245] =====================================================================================
  906. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  907. [Logging Date Time: 2016-10-21 15:43:56,464] =====================================================================================
  908. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  909. [Logging Date Time: 2016-10-21 15:43:56,464] =====================================================================================
  910. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  911. [Logging Date Time: 2016-10-21 15:43:56,464] =====================================================================================
  912. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  913. [Logging Date Time: 2016-10-21 15:43:56,464] =====================================================================================
  914. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  915. [Logging Date Time: 2016-10-21 15:43:56,464] =====================================================================================
  916. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  917. [Logging Date Time: 2016-10-21 15:43:56,464] =====================================================================================
  918. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  919. [Logging Date Time: 2016-10-21 15:43:56,635] =====================================================================================
  920. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  921. [Logging Date Time: 2016-10-21 15:43:56,635] =====================================================================================
  922. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  923. [Logging Date Time: 2016-10-21 15:43:56,636] =====================================================================================
  924. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  925. [Logging Date Time: 2016-10-21 15:43:56,636] =====================================================================================
  926. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  927. [Logging Date Time: 2016-10-21 15:43:56,636] =====================================================================================
  928. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  929. [Logging Date Time: 2016-10-21 15:43:56,636] =====================================================================================
  930. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  931. [Logging Date Time: 2016-10-21 15:44:57,302] =====================================================================================
  932. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  933. [Logging Date Time: 2016-10-21 15:44:57,302] =====================================================================================
  934. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  935. [Logging Date Time: 2016-10-21 15:44:57,387] =====================================================================================
  936. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  937. [Logging Date Time: 2016-10-21 15:44:57,387] =====================================================================================
  938. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  939. [Logging Date Time: 2016-10-21 15:44:57,387] =====================================================================================
  940. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  941. [Logging Date Time: 2016-10-21 15:44:57,387] =====================================================================================
  942. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  943. [Logging Date Time: 2016-10-21 15:44:57,794] =====================================================================================
  944. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  945. [Logging Date Time: 2016-10-21 15:44:57,794] =====================================================================================
  946. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  947. [Logging Date Time: 2016-10-21 15:44:57,795] =====================================================================================
  948. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  949. [Logging Date Time: 2016-10-21 15:44:57,795] =====================================================================================
  950. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  951. [Logging Date Time: 2016-10-21 15:44:57,795] =====================================================================================
  952. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  953. [Logging Date Time: 2016-10-21 15:44:57,795] =====================================================================================
  954. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  955. [Logging Date Time: 2016-10-21 15:44:58,423] =====================================================================================
  956. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  957. [Logging Date Time: 2016-10-21 15:44:58,423] =====================================================================================
  958. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  959. [Logging Date Time: 2016-10-21 15:44:58,423] =====================================================================================
  960. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  961. [Logging Date Time: 2016-10-21 15:44:58,423] =====================================================================================
  962. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  963. [Logging Date Time: 2016-10-21 15:44:58,423] =====================================================================================
  964. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  965. [Logging Date Time: 2016-10-21 15:44:58,423] =====================================================================================
  966. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  967. [Logging Date Time: 2016-10-21 15:44:58,714] =====================================================================================
  968. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  969. [Logging Date Time: 2016-10-21 15:44:58,714] =====================================================================================
  970. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  971. [Logging Date Time: 2016-10-21 15:44:58,714] =====================================================================================
  972. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  973. [Logging Date Time: 2016-10-21 15:44:58,714] =====================================================================================
  974. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  975. [Logging Date Time: 2016-10-21 15:44:58,714] =====================================================================================
  976. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  977. [Logging Date Time: 2016-10-21 15:44:58,714] =====================================================================================
  978. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  979. [Logging Date Time: 2016-10-21 15:44:58,791] =====================================================================================
  980. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  981. [Logging Date Time: 2016-10-21 15:44:58,791] =====================================================================================
  982. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  983. [Logging Date Time: 2016-10-21 15:44:58,791] =====================================================================================
  984. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  985. [Logging Date Time: 2016-10-21 15:44:58,791] =====================================================================================
  986. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  987. [Logging Date Time: 2016-10-21 15:44:58,791] =====================================================================================
  988. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  989. [Logging Date Time: 2016-10-21 15:44:58,791] =====================================================================================
  990. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  991. [Logging Date Time: 2016-10-21 15:44:59,022] =====================================================================================
  992. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  993. [Logging Date Time: 2016-10-21 15:44:59,022] =====================================================================================
  994. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  995. [Logging Date Time: 2016-10-21 15:44:59,022] =====================================================================================
  996. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  997. [Logging Date Time: 2016-10-21 15:44:59,022] =====================================================================================
  998. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  999. [Logging Date Time: 2016-10-21 15:44:59,022] =====================================================================================
  1000. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1001. [Logging Date Time: 2016-10-21 15:44:59,022] =====================================================================================
  1002. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1003. [Logging Date Time: 2016-10-21 15:44:59,138] =====================================================================================
  1004. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1005. [Logging Date Time: 2016-10-21 15:44:59,138] =====================================================================================
  1006. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1007. [Logging Date Time: 2016-10-21 15:44:59,138] =====================================================================================
  1008. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1009. [Logging Date Time: 2016-10-21 15:44:59,138] =====================================================================================
  1010. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1011. [Logging Date Time: 2016-10-21 15:44:59,138] =====================================================================================
  1012. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1013. [Logging Date Time: 2016-10-21 15:44:59,138] =====================================================================================
  1014. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1015. [Logging Date Time: 2016-10-21 15:45:08,010] =====================================================================================
  1016. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  1017. [Logging Date Time: 2016-10-21 15:45:08,010] =====================================================================================
  1018. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  1019. [Logging Date Time: 2016-10-21 15:45:08,107] =====================================================================================
  1020. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1021. [Logging Date Time: 2016-10-21 15:45:08,107] =====================================================================================
  1022. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1023. [Logging Date Time: 2016-10-21 15:45:08,108] =====================================================================================
  1024. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1025. [Logging Date Time: 2016-10-21 15:45:08,108] =====================================================================================
  1026. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1027. [Logging Date Time: 2016-10-21 15:45:08,108] =====================================================================================
  1028. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1029. [Logging Date Time: 2016-10-21 15:45:08,108] =====================================================================================
  1030. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1031. [Logging Date Time: 2016-10-21 15:45:08,218] =====================================================================================
  1032. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1033. [Logging Date Time: 2016-10-21 15:45:08,218] =====================================================================================
  1034. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1035. [Logging Date Time: 2016-10-21 15:45:08,218] =====================================================================================
  1036. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1037. [Logging Date Time: 2016-10-21 15:45:08,218] =====================================================================================
  1038. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1039. [Logging Date Time: 2016-10-21 15:45:08,218] =====================================================================================
  1040. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1041. [Logging Date Time: 2016-10-21 15:45:08,218] =====================================================================================
  1042. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1043. [Logging Date Time: 2016-10-21 15:45:12,495] =====================================================================================
  1044. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1045. [Logging Date Time: 2016-10-21 15:45:12,495] =====================================================================================
  1046. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1047. [Logging Date Time: 2016-10-21 15:45:12,495] =====================================================================================
  1048. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1049. [Logging Date Time: 2016-10-21 15:45:12,495] =====================================================================================
  1050. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1051. [Logging Date Time: 2016-10-21 15:45:12,495] =====================================================================================
  1052. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1053. [Logging Date Time: 2016-10-21 15:45:12,495] =====================================================================================
  1054. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1055. [Logging Date Time: 2016-10-21 15:45:12,707] =====================================================================================
  1056. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1057. [Logging Date Time: 2016-10-21 15:45:12,707] =====================================================================================
  1058. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1059. [Logging Date Time: 2016-10-21 15:45:12,707] =====================================================================================
  1060. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1061. [Logging Date Time: 2016-10-21 15:45:12,707] =====================================================================================
  1062. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1063. [Logging Date Time: 2016-10-21 15:45:12,707] =====================================================================================
  1064. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1065. [Logging Date Time: 2016-10-21 15:45:12,707] =====================================================================================
  1066. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1067. [Logging Date Time: 2016-10-21 15:45:16,991] =====================================================================================
  1068. SQL Command - Statement Id: [getOpPatList] PreparedStatement : [SELECT oprs.pid as pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) as indd, inpt.cretno as cretno, 0 as seqno, inpt.instcd as instcd, ptbs.hngnm as hngnm, 'N' as fsexamflag, oprs.perfdeptcd as orddeptcd, oprs.perfdrid as doctorid, 0 as hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.indepthngnm as deptnm, 'N' as deptengabbr, usrb.usernm as doctornm, 'N' as diagnm, 'N' as dschnoti, COALESCE((SELECT roomcd FROM pam.pmihinpt inpt, pam.pmihiphs iphs WHERE inpt.pid = oprs.pid AND inpt.indd <= oprs.opcnfmdd AND inpt.instcd = oprs.instcd AND inpt.histstat = 'Y' AND inpt.pid = iphs.pid AND inpt.indd = iphs.indd AND inpt.cretno = iphs.cretno AND inpt.instcd = iphs.instcd AND oprs.opcnfmdd >= iphs.fromdd AND oprs.opcnfmdd <= iphs.todd AND iphs.histstat = 'Y' AND ROWNUM = 1), '없음') as roomcd, 'N' as cnst, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' as elbulbodstat, oprs.oppatflagcd as ordtype, case when oprs.oproomcd = '0000' then '방없음' when oprs.oproomcd = '0014' then 'Angio' when oprs.oproomcd = '0015' then 'ER' else substr(oprs.oproomcd, 3, 2) end as oproomnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'M0017' and code.cdid = oprs.anstmthdcd and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd) as anstreqflag , (SELECT MAX(CASE opcnfmno WHEN 1 THEN RTRIM(usernm) ELSE '' END) || MAX(CASE opcnfmno WHEN 2 THEN concat(', ', RTRIM(usernm)) ELSE '' END) || MAX(CASE opcnfmno WHEN 3 THEN concat(', ', RTRIM(usernm)) ELSE '' END) FROM emr.mmodocad mmod, com.zsumusrb usrb WHERE mmod.anstdrid = usrb.userid AND oprs.rgstdd >= usrb.userfromdd AND oprs.rgstdd <= usrb.usertodd AND mmod.oprsrvno = oprs.oprsrvno AND mmod.instcd = oprs.instcd) as anstdrnm , oprs.opcnfmdd FROM emr.mmohoprs oprs LEFT OUTER JOIN com.zsumusrb usrb ON usrb.userid = oprs.perfdrid AND usrb.userfromdd <= oprs.opcnfmdd AND usrb.usertodd >= oprs.opcnfmdd LEFT OUTER JOIN com.zsdddept dept ON dept.deptcd = oprs.perfdeptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.instcd = oprs.instcd AND dept.valifromdd <= oprs.opcnfmdd AND dept.valitodd >= oprs.opcnfmdd, pam.pmcmptbs ptbs, pam.pmihinpt inpt WHERE oprs.pid = ptbs.pid AND oprs.instcd = ptbs.instcd AND oprs.instcd = inpt.instcd AND oprs.pid = inpt.pid AND oprs.opcnfmdd between inpt.indd and inpt.dschdd AND inpt.histstat = 'Y' AND inpt.mskind = 'M' AND oprs.opcnfmdd = :param0 AND oprs.instcd = :param1 AND oprs.ophistcd = 'O' AND oprs.opstatcd IN ('10','20','30','40','50','60','70') ORDER BY oproomnm, oprs.opendtmcd]
  1069. [Logging Date Time: 2016-10-21 15:45:16,991] =====================================================================================
  1070. SQL Command - Statement Id: [getOpPatList] PreparedStatement : [SELECT oprs.pid as pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) as indd, inpt.cretno as cretno, 0 as seqno, inpt.instcd as instcd, ptbs.hngnm as hngnm, 'N' as fsexamflag, oprs.perfdeptcd as orddeptcd, oprs.perfdrid as doctorid, 0 as hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.indepthngnm as deptnm, 'N' as deptengabbr, usrb.usernm as doctornm, 'N' as diagnm, 'N' as dschnoti, COALESCE((SELECT roomcd FROM pam.pmihinpt inpt, pam.pmihiphs iphs WHERE inpt.pid = oprs.pid AND inpt.indd <= oprs.opcnfmdd AND inpt.instcd = oprs.instcd AND inpt.histstat = 'Y' AND inpt.pid = iphs.pid AND inpt.indd = iphs.indd AND inpt.cretno = iphs.cretno AND inpt.instcd = iphs.instcd AND oprs.opcnfmdd >= iphs.fromdd AND oprs.opcnfmdd <= iphs.todd AND iphs.histstat = 'Y' AND ROWNUM = 1), '없음') as roomcd, 'N' as cnst, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' as elbulbodstat, oprs.oppatflagcd as ordtype, case when oprs.oproomcd = '0000' then '방없음' when oprs.oproomcd = '0014' then 'Angio' when oprs.oproomcd = '0015' then 'ER' else substr(oprs.oproomcd, 3, 2) end as oproomnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'M0017' and code.cdid = oprs.anstmthdcd and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd) as anstreqflag , (SELECT MAX(CASE opcnfmno WHEN 1 THEN RTRIM(usernm) ELSE '' END) || MAX(CASE opcnfmno WHEN 2 THEN concat(', ', RTRIM(usernm)) ELSE '' END) || MAX(CASE opcnfmno WHEN 3 THEN concat(', ', RTRIM(usernm)) ELSE '' END) FROM emr.mmodocad mmod, com.zsumusrb usrb WHERE mmod.anstdrid = usrb.userid AND oprs.rgstdd >= usrb.userfromdd AND oprs.rgstdd <= usrb.usertodd AND mmod.oprsrvno = oprs.oprsrvno AND mmod.instcd = oprs.instcd) as anstdrnm , oprs.opcnfmdd FROM emr.mmohoprs oprs LEFT OUTER JOIN com.zsumusrb usrb ON usrb.userid = oprs.perfdrid AND usrb.userfromdd <= oprs.opcnfmdd AND usrb.usertodd >= oprs.opcnfmdd LEFT OUTER JOIN com.zsdddept dept ON dept.deptcd = oprs.perfdeptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.instcd = oprs.instcd AND dept.valifromdd <= oprs.opcnfmdd AND dept.valitodd >= oprs.opcnfmdd, pam.pmcmptbs ptbs, pam.pmihinpt inpt WHERE oprs.pid = ptbs.pid AND oprs.instcd = ptbs.instcd AND oprs.instcd = inpt.instcd AND oprs.pid = inpt.pid AND oprs.opcnfmdd between inpt.indd and inpt.dschdd AND inpt.histstat = 'Y' AND inpt.mskind = 'M' AND oprs.opcnfmdd = :param0 AND oprs.instcd = :param1 AND oprs.ophistcd = 'O' AND oprs.opstatcd IN ('10','20','30','40','50','60','70') ORDER BY oproomnm, oprs.opendtmcd]
  1071. [Logging Date Time: 2016-10-21 15:45:16,992] =====================================================================================
  1072. SQL Command - Statement Id: [getOpPatList] Parameters: [param0=[srchdd,20161003], param1=[instcd,111]]
  1073. [Logging Date Time: 2016-10-21 15:45:16,992] =====================================================================================
  1074. SQL Command - Statement Id: [getOpPatList] Parameters: [param0=[srchdd,20161003], param1=[instcd,111]]
  1075. [Logging Date Time: 2016-10-21 15:45:16,992] =====================================================================================
  1076. SQL Command - Statement Id: [getOpPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1077. [Logging Date Time: 2016-10-21 15:45:16,992] =====================================================================================
  1078. SQL Command - Statement Id: [getOpPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1079. [Logging Date Time: 2016-10-21 15:45:19,585] =====================================================================================
  1080. SQL Command - Statement Id: [getOpPatList] PreparedStatement : [SELECT oprs.pid as pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) as indd, inpt.cretno as cretno, 0 as seqno, inpt.instcd as instcd, ptbs.hngnm as hngnm, 'N' as fsexamflag, oprs.perfdeptcd as orddeptcd, oprs.perfdrid as doctorid, 0 as hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.indepthngnm as deptnm, 'N' as deptengabbr, usrb.usernm as doctornm, 'N' as diagnm, 'N' as dschnoti, COALESCE((SELECT roomcd FROM pam.pmihinpt inpt, pam.pmihiphs iphs WHERE inpt.pid = oprs.pid AND inpt.indd <= oprs.opcnfmdd AND inpt.instcd = oprs.instcd AND inpt.histstat = 'Y' AND inpt.pid = iphs.pid AND inpt.indd = iphs.indd AND inpt.cretno = iphs.cretno AND inpt.instcd = iphs.instcd AND oprs.opcnfmdd >= iphs.fromdd AND oprs.opcnfmdd <= iphs.todd AND iphs.histstat = 'Y' AND ROWNUM = 1), '없음') as roomcd, 'N' as cnst, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' as elbulbodstat, oprs.oppatflagcd as ordtype, case when oprs.oproomcd = '0000' then '방없음' when oprs.oproomcd = '0014' then 'Angio' when oprs.oproomcd = '0015' then 'ER' else substr(oprs.oproomcd, 3, 2) end as oproomnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'M0017' and code.cdid = oprs.anstmthdcd and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd) as anstreqflag , (SELECT MAX(CASE opcnfmno WHEN 1 THEN RTRIM(usernm) ELSE '' END) || MAX(CASE opcnfmno WHEN 2 THEN concat(', ', RTRIM(usernm)) ELSE '' END) || MAX(CASE opcnfmno WHEN 3 THEN concat(', ', RTRIM(usernm)) ELSE '' END) FROM emr.mmodocad mmod, com.zsumusrb usrb WHERE mmod.anstdrid = usrb.userid AND oprs.rgstdd >= usrb.userfromdd AND oprs.rgstdd <= usrb.usertodd AND mmod.oprsrvno = oprs.oprsrvno AND mmod.instcd = oprs.instcd) as anstdrnm , oprs.opcnfmdd FROM emr.mmohoprs oprs LEFT OUTER JOIN com.zsumusrb usrb ON usrb.userid = oprs.perfdrid AND usrb.userfromdd <= oprs.opcnfmdd AND usrb.usertodd >= oprs.opcnfmdd LEFT OUTER JOIN com.zsdddept dept ON dept.deptcd = oprs.perfdeptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.instcd = oprs.instcd AND dept.valifromdd <= oprs.opcnfmdd AND dept.valitodd >= oprs.opcnfmdd, pam.pmcmptbs ptbs, pam.pmihinpt inpt WHERE oprs.pid = ptbs.pid AND oprs.instcd = ptbs.instcd AND oprs.instcd = inpt.instcd AND oprs.pid = inpt.pid AND oprs.opcnfmdd between inpt.indd and inpt.dschdd AND inpt.histstat = 'Y' AND inpt.mskind = 'M' AND oprs.opcnfmdd = :param0 AND oprs.instcd = :param1 AND oprs.ophistcd = 'O' AND oprs.opstatcd IN ('10','20','30','40','50','60','70') ORDER BY oproomnm, oprs.opendtmcd]
  1081. [Logging Date Time: 2016-10-21 15:45:19,585] =====================================================================================
  1082. SQL Command - Statement Id: [getOpPatList] PreparedStatement : [SELECT oprs.pid as pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) as indd, inpt.cretno as cretno, 0 as seqno, inpt.instcd as instcd, ptbs.hngnm as hngnm, 'N' as fsexamflag, oprs.perfdeptcd as orddeptcd, oprs.perfdrid as doctorid, 0 as hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.indepthngnm as deptnm, 'N' as deptengabbr, usrb.usernm as doctornm, 'N' as diagnm, 'N' as dschnoti, COALESCE((SELECT roomcd FROM pam.pmihinpt inpt, pam.pmihiphs iphs WHERE inpt.pid = oprs.pid AND inpt.indd <= oprs.opcnfmdd AND inpt.instcd = oprs.instcd AND inpt.histstat = 'Y' AND inpt.pid = iphs.pid AND inpt.indd = iphs.indd AND inpt.cretno = iphs.cretno AND inpt.instcd = iphs.instcd AND oprs.opcnfmdd >= iphs.fromdd AND oprs.opcnfmdd <= iphs.todd AND iphs.histstat = 'Y' AND ROWNUM = 1), '없음') as roomcd, 'N' as cnst, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' as elbulbodstat, oprs.oppatflagcd as ordtype, case when oprs.oproomcd = '0000' then '방없음' when oprs.oproomcd = '0014' then 'Angio' when oprs.oproomcd = '0015' then 'ER' else substr(oprs.oproomcd, 3, 2) end as oproomnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'M0017' and code.cdid = oprs.anstmthdcd and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd) as anstreqflag , (SELECT MAX(CASE opcnfmno WHEN 1 THEN RTRIM(usernm) ELSE '' END) || MAX(CASE opcnfmno WHEN 2 THEN concat(', ', RTRIM(usernm)) ELSE '' END) || MAX(CASE opcnfmno WHEN 3 THEN concat(', ', RTRIM(usernm)) ELSE '' END) FROM emr.mmodocad mmod, com.zsumusrb usrb WHERE mmod.anstdrid = usrb.userid AND oprs.rgstdd >= usrb.userfromdd AND oprs.rgstdd <= usrb.usertodd AND mmod.oprsrvno = oprs.oprsrvno AND mmod.instcd = oprs.instcd) as anstdrnm , oprs.opcnfmdd FROM emr.mmohoprs oprs LEFT OUTER JOIN com.zsumusrb usrb ON usrb.userid = oprs.perfdrid AND usrb.userfromdd <= oprs.opcnfmdd AND usrb.usertodd >= oprs.opcnfmdd LEFT OUTER JOIN com.zsdddept dept ON dept.deptcd = oprs.perfdeptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.instcd = oprs.instcd AND dept.valifromdd <= oprs.opcnfmdd AND dept.valitodd >= oprs.opcnfmdd, pam.pmcmptbs ptbs, pam.pmihinpt inpt WHERE oprs.pid = ptbs.pid AND oprs.instcd = ptbs.instcd AND oprs.instcd = inpt.instcd AND oprs.pid = inpt.pid AND oprs.opcnfmdd between inpt.indd and inpt.dschdd AND inpt.histstat = 'Y' AND inpt.mskind = 'M' AND oprs.opcnfmdd = :param0 AND oprs.instcd = :param1 AND oprs.ophistcd = 'O' AND oprs.opstatcd IN ('10','20','30','40','50','60','70') ORDER BY oproomnm, oprs.opendtmcd]
  1083. [Logging Date Time: 2016-10-21 15:45:19,586] =====================================================================================
  1084. SQL Command - Statement Id: [getOpPatList] Parameters: [param0=[srchdd,20160912], param1=[instcd,111]]
  1085. [Logging Date Time: 2016-10-21 15:45:19,586] =====================================================================================
  1086. SQL Command - Statement Id: [getOpPatList] Parameters: [param0=[srchdd,20160912], param1=[instcd,111]]
  1087. [Logging Date Time: 2016-10-21 15:45:19,586] =====================================================================================
  1088. SQL Command - Statement Id: [getOpPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1089. [Logging Date Time: 2016-10-21 15:45:19,586] =====================================================================================
  1090. SQL Command - Statement Id: [getOpPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1091. [Logging Date Time: 2016-10-21 15:45:23,005] =====================================================================================
  1092. SQL Command - Statement Id: [getOpPatList] PreparedStatement : [SELECT oprs.pid as pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) as indd, inpt.cretno as cretno, 0 as seqno, inpt.instcd as instcd, ptbs.hngnm as hngnm, 'N' as fsexamflag, oprs.perfdeptcd as orddeptcd, oprs.perfdrid as doctorid, 0 as hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.indepthngnm as deptnm, 'N' as deptengabbr, usrb.usernm as doctornm, 'N' as diagnm, 'N' as dschnoti, COALESCE((SELECT roomcd FROM pam.pmihinpt inpt, pam.pmihiphs iphs WHERE inpt.pid = oprs.pid AND inpt.indd <= oprs.opcnfmdd AND inpt.instcd = oprs.instcd AND inpt.histstat = 'Y' AND inpt.pid = iphs.pid AND inpt.indd = iphs.indd AND inpt.cretno = iphs.cretno AND inpt.instcd = iphs.instcd AND oprs.opcnfmdd >= iphs.fromdd AND oprs.opcnfmdd <= iphs.todd AND iphs.histstat = 'Y' AND ROWNUM = 1), '없음') as roomcd, 'N' as cnst, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' as elbulbodstat, oprs.oppatflagcd as ordtype, case when oprs.oproomcd = '0000' then '방없음' when oprs.oproomcd = '0014' then 'Angio' when oprs.oproomcd = '0015' then 'ER' else substr(oprs.oproomcd, 3, 2) end as oproomnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'M0017' and code.cdid = oprs.anstmthdcd and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd) as anstreqflag , (SELECT MAX(CASE opcnfmno WHEN 1 THEN RTRIM(usernm) ELSE '' END) || MAX(CASE opcnfmno WHEN 2 THEN concat(', ', RTRIM(usernm)) ELSE '' END) || MAX(CASE opcnfmno WHEN 3 THEN concat(', ', RTRIM(usernm)) ELSE '' END) FROM emr.mmodocad mmod, com.zsumusrb usrb WHERE mmod.anstdrid = usrb.userid AND oprs.rgstdd >= usrb.userfromdd AND oprs.rgstdd <= usrb.usertodd AND mmod.oprsrvno = oprs.oprsrvno AND mmod.instcd = oprs.instcd) as anstdrnm , oprs.opcnfmdd FROM emr.mmohoprs oprs LEFT OUTER JOIN com.zsumusrb usrb ON usrb.userid = oprs.perfdrid AND usrb.userfromdd <= oprs.opcnfmdd AND usrb.usertodd >= oprs.opcnfmdd LEFT OUTER JOIN com.zsdddept dept ON dept.deptcd = oprs.perfdeptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.instcd = oprs.instcd AND dept.valifromdd <= oprs.opcnfmdd AND dept.valitodd >= oprs.opcnfmdd, pam.pmcmptbs ptbs, pam.pmihinpt inpt WHERE oprs.pid = ptbs.pid AND oprs.instcd = ptbs.instcd AND oprs.instcd = inpt.instcd AND oprs.pid = inpt.pid AND oprs.opcnfmdd between inpt.indd and inpt.dschdd AND inpt.histstat = 'Y' AND inpt.mskind = 'M' AND oprs.opcnfmdd = :param0 AND oprs.instcd = :param1 AND oprs.ophistcd = 'O' AND oprs.opstatcd IN ('10','20','30','40','50','60','70') ORDER BY oproomnm, oprs.opendtmcd]
  1093. [Logging Date Time: 2016-10-21 15:45:23,005] =====================================================================================
  1094. SQL Command - Statement Id: [getOpPatList] PreparedStatement : [SELECT oprs.pid as pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) as indd, inpt.cretno as cretno, 0 as seqno, inpt.instcd as instcd, ptbs.hngnm as hngnm, 'N' as fsexamflag, oprs.perfdeptcd as orddeptcd, oprs.perfdrid as doctorid, 0 as hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.indepthngnm as deptnm, 'N' as deptengabbr, usrb.usernm as doctornm, 'N' as diagnm, 'N' as dschnoti, COALESCE((SELECT roomcd FROM pam.pmihinpt inpt, pam.pmihiphs iphs WHERE inpt.pid = oprs.pid AND inpt.indd <= oprs.opcnfmdd AND inpt.instcd = oprs.instcd AND inpt.histstat = 'Y' AND inpt.pid = iphs.pid AND inpt.indd = iphs.indd AND inpt.cretno = iphs.cretno AND inpt.instcd = iphs.instcd AND oprs.opcnfmdd >= iphs.fromdd AND oprs.opcnfmdd <= iphs.todd AND iphs.histstat = 'Y' AND ROWNUM = 1), '없음') as roomcd, 'N' as cnst, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' as elbulbodstat, oprs.oppatflagcd as ordtype, case when oprs.oproomcd = '0000' then '방없음' when oprs.oproomcd = '0014' then 'Angio' when oprs.oproomcd = '0015' then 'ER' else substr(oprs.oproomcd, 3, 2) end as oproomnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'M0017' and code.cdid = oprs.anstmthdcd and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd) as anstreqflag , (SELECT MAX(CASE opcnfmno WHEN 1 THEN RTRIM(usernm) ELSE '' END) || MAX(CASE opcnfmno WHEN 2 THEN concat(', ', RTRIM(usernm)) ELSE '' END) || MAX(CASE opcnfmno WHEN 3 THEN concat(', ', RTRIM(usernm)) ELSE '' END) FROM emr.mmodocad mmod, com.zsumusrb usrb WHERE mmod.anstdrid = usrb.userid AND oprs.rgstdd >= usrb.userfromdd AND oprs.rgstdd <= usrb.usertodd AND mmod.oprsrvno = oprs.oprsrvno AND mmod.instcd = oprs.instcd) as anstdrnm , oprs.opcnfmdd FROM emr.mmohoprs oprs LEFT OUTER JOIN com.zsumusrb usrb ON usrb.userid = oprs.perfdrid AND usrb.userfromdd <= oprs.opcnfmdd AND usrb.usertodd >= oprs.opcnfmdd LEFT OUTER JOIN com.zsdddept dept ON dept.deptcd = oprs.perfdeptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.instcd = oprs.instcd AND dept.valifromdd <= oprs.opcnfmdd AND dept.valitodd >= oprs.opcnfmdd, pam.pmcmptbs ptbs, pam.pmihinpt inpt WHERE oprs.pid = ptbs.pid AND oprs.instcd = ptbs.instcd AND oprs.instcd = inpt.instcd AND oprs.pid = inpt.pid AND oprs.opcnfmdd between inpt.indd and inpt.dschdd AND inpt.histstat = 'Y' AND inpt.mskind = 'M' AND oprs.opcnfmdd = :param0 AND oprs.instcd = :param1 AND oprs.ophistcd = 'O' AND oprs.opstatcd IN ('10','20','30','40','50','60','70') ORDER BY oproomnm, oprs.opendtmcd]
  1095. [Logging Date Time: 2016-10-21 15:45:23,006] =====================================================================================
  1096. SQL Command - Statement Id: [getOpPatList] Parameters: [param0=[srchdd,20160816], param1=[instcd,111]]
  1097. [Logging Date Time: 2016-10-21 15:45:23,006] =====================================================================================
  1098. SQL Command - Statement Id: [getOpPatList] Parameters: [param0=[srchdd,20160816], param1=[instcd,111]]
  1099. [Logging Date Time: 2016-10-21 15:45:23,006] =====================================================================================
  1100. SQL Command - Statement Id: [getOpPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1101. [Logging Date Time: 2016-10-21 15:45:23,006] =====================================================================================
  1102. SQL Command - Statement Id: [getOpPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1103. [Logging Date Time: 2016-10-21 15:48:44,789] =====================================================================================
  1104. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1105. [Logging Date Time: 2016-10-21 15:48:44,789] =====================================================================================
  1106. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1107. [Logging Date Time: 2016-10-21 15:48:44,862] =====================================================================================
  1108. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1109. [Logging Date Time: 2016-10-21 15:48:44,862] =====================================================================================
  1110. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1111. [Logging Date Time: 2016-10-21 15:48:44,862] =====================================================================================
  1112. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1113. [Logging Date Time: 2016-10-21 15:48:44,862] =====================================================================================
  1114. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1115. [Logging Date Time: 2016-10-21 15:48:45,056] =====================================================================================
  1116. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1117. [Logging Date Time: 2016-10-21 15:48:45,056] =====================================================================================
  1118. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1119. [Logging Date Time: 2016-10-21 15:48:45,056] =====================================================================================
  1120. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1121. [Logging Date Time: 2016-10-21 15:48:45,056] =====================================================================================
  1122. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1123. [Logging Date Time: 2016-10-21 15:48:45,056] =====================================================================================
  1124. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1125. [Logging Date Time: 2016-10-21 15:48:45,056] =====================================================================================
  1126. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1127. [Logging Date Time: 2016-10-21 15:48:45,734] =====================================================================================
  1128. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1129. [Logging Date Time: 2016-10-21 15:48:45,734] =====================================================================================
  1130. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1131. [Logging Date Time: 2016-10-21 15:48:45,735] =====================================================================================
  1132. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  1133. [Logging Date Time: 2016-10-21 15:48:45,735] =====================================================================================
  1134. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  1135. [Logging Date Time: 2016-10-21 15:48:45,735] =====================================================================================
  1136. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1137. [Logging Date Time: 2016-10-21 15:48:45,735] =====================================================================================
  1138. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1139. [Logging Date Time: 2016-10-21 15:48:46,005] =====================================================================================
  1140. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1141. [Logging Date Time: 2016-10-21 15:48:46,005] =====================================================================================
  1142. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1143. [Logging Date Time: 2016-10-21 15:48:46,006] =====================================================================================
  1144. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1145. [Logging Date Time: 2016-10-21 15:48:46,006] =====================================================================================
  1146. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1147. [Logging Date Time: 2016-10-21 15:48:46,006] =====================================================================================
  1148. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1149. [Logging Date Time: 2016-10-21 15:48:46,006] =====================================================================================
  1150. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1151. [Logging Date Time: 2016-10-21 15:48:46,102] =====================================================================================
  1152. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1153. [Logging Date Time: 2016-10-21 15:48:46,102] =====================================================================================
  1154. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1155. [Logging Date Time: 2016-10-21 15:48:46,102] =====================================================================================
  1156. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1157. [Logging Date Time: 2016-10-21 15:48:46,102] =====================================================================================
  1158. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1159. [Logging Date Time: 2016-10-21 15:48:46,102] =====================================================================================
  1160. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1161. [Logging Date Time: 2016-10-21 15:48:46,102] =====================================================================================
  1162. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1163. [Logging Date Time: 2016-10-21 15:48:46,488] =====================================================================================
  1164. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1165. [Logging Date Time: 2016-10-21 15:48:46,488] =====================================================================================
  1166. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1167. [Logging Date Time: 2016-10-21 15:48:46,488] =====================================================================================
  1168. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1169. [Logging Date Time: 2016-10-21 15:48:46,488] =====================================================================================
  1170. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1171. [Logging Date Time: 2016-10-21 15:48:46,489] =====================================================================================
  1172. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1173. [Logging Date Time: 2016-10-21 15:48:46,489] =====================================================================================
  1174. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1175. [Logging Date Time: 2016-10-21 15:48:46,622] =====================================================================================
  1176. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1177. [Logging Date Time: 2016-10-21 15:48:46,622] =====================================================================================
  1178. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1179. [Logging Date Time: 2016-10-21 15:48:46,622] =====================================================================================
  1180. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1181. [Logging Date Time: 2016-10-21 15:48:46,622] =====================================================================================
  1182. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1183. [Logging Date Time: 2016-10-21 15:48:46,622] =====================================================================================
  1184. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1185. [Logging Date Time: 2016-10-21 15:48:46,622] =====================================================================================
  1186. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1187. [Logging Date Time: 2016-10-21 15:48:50,638] =====================================================================================
  1188. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  1189. [Logging Date Time: 2016-10-21 15:48:50,638] =====================================================================================
  1190. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  1191. [Logging Date Time: 2016-10-21 15:48:50,771] =====================================================================================
  1192. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1193. [Logging Date Time: 2016-10-21 15:48:50,771] =====================================================================================
  1194. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1195. [Logging Date Time: 2016-10-21 15:48:50,772] =====================================================================================
  1196. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1197. [Logging Date Time: 2016-10-21 15:48:50,772] =====================================================================================
  1198. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1199. [Logging Date Time: 2016-10-21 15:48:50,772] =====================================================================================
  1200. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1201. [Logging Date Time: 2016-10-21 15:48:50,772] =====================================================================================
  1202. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1203. [Logging Date Time: 2016-10-21 15:48:50,891] =====================================================================================
  1204. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1205. [Logging Date Time: 2016-10-21 15:48:50,891] =====================================================================================
  1206. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1207. [Logging Date Time: 2016-10-21 15:48:50,891] =====================================================================================
  1208. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1209. [Logging Date Time: 2016-10-21 15:48:50,891] =====================================================================================
  1210. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1211. [Logging Date Time: 2016-10-21 15:48:50,891] =====================================================================================
  1212. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1213. [Logging Date Time: 2016-10-21 15:48:50,891] =====================================================================================
  1214. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1215. [Logging Date Time: 2016-10-21 15:48:53,904] =====================================================================================
  1216. SQL Command - Statement Id: [getInPatList] PreparedStatement : [SELECT ptbs.pid AS pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) AS indd, inpt.indd AS orddd, inpt.cretno AS cretno, inpt.seqno AS seqno, inpt.instcd AS instcd, ptbs.hngnm AS hngnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'P0021' and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd and code.cdid = inpt.fsexamflag) AS fsexamflag, /*+ index_desc(icdr IX_PMIHICDR_03) */ icdr.orddeptcd AS orddeptcd, icdr.medispclid AS doctorid, TO_DATE('20161021') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.depthngnm AS deptnm, dept.DEPTENGABBR AS deptengabbr, NVL((SELECT usernm FROM com.zsumusrb WHERE userid = icdr.medispclid AND userfromdd <= :param0 AND usertodd >= :param0 ), '-') AS doctornm, (SELECT term.termengnm FROM emr.mmohdiag diag, emr.mrtmterm term WHERE diag.diagcd = term.termcd AND diag.instcd = term.instcd AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.pid = inpt.pid AND diag.orddd = inpt.indd AND diag.cretno = inpt.cretno AND diag.orddeptcd = icdr.orddeptcd AND diag.instcd = inpt.instcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND ROWNUM = 1) AS diagnm, CASE inpt.indschacptstat WHEN 'D' THEN '퇴원' WHEN 'T' THEN '가퇴원' ELSE (CASE inpt.dschnotiyn WHEN 'Y' THEN '퇴원통보' ELSE (CASE inpt.dschdclrtyn WHEN 'Y' THEN '퇴원예고' ELSE '-' END) END) END AS dschnoti, icdr.roomcd AS roomcd, CASE WHEN (SELECT COUNT(instcd) FROM emr.mmrhcnstinfo WHERE pid = inpt.pid AND orddd = inpt.indd AND cretno = inpt.cretno AND reqdd = :param0 AND chosflag IN ('I','E') AND cnstflag IN ('1','2') AND ROWNUM = 1) > 0 THEN 'Y' ELSE 'N' END AS cnst, icdr.ordtype AS ordtype, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' AS elbulbodstat, 'N' AS ordtm FROM pam.pmihinpt inpt, pam.pmihicdr icdr, com.zsdddept dept, pam.pmcmptbs ptbs WHERE inpt.histstat = 'Y' AND inpt.mskind = 'M' AND icdr.ordtype IN ('I', 'D') AND inpt.instcd = :param1 AND inpt.pid = icdr.pid AND inpt.pid = icdr.pid AND inpt.indd = icdr.indd AND inpt.cretno = icdr.cretno AND inpt.instcd = icdr.instcd AND inpt.histstat = icdr.histstat AND icdr.fromdd <= :param0 AND icdr.todd >= :param0 AND icdr.pid = ptbs.pid AND icdr.instcd = ptbs.instcd AND icdr.instcd = dept.instcd AND icdr.orddeptcd = dept.deptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.valifromdd <= :param0 AND dept.valitodd >= :param0 AND icdr.wardcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  1217. [Logging Date Time: 2016-10-21 15:48:53,904] =====================================================================================
  1218. SQL Command - Statement Id: [getInPatList] PreparedStatement : [SELECT ptbs.pid AS pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) AS indd, inpt.indd AS orddd, inpt.cretno AS cretno, inpt.seqno AS seqno, inpt.instcd AS instcd, ptbs.hngnm AS hngnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'P0021' and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd and code.cdid = inpt.fsexamflag) AS fsexamflag, /*+ index_desc(icdr IX_PMIHICDR_03) */ icdr.orddeptcd AS orddeptcd, icdr.medispclid AS doctorid, TO_DATE('20161021') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.depthngnm AS deptnm, dept.DEPTENGABBR AS deptengabbr, NVL((SELECT usernm FROM com.zsumusrb WHERE userid = icdr.medispclid AND userfromdd <= :param0 AND usertodd >= :param0 ), '-') AS doctornm, (SELECT term.termengnm FROM emr.mmohdiag diag, emr.mrtmterm term WHERE diag.diagcd = term.termcd AND diag.instcd = term.instcd AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.pid = inpt.pid AND diag.orddd = inpt.indd AND diag.cretno = inpt.cretno AND diag.orddeptcd = icdr.orddeptcd AND diag.instcd = inpt.instcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND ROWNUM = 1) AS diagnm, CASE inpt.indschacptstat WHEN 'D' THEN '퇴원' WHEN 'T' THEN '가퇴원' ELSE (CASE inpt.dschnotiyn WHEN 'Y' THEN '퇴원통보' ELSE (CASE inpt.dschdclrtyn WHEN 'Y' THEN '퇴원예고' ELSE '-' END) END) END AS dschnoti, icdr.roomcd AS roomcd, CASE WHEN (SELECT COUNT(instcd) FROM emr.mmrhcnstinfo WHERE pid = inpt.pid AND orddd = inpt.indd AND cretno = inpt.cretno AND reqdd = :param0 AND chosflag IN ('I','E') AND cnstflag IN ('1','2') AND ROWNUM = 1) > 0 THEN 'Y' ELSE 'N' END AS cnst, icdr.ordtype AS ordtype, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' AS elbulbodstat, 'N' AS ordtm FROM pam.pmihinpt inpt, pam.pmihicdr icdr, com.zsdddept dept, pam.pmcmptbs ptbs WHERE inpt.histstat = 'Y' AND inpt.mskind = 'M' AND icdr.ordtype IN ('I', 'D') AND inpt.instcd = :param1 AND inpt.pid = icdr.pid AND inpt.pid = icdr.pid AND inpt.indd = icdr.indd AND inpt.cretno = icdr.cretno AND inpt.instcd = icdr.instcd AND inpt.histstat = icdr.histstat AND icdr.fromdd <= :param0 AND icdr.todd >= :param0 AND icdr.pid = ptbs.pid AND icdr.instcd = ptbs.instcd AND icdr.instcd = dept.instcd AND icdr.orddeptcd = dept.deptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.valifromdd <= :param0 AND dept.valitodd >= :param0 AND icdr.wardcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  1219. [Logging Date Time: 2016-10-21 15:48:53,905] =====================================================================================
  1220. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161021], param1=[instcd,111], param2=[wardcd,3041400000]]
  1221. [Logging Date Time: 2016-10-21 15:48:53,905] =====================================================================================
  1222. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161021], param1=[instcd,111], param2=[wardcd,3041400000]]
  1223. [Logging Date Time: 2016-10-21 15:48:53,905] =====================================================================================
  1224. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1225. [Logging Date Time: 2016-10-21 15:48:53,905] =====================================================================================
  1226. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1227. [Logging Date Time: 2016-10-21 15:48:56,507] =====================================================================================
  1228. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1229. [Logging Date Time: 2016-10-21 15:48:56,507] =====================================================================================
  1230. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1231. [Logging Date Time: 2016-10-21 15:48:56,507] =====================================================================================
  1232. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1233. [Logging Date Time: 2016-10-21 15:48:56,507] =====================================================================================
  1234. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1235. [Logging Date Time: 2016-10-21 15:48:56,507] =====================================================================================
  1236. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1237. [Logging Date Time: 2016-10-21 15:48:56,507] =====================================================================================
  1238. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1239. [Logging Date Time: 2016-10-21 15:48:56,645] =====================================================================================
  1240. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1241. [Logging Date Time: 2016-10-21 15:48:56,645] =====================================================================================
  1242. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1243. [Logging Date Time: 2016-10-21 15:48:56,645] =====================================================================================
  1244. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1245. [Logging Date Time: 2016-10-21 15:48:56,645] =====================================================================================
  1246. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1247. [Logging Date Time: 2016-10-21 15:48:56,645] =====================================================================================
  1248. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1249. [Logging Date Time: 2016-10-21 15:48:56,645] =====================================================================================
  1250. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1251. [Logging Date Time: 2016-10-21 15:49:02,383] =====================================================================================
  1252. SQL Command - Statement Id: [getOpPatList] PreparedStatement : [SELECT oprs.pid as pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) as indd, inpt.cretno as cretno, 0 as seqno, inpt.instcd as instcd, ptbs.hngnm as hngnm, 'N' as fsexamflag, oprs.perfdeptcd as orddeptcd, oprs.perfdrid as doctorid, 0 as hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.indepthngnm as deptnm, 'N' as deptengabbr, usrb.usernm as doctornm, 'N' as diagnm, 'N' as dschnoti, COALESCE((SELECT roomcd FROM pam.pmihinpt inpt, pam.pmihiphs iphs WHERE inpt.pid = oprs.pid AND inpt.indd <= oprs.opcnfmdd AND inpt.instcd = oprs.instcd AND inpt.histstat = 'Y' AND inpt.pid = iphs.pid AND inpt.indd = iphs.indd AND inpt.cretno = iphs.cretno AND inpt.instcd = iphs.instcd AND oprs.opcnfmdd >= iphs.fromdd AND oprs.opcnfmdd <= iphs.todd AND iphs.histstat = 'Y' AND ROWNUM = 1), '없음') as roomcd, 'N' as cnst, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' as elbulbodstat, oprs.oppatflagcd as ordtype, case when oprs.oproomcd = '0000' then '방없음' when oprs.oproomcd = '0014' then 'Angio' when oprs.oproomcd = '0015' then 'ER' else substr(oprs.oproomcd, 3, 2) end as oproomnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'M0017' and code.cdid = oprs.anstmthdcd and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd) as anstreqflag , (SELECT MAX(CASE opcnfmno WHEN 1 THEN RTRIM(usernm) ELSE '' END) || MAX(CASE opcnfmno WHEN 2 THEN concat(', ', RTRIM(usernm)) ELSE '' END) || MAX(CASE opcnfmno WHEN 3 THEN concat(', ', RTRIM(usernm)) ELSE '' END) FROM emr.mmodocad mmod, com.zsumusrb usrb WHERE mmod.anstdrid = usrb.userid AND oprs.rgstdd >= usrb.userfromdd AND oprs.rgstdd <= usrb.usertodd AND mmod.oprsrvno = oprs.oprsrvno AND mmod.instcd = oprs.instcd) as anstdrnm , oprs.opcnfmdd FROM emr.mmohoprs oprs LEFT OUTER JOIN com.zsumusrb usrb ON usrb.userid = oprs.perfdrid AND usrb.userfromdd <= oprs.opcnfmdd AND usrb.usertodd >= oprs.opcnfmdd LEFT OUTER JOIN com.zsdddept dept ON dept.deptcd = oprs.perfdeptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.instcd = oprs.instcd AND dept.valifromdd <= oprs.opcnfmdd AND dept.valitodd >= oprs.opcnfmdd, pam.pmcmptbs ptbs, pam.pmihinpt inpt WHERE oprs.pid = ptbs.pid AND oprs.instcd = ptbs.instcd AND oprs.instcd = inpt.instcd AND oprs.pid = inpt.pid AND oprs.opcnfmdd between inpt.indd and inpt.dschdd AND inpt.histstat = 'Y' AND inpt.mskind = 'M' AND oprs.opcnfmdd = :param0 AND oprs.instcd = :param1 AND oprs.ophistcd = 'O' AND oprs.opstatcd IN ('10','20','30','40','50','60','70') ORDER BY oproomnm, oprs.opendtmcd]
  1253. [Logging Date Time: 2016-10-21 15:49:02,383] =====================================================================================
  1254. SQL Command - Statement Id: [getOpPatList] PreparedStatement : [SELECT oprs.pid as pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) as indd, inpt.cretno as cretno, 0 as seqno, inpt.instcd as instcd, ptbs.hngnm as hngnm, 'N' as fsexamflag, oprs.perfdeptcd as orddeptcd, oprs.perfdrid as doctorid, 0 as hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000', '0000000', :param0 , 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.indepthngnm as deptnm, 'N' as deptengabbr, usrb.usernm as doctornm, 'N' as diagnm, 'N' as dschnoti, COALESCE((SELECT roomcd FROM pam.pmihinpt inpt, pam.pmihiphs iphs WHERE inpt.pid = oprs.pid AND inpt.indd <= oprs.opcnfmdd AND inpt.instcd = oprs.instcd AND inpt.histstat = 'Y' AND inpt.pid = iphs.pid AND inpt.indd = iphs.indd AND inpt.cretno = iphs.cretno AND inpt.instcd = iphs.instcd AND oprs.opcnfmdd >= iphs.fromdd AND oprs.opcnfmdd <= iphs.todd AND iphs.histstat = 'Y' AND ROWNUM = 1), '없음') as roomcd, 'N' as cnst, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' as elbulbodstat, oprs.oppatflagcd as ordtype, case when oprs.oproomcd = '0000' then '방없음' when oprs.oproomcd = '0014' then 'Angio' when oprs.oproomcd = '0015' then 'ER' else substr(oprs.oproomcd, 3, 2) end as oproomnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'M0017' and code.cdid = oprs.anstmthdcd and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd) as anstreqflag , (SELECT MAX(CASE opcnfmno WHEN 1 THEN RTRIM(usernm) ELSE '' END) || MAX(CASE opcnfmno WHEN 2 THEN concat(', ', RTRIM(usernm)) ELSE '' END) || MAX(CASE opcnfmno WHEN 3 THEN concat(', ', RTRIM(usernm)) ELSE '' END) FROM emr.mmodocad mmod, com.zsumusrb usrb WHERE mmod.anstdrid = usrb.userid AND oprs.rgstdd >= usrb.userfromdd AND oprs.rgstdd <= usrb.usertodd AND mmod.oprsrvno = oprs.oprsrvno AND mmod.instcd = oprs.instcd) as anstdrnm , oprs.opcnfmdd FROM emr.mmohoprs oprs LEFT OUTER JOIN com.zsumusrb usrb ON usrb.userid = oprs.perfdrid AND usrb.userfromdd <= oprs.opcnfmdd AND usrb.usertodd >= oprs.opcnfmdd LEFT OUTER JOIN com.zsdddept dept ON dept.deptcd = oprs.perfdeptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.instcd = oprs.instcd AND dept.valifromdd <= oprs.opcnfmdd AND dept.valitodd >= oprs.opcnfmdd, pam.pmcmptbs ptbs, pam.pmihinpt inpt WHERE oprs.pid = ptbs.pid AND oprs.instcd = ptbs.instcd AND oprs.instcd = inpt.instcd AND oprs.pid = inpt.pid AND oprs.opcnfmdd between inpt.indd and inpt.dschdd AND inpt.histstat = 'Y' AND inpt.mskind = 'M' AND oprs.opcnfmdd = :param0 AND oprs.instcd = :param1 AND oprs.ophistcd = 'O' AND oprs.opstatcd IN ('10','20','30','40','50','60','70') ORDER BY oproomnm, oprs.opendtmcd]
  1255. [Logging Date Time: 2016-10-21 15:49:02,384] =====================================================================================
  1256. SQL Command - Statement Id: [getOpPatList] Parameters: [param0=[srchdd,20160815], param1=[instcd,111]]
  1257. [Logging Date Time: 2016-10-21 15:49:02,384] =====================================================================================
  1258. SQL Command - Statement Id: [getOpPatList] Parameters: [param0=[srchdd,20160815], param1=[instcd,111]]
  1259. [Logging Date Time: 2016-10-21 15:49:02,384] =====================================================================================
  1260. SQL Command - Statement Id: [getOpPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1261. [Logging Date Time: 2016-10-21 15:49:02,384] =====================================================================================
  1262. SQL Command - Statement Id: [getOpPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1263. [Logging Date Time: 2016-10-21 17:16:51,907] =====================================================================================
  1264. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1265. [Logging Date Time: 2016-10-21 17:16:51,907] =====================================================================================
  1266. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1267. [Logging Date Time: 2016-10-21 17:16:51,988] =====================================================================================
  1268. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1269. [Logging Date Time: 2016-10-21 17:16:51,988] =====================================================================================
  1270. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1271. [Logging Date Time: 2016-10-21 17:16:51,988] =====================================================================================
  1272. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1273. [Logging Date Time: 2016-10-21 17:16:51,988] =====================================================================================
  1274. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1275. [Logging Date Time: 2016-10-21 17:16:52,198] =====================================================================================
  1276. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1277. [Logging Date Time: 2016-10-21 17:16:52,198] =====================================================================================
  1278. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1279. [Logging Date Time: 2016-10-21 17:16:52,198] =====================================================================================
  1280. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1281. [Logging Date Time: 2016-10-21 17:16:52,198] =====================================================================================
  1282. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1283. [Logging Date Time: 2016-10-21 17:16:52,199] =====================================================================================
  1284. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1285. [Logging Date Time: 2016-10-21 17:16:52,199] =====================================================================================
  1286. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1287. [Logging Date Time: 2016-10-21 17:16:52,725] =====================================================================================
  1288. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1289. [Logging Date Time: 2016-10-21 17:16:52,725] =====================================================================================
  1290. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1291. [Logging Date Time: 2016-10-21 17:16:52,725] =====================================================================================
  1292. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  1293. [Logging Date Time: 2016-10-21 17:16:52,725] =====================================================================================
  1294. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  1295. [Logging Date Time: 2016-10-21 17:16:52,725] =====================================================================================
  1296. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1297. [Logging Date Time: 2016-10-21 17:16:52,725] =====================================================================================
  1298. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1299. [Logging Date Time: 2016-10-21 17:16:52,959] =====================================================================================
  1300. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1301. [Logging Date Time: 2016-10-21 17:16:52,959] =====================================================================================
  1302. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1303. [Logging Date Time: 2016-10-21 17:16:52,959] =====================================================================================
  1304. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1305. [Logging Date Time: 2016-10-21 17:16:52,959] =====================================================================================
  1306. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1307. [Logging Date Time: 2016-10-21 17:16:52,959] =====================================================================================
  1308. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1309. [Logging Date Time: 2016-10-21 17:16:52,959] =====================================================================================
  1310. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1311. [Logging Date Time: 2016-10-21 17:16:53,046] =====================================================================================
  1312. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1313. [Logging Date Time: 2016-10-21 17:16:53,046] =====================================================================================
  1314. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1315. [Logging Date Time: 2016-10-21 17:16:53,046] =====================================================================================
  1316. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1317. [Logging Date Time: 2016-10-21 17:16:53,046] =====================================================================================
  1318. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1319. [Logging Date Time: 2016-10-21 17:16:53,046] =====================================================================================
  1320. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1321. [Logging Date Time: 2016-10-21 17:16:53,046] =====================================================================================
  1322. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1323. [Logging Date Time: 2016-10-21 17:16:53,352] =====================================================================================
  1324. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1325. [Logging Date Time: 2016-10-21 17:16:53,352] =====================================================================================
  1326. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1327. [Logging Date Time: 2016-10-21 17:16:53,352] =====================================================================================
  1328. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1329. [Logging Date Time: 2016-10-21 17:16:53,352] =====================================================================================
  1330. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1331. [Logging Date Time: 2016-10-21 17:16:53,352] =====================================================================================
  1332. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1333. [Logging Date Time: 2016-10-21 17:16:53,352] =====================================================================================
  1334. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1335. [Logging Date Time: 2016-10-21 17:16:53,472] =====================================================================================
  1336. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1337. [Logging Date Time: 2016-10-21 17:16:53,472] =====================================================================================
  1338. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1339. [Logging Date Time: 2016-10-21 17:16:53,472] =====================================================================================
  1340. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1341. [Logging Date Time: 2016-10-21 17:16:53,472] =====================================================================================
  1342. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1343. [Logging Date Time: 2016-10-21 17:16:53,472] =====================================================================================
  1344. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1345. [Logging Date Time: 2016-10-21 17:16:53,472] =====================================================================================
  1346. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1347. [Logging Date Time: 2016-10-21 17:17:30,770] =====================================================================================
  1348. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  1349. [Logging Date Time: 2016-10-21 17:17:30,770] =====================================================================================
  1350. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  1351. [Logging Date Time: 2016-10-21 17:17:30,873] =====================================================================================
  1352. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1353. [Logging Date Time: 2016-10-21 17:17:30,873] =====================================================================================
  1354. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1355. [Logging Date Time: 2016-10-21 17:17:30,873] =====================================================================================
  1356. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1357. [Logging Date Time: 2016-10-21 17:17:30,873] =====================================================================================
  1358. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1359. [Logging Date Time: 2016-10-21 17:17:30,873] =====================================================================================
  1360. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1361. [Logging Date Time: 2016-10-21 17:17:30,873] =====================================================================================
  1362. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1363. [Logging Date Time: 2016-10-21 17:17:31,012] =====================================================================================
  1364. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1365. [Logging Date Time: 2016-10-21 17:17:31,012] =====================================================================================
  1366. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1367. [Logging Date Time: 2016-10-21 17:17:31,012] =====================================================================================
  1368. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1369. [Logging Date Time: 2016-10-21 17:17:31,012] =====================================================================================
  1370. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1371. [Logging Date Time: 2016-10-21 17:17:31,012] =====================================================================================
  1372. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1373. [Logging Date Time: 2016-10-21 17:17:31,012] =====================================================================================
  1374. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1375. [Logging Date Time: 2016-10-21 17:17:35,663] =====================================================================================
  1376. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = '1']
  1377. [Logging Date Time: 2016-10-21 17:17:35,663] =====================================================================================
  1378. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = '1']
  1379. [Logging Date Time: 2016-10-21 17:17:35,788] =====================================================================================
  1380. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = (SELECT CATEGORY_RID FROM EFORM_CATEGORY WHERE CATEGORY_ID = :param0 )]
  1381. [Logging Date Time: 2016-10-21 17:17:35,788] =====================================================================================
  1382. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = (SELECT CATEGORY_RID FROM EFORM_CATEGORY WHERE CATEGORY_ID = :param0 )]
  1383. [Logging Date Time: 2016-10-21 17:17:35,789] =====================================================================================
  1384. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA]]
  1385. [Logging Date Time: 2016-10-21 17:17:35,789] =====================================================================================
  1386. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA]]
  1387. [Logging Date Time: 2016-10-21 17:17:35,789] =====================================================================================
  1388. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Types: [param0=[AnsiString, System.String]]
  1389. [Logging Date Time: 2016-10-21 17:17:35,789] =====================================================================================
  1390. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Types: [param0=[AnsiString, System.String]]
  1391. [Logging Date Time: 2016-10-21 17:19:58,198] =====================================================================================
  1392. SQL Command - CLIP.eForm error: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다.
  1393. [Logging Date Time: 2016-10-21 17:36:59,915] =====================================================================================
  1394. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1395. [Logging Date Time: 2016-10-21 17:36:59,915] =====================================================================================
  1396. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1397. [Logging Date Time: 2016-10-21 17:37:00,010] =====================================================================================
  1398. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1399. [Logging Date Time: 2016-10-21 17:37:00,010] =====================================================================================
  1400. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1401. [Logging Date Time: 2016-10-21 17:37:00,011] =====================================================================================
  1402. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1403. [Logging Date Time: 2016-10-21 17:37:00,011] =====================================================================================
  1404. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1405. [Logging Date Time: 2016-10-21 17:37:00,431] =====================================================================================
  1406. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1407. [Logging Date Time: 2016-10-21 17:37:00,431] =====================================================================================
  1408. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1409. [Logging Date Time: 2016-10-21 17:37:00,432] =====================================================================================
  1410. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1411. [Logging Date Time: 2016-10-21 17:37:00,432] =====================================================================================
  1412. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1413. [Logging Date Time: 2016-10-21 17:37:00,432] =====================================================================================
  1414. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1415. [Logging Date Time: 2016-10-21 17:37:00,432] =====================================================================================
  1416. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1417. [Logging Date Time: 2016-10-21 17:37:01,118] =====================================================================================
  1418. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1419. [Logging Date Time: 2016-10-21 17:37:01,118] =====================================================================================
  1420. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1421. [Logging Date Time: 2016-10-21 17:37:01,118] =====================================================================================
  1422. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  1423. [Logging Date Time: 2016-10-21 17:37:01,118] =====================================================================================
  1424. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  1425. [Logging Date Time: 2016-10-21 17:37:01,119] =====================================================================================
  1426. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1427. [Logging Date Time: 2016-10-21 17:37:01,119] =====================================================================================
  1428. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1429. [Logging Date Time: 2016-10-21 17:37:01,347] =====================================================================================
  1430. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1431. [Logging Date Time: 2016-10-21 17:37:01,347] =====================================================================================
  1432. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1433. [Logging Date Time: 2016-10-21 17:37:01,347] =====================================================================================
  1434. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1435. [Logging Date Time: 2016-10-21 17:37:01,347] =====================================================================================
  1436. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1437. [Logging Date Time: 2016-10-21 17:37:01,347] =====================================================================================
  1438. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1439. [Logging Date Time: 2016-10-21 17:37:01,347] =====================================================================================
  1440. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1441. [Logging Date Time: 2016-10-21 17:37:01,435] =====================================================================================
  1442. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1443. [Logging Date Time: 2016-10-21 17:37:01,435] =====================================================================================
  1444. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1445. [Logging Date Time: 2016-10-21 17:37:01,435] =====================================================================================
  1446. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1447. [Logging Date Time: 2016-10-21 17:37:01,435] =====================================================================================
  1448. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,]]
  1449. [Logging Date Time: 2016-10-21 17:37:01,436] =====================================================================================
  1450. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1451. [Logging Date Time: 2016-10-21 17:37:01,436] =====================================================================================
  1452. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1453. [Logging Date Time: 2016-10-21 17:37:01,737] =====================================================================================
  1454. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1455. [Logging Date Time: 2016-10-21 17:37:01,737] =====================================================================================
  1456. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1457. [Logging Date Time: 2016-10-21 17:37:01,737] =====================================================================================
  1458. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1459. [Logging Date Time: 2016-10-21 17:37:01,737] =====================================================================================
  1460. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1461. [Logging Date Time: 2016-10-21 17:37:01,737] =====================================================================================
  1462. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1463. [Logging Date Time: 2016-10-21 17:37:01,737] =====================================================================================
  1464. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1465. [Logging Date Time: 2016-10-21 17:37:01,974] =====================================================================================
  1466. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1467. [Logging Date Time: 2016-10-21 17:37:01,974] =====================================================================================
  1468. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1469. [Logging Date Time: 2016-10-21 17:37:01,975] =====================================================================================
  1470. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1471. [Logging Date Time: 2016-10-21 17:37:01,975] =====================================================================================
  1472. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1473. [Logging Date Time: 2016-10-21 17:37:01,975] =====================================================================================
  1474. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1475. [Logging Date Time: 2016-10-21 17:37:01,975] =====================================================================================
  1476. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1477. [Logging Date Time: 2016-10-21 17:37:06,421] =====================================================================================
  1478. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = '1']
  1479. [Logging Date Time: 2016-10-21 17:37:06,421] =====================================================================================
  1480. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = '1']
  1481. [Logging Date Time: 2016-10-21 17:37:06,551] =====================================================================================
  1482. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = (SELECT CATEGORY_RID FROM EFORM_CATEGORY WHERE CATEGORY_ID = :param0 )]
  1483. [Logging Date Time: 2016-10-21 17:37:06,551] =====================================================================================
  1484. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] PreparedStatement : [SELECT CATEGORY_TYPE, CATEGORY_ID, CATEGORY_NAME FROM EFORM_CATEGORY WHERE USE_YN = 'Y' AND P_CATEGORY_RID = (SELECT CATEGORY_RID FROM EFORM_CATEGORY WHERE CATEGORY_ID = :param0 )]
  1485. [Logging Date Time: 2016-10-21 17:37:06,551] =====================================================================================
  1486. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA]]
  1487. [Logging Date Time: 2016-10-21 17:37:06,551] =====================================================================================
  1488. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA]]
  1489. [Logging Date Time: 2016-10-21 17:37:06,551] =====================================================================================
  1490. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Types: [param0=[AnsiString, System.String]]
  1491. [Logging Date Time: 2016-10-21 17:37:06,551] =====================================================================================
  1492. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Types: [param0=[AnsiString, System.String]]
  1493. [Logging Date Time: 2016-10-21 17:37:07,521] =====================================================================================
  1494. SQL Command - Statement Id: [GET_CONSENT_BY_SEARCH_LIST] PreparedStatement : [SELECT F.FORM_CD, F.FORM_GUID, F.FORM_NAME, F.FULL_CATEGORY_NAME, F.FORM_RID, F.PRNTCNT, F.PRINT_ONLY, F.OCRTAGPRNTYN FROM (SELECT F.FORM_CD, F.FORM_GUID, F.FORM_NAME, N.FULL_CATEGORY_NAME AS FULL_CATEGORY_NAME, F.FORM_RID, F.PRNTCNT, F.PRINT_ONLY, F.OCRTAGPRNTYN FROM V_EFORM_FORMDOC F, ( SELECT CATEGORY_RID, LEVEL FROM EFORM_CATEGORY START WITH CATEGORY_RID = (SELECT CATEGORY_RID FROM EFORM_CATEGORY WHERE CATEGORY_ID = :param0 ) CONNECT BY P_CATEGORY_RID = PRIOR CATEGORY_RID ) C, ( SELECT CATEGORY_RID,CATEGORY_NAME, LTRIM (SYS_CONNECT_BY_PATH (CATEGORY_NAME, '>'), '>') AS FULL_CATEGORY_NAME, LEVEL FROM EFORM_CATEGORY START WITH CATEGORY_RID = '1' CONNECT BY P_CATEGORY_RID = PRIOR CATEGORY_RID ) N WHERE F.CATEGORY_RID = C.CATEGORY_RID AND C.CATEGORY_RID = N.CATEGORY_RID AND (REPLACE(UPPER(F.FORM_NAME),' ','') LIKE REPLACE(UPPER( :param1 ),' ','') OR UPPER(F.FORM_CD) LIKE UPPER( :param1 )) ) F ORDER BY F.FORM_NAME]
  1495. [Logging Date Time: 2016-10-21 17:37:07,521] =====================================================================================
  1496. SQL Command - Statement Id: [GET_CONSENT_BY_SEARCH_LIST] PreparedStatement : [SELECT F.FORM_CD, F.FORM_GUID, F.FORM_NAME, F.FULL_CATEGORY_NAME, F.FORM_RID, F.PRNTCNT, F.PRINT_ONLY, F.OCRTAGPRNTYN FROM (SELECT F.FORM_CD, F.FORM_GUID, F.FORM_NAME, N.FULL_CATEGORY_NAME AS FULL_CATEGORY_NAME, F.FORM_RID, F.PRNTCNT, F.PRINT_ONLY, F.OCRTAGPRNTYN FROM V_EFORM_FORMDOC F, ( SELECT CATEGORY_RID, LEVEL FROM EFORM_CATEGORY START WITH CATEGORY_RID = (SELECT CATEGORY_RID FROM EFORM_CATEGORY WHERE CATEGORY_ID = :param0 ) CONNECT BY P_CATEGORY_RID = PRIOR CATEGORY_RID ) C, ( SELECT CATEGORY_RID,CATEGORY_NAME, LTRIM (SYS_CONNECT_BY_PATH (CATEGORY_NAME, '>'), '>') AS FULL_CATEGORY_NAME, LEVEL FROM EFORM_CATEGORY START WITH CATEGORY_RID = '1' CONNECT BY P_CATEGORY_RID = PRIOR CATEGORY_RID ) N WHERE F.CATEGORY_RID = C.CATEGORY_RID AND C.CATEGORY_RID = N.CATEGORY_RID AND (REPLACE(UPPER(F.FORM_NAME),' ','') LIKE REPLACE(UPPER( :param1 ),' ','') OR UPPER(F.FORM_CD) LIKE UPPER( :param1 )) ) F ORDER BY F.FORM_NAME]
  1497. [Logging Date Time: 2016-10-21 17:37:07,521] =====================================================================================
  1498. SQL Command - Statement Id: [GET_CONSENT_BY_SEARCH_LIST] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA], param1=[key_word,%%%%]]
  1499. [Logging Date Time: 2016-10-21 17:37:07,521] =====================================================================================
  1500. SQL Command - Statement Id: [GET_CONSENT_BY_SEARCH_LIST] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA], param1=[key_word,%%%%]]
  1501. [Logging Date Time: 2016-10-21 17:37:07,521] =====================================================================================
  1502. SQL Command - Statement Id: [GET_CONSENT_BY_SEARCH_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1503. [Logging Date Time: 2016-10-21 17:37:07,521] =====================================================================================
  1504. SQL Command - Statement Id: [GET_CONSENT_BY_SEARCH_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  1505. [Logging Date Time: 2016-10-21 17:37:09,345] =====================================================================================
  1506. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  1507. [Logging Date Time: 2016-10-21 17:37:09,345] =====================================================================================
  1508. SQL Command - Statement Id: [getWardList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 1 as sort from dual UNION ALL select dept.deptcd as deptcd, dept.depthngnm as deptnm, 2 as sort from com.zsdddept dept where dept.instcd = '111' and dept.orddeptflag = 'W' and dept.orduseyn = 'Y' and dept.valifromdd <= to_char(sysdate,'yyyymmdd') and dept.valitodd >= to_char(sysdate,'yyyymmdd') order by sort, deptnm asc]
  1509. [Logging Date Time: 2016-10-21 17:37:09,478] =====================================================================================
  1510. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1511. [Logging Date Time: 2016-10-21 17:37:09,478] =====================================================================================
  1512. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1513. [Logging Date Time: 2016-10-21 17:37:09,478] =====================================================================================
  1514. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1515. [Logging Date Time: 2016-10-21 17:37:09,478] =====================================================================================
  1516. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1517. [Logging Date Time: 2016-10-21 17:37:09,478] =====================================================================================
  1518. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1519. [Logging Date Time: 2016-10-21 17:37:09,478] =====================================================================================
  1520. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1521. [Logging Date Time: 2016-10-21 17:37:09,588] =====================================================================================
  1522. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1523. [Logging Date Time: 2016-10-21 17:37:09,588] =====================================================================================
  1524. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1525. [Logging Date Time: 2016-10-21 17:37:09,588] =====================================================================================
  1526. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1527. [Logging Date Time: 2016-10-21 17:37:09,588] =====================================================================================
  1528. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1529. [Logging Date Time: 2016-10-21 17:37:09,588] =====================================================================================
  1530. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1531. [Logging Date Time: 2016-10-21 17:37:09,588] =====================================================================================
  1532. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1533. [Logging Date Time: 2016-10-21 17:37:11,351] =====================================================================================
  1534. SQL Command - Statement Id: [getInPatList] PreparedStatement : [SELECT ptbs.pid AS pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) AS indd, inpt.indd AS orddd, inpt.cretno AS cretno, inpt.seqno AS seqno, inpt.instcd AS instcd, ptbs.hngnm AS hngnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'P0021' and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd and code.cdid = inpt.fsexamflag) AS fsexamflag, /*+ index_desc(icdr IX_PMIHICDR_03) */ icdr.orddeptcd AS orddeptcd, icdr.medispclid AS doctorid, TO_DATE('20161021') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.depthngnm AS deptnm, dept.DEPTENGABBR AS deptengabbr, NVL((SELECT usernm FROM com.zsumusrb WHERE userid = icdr.medispclid AND userfromdd <= :param0 AND usertodd >= :param0 ), '-') AS doctornm, (SELECT term.termengnm FROM emr.mmohdiag diag, emr.mrtmterm term WHERE diag.diagcd = term.termcd AND diag.instcd = term.instcd AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.pid = inpt.pid AND diag.orddd = inpt.indd AND diag.cretno = inpt.cretno AND diag.orddeptcd = icdr.orddeptcd AND diag.instcd = inpt.instcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND ROWNUM = 1) AS diagnm, CASE inpt.indschacptstat WHEN 'D' THEN '퇴원' WHEN 'T' THEN '가퇴원' ELSE (CASE inpt.dschnotiyn WHEN 'Y' THEN '퇴원통보' ELSE (CASE inpt.dschdclrtyn WHEN 'Y' THEN '퇴원예고' ELSE '-' END) END) END AS dschnoti, icdr.roomcd AS roomcd, CASE WHEN (SELECT COUNT(instcd) FROM emr.mmrhcnstinfo WHERE pid = inpt.pid AND orddd = inpt.indd AND cretno = inpt.cretno AND reqdd = :param0 AND chosflag IN ('I','E') AND cnstflag IN ('1','2') AND ROWNUM = 1) > 0 THEN 'Y' ELSE 'N' END AS cnst, icdr.ordtype AS ordtype, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' AS elbulbodstat, 'N' AS ordtm FROM pam.pmihinpt inpt, pam.pmihicdr icdr, com.zsdddept dept, pam.pmcmptbs ptbs WHERE inpt.histstat = 'Y' AND inpt.mskind = 'M' AND icdr.ordtype IN ('I', 'D') AND inpt.instcd = :param1 AND inpt.pid = icdr.pid AND inpt.pid = icdr.pid AND inpt.indd = icdr.indd AND inpt.cretno = icdr.cretno AND inpt.instcd = icdr.instcd AND inpt.histstat = icdr.histstat AND icdr.fromdd <= :param0 AND icdr.todd >= :param0 AND icdr.pid = ptbs.pid AND icdr.instcd = ptbs.instcd AND icdr.instcd = dept.instcd AND icdr.orddeptcd = dept.deptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.valifromdd <= :param0 AND dept.valitodd >= :param0 AND icdr.wardcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  1535. [Logging Date Time: 2016-10-21 17:37:11,351] =====================================================================================
  1536. SQL Command - Statement Id: [getInPatList] PreparedStatement : [SELECT ptbs.pid AS pid, substr(inpt.indd,1,4) || '/' || substr(inpt.indd,5,2) || '/' || substr(inpt.indd,7,2) AS indd, inpt.indd AS orddd, inpt.cretno AS cretno, inpt.seqno AS seqno, inpt.instcd AS instcd, ptbs.hngnm AS hngnm, (select code.cdnm from com.zbcmcode code where code.cdgrupid = 'P0021' and code.valifromdd <= inpt.indd and code.valitodd >= inpt.indd and code.cdid = inpt.fsexamflag) AS fsexamflag, /*+ index_desc(icdr IX_PMIHICDR_03) */ icdr.orddeptcd AS orddeptcd, icdr.medispclid AS doctorid, TO_DATE('20161021') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161021', 'B', ptbs.brthdd), 12), 2, 0) || 'm') AS sa, dept.depthngnm AS deptnm, dept.DEPTENGABBR AS deptengabbr, NVL((SELECT usernm FROM com.zsumusrb WHERE userid = icdr.medispclid AND userfromdd <= :param0 AND usertodd >= :param0 ), '-') AS doctornm, (SELECT term.termengnm FROM emr.mmohdiag diag, emr.mrtmterm term WHERE diag.diagcd = term.termcd AND diag.instcd = term.instcd AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.pid = inpt.pid AND diag.orddd = inpt.indd AND diag.cretno = inpt.cretno AND diag.orddeptcd = icdr.orddeptcd AND diag.instcd = inpt.instcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND ROWNUM = 1) AS diagnm, CASE inpt.indschacptstat WHEN 'D' THEN '퇴원' WHEN 'T' THEN '가퇴원' ELSE (CASE inpt.dschnotiyn WHEN 'Y' THEN '퇴원통보' ELSE (CASE inpt.dschdclrtyn WHEN 'Y' THEN '퇴원예고' ELSE '-' END) END) END AS dschnoti, icdr.roomcd AS roomcd, CASE WHEN (SELECT COUNT(instcd) FROM emr.mmrhcnstinfo WHERE pid = inpt.pid AND orddd = inpt.indd AND cretno = inpt.cretno AND reqdd = :param0 AND chosflag IN ('I','E') AND cnstflag IN ('1','2') AND ROWNUM = 1) > 0 THEN 'Y' ELSE 'N' END AS cnst, icdr.ordtype AS ordtype, (SELECT z.cdnm FROM com.zbcmcode z WHERE inpt.insukind = z.cdid AND z.cdgrupid = 'P0008' AND inpt.indd BETWEEN z.valifromdd AND z.valitodd) AS bostyle, 'N' AS elbulbodstat, 'N' AS ordtm FROM pam.pmihinpt inpt, pam.pmihicdr icdr, com.zsdddept dept, pam.pmcmptbs ptbs WHERE inpt.histstat = 'Y' AND inpt.mskind = 'M' AND icdr.ordtype IN ('I', 'D') AND inpt.instcd = :param1 AND inpt.pid = icdr.pid AND inpt.pid = icdr.pid AND inpt.indd = icdr.indd AND inpt.cretno = icdr.cretno AND inpt.instcd = icdr.instcd AND inpt.histstat = icdr.histstat AND icdr.fromdd <= :param0 AND icdr.todd >= :param0 AND icdr.pid = ptbs.pid AND icdr.instcd = ptbs.instcd AND icdr.instcd = dept.instcd AND icdr.orddeptcd = dept.deptcd AND dept.orddeptflag = 'D' AND dept.orduseyn = 'Y' AND dept.valifromdd <= :param0 AND dept.valitodd >= :param0 AND icdr.wardcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  1537. [Logging Date Time: 2016-10-21 17:37:11,352] =====================================================================================
  1538. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161021], param1=[instcd,111], param2=[wardcd,3041400000]]
  1539. [Logging Date Time: 2016-10-21 17:37:11,352] =====================================================================================
  1540. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161021], param1=[instcd,111], param2=[wardcd,3041400000]]
  1541. [Logging Date Time: 2016-10-21 17:37:11,352] =====================================================================================
  1542. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1543. [Logging Date Time: 2016-10-21 17:37:11,352] =====================================================================================
  1544. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1545. [Logging Date Time: 2016-10-21 17:37:12,543] =====================================================================================
  1546. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1547. [Logging Date Time: 2016-10-21 17:37:12,543] =====================================================================================
  1548. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1549. [Logging Date Time: 2016-10-21 17:37:12,543] =====================================================================================
  1550. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  1551. [Logging Date Time: 2016-10-21 17:37:12,543] =====================================================================================
  1552. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,103043]]
  1553. [Logging Date Time: 2016-10-21 17:37:12,543] =====================================================================================
  1554. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1555. [Logging Date Time: 2016-10-21 17:37:12,543] =====================================================================================
  1556. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1557. [Logging Date Time: 2016-10-21 17:37:12,593] =====================================================================================
  1558. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1559. [Logging Date Time: 2016-10-21 17:37:12,593] =====================================================================================
  1560. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1561. [Logging Date Time: 2016-10-21 17:37:12,594] =====================================================================================
  1562. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1563. [Logging Date Time: 2016-10-21 17:37:12,594] =====================================================================================
  1564. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1565. [Logging Date Time: 2016-10-21 17:37:12,594] =====================================================================================
  1566. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1567. [Logging Date Time: 2016-10-21 17:37:12,594] =====================================================================================
  1568. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1569. [Logging Date Time: 2016-10-21 17:37:12,821] =====================================================================================
  1570. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1571. [Logging Date Time: 2016-10-21 17:37:12,821] =====================================================================================
  1572. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1573. [Logging Date Time: 2016-10-21 17:37:12,821] =====================================================================================
  1574. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1575. [Logging Date Time: 2016-10-21 17:37:12,821] =====================================================================================
  1576. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1577. [Logging Date Time: 2016-10-21 17:37:12,821] =====================================================================================
  1578. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1579. [Logging Date Time: 2016-10-21 17:37:12,821] =====================================================================================
  1580. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1581. [Logging Date Time: 2016-10-21 17:37:12,934] =====================================================================================
  1582. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1583. [Logging Date Time: 2016-10-21 17:37:12,934] =====================================================================================
  1584. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1585. [Logging Date Time: 2016-10-21 17:37:12,935] =====================================================================================
  1586. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1587. [Logging Date Time: 2016-10-21 17:37:12,935] =====================================================================================
  1588. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1589. [Logging Date Time: 2016-10-21 17:37:12,935] =====================================================================================
  1590. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1591. [Logging Date Time: 2016-10-21 17:37:12,935] =====================================================================================
  1592. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1593. [Logging Date Time: 2016-10-21 17:37:13,034] =====================================================================================
  1594. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1595. [Logging Date Time: 2016-10-21 17:37:13,034] =====================================================================================
  1596. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1597. [Logging Date Time: 2016-10-21 17:37:13,035] =====================================================================================
  1598. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1599. [Logging Date Time: 2016-10-21 17:37:13,035] =====================================================================================
  1600. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1601. [Logging Date Time: 2016-10-21 17:37:13,035] =====================================================================================
  1602. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1603. [Logging Date Time: 2016-10-21 17:37:13,035] =====================================================================================
  1604. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1605. [Logging Date Time: 2016-10-21 17:37:13,132] =====================================================================================
  1606. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1607. [Logging Date Time: 2016-10-21 17:37:13,132] =====================================================================================
  1608. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1609. [Logging Date Time: 2016-10-21 17:37:13,133] =====================================================================================
  1610. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1611. [Logging Date Time: 2016-10-21 17:37:13,133] =====================================================================================
  1612. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1613. [Logging Date Time: 2016-10-21 17:37:13,133] =====================================================================================
  1614. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1615. [Logging Date Time: 2016-10-21 17:37:13,133] =====================================================================================
  1616. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1617. [Logging Date Time: 2016-10-21 17:37:13,327] =====================================================================================
  1618. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  1619. [Logging Date Time: 2016-10-21 17:37:13,327] =====================================================================================
  1620. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  1621. [Logging Date Time: 2016-10-21 17:37:13,328] =====================================================================================
  1622. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  1623. [Logging Date Time: 2016-10-21 17:37:13,328] =====================================================================================
  1624. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  1625. [Logging Date Time: 2016-10-21 17:37:13,328] =====================================================================================
  1626. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1627. [Logging Date Time: 2016-10-21 17:37:13,328] =====================================================================================
  1628. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1629. [Logging Date Time: 2016-10-21 17:37:16,717] =====================================================================================
  1630. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  1631. [Logging Date Time: 2016-10-21 17:37:16,717] =====================================================================================
  1632. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  1633. [Logging Date Time: 2016-10-21 17:37:16,717] =====================================================================================
  1634. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  1635. [Logging Date Time: 2016-10-21 17:37:16,717] =====================================================================================
  1636. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  1637. [Logging Date Time: 2016-10-21 17:37:16,717] =====================================================================================
  1638. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1639. [Logging Date Time: 2016-10-21 17:37:16,717] =====================================================================================
  1640. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1641. [Logging Date Time: 2016-10-21 18:35:36,980] =====================================================================================
  1642. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate , a.consent_mst_rid as consentmstrid , a.cln_date as orddd , a.visit_type as ordtype , a.cln_dept_cd as orddeptcd from cmr.consent_mst a where a.cosign_dc_id = :param0 and a.consent_state in ()]
  1643. [Logging Date Time: 2016-10-21 18:35:36,980] =====================================================================================
  1644. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate , a.consent_mst_rid as consentmstrid , a.cln_date as orddd , a.visit_type as ordtype , a.cln_dept_cd as orddeptcd from cmr.consent_mst a where a.cosign_dc_id = :param0 and a.consent_state in ()]
  1645. [Logging Date Time: 2016-10-21 18:35:37,129] =====================================================================================
  1646. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  1647. [Logging Date Time: 2016-10-21 18:35:37,129] =====================================================================================
  1648. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  1649. [Logging Date Time: 2016-10-21 18:35:37,129] =====================================================================================
  1650. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  1651. [Logging Date Time: 2016-10-21 18:35:37,129] =====================================================================================
  1652. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  1653. [Logging Date Time: 2016-10-21 18:35:37,344] =====================================================================================
  1654. SQL Command - CLIP.eForm error: ORA-00936: 누락된 표현식
  1655. [Logging Date Time: 2016-10-21 18:35:41,364] =====================================================================================
  1656. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate , a.consent_mst_rid as consentmstrid , a.cln_date as orddd , a.visit_type as ordtype , a.cln_dept_cd as orddeptcd from cmr.consent_mst a where a.cosign_dc_id = :param0]
  1657. [Logging Date Time: 2016-10-21 18:35:41,364] =====================================================================================
  1658. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate , a.consent_mst_rid as consentmstrid , a.cln_date as orddd , a.visit_type as ordtype , a.cln_dept_cd as orddeptcd from cmr.consent_mst a where a.cosign_dc_id = :param0]
  1659. [Logging Date Time: 2016-10-21 18:35:41,364] =====================================================================================
  1660. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  1661. [Logging Date Time: 2016-10-21 18:35:41,364] =====================================================================================
  1662. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  1663. [Logging Date Time: 2016-10-21 18:35:41,364] =====================================================================================
  1664. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  1665. [Logging Date Time: 2016-10-21 18:35:41,364] =====================================================================================
  1666. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  1667. [Logging Date Time: 2016-10-21 18:35:41,574] =====================================================================================
  1668. SQL Command - CLIP.eForm error: 지정한 캐스트가 잘못되었습니다.
  1669. [Logging Date Time: 2016-10-21 18:38:54,970] =====================================================================================
  1670. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate , a.consent_mst_rid as consentmstrid , a.cln_date as orddd , a.visit_type as ordtype , a.cln_dept_cd as orddeptcd from cmr.consent_mst a where a.cosign_dc_id = :param0 and a.consent_state in ()]
  1671. [Logging Date Time: 2016-10-21 18:38:54,970] =====================================================================================
  1672. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate , a.consent_mst_rid as consentmstrid , a.cln_date as orddd , a.visit_type as ordtype , a.cln_dept_cd as orddeptcd from cmr.consent_mst a where a.cosign_dc_id = :param0 and a.consent_state in ()]
  1673. [Logging Date Time: 2016-10-21 18:38:55,018] =====================================================================================
  1674. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  1675. [Logging Date Time: 2016-10-21 18:38:55,018] =====================================================================================
  1676. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  1677. [Logging Date Time: 2016-10-21 18:38:55,018] =====================================================================================
  1678. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  1679. [Logging Date Time: 2016-10-21 18:38:55,018] =====================================================================================
  1680. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  1681. [Logging Date Time: 2016-10-21 18:38:55,048] =====================================================================================
  1682. SQL Command - CLIP.eForm error: ORA-00936: 누락된 표현식
  1683. [Logging Date Time: 2016-10-21 18:38:58,822] =====================================================================================
  1684. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate , a.consent_mst_rid as consentmstrid , a.cln_date as orddd , a.visit_type as ordtype , a.cln_dept_cd as orddeptcd from cmr.consent_mst a where a.cosign_dc_id = :param0]
  1685. [Logging Date Time: 2016-10-21 18:38:58,822] =====================================================================================
  1686. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] PreparedStatement : [select pid, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.pid = a.pid and ptbs.instcd = '111') as hngnm, (select v.FORM_CD from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formcd, (select v.FORM_NAME from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as formnm, (select v.PRINT_ONLY from cmr.v_eform_formdoc v where v.FORM_RID = a.form_rid) as printonly, a.order_date as orderdate, (select s.cert_target from cmr.consent_image_sign s where s.consent_mst_rid = a.consent_mst_rid) as certtarget , a.consent_state as consentstate , a.consent_mst_rid as consentmstrid , a.cln_date as orddd , a.visit_type as ordtype , a.cln_dept_cd as orddeptcd from cmr.consent_mst a where a.cosign_dc_id = :param0]
  1687. [Logging Date Time: 2016-10-21 18:38:58,823] =====================================================================================
  1688. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  1689. [Logging Date Time: 2016-10-21 18:38:58,823] =====================================================================================
  1690. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Parameters: [param0=[userid,104796]]
  1691. [Logging Date Time: 2016-10-21 18:38:58,823] =====================================================================================
  1692. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  1693. [Logging Date Time: 2016-10-21 18:38:58,823] =====================================================================================
  1694. SQL Command - Statement Id: [GetUnfinishedListPerDoctor] Types: [param0=[AnsiString, System.String]]
  1695. [Logging Date Time: 2016-10-21 18:45:20,003] =====================================================================================
  1696. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1697. [Logging Date Time: 2016-10-21 18:45:20,003] =====================================================================================
  1698. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1699. [Logging Date Time: 2016-10-21 18:45:20,047] =====================================================================================
  1700. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1701. [Logging Date Time: 2016-10-21 18:45:20,047] =====================================================================================
  1702. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1703. [Logging Date Time: 2016-10-21 18:45:20,047] =====================================================================================
  1704. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1705. [Logging Date Time: 2016-10-21 18:45:20,047] =====================================================================================
  1706. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1707. [Logging Date Time: 2016-10-21 18:45:20,196] =====================================================================================
  1708. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1709. [Logging Date Time: 2016-10-21 18:45:20,196] =====================================================================================
  1710. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1711. [Logging Date Time: 2016-10-21 18:45:20,197] =====================================================================================
  1712. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1713. [Logging Date Time: 2016-10-21 18:45:20,197] =====================================================================================
  1714. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1715. [Logging Date Time: 2016-10-21 18:45:20,197] =====================================================================================
  1716. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1717. [Logging Date Time: 2016-10-21 18:45:20,197] =====================================================================================
  1718. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1719. [Logging Date Time: 2016-10-21 18:45:20,504] =====================================================================================
  1720. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1721. [Logging Date Time: 2016-10-21 18:45:20,504] =====================================================================================
  1722. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1723. [Logging Date Time: 2016-10-21 18:45:20,505] =====================================================================================
  1724. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  1725. [Logging Date Time: 2016-10-21 18:45:20,505] =====================================================================================
  1726. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  1727. [Logging Date Time: 2016-10-21 18:45:20,505] =====================================================================================
  1728. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1729. [Logging Date Time: 2016-10-21 18:45:20,505] =====================================================================================
  1730. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1731. [Logging Date Time: 2016-10-21 18:45:20,606] =====================================================================================
  1732. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1733. [Logging Date Time: 2016-10-21 18:45:20,606] =====================================================================================
  1734. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1735. [Logging Date Time: 2016-10-21 18:45:20,608] =====================================================================================
  1736. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1737. [Logging Date Time: 2016-10-21 18:45:20,608] =====================================================================================
  1738. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1739. [Logging Date Time: 2016-10-21 18:45:20,608] =====================================================================================
  1740. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1741. [Logging Date Time: 2016-10-21 18:45:20,608] =====================================================================================
  1742. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1743. [Logging Date Time: 2016-10-21 18:45:20,805] =====================================================================================
  1744. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1745. [Logging Date Time: 2016-10-21 18:45:20,805] =====================================================================================
  1746. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1747. [Logging Date Time: 2016-10-21 18:45:20,806] =====================================================================================
  1748. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1749. [Logging Date Time: 2016-10-21 18:45:20,806] =====================================================================================
  1750. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1751. [Logging Date Time: 2016-10-21 18:45:20,806] =====================================================================================
  1752. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1753. [Logging Date Time: 2016-10-21 18:45:20,806] =====================================================================================
  1754. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1755. [Logging Date Time: 2016-10-21 18:45:20,910] =====================================================================================
  1756. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1757. [Logging Date Time: 2016-10-21 18:45:20,910] =====================================================================================
  1758. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1759. [Logging Date Time: 2016-10-21 18:45:20,911] =====================================================================================
  1760. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1761. [Logging Date Time: 2016-10-21 18:45:20,911] =====================================================================================
  1762. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1763. [Logging Date Time: 2016-10-21 18:45:20,911] =====================================================================================
  1764. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1765. [Logging Date Time: 2016-10-21 18:45:20,911] =====================================================================================
  1766. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1767. [Logging Date Time: 2016-10-21 18:45:21,007] =====================================================================================
  1768. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1769. [Logging Date Time: 2016-10-21 18:45:21,007] =====================================================================================
  1770. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1771. [Logging Date Time: 2016-10-21 18:45:21,008] =====================================================================================
  1772. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1773. [Logging Date Time: 2016-10-21 18:45:21,008] =====================================================================================
  1774. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1775. [Logging Date Time: 2016-10-21 18:45:21,008] =====================================================================================
  1776. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1777. [Logging Date Time: 2016-10-21 18:45:21,008] =====================================================================================
  1778. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1779. [Logging Date Time: 2016-10-21 18:45:21,098] =====================================================================================
  1780. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1781. [Logging Date Time: 2016-10-21 18:45:21,098] =====================================================================================
  1782. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1783. [Logging Date Time: 2016-10-21 18:45:21,099] =====================================================================================
  1784. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1785. [Logging Date Time: 2016-10-21 18:45:21,099] =====================================================================================
  1786. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1787. [Logging Date Time: 2016-10-21 18:45:21,099] =====================================================================================
  1788. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1789. [Logging Date Time: 2016-10-21 18:45:21,099] =====================================================================================
  1790. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1791. [Logging Date Time: 2016-10-21 18:45:21,220] =====================================================================================
  1792. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1793. [Logging Date Time: 2016-10-21 18:45:21,220] =====================================================================================
  1794. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1795. [Logging Date Time: 2016-10-21 18:45:21,221] =====================================================================================
  1796. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1797. [Logging Date Time: 2016-10-21 18:45:21,221] =====================================================================================
  1798. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1799. [Logging Date Time: 2016-10-21 18:45:21,221] =====================================================================================
  1800. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1801. [Logging Date Time: 2016-10-21 18:45:21,221] =====================================================================================
  1802. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1803. [Logging Date Time: 2016-10-21 18:45:21,293] =====================================================================================
  1804. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1805. [Logging Date Time: 2016-10-21 18:45:21,293] =====================================================================================
  1806. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1807. [Logging Date Time: 2016-10-21 18:45:21,294] =====================================================================================
  1808. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1809. [Logging Date Time: 2016-10-21 18:45:21,294] =====================================================================================
  1810. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1811. [Logging Date Time: 2016-10-21 18:45:21,294] =====================================================================================
  1812. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1813. [Logging Date Time: 2016-10-21 18:45:21,294] =====================================================================================
  1814. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1815. [Logging Date Time: 2016-10-21 18:45:21,410] =====================================================================================
  1816. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1817. [Logging Date Time: 2016-10-21 18:45:21,410] =====================================================================================
  1818. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1819. [Logging Date Time: 2016-10-21 18:45:21,411] =====================================================================================
  1820. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1821. [Logging Date Time: 2016-10-21 18:45:21,411] =====================================================================================
  1822. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1823. [Logging Date Time: 2016-10-21 18:45:21,411] =====================================================================================
  1824. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1825. [Logging Date Time: 2016-10-21 18:45:21,411] =====================================================================================
  1826. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1827. [Logging Date Time: 2016-10-21 18:45:22,151] =====================================================================================
  1828. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  1829. [Logging Date Time: 2016-10-21 18:45:22,151] =====================================================================================
  1830. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  1831. [Logging Date Time: 2016-10-21 18:45:22,151] =====================================================================================
  1832. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  1833. [Logging Date Time: 2016-10-21 18:45:22,151] =====================================================================================
  1834. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  1835. [Logging Date Time: 2016-10-21 18:45:22,151] =====================================================================================
  1836. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1837. [Logging Date Time: 2016-10-21 18:45:22,151] =====================================================================================
  1838. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1839. [Logging Date Time: 2016-10-21 18:45:22,331] =====================================================================================
  1840. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  1841. [Logging Date Time: 2016-10-21 18:45:22,331] =====================================================================================
  1842. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  1843. [Logging Date Time: 2016-10-21 18:45:22,331] =====================================================================================
  1844. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  1845. [Logging Date Time: 2016-10-21 18:45:22,331] =====================================================================================
  1846. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  1847. [Logging Date Time: 2016-10-21 18:45:22,331] =====================================================================================
  1848. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  1849. [Logging Date Time: 2016-10-21 18:45:22,331] =====================================================================================
  1850. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  1851. [Logging Date Time: 2016-10-21 18:45:24,010] =====================================================================================
  1852. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1853. [Logging Date Time: 2016-10-21 18:45:24,010] =====================================================================================
  1854. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  1855. [Logging Date Time: 2016-10-21 18:45:24,010] =====================================================================================
  1856. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1857. [Logging Date Time: 2016-10-21 18:45:24,010] =====================================================================================
  1858. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  1859. [Logging Date Time: 2016-10-21 18:45:24,010] =====================================================================================
  1860. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1861. [Logging Date Time: 2016-10-21 18:45:24,010] =====================================================================================
  1862. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  1863. [Logging Date Time: 2016-10-21 18:45:24,190] =====================================================================================
  1864. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1865. [Logging Date Time: 2016-10-21 18:45:24,190] =====================================================================================
  1866. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  1867. [Logging Date Time: 2016-10-21 18:45:24,190] =====================================================================================
  1868. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1869. [Logging Date Time: 2016-10-21 18:45:24,190] =====================================================================================
  1870. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  1871. [Logging Date Time: 2016-10-21 18:45:24,190] =====================================================================================
  1872. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1873. [Logging Date Time: 2016-10-21 18:45:24,190] =====================================================================================
  1874. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1875. [Logging Date Time: 2016-10-21 18:45:24,904] =====================================================================================
  1876. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1877. [Logging Date Time: 2016-10-21 18:45:24,904] =====================================================================================
  1878. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1879. [Logging Date Time: 2016-10-21 18:45:24,904] =====================================================================================
  1880. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  1881. [Logging Date Time: 2016-10-21 18:45:24,904] =====================================================================================
  1882. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  1883. [Logging Date Time: 2016-10-21 18:45:24,904] =====================================================================================
  1884. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1885. [Logging Date Time: 2016-10-21 18:45:24,904] =====================================================================================
  1886. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1887. [Logging Date Time: 2016-10-21 18:45:24,955] =====================================================================================
  1888. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1889. [Logging Date Time: 2016-10-21 18:45:24,955] =====================================================================================
  1890. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1891. [Logging Date Time: 2016-10-21 18:45:24,956] =====================================================================================
  1892. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1893. [Logging Date Time: 2016-10-21 18:45:24,956] =====================================================================================
  1894. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1895. [Logging Date Time: 2016-10-21 18:45:24,956] =====================================================================================
  1896. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1897. [Logging Date Time: 2016-10-21 18:45:24,956] =====================================================================================
  1898. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1899. [Logging Date Time: 2016-10-21 18:45:25,040] =====================================================================================
  1900. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1901. [Logging Date Time: 2016-10-21 18:45:25,040] =====================================================================================
  1902. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1903. [Logging Date Time: 2016-10-21 18:45:25,040] =====================================================================================
  1904. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1905. [Logging Date Time: 2016-10-21 18:45:25,040] =====================================================================================
  1906. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1907. [Logging Date Time: 2016-10-21 18:45:25,040] =====================================================================================
  1908. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1909. [Logging Date Time: 2016-10-21 18:45:25,040] =====================================================================================
  1910. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1911. [Logging Date Time: 2016-10-21 18:45:25,096] =====================================================================================
  1912. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1913. [Logging Date Time: 2016-10-21 18:45:25,096] =====================================================================================
  1914. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1915. [Logging Date Time: 2016-10-21 18:45:25,097] =====================================================================================
  1916. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1917. [Logging Date Time: 2016-10-21 18:45:25,097] =====================================================================================
  1918. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1919. [Logging Date Time: 2016-10-21 18:45:25,097] =====================================================================================
  1920. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1921. [Logging Date Time: 2016-10-21 18:45:25,097] =====================================================================================
  1922. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1923. [Logging Date Time: 2016-10-21 18:45:25,184] =====================================================================================
  1924. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1925. [Logging Date Time: 2016-10-21 18:45:25,184] =====================================================================================
  1926. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1927. [Logging Date Time: 2016-10-21 18:45:25,185] =====================================================================================
  1928. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1929. [Logging Date Time: 2016-10-21 18:45:25,185] =====================================================================================
  1930. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1931. [Logging Date Time: 2016-10-21 18:45:25,185] =====================================================================================
  1932. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1933. [Logging Date Time: 2016-10-21 18:45:25,185] =====================================================================================
  1934. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1935. [Logging Date Time: 2016-10-21 18:45:25,330] =====================================================================================
  1936. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  1937. [Logging Date Time: 2016-10-21 18:45:25,330] =====================================================================================
  1938. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  1939. [Logging Date Time: 2016-10-21 18:45:25,330] =====================================================================================
  1940. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  1941. [Logging Date Time: 2016-10-21 18:45:25,330] =====================================================================================
  1942. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  1943. [Logging Date Time: 2016-10-21 18:45:25,330] =====================================================================================
  1944. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1945. [Logging Date Time: 2016-10-21 18:45:25,330] =====================================================================================
  1946. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1947. [Logging Date Time: 2016-10-21 18:45:25,437] =====================================================================================
  1948. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  1949. [Logging Date Time: 2016-10-21 18:45:25,437] =====================================================================================
  1950. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  1951. [Logging Date Time: 2016-10-21 18:45:25,437] =====================================================================================
  1952. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  1953. [Logging Date Time: 2016-10-21 18:45:25,437] =====================================================================================
  1954. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  1955. [Logging Date Time: 2016-10-21 18:45:25,437] =====================================================================================
  1956. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  1957. [Logging Date Time: 2016-10-21 18:45:25,437] =====================================================================================
  1958. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  1959. [Logging Date Time: 2016-10-21 18:45:26,973] =====================================================================================
  1960. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1961. [Logging Date Time: 2016-10-21 18:45:26,973] =====================================================================================
  1962. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  1963. [Logging Date Time: 2016-10-21 18:45:26,974] =====================================================================================
  1964. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  1965. [Logging Date Time: 2016-10-21 18:45:26,974] =====================================================================================
  1966. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  1967. [Logging Date Time: 2016-10-21 18:45:26,974] =====================================================================================
  1968. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1969. [Logging Date Time: 2016-10-21 18:45:26,974] =====================================================================================
  1970. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  1971. [Logging Date Time: 2016-10-21 18:45:27,026] =====================================================================================
  1972. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1973. [Logging Date Time: 2016-10-21 18:45:27,026] =====================================================================================
  1974. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1975. [Logging Date Time: 2016-10-21 18:45:27,027] =====================================================================================
  1976. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1977. [Logging Date Time: 2016-10-21 18:45:27,027] =====================================================================================
  1978. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  1979. [Logging Date Time: 2016-10-21 18:45:27,027] =====================================================================================
  1980. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1981. [Logging Date Time: 2016-10-21 18:45:27,027] =====================================================================================
  1982. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  1983. [Logging Date Time: 2016-10-21 18:45:27,113] =====================================================================================
  1984. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1985. [Logging Date Time: 2016-10-21 18:45:27,113] =====================================================================================
  1986. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  1987. [Logging Date Time: 2016-10-21 18:45:27,113] =====================================================================================
  1988. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1989. [Logging Date Time: 2016-10-21 18:45:27,113] =====================================================================================
  1990. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  1991. [Logging Date Time: 2016-10-21 18:45:27,113] =====================================================================================
  1992. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1993. [Logging Date Time: 2016-10-21 18:45:27,113] =====================================================================================
  1994. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  1995. [Logging Date Time: 2016-10-21 18:45:27,160] =====================================================================================
  1996. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1997. [Logging Date Time: 2016-10-21 18:45:27,160] =====================================================================================
  1998. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  1999. [Logging Date Time: 2016-10-21 18:45:27,161] =====================================================================================
  2000. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2001. [Logging Date Time: 2016-10-21 18:45:27,161] =====================================================================================
  2002. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2003. [Logging Date Time: 2016-10-21 18:45:27,161] =====================================================================================
  2004. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2005. [Logging Date Time: 2016-10-21 18:45:27,161] =====================================================================================
  2006. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2007. [Logging Date Time: 2016-10-21 18:45:27,232] =====================================================================================
  2008. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2009. [Logging Date Time: 2016-10-21 18:45:27,232] =====================================================================================
  2010. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2011. [Logging Date Time: 2016-10-21 18:45:27,233] =====================================================================================
  2012. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2013. [Logging Date Time: 2016-10-21 18:45:27,233] =====================================================================================
  2014. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2015. [Logging Date Time: 2016-10-21 18:45:27,233] =====================================================================================
  2016. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2017. [Logging Date Time: 2016-10-21 18:45:27,233] =====================================================================================
  2018. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2019. [Logging Date Time: 2016-10-21 18:45:27,339] =====================================================================================
  2020. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  2021. [Logging Date Time: 2016-10-21 18:45:27,339] =====================================================================================
  2022. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  2023. [Logging Date Time: 2016-10-21 18:45:27,339] =====================================================================================
  2024. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  2025. [Logging Date Time: 2016-10-21 18:45:27,339] =====================================================================================
  2026. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  2027. [Logging Date Time: 2016-10-21 18:45:27,340] =====================================================================================
  2028. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2029. [Logging Date Time: 2016-10-21 18:45:27,340] =====================================================================================
  2030. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2031. [Logging Date Time: 2016-10-21 18:45:27,420] =====================================================================================
  2032. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  2033. [Logging Date Time: 2016-10-21 18:45:27,420] =====================================================================================
  2034. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  2035. [Logging Date Time: 2016-10-21 18:45:27,420] =====================================================================================
  2036. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  2037. [Logging Date Time: 2016-10-21 18:45:27,420] =====================================================================================
  2038. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  2039. [Logging Date Time: 2016-10-21 18:45:27,420] =====================================================================================
  2040. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  2041. [Logging Date Time: 2016-10-21 18:45:27,420] =====================================================================================
  2042. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  2043. [Logging Date Time: 2016-10-21 18:45:29,651] =====================================================================================
  2044. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  2045. [Logging Date Time: 2016-10-21 18:45:29,651] =====================================================================================
  2046. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  2047. [Logging Date Time: 2016-10-21 18:45:29,651] =====================================================================================
  2048. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  2049. [Logging Date Time: 2016-10-21 18:45:29,651] =====================================================================================
  2050. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  2051. [Logging Date Time: 2016-10-21 18:45:29,652] =====================================================================================
  2052. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  2053. [Logging Date Time: 2016-10-21 18:45:29,652] =====================================================================================
  2054. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  2055. [Logging Date Time: 2016-10-21 18:45:29,705] =====================================================================================
  2056. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2057. [Logging Date Time: 2016-10-21 18:45:29,705] =====================================================================================
  2058. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2059. [Logging Date Time: 2016-10-21 18:45:29,706] =====================================================================================
  2060. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2061. [Logging Date Time: 2016-10-21 18:45:29,706] =====================================================================================
  2062. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2063. [Logging Date Time: 2016-10-21 18:45:29,706] =====================================================================================
  2064. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2065. [Logging Date Time: 2016-10-21 18:45:29,706] =====================================================================================
  2066. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2067. [Logging Date Time: 2016-10-21 18:45:29,777] =====================================================================================
  2068. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2069. [Logging Date Time: 2016-10-21 18:45:29,777] =====================================================================================
  2070. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2071. [Logging Date Time: 2016-10-21 18:45:29,777] =====================================================================================
  2072. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  2073. [Logging Date Time: 2016-10-21 18:45:29,777] =====================================================================================
  2074. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  2075. [Logging Date Time: 2016-10-21 18:45:29,777] =====================================================================================
  2076. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2077. [Logging Date Time: 2016-10-21 18:45:29,777] =====================================================================================
  2078. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2079. [Logging Date Time: 2016-10-21 18:45:29,827] =====================================================================================
  2080. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2081. [Logging Date Time: 2016-10-21 18:45:29,827] =====================================================================================
  2082. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2083. [Logging Date Time: 2016-10-21 18:45:29,828] =====================================================================================
  2084. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2085. [Logging Date Time: 2016-10-21 18:45:29,828] =====================================================================================
  2086. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2087. [Logging Date Time: 2016-10-21 18:45:29,828] =====================================================================================
  2088. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2089. [Logging Date Time: 2016-10-21 18:45:29,828] =====================================================================================
  2090. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2091. [Logging Date Time: 2016-10-21 18:45:29,905] =====================================================================================
  2092. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2093. [Logging Date Time: 2016-10-21 18:45:29,905] =====================================================================================
  2094. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2095. [Logging Date Time: 2016-10-21 18:45:29,905] =====================================================================================
  2096. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2097. [Logging Date Time: 2016-10-21 18:45:29,905] =====================================================================================
  2098. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2099. [Logging Date Time: 2016-10-21 18:45:29,905] =====================================================================================
  2100. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2101. [Logging Date Time: 2016-10-21 18:45:29,905] =====================================================================================
  2102. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2103. [Logging Date Time: 2016-10-21 18:45:30,009] =====================================================================================
  2104. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  2105. [Logging Date Time: 2016-10-21 18:45:30,009] =====================================================================================
  2106. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  2107. [Logging Date Time: 2016-10-21 18:45:30,009] =====================================================================================
  2108. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  2109. [Logging Date Time: 2016-10-21 18:45:30,009] =====================================================================================
  2110. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  2111. [Logging Date Time: 2016-10-21 18:45:30,009] =====================================================================================
  2112. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2113. [Logging Date Time: 2016-10-21 18:45:30,009] =====================================================================================
  2114. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2115. [Logging Date Time: 2016-10-21 18:45:30,073] =====================================================================================
  2116. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  2117. [Logging Date Time: 2016-10-21 18:45:30,073] =====================================================================================
  2118. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  2119. [Logging Date Time: 2016-10-21 18:45:30,073] =====================================================================================
  2120. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  2121. [Logging Date Time: 2016-10-21 18:45:30,073] =====================================================================================
  2122. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  2123. [Logging Date Time: 2016-10-21 18:45:30,073] =====================================================================================
  2124. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  2125. [Logging Date Time: 2016-10-21 18:45:30,073] =====================================================================================
  2126. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  2127. [Logging Date Time: 2016-10-21 18:49:36,554] =====================================================================================
  2128. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  2129. [Logging Date Time: 2016-10-21 18:49:36,554] =====================================================================================
  2130. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  2131. [Logging Date Time: 2016-10-21 18:49:36,554] =====================================================================================
  2132. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  2133. [Logging Date Time: 2016-10-21 18:49:36,554] =====================================================================================
  2134. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  2135. [Logging Date Time: 2016-10-21 18:49:36,554] =====================================================================================
  2136. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  2137. [Logging Date Time: 2016-10-21 18:49:36,554] =====================================================================================
  2138. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  2139. [Logging Date Time: 2016-10-21 18:49:36,660] =====================================================================================
  2140. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  2141. [Logging Date Time: 2016-10-21 18:49:36,660] =====================================================================================
  2142. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  2143. [Logging Date Time: 2016-10-21 18:49:36,660] =====================================================================================
  2144. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  2145. [Logging Date Time: 2016-10-21 18:49:36,660] =====================================================================================
  2146. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  2147. [Logging Date Time: 2016-10-21 18:49:36,660] =====================================================================================
  2148. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2149. [Logging Date Time: 2016-10-21 18:49:36,660] =====================================================================================
  2150. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2151. [Logging Date Time: 2016-10-21 18:49:36,913] =====================================================================================
  2152. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  2153. [Logging Date Time: 2016-10-21 18:49:36,913] =====================================================================================
  2154. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  2155. [Logging Date Time: 2016-10-21 18:49:36,914] =====================================================================================
  2156. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  2157. [Logging Date Time: 2016-10-21 18:49:36,914] =====================================================================================
  2158. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  2159. [Logging Date Time: 2016-10-21 18:49:36,914] =====================================================================================
  2160. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  2161. [Logging Date Time: 2016-10-21 18:49:36,914] =====================================================================================
  2162. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  2163. [Logging Date Time: 2016-10-21 18:49:37,111] =====================================================================================
  2164. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2165. [Logging Date Time: 2016-10-21 18:49:37,111] =====================================================================================
  2166. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2167. [Logging Date Time: 2016-10-21 18:49:37,111] =====================================================================================
  2168. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  2169. [Logging Date Time: 2016-10-21 18:49:37,111] =====================================================================================
  2170. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  2171. [Logging Date Time: 2016-10-21 18:49:37,111] =====================================================================================
  2172. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2173. [Logging Date Time: 2016-10-21 18:49:37,111] =====================================================================================
  2174. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2175. [Logging Date Time: 2016-10-21 18:49:37,170] =====================================================================================
  2176. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2177. [Logging Date Time: 2016-10-21 18:49:37,170] =====================================================================================
  2178. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2179. [Logging Date Time: 2016-10-21 18:49:37,170] =====================================================================================
  2180. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  2181. [Logging Date Time: 2016-10-21 18:49:37,170] =====================================================================================
  2182. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  2183. [Logging Date Time: 2016-10-21 18:49:37,171] =====================================================================================
  2184. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2185. [Logging Date Time: 2016-10-21 18:49:37,171] =====================================================================================
  2186. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2187. [Logging Date Time: 2016-10-21 18:49:37,411] =====================================================================================
  2188. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  2189. [Logging Date Time: 2016-10-21 18:49:37,411] =====================================================================================
  2190. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  2191. [Logging Date Time: 2016-10-21 18:49:37,411] =====================================================================================
  2192. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  2193. [Logging Date Time: 2016-10-21 18:49:37,411] =====================================================================================
  2194. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  2195. [Logging Date Time: 2016-10-21 18:49:37,411] =====================================================================================
  2196. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  2197. [Logging Date Time: 2016-10-21 18:49:37,411] =====================================================================================
  2198. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  2199. [Logging Date Time: 2016-10-21 18:49:37,567] =====================================================================================
  2200. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  2201. [Logging Date Time: 2016-10-21 18:49:37,567] =====================================================================================
  2202. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  2203. [Logging Date Time: 2016-10-21 18:49:37,567] =====================================================================================
  2204. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  2205. [Logging Date Time: 2016-10-21 18:49:37,567] =====================================================================================
  2206. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  2207. [Logging Date Time: 2016-10-21 18:49:37,567] =====================================================================================
  2208. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2209. [Logging Date Time: 2016-10-21 18:49:37,567] =====================================================================================
  2210. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2211. [Logging Date Time: 2016-10-21 18:56:10,048] =====================================================================================
  2212. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  2213. [Logging Date Time: 2016-10-21 18:56:10,048] =====================================================================================
  2214. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  2215. [Logging Date Time: 2016-10-21 18:56:10,048] =====================================================================================
  2216. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  2217. [Logging Date Time: 2016-10-21 18:56:10,048] =====================================================================================
  2218. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  2219. [Logging Date Time: 2016-10-21 18:56:10,048] =====================================================================================
  2220. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  2221. [Logging Date Time: 2016-10-21 18:56:10,048] =====================================================================================
  2222. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  2223. [Logging Date Time: 2016-10-21 18:56:10,191] =====================================================================================
  2224. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  2225. [Logging Date Time: 2016-10-21 18:56:10,191] =====================================================================================
  2226. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  2227. [Logging Date Time: 2016-10-21 18:56:10,191] =====================================================================================
  2228. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  2229. [Logging Date Time: 2016-10-21 18:56:10,191] =====================================================================================
  2230. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  2231. [Logging Date Time: 2016-10-21 18:56:10,191] =====================================================================================
  2232. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2233. [Logging Date Time: 2016-10-21 18:56:10,191] =====================================================================================
  2234. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2235. [Logging Date Time: 2016-10-21 18:56:10,432] =====================================================================================
  2236. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  2237. [Logging Date Time: 2016-10-21 18:56:10,432] =====================================================================================
  2238. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  2239. [Logging Date Time: 2016-10-21 18:56:10,433] =====================================================================================
  2240. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  2241. [Logging Date Time: 2016-10-21 18:56:10,433] =====================================================================================
  2242. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  2243. [Logging Date Time: 2016-10-21 18:56:10,433] =====================================================================================
  2244. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  2245. [Logging Date Time: 2016-10-21 18:56:10,433] =====================================================================================
  2246. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  2247. [Logging Date Time: 2016-10-21 18:56:10,513] =====================================================================================
  2248. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2249. [Logging Date Time: 2016-10-21 18:56:10,513] =====================================================================================
  2250. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2251. [Logging Date Time: 2016-10-21 18:56:10,513] =====================================================================================
  2252. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2253. [Logging Date Time: 2016-10-21 18:56:10,513] =====================================================================================
  2254. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2255. [Logging Date Time: 2016-10-21 18:56:10,514] =====================================================================================
  2256. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2257. [Logging Date Time: 2016-10-21 18:56:10,514] =====================================================================================
  2258. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2259. [Logging Date Time: 2016-10-21 18:56:10,777] =====================================================================================
  2260. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2261. [Logging Date Time: 2016-10-21 18:56:10,777] =====================================================================================
  2262. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2263. [Logging Date Time: 2016-10-21 18:56:10,777] =====================================================================================
  2264. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  2265. [Logging Date Time: 2016-10-21 18:56:10,777] =====================================================================================
  2266. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  2267. [Logging Date Time: 2016-10-21 18:56:10,777] =====================================================================================
  2268. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2269. [Logging Date Time: 2016-10-21 18:56:10,777] =====================================================================================
  2270. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2271. [Logging Date Time: 2016-10-21 18:56:10,882] =====================================================================================
  2272. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2273. [Logging Date Time: 2016-10-21 18:56:10,882] =====================================================================================
  2274. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2275. [Logging Date Time: 2016-10-21 18:56:10,882] =====================================================================================
  2276. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2277. [Logging Date Time: 2016-10-21 18:56:10,882] =====================================================================================
  2278. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2279. [Logging Date Time: 2016-10-21 18:56:10,882] =====================================================================================
  2280. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2281. [Logging Date Time: 2016-10-21 18:56:10,882] =====================================================================================
  2282. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2283. [Logging Date Time: 2016-10-21 18:56:10,984] =====================================================================================
  2284. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2285. [Logging Date Time: 2016-10-21 18:56:10,984] =====================================================================================
  2286. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2287. [Logging Date Time: 2016-10-21 18:56:10,985] =====================================================================================
  2288. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2289. [Logging Date Time: 2016-10-21 18:56:10,985] =====================================================================================
  2290. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2291. [Logging Date Time: 2016-10-21 18:56:10,985] =====================================================================================
  2292. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2293. [Logging Date Time: 2016-10-21 18:56:10,985] =====================================================================================
  2294. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2295. [Logging Date Time: 2016-10-21 18:56:11,077] =====================================================================================
  2296. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2297. [Logging Date Time: 2016-10-21 18:56:11,077] =====================================================================================
  2298. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2299. [Logging Date Time: 2016-10-21 18:56:11,078] =====================================================================================
  2300. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2301. [Logging Date Time: 2016-10-21 18:56:11,078] =====================================================================================
  2302. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2303. [Logging Date Time: 2016-10-21 18:56:11,078] =====================================================================================
  2304. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2305. [Logging Date Time: 2016-10-21 18:56:11,078] =====================================================================================
  2306. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2307. [Logging Date Time: 2016-10-21 18:56:11,223] =====================================================================================
  2308. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2309. [Logging Date Time: 2016-10-21 18:56:11,223] =====================================================================================
  2310. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2311. [Logging Date Time: 2016-10-21 18:56:11,223] =====================================================================================
  2312. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  2313. [Logging Date Time: 2016-10-21 18:56:11,223] =====================================================================================
  2314. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  2315. [Logging Date Time: 2016-10-21 18:56:11,223] =====================================================================================
  2316. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2317. [Logging Date Time: 2016-10-21 18:56:11,223] =====================================================================================
  2318. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2319. [Logging Date Time: 2016-10-21 18:56:11,286] =====================================================================================
  2320. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2321. [Logging Date Time: 2016-10-21 18:56:11,286] =====================================================================================
  2322. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2323. [Logging Date Time: 2016-10-21 18:56:11,286] =====================================================================================
  2324. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2325. [Logging Date Time: 2016-10-21 18:56:11,286] =====================================================================================
  2326. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2327. [Logging Date Time: 2016-10-21 18:56:11,287] =====================================================================================
  2328. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2329. [Logging Date Time: 2016-10-21 18:56:11,287] =====================================================================================
  2330. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2331. [Logging Date Time: 2016-10-21 18:56:11,376] =====================================================================================
  2332. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2333. [Logging Date Time: 2016-10-21 18:56:11,376] =====================================================================================
  2334. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2335. [Logging Date Time: 2016-10-21 18:56:11,377] =====================================================================================
  2336. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2337. [Logging Date Time: 2016-10-21 18:56:11,377] =====================================================================================
  2338. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2339. [Logging Date Time: 2016-10-21 18:56:11,377] =====================================================================================
  2340. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2341. [Logging Date Time: 2016-10-21 18:56:11,377] =====================================================================================
  2342. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2343. [Logging Date Time: 2016-10-21 18:56:11,555] =====================================================================================
  2344. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  2345. [Logging Date Time: 2016-10-21 18:56:11,555] =====================================================================================
  2346. SQL Command - Statement Id: [GET_CONSENT_LIST] PreparedStatement : [SELECT CM.CONSENT_MST_RID , DECODE(CM.CONSENT_STATE, 'TEMP' ,'임시저장', 'ELECTR_CMP', '서명', 'PAPER_OUT', '출력' , 'CERTIFY_CMP', '인증', 'UNFINISHED', '미작성', 'VERBAL', '구두') AS CONSENT_STATE_DISP , VEF.FORM_NAME AS CONSENT_NAME , CM.HOS_TYPE , CM.PID , CM.VISIT_TYPE , CM.ORDER_NO , CM.ORDER_CD , CM.ORDER_NAME , CM.CLN_DEPT_CD , (SELECT DEPTHNGNM FROM COM.ZSDDDEPT WHERE DEPTCD = CM.CLN_DEPT_CD and valitodd = '99991231' and instcd = '111') AS CLN_DEPT_NM , COM.FN_ZS_GETDEPTNAME('111', CM.WARDCD, :param0 ) as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.CREATE_USER_ID , CM.CREATE_USER_NAME , CM.CREATE_DATETIME , CM.CLN_DATE , CM.CRETNO FROM CONSENT_MST CM INNER JOIN EFORM_DOCUMENT VEF ON VEF.FORM_RID = CM.FORM_RID, EMR.MRFMFORM C WHERE CM.USE_YN = 'Y' AND CM.PID = :param1 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param2 and :param0 AND VEF.FORM_CD = C.FORMCD AND C.instcd = '111' AND C.formprogflag LIKE 'OCR%' AND C.formlevlcd != '-' AND SUBSTR (C.formtodt, 1, 8) = '99991231' AND CM.CONSENT_STATE IN ('UNFINISHED','TEMP') ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  2347. [Logging Date Time: 2016-10-21 18:56:11,556] =====================================================================================
  2348. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  2349. [Logging Date Time: 2016-10-21 18:56:11,556] =====================================================================================
  2350. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[endDt,20161021], param1=[patientCode,0764061], param2=[startDt,20010601]]
  2351. [Logging Date Time: 2016-10-21 18:56:11,556] =====================================================================================
  2352. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2353. [Logging Date Time: 2016-10-21 18:56:11,556] =====================================================================================
  2354. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2355. [Logging Date Time: 2016-10-21 18:56:11,741] =====================================================================================
  2356. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  2357. [Logging Date Time: 2016-10-21 18:56:11,741] =====================================================================================
  2358. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  2359. [Logging Date Time: 2016-10-21 18:56:11,742] =====================================================================================
  2360. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  2361. [Logging Date Time: 2016-10-21 18:56:11,742] =====================================================================================
  2362. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  2363. [Logging Date Time: 2016-10-21 18:56:11,742] =====================================================================================
  2364. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  2365. [Logging Date Time: 2016-10-21 18:56:11,742] =====================================================================================
  2366. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  2367. [Logging Date Time: 2016-10-21 18:56:15,326] =====================================================================================
  2368. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  2369. [Logging Date Time: 2016-10-21 18:56:15,326] =====================================================================================
  2370. SQL Command - Statement Id: [getDeptList] PreparedStatement : [SELECT ' ' as deptcd, '전체' as deptnm, 0 as clincdeptdispseq, 0 as sort from dual UNION ALL SELECT deptcd, depthngnm as deptnm, clincdeptdispseq, 1 as sort FROM com.zsdddept WHERE instcd = :param0 AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')>=valifromdd AND TO_CHAR(CURRENT_DATE,'YYYYMMDD')<=valitodd AND rcptuseyn = 'Y' ORDER BY clincdeptdispseq ASC]
  2371. [Logging Date Time: 2016-10-21 18:56:15,326] =====================================================================================
  2372. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  2373. [Logging Date Time: 2016-10-21 18:56:15,326] =====================================================================================
  2374. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  2375. [Logging Date Time: 2016-10-21 18:56:15,326] =====================================================================================
  2376. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  2377. [Logging Date Time: 2016-10-21 18:56:15,326] =====================================================================================
  2378. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  2379. [Logging Date Time: 2016-10-21 18:56:15,616] =====================================================================================
  2380. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  2381. [Logging Date Time: 2016-10-21 18:56:15,616] =====================================================================================
  2382. SQL Command - Statement Id: [getDocList] PreparedStatement : [SELECT ' ' as doctorid, '전체' as doctornm, 1 as sort from dual UNION ALL SELECT b.userid AS doctorid, b.usernm AS doctornm, 2 as sort FROM com.zsumusrd a INNER JOIN com.zsumusrb b ON a.userid = b.userid WHERE a.psnworkyn = 'N' AND a.dutplceinstcd = :param0 AND a.jobkindcd LIKE '03%' AND a.dutplcecd = :param1 AND :param2 BETWEEN a.fromdd AND a.todd AND :param2 BETWEEN b.userfromdd AND b.usertodd ORDER BY sort, doctorid]
  2383. [Logging Date Time: 2016-10-21 18:56:15,616] =====================================================================================
  2384. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  2385. [Logging Date Time: 2016-10-21 18:56:15,616] =====================================================================================
  2386. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161021]]
  2387. [Logging Date Time: 2016-10-21 18:56:15,617] =====================================================================================
  2388. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2389. [Logging Date Time: 2016-10-21 18:56:15,617] =====================================================================================
  2390. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2391. [Logging Date Time: 2016-10-21 18:56:16,337] =====================================================================================
  2392. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  2393. [Logging Date Time: 2016-10-21 18:56:16,337] =====================================================================================
  2394. SQL Command - Statement Id: [GET_USER_INFO] PreparedStatement : [select a.userid, a.usernm, b.dutplcecd, dept.depthngnm, dept.deptengabbr, b.jobkindcd, (select cdnm from com.zbcmcode code where code.cdgrupid = 'R0061' and code.cdid = b.jobkindcd and code.valitodd = '99991231') from com.zsumusrb a, com.zsumusrd b, com.zsdddept dept where a.dutinstcd = '111' and a.dutinstcd = b.dutplceinstcd and a.userid = b.userid and a.usertodd = b.todd and dept.instcd = a.dutinstcd and dept.deptcd = b.dutplcecd and dept.valitodd = '99991231' and b.psnworkyn = 'Y' and a.usertodd = '99991231' and b.userid = :param0]
  2395. [Logging Date Time: 2016-10-21 18:56:16,337] =====================================================================================
  2396. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  2397. [Logging Date Time: 2016-10-21 18:56:16,337] =====================================================================================
  2398. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  2399. [Logging Date Time: 2016-10-21 18:56:16,337] =====================================================================================
  2400. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  2401. [Logging Date Time: 2016-10-21 18:56:16,337] =====================================================================================
  2402. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  2403. [Logging Date Time: 2016-10-21 18:56:16,379] =====================================================================================
  2404. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2405. [Logging Date Time: 2016-10-21 18:56:16,379] =====================================================================================
  2406. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2407. [Logging Date Time: 2016-10-21 18:56:16,379] =====================================================================================
  2408. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2409. [Logging Date Time: 2016-10-21 18:56:16,379] =====================================================================================
  2410. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,0764061], param3=[orddd,20161021], param4=[cretno,1]]
  2411. [Logging Date Time: 2016-10-21 18:56:16,380] =====================================================================================
  2412. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2413. [Logging Date Time: 2016-10-21 18:56:16,380] =====================================================================================
  2414. SQL Command - Statement Id: [getPatientInfoIn] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[AnsiString, System.String]]
  2415. [Logging Date Time: 2016-10-21 18:56:16,451] =====================================================================================
  2416. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2417. [Logging Date Time: 2016-10-21 18:56:16,451] =====================================================================================
  2418. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] PreparedStatement : [SELECT indd as ClnDate, substr(indd, 1, 4) || '-' || substr(indd, 5, 2) || '-' || substr(indd, 7, 2) as ClnFormatDate, inpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, inpt.cretno FROM pam.pmihinpt inpt left outer join com.zsdddept dept on (dept.instcd = inpt.instcd and dept.deptcd = inpt.orddeptcd and dept.valitodd = '99991231') WHERE inpt.instcd = :param0 AND inpt.pid = :param1 AND inpt.indd = :param2 AND inpt.histstat = 'Y' AND inpt.mskind = 'M' union all SELECT orddd as ClnDate, substr(orddd, 1, 4) || '-' || substr(orddd, 5, 2) || '-' || substr(orddd, 7, 2) as ClnFormatDate, otpt.ordtype as VisitType, case when ordtype = 'O' then '외래' when ordtype = 'I' then '입원' when ordtype = 'E' then '응급' end as VisitTypeName, dept.deptengabbr as ClnDeptCode, dept.depthngnm as ClnDeptName, otpt.cretno FROM pam.pmohotpt otpt left outer join com.zsdddept dept on (dept.instcd = otpt.instcd and dept.deptcd = otpt.orddeptcd and dept.valitodd = '99991231') WHERE otpt.instcd = :param0 AND otpt.pid = :param1 AND otpt.orddd = :param2]
  2419. [Logging Date Time: 2016-10-21 18:56:16,451] =====================================================================================
  2420. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  2421. [Logging Date Time: 2016-10-21 18:56:16,451] =====================================================================================
  2422. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,0764061], param2=[searchClnDate,20161021]]
  2423. [Logging Date Time: 2016-10-21 18:56:16,451] =====================================================================================
  2424. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2425. [Logging Date Time: 2016-10-21 18:56:16,451] =====================================================================================
  2426. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  2427. [Logging Date Time: 2016-10-21 18:56:16,609] =====================================================================================
  2428. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  2429. [Logging Date Time: 2016-10-21 18:56:16,609] =====================================================================================
  2430. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]