eFormServer.iBATIS.log_2016-11-02 601 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905
  1. [Logging Date Time: 2016-11-02 10:47:00,738] =====================================================================================
  2. 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]
  3. [Logging Date Time: 2016-11-02 10:47:00,738] =====================================================================================
  4. 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]
  5. [Logging Date Time: 2016-11-02 10:47:00,905] =====================================================================================
  6. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  7. [Logging Date Time: 2016-11-02 10:47:00,905] =====================================================================================
  8. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  9. [Logging Date Time: 2016-11-02 10:47:00,906] =====================================================================================
  10. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  11. [Logging Date Time: 2016-11-02 10:47:00,906] =====================================================================================
  12. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  13. [Logging Date Time: 2016-11-02 10:47:01,665] =====================================================================================
  14. 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]
  15. [Logging Date Time: 2016-11-02 10:47:01,665] =====================================================================================
  16. 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]
  17. [Logging Date Time: 2016-11-02 10:47:01,666] =====================================================================================
  18. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  19. [Logging Date Time: 2016-11-02 10:47:01,666] =====================================================================================
  20. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  21. [Logging Date Time: 2016-11-02 10:47:01,666] =====================================================================================
  22. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  23. [Logging Date Time: 2016-11-02 10:47:01,666] =====================================================================================
  24. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  25. [Logging Date Time: 2016-11-02 10:47:03,242] =====================================================================================
  26. 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]
  27. [Logging Date Time: 2016-11-02 10:47:03,242] =====================================================================================
  28. 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]
  29. [Logging Date Time: 2016-11-02 10:47:03,242] =====================================================================================
  30. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  31. [Logging Date Time: 2016-11-02 10:47:03,242] =====================================================================================
  32. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  33. [Logging Date Time: 2016-11-02 10:47:03,242] =====================================================================================
  34. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  35. [Logging Date Time: 2016-11-02 10:47:03,242] =====================================================================================
  36. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  37. [Logging Date Time: 2016-11-02 10:47:03,508] =====================================================================================
  38. 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]
  39. [Logging Date Time: 2016-11-02 10:47:03,508] =====================================================================================
  40. 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]
  41. [Logging Date Time: 2016-11-02 10:47:03,509] =====================================================================================
  42. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  43. [Logging Date Time: 2016-11-02 10:47:03,509] =====================================================================================
  44. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  45. [Logging Date Time: 2016-11-02 10:47:03,509] =====================================================================================
  46. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  47. [Logging Date Time: 2016-11-02 10:47:03,509] =====================================================================================
  48. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  49. [Logging Date Time: 2016-11-02 10:47:03,603] =====================================================================================
  50. 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]
  51. [Logging Date Time: 2016-11-02 10:47:03,603] =====================================================================================
  52. 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]
  53. [Logging Date Time: 2016-11-02 10:47:03,603] =====================================================================================
  54. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  55. [Logging Date Time: 2016-11-02 10:47:03,603] =====================================================================================
  56. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  57. [Logging Date Time: 2016-11-02 10:47:03,603] =====================================================================================
  58. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  59. [Logging Date Time: 2016-11-02 10:47:03,603] =====================================================================================
  60. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  61. [Logging Date Time: 2016-11-02 10:47:03,799] =====================================================================================
  62. 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]
  63. [Logging Date Time: 2016-11-02 10:47:03,799] =====================================================================================
  64. 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]
  65. [Logging Date Time: 2016-11-02 10:47:03,800] =====================================================================================
  66. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  67. [Logging Date Time: 2016-11-02 10:47:03,800] =====================================================================================
  68. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  69. [Logging Date Time: 2016-11-02 10:47:03,800] =====================================================================================
  70. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  71. [Logging Date Time: 2016-11-02 10:47:03,800] =====================================================================================
  72. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  73. [Logging Date Time: 2016-11-02 10:47:03,894] =====================================================================================
  74. 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]
  75. [Logging Date Time: 2016-11-02 10:47:03,894] =====================================================================================
  76. 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]
  77. [Logging Date Time: 2016-11-02 10:47:03,894] =====================================================================================
  78. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  79. [Logging Date Time: 2016-11-02 10:47:03,894] =====================================================================================
  80. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  81. [Logging Date Time: 2016-11-02 10:47:03,894] =====================================================================================
  82. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  83. [Logging Date Time: 2016-11-02 10:47:03,894] =====================================================================================
  84. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  85. [Logging Date Time: 2016-11-02 10:47:43,072] =====================================================================================
  86. 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]
  87. [Logging Date Time: 2016-11-02 10:47:43,072] =====================================================================================
  88. 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]
  89. [Logging Date Time: 2016-11-02 10:47:43,168] =====================================================================================
  90. 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]
  91. [Logging Date Time: 2016-11-02 10:47:43,168] =====================================================================================
  92. 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]
  93. [Logging Date Time: 2016-11-02 10:47:43,169] =====================================================================================
  94. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  95. [Logging Date Time: 2016-11-02 10:47:43,169] =====================================================================================
  96. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  97. [Logging Date Time: 2016-11-02 10:47:43,169] =====================================================================================
  98. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  99. [Logging Date Time: 2016-11-02 10:47:43,169] =====================================================================================
  100. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  101. [Logging Date Time: 2016-11-02 10:47:43,250] =====================================================================================
  102. 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]
  103. [Logging Date Time: 2016-11-02 10:47:43,250] =====================================================================================
  104. 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]
  105. [Logging Date Time: 2016-11-02 10:47:43,250] =====================================================================================
  106. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  107. [Logging Date Time: 2016-11-02 10:47:43,250] =====================================================================================
  108. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  109. [Logging Date Time: 2016-11-02 10:47:43,250] =====================================================================================
  110. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  111. [Logging Date Time: 2016-11-02 10:47:43,250] =====================================================================================
  112. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  113. [Logging Date Time: 2016-11-02 10:47:46,988] =====================================================================================
  114. 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]
  115. [Logging Date Time: 2016-11-02 10:47:46,988] =====================================================================================
  116. 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]
  117. [Logging Date Time: 2016-11-02 10:47:46,988] =====================================================================================
  118. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010300000], param2=[srchdd,20161102]]
  119. [Logging Date Time: 2016-11-02 10:47:46,988] =====================================================================================
  120. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010300000], param2=[srchdd,20161102]]
  121. [Logging Date Time: 2016-11-02 10:47:46,988] =====================================================================================
  122. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  123. [Logging Date Time: 2016-11-02 10:47:46,988] =====================================================================================
  124. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  125. [Logging Date Time: 2016-11-02 10:47:47,755] =====================================================================================
  126. 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('20161102') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', '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.orddeptcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  127. [Logging Date Time: 2016-11-02 10:47:47,755] =====================================================================================
  128. 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('20161102') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', '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.orddeptcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  129. [Logging Date Time: 2016-11-02 10:47:47,756] =====================================================================================
  130. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161102], param1=[instcd,111], param2=[orddeptcd,2010300000]]
  131. [Logging Date Time: 2016-11-02 10:47:47,756] =====================================================================================
  132. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161102], param1=[instcd,111], param2=[orddeptcd,2010300000]]
  133. [Logging Date Time: 2016-11-02 10:47:47,756] =====================================================================================
  134. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  135. [Logging Date Time: 2016-11-02 10:47:47,756] =====================================================================================
  136. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  137. [Logging Date Time: 2016-11-02 10:47:58,964] =====================================================================================
  138. 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]
  139. [Logging Date Time: 2016-11-02 10:47:58,964] =====================================================================================
  140. 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]
  141. [Logging Date Time: 2016-11-02 10:47:58,964] =====================================================================================
  142. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  143. [Logging Date Time: 2016-11-02 10:47:58,964] =====================================================================================
  144. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  145. [Logging Date Time: 2016-11-02 10:47:58,965] =====================================================================================
  146. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  147. [Logging Date Time: 2016-11-02 10:47:58,965] =====================================================================================
  148. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  149. [Logging Date Time: 2016-11-02 10:47:59,017] =====================================================================================
  150. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  151. [Logging Date Time: 2016-11-02 10:47:59,017] =====================================================================================
  152. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  153. [Logging Date Time: 2016-11-02 10:47:59,018] =====================================================================================
  154. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  155. [Logging Date Time: 2016-11-02 10:47:59,018] =====================================================================================
  156. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  157. [Logging Date Time: 2016-11-02 10:47:59,018] =====================================================================================
  158. 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]]
  159. [Logging Date Time: 2016-11-02 10:47:59,018] =====================================================================================
  160. 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]]
  161. [Logging Date Time: 2016-11-02 10:47:59,291] =====================================================================================
  162. 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]
  163. [Logging Date Time: 2016-11-02 10:47:59,291] =====================================================================================
  164. 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]
  165. [Logging Date Time: 2016-11-02 10:47:59,292] =====================================================================================
  166. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1203939], param2=[searchClnDate,20161031]]
  167. [Logging Date Time: 2016-11-02 10:47:59,292] =====================================================================================
  168. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1203939], param2=[searchClnDate,20161031]]
  169. [Logging Date Time: 2016-11-02 10:47:59,292] =====================================================================================
  170. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  171. [Logging Date Time: 2016-11-02 10:47:59,292] =====================================================================================
  172. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  173. [Logging Date Time: 2016-11-02 10:47:59,426] =====================================================================================
  174. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  175. [Logging Date Time: 2016-11-02 10:47:59,426] =====================================================================================
  176. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  177. [Logging Date Time: 2016-11-02 10:47:59,427] =====================================================================================
  178. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  179. [Logging Date Time: 2016-11-02 10:47:59,427] =====================================================================================
  180. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  181. [Logging Date Time: 2016-11-02 10:47:59,427] =====================================================================================
  182. 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]]
  183. [Logging Date Time: 2016-11-02 10:47:59,427] =====================================================================================
  184. 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]]
  185. [Logging Date Time: 2016-11-02 10:47:59,529] =====================================================================================
  186. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  187. [Logging Date Time: 2016-11-02 10:47:59,529] =====================================================================================
  188. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  189. [Logging Date Time: 2016-11-02 10:47:59,529] =====================================================================================
  190. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  191. [Logging Date Time: 2016-11-02 10:47:59,529] =====================================================================================
  192. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  193. [Logging Date Time: 2016-11-02 10:47:59,530] =====================================================================================
  194. 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]]
  195. [Logging Date Time: 2016-11-02 10:47:59,530] =====================================================================================
  196. 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]]
  197. [Logging Date Time: 2016-11-02 10:47:59,623] =====================================================================================
  198. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  199. [Logging Date Time: 2016-11-02 10:47:59,623] =====================================================================================
  200. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  201. [Logging Date Time: 2016-11-02 10:47:59,623] =====================================================================================
  202. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  203. [Logging Date Time: 2016-11-02 10:47:59,623] =====================================================================================
  204. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  205. [Logging Date Time: 2016-11-02 10:47:59,624] =====================================================================================
  206. 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]]
  207. [Logging Date Time: 2016-11-02 10:47:59,624] =====================================================================================
  208. 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]]
  209. [Logging Date Time: 2016-11-02 10:48:00,417] =====================================================================================
  210. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') 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.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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]
  211. [Logging Date Time: 2016-11-02 10:48:00,417] =====================================================================================
  212. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') 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.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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]
  213. [Logging Date Time: 2016-11-02 10:48:00,417] =====================================================================================
  214. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20010601], param2=[endDt,20161102]]
  215. [Logging Date Time: 2016-11-02 10:48:00,417] =====================================================================================
  216. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20010601], param2=[endDt,20161102]]
  217. [Logging Date Time: 2016-11-02 10:48:00,417] =====================================================================================
  218. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  219. [Logging Date Time: 2016-11-02 10:48:00,417] =====================================================================================
  220. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  221. [Logging Date Time: 2016-11-02 10:48:02,124] =====================================================================================
  222. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') 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.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  223. [Logging Date Time: 2016-11-02 10:48:02,124] =====================================================================================
  224. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') 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.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CM.CONSENT_STATE DESC, CM.CREATE_DATETIME DESC]
  225. [Logging Date Time: 2016-11-02 10:48:02,125] =====================================================================================
  226. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  227. [Logging Date Time: 2016-11-02 10:48:02,125] =====================================================================================
  228. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  229. [Logging Date Time: 2016-11-02 10:48:02,125] =====================================================================================
  230. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  231. [Logging Date Time: 2016-11-02 10:48:02,125] =====================================================================================
  232. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  233. [Logging Date Time: 2016-11-02 10:52:02,116] =====================================================================================
  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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE, , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  235. [Logging Date Time: 2016-11-02 10:52:02,116] =====================================================================================
  236. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE, , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  237. [Logging Date Time: 2016-11-02 10:52:02,117] =====================================================================================
  238. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  239. [Logging Date Time: 2016-11-02 10:52:02,117] =====================================================================================
  240. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  241. [Logging Date Time: 2016-11-02 10:52:02,117] =====================================================================================
  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-11-02 10:52:02,117] =====================================================================================
  244. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  245. [Logging Date Time: 2016-11-02 10:54:32,337] =====================================================================================
  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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  247. [Logging Date Time: 2016-11-02 10:54:32,337] =====================================================================================
  248. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  249. [Logging Date Time: 2016-11-02 10:54:32,338] =====================================================================================
  250. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  251. [Logging Date Time: 2016-11-02 10:54:32,338] =====================================================================================
  252. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  253. [Logging Date Time: 2016-11-02 10:54:32,338] =====================================================================================
  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-11-02 10:54:32,338] =====================================================================================
  256. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  257. [Logging Date Time: 2016-11-02 10:54:44,395] =====================================================================================
  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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  259. [Logging Date Time: 2016-11-02 10:54:44,395] =====================================================================================
  260. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  261. [Logging Date Time: 2016-11-02 10:54:44,395] =====================================================================================
  262. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  263. [Logging Date Time: 2016-11-02 10:54:44,395] =====================================================================================
  264. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  265. [Logging Date Time: 2016-11-02 10:54:44,396] =====================================================================================
  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-11-02 10:54:44,396] =====================================================================================
  268. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  269. [Logging Date Time: 2016-11-02 10:55:08,194] =====================================================================================
  270. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  271. [Logging Date Time: 2016-11-02 10:55:08,194] =====================================================================================
  272. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  273. [Logging Date Time: 2016-11-02 10:55:08,195] =====================================================================================
  274. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  275. [Logging Date Time: 2016-11-02 10:55:08,195] =====================================================================================
  276. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  277. [Logging Date Time: 2016-11-02 10:55:08,195] =====================================================================================
  278. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  279. [Logging Date Time: 2016-11-02 10:55:08,195] =====================================================================================
  280. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  281. [Logging Date Time: 2016-11-02 10:56:08,986] =====================================================================================
  282. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  283. [Logging Date Time: 2016-11-02 10:56:08,986] =====================================================================================
  284. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  285. [Logging Date Time: 2016-11-02 10:56:08,986] =====================================================================================
  286. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  287. [Logging Date Time: 2016-11-02 10:56:08,986] =====================================================================================
  288. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20161031], param2=[endDt,20161102]]
  289. [Logging Date Time: 2016-11-02 10:56:08,986] =====================================================================================
  290. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  291. [Logging Date Time: 2016-11-02 10:56:08,986] =====================================================================================
  292. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  293. [Logging Date Time: 2016-11-02 11:05:50,926] =====================================================================================
  294. 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]
  295. [Logging Date Time: 2016-11-02 11:05:50,926] =====================================================================================
  296. 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]
  297. [Logging Date Time: 2016-11-02 11:05:51,029] =====================================================================================
  298. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  299. [Logging Date Time: 2016-11-02 11:05:51,029] =====================================================================================
  300. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  301. [Logging Date Time: 2016-11-02 11:05:51,029] =====================================================================================
  302. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  303. [Logging Date Time: 2016-11-02 11:05:51,029] =====================================================================================
  304. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  305. [Logging Date Time: 2016-11-02 11:05:51,377] =====================================================================================
  306. 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]
  307. [Logging Date Time: 2016-11-02 11:05:51,377] =====================================================================================
  308. 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]
  309. [Logging Date Time: 2016-11-02 11:05:51,378] =====================================================================================
  310. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  311. [Logging Date Time: 2016-11-02 11:05:51,378] =====================================================================================
  312. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  313. [Logging Date Time: 2016-11-02 11:05:51,378] =====================================================================================
  314. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  315. [Logging Date Time: 2016-11-02 11:05:51,378] =====================================================================================
  316. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  317. [Logging Date Time: 2016-11-02 11:05:52,071] =====================================================================================
  318. 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]
  319. [Logging Date Time: 2016-11-02 11:05:52,071] =====================================================================================
  320. 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]
  321. [Logging Date Time: 2016-11-02 11:05:52,071] =====================================================================================
  322. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  323. [Logging Date Time: 2016-11-02 11:05:52,071] =====================================================================================
  324. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  325. [Logging Date Time: 2016-11-02 11:05:52,071] =====================================================================================
  326. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  327. [Logging Date Time: 2016-11-02 11:05:52,071] =====================================================================================
  328. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  329. [Logging Date Time: 2016-11-02 11:05:52,371] =====================================================================================
  330. 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]
  331. [Logging Date Time: 2016-11-02 11:05:52,371] =====================================================================================
  332. 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]
  333. [Logging Date Time: 2016-11-02 11:05:52,371] =====================================================================================
  334. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  335. [Logging Date Time: 2016-11-02 11:05:52,371] =====================================================================================
  336. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  337. [Logging Date Time: 2016-11-02 11:05:52,371] =====================================================================================
  338. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  339. [Logging Date Time: 2016-11-02 11:05:52,371] =====================================================================================
  340. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  341. [Logging Date Time: 2016-11-02 11:05:52,433] =====================================================================================
  342. 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]
  343. [Logging Date Time: 2016-11-02 11:05:52,433] =====================================================================================
  344. 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]
  345. [Logging Date Time: 2016-11-02 11:05:52,434] =====================================================================================
  346. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  347. [Logging Date Time: 2016-11-02 11:05:52,434] =====================================================================================
  348. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  349. [Logging Date Time: 2016-11-02 11:05:52,434] =====================================================================================
  350. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  351. [Logging Date Time: 2016-11-02 11:05:52,434] =====================================================================================
  352. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  353. [Logging Date Time: 2016-11-02 11:05:52,648] =====================================================================================
  354. 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]
  355. [Logging Date Time: 2016-11-02 11:05:52,648] =====================================================================================
  356. 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]
  357. [Logging Date Time: 2016-11-02 11:05:52,649] =====================================================================================
  358. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  359. [Logging Date Time: 2016-11-02 11:05:52,649] =====================================================================================
  360. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  361. [Logging Date Time: 2016-11-02 11:05:52,649] =====================================================================================
  362. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  363. [Logging Date Time: 2016-11-02 11:05:52,649] =====================================================================================
  364. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  365. [Logging Date Time: 2016-11-02 11:05:52,811] =====================================================================================
  366. 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]
  367. [Logging Date Time: 2016-11-02 11:05:52,811] =====================================================================================
  368. 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]
  369. [Logging Date Time: 2016-11-02 11:05:52,812] =====================================================================================
  370. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  371. [Logging Date Time: 2016-11-02 11:05:52,812] =====================================================================================
  372. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  373. [Logging Date Time: 2016-11-02 11:05:52,812] =====================================================================================
  374. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  375. [Logging Date Time: 2016-11-02 11:05:52,812] =====================================================================================
  376. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  377. [Logging Date Time: 2016-11-02 11:06:00,011] =====================================================================================
  378. 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]
  379. [Logging Date Time: 2016-11-02 11:06:00,011] =====================================================================================
  380. 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]
  381. [Logging Date Time: 2016-11-02 11:06:00,101] =====================================================================================
  382. 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]
  383. [Logging Date Time: 2016-11-02 11:06:00,101] =====================================================================================
  384. 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]
  385. [Logging Date Time: 2016-11-02 11:06:00,101] =====================================================================================
  386. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  387. [Logging Date Time: 2016-11-02 11:06:00,101] =====================================================================================
  388. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  389. [Logging Date Time: 2016-11-02 11:06:00,101] =====================================================================================
  390. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  391. [Logging Date Time: 2016-11-02 11:06:00,101] =====================================================================================
  392. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  393. [Logging Date Time: 2016-11-02 11:06:00,252] =====================================================================================
  394. 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]
  395. [Logging Date Time: 2016-11-02 11:06:00,252] =====================================================================================
  396. 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]
  397. [Logging Date Time: 2016-11-02 11:06:00,252] =====================================================================================
  398. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  399. [Logging Date Time: 2016-11-02 11:06:00,252] =====================================================================================
  400. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  401. [Logging Date Time: 2016-11-02 11:06:00,252] =====================================================================================
  402. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  403. [Logging Date Time: 2016-11-02 11:06:00,252] =====================================================================================
  404. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  405. [Logging Date Time: 2016-11-02 11:06:02,181] =====================================================================================
  406. 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]
  407. [Logging Date Time: 2016-11-02 11:06:02,181] =====================================================================================
  408. 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]
  409. [Logging Date Time: 2016-11-02 11:06:02,181] =====================================================================================
  410. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010400000], param2=[srchdd,20161102]]
  411. [Logging Date Time: 2016-11-02 11:06:02,181] =====================================================================================
  412. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010400000], param2=[srchdd,20161102]]
  413. [Logging Date Time: 2016-11-02 11:06:02,181] =====================================================================================
  414. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  415. [Logging Date Time: 2016-11-02 11:06:02,181] =====================================================================================
  416. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  417. [Logging Date Time: 2016-11-02 11:06:02,723] =====================================================================================
  418. 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]
  419. [Logging Date Time: 2016-11-02 11:06:02,723] =====================================================================================
  420. 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]
  421. [Logging Date Time: 2016-11-02 11:06:02,723] =====================================================================================
  422. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010300000], param2=[srchdd,20161102]]
  423. [Logging Date Time: 2016-11-02 11:06:02,723] =====================================================================================
  424. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010300000], param2=[srchdd,20161102]]
  425. [Logging Date Time: 2016-11-02 11:06:02,723] =====================================================================================
  426. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  427. [Logging Date Time: 2016-11-02 11:06:02,723] =====================================================================================
  428. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  429. [Logging Date Time: 2016-11-02 11:06:02,907] =====================================================================================
  430. 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]
  431. [Logging Date Time: 2016-11-02 11:06:02,907] =====================================================================================
  432. 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]
  433. [Logging Date Time: 2016-11-02 11:06:02,908] =====================================================================================
  434. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010000000], param2=[srchdd,20161102]]
  435. [Logging Date Time: 2016-11-02 11:06:02,908] =====================================================================================
  436. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010000000], param2=[srchdd,20161102]]
  437. [Logging Date Time: 2016-11-02 11:06:02,908] =====================================================================================
  438. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  439. [Logging Date Time: 2016-11-02 11:06:02,908] =====================================================================================
  440. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  441. [Logging Date Time: 2016-11-02 11:06:03,984] =====================================================================================
  442. 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]
  443. [Logging Date Time: 2016-11-02 11:06:03,984] =====================================================================================
  444. 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]
  445. [Logging Date Time: 2016-11-02 11:06:03,984] =====================================================================================
  446. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010300000], param2=[srchdd,20161102]]
  447. [Logging Date Time: 2016-11-02 11:06:03,984] =====================================================================================
  448. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010300000], param2=[srchdd,20161102]]
  449. [Logging Date Time: 2016-11-02 11:06:03,984] =====================================================================================
  450. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  451. [Logging Date Time: 2016-11-02 11:06:03,984] =====================================================================================
  452. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  453. [Logging Date Time: 2016-11-02 11:06:04,821] =====================================================================================
  454. 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('20161102') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', '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.orddeptcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  455. [Logging Date Time: 2016-11-02 11:06:04,821] =====================================================================================
  456. 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('20161102') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', '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.orddeptcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  457. [Logging Date Time: 2016-11-02 11:06:04,822] =====================================================================================
  458. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161102], param1=[instcd,111], param2=[orddeptcd,2010300000]]
  459. [Logging Date Time: 2016-11-02 11:06:04,822] =====================================================================================
  460. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161102], param1=[instcd,111], param2=[orddeptcd,2010300000]]
  461. [Logging Date Time: 2016-11-02 11:06:04,822] =====================================================================================
  462. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  463. [Logging Date Time: 2016-11-02 11:06:04,822] =====================================================================================
  464. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  465. [Logging Date Time: 2016-11-02 11:06:06,848] =====================================================================================
  466. 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]
  467. [Logging Date Time: 2016-11-02 11:06:06,848] =====================================================================================
  468. 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]
  469. [Logging Date Time: 2016-11-02 11:06:06,848] =====================================================================================
  470. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  471. [Logging Date Time: 2016-11-02 11:06:06,848] =====================================================================================
  472. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  473. [Logging Date Time: 2016-11-02 11:06:06,848] =====================================================================================
  474. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  475. [Logging Date Time: 2016-11-02 11:06:06,848] =====================================================================================
  476. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  477. [Logging Date Time: 2016-11-02 11:06:06,898] =====================================================================================
  478. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  479. [Logging Date Time: 2016-11-02 11:06:06,898] =====================================================================================
  480. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  481. [Logging Date Time: 2016-11-02 11:06:06,899] =====================================================================================
  482. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  483. [Logging Date Time: 2016-11-02 11:06:06,899] =====================================================================================
  484. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  485. [Logging Date Time: 2016-11-02 11:06:06,899] =====================================================================================
  486. 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]]
  487. [Logging Date Time: 2016-11-02 11:06:06,899] =====================================================================================
  488. 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]]
  489. [Logging Date Time: 2016-11-02 11:06:07,131] =====================================================================================
  490. 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]
  491. [Logging Date Time: 2016-11-02 11:06:07,131] =====================================================================================
  492. 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]
  493. [Logging Date Time: 2016-11-02 11:06:07,132] =====================================================================================
  494. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1203939], param2=[searchClnDate,20161031]]
  495. [Logging Date Time: 2016-11-02 11:06:07,132] =====================================================================================
  496. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1203939], param2=[searchClnDate,20161031]]
  497. [Logging Date Time: 2016-11-02 11:06:07,132] =====================================================================================
  498. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  499. [Logging Date Time: 2016-11-02 11:06:07,132] =====================================================================================
  500. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  501. [Logging Date Time: 2016-11-02 11:06:07,227] =====================================================================================
  502. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  503. [Logging Date Time: 2016-11-02 11:06:07,227] =====================================================================================
  504. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  505. [Logging Date Time: 2016-11-02 11:06:07,228] =====================================================================================
  506. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  507. [Logging Date Time: 2016-11-02 11:06:07,228] =====================================================================================
  508. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  509. [Logging Date Time: 2016-11-02 11:06:07,228] =====================================================================================
  510. 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]]
  511. [Logging Date Time: 2016-11-02 11:06:07,228] =====================================================================================
  512. 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]]
  513. [Logging Date Time: 2016-11-02 11:06:07,322] =====================================================================================
  514. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  515. [Logging Date Time: 2016-11-02 11:06:07,322] =====================================================================================
  516. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  517. [Logging Date Time: 2016-11-02 11:06:07,323] =====================================================================================
  518. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  519. [Logging Date Time: 2016-11-02 11:06:07,323] =====================================================================================
  520. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  521. [Logging Date Time: 2016-11-02 11:06:07,323] =====================================================================================
  522. 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]]
  523. [Logging Date Time: 2016-11-02 11:06:07,323] =====================================================================================
  524. 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]]
  525. [Logging Date Time: 2016-11-02 11:06:07,409] =====================================================================================
  526. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  527. [Logging Date Time: 2016-11-02 11:06:07,409] =====================================================================================
  528. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  529. [Logging Date Time: 2016-11-02 11:06:07,410] =====================================================================================
  530. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  531. [Logging Date Time: 2016-11-02 11:06:07,410] =====================================================================================
  532. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1203939], param3=[orddd,20161031], param4=[cretno,1]]
  533. [Logging Date Time: 2016-11-02 11:06:07,410] =====================================================================================
  534. 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]]
  535. [Logging Date Time: 2016-11-02 11:06:07,410] =====================================================================================
  536. 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]]
  537. [Logging Date Time: 2016-11-02 11:06:08,012] =====================================================================================
  538. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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 CONSENT_STATE DESC, CREATE_DATETIME DESC]
  539. [Logging Date Time: 2016-11-02 11:06:08,012] =====================================================================================
  540. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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 CONSENT_STATE DESC, CREATE_DATETIME DESC]
  541. [Logging Date Time: 2016-11-02 11:06:08,012] =====================================================================================
  542. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20010601], param2=[endDt,20161102]]
  543. [Logging Date Time: 2016-11-02 11:06:08,012] =====================================================================================
  544. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20010601], param2=[endDt,20161102]]
  545. [Logging Date Time: 2016-11-02 11:06:08,012] =====================================================================================
  546. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  547. [Logging Date Time: 2016-11-02 11:06:08,012] =====================================================================================
  548. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  549. [Logging Date Time: 2016-11-02 11:06:09,750] =====================================================================================
  550. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  551. [Logging Date Time: 2016-11-02 11:06:09,750] =====================================================================================
  552. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = '2090793' ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  553. [Logging Date Time: 2016-11-02 11:06:09,750] =====================================================================================
  554. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20010601], param2=[endDt,20161102]]
  555. [Logging Date Time: 2016-11-02 11:06:09,750] =====================================================================================
  556. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1203939], param1=[startDt,20010601], param2=[endDt,20161102]]
  557. [Logging Date Time: 2016-11-02 11:06:09,750] =====================================================================================
  558. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  559. [Logging Date Time: 2016-11-02 11:06:09,750] =====================================================================================
  560. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  561. [Logging Date Time: 2016-11-02 11:10:41,693] =====================================================================================
  562. SQL Command - Statement Id: [getUserFormSet] PreparedStatement : [SELECT 'PERS_SET' AS SET_AUTH, a.linkcd AS FORM_CD, b.form_name as FORM_NAME, b.form_guid, b.FORM_RID, b.prntcnt, b.PRINT_ONLY, b.OCRTAGPRNTYN FROM emr.MRFMSETINDX a INNER JOIN cmr.v_eform_formdoc b ON a.LINKCD = b.FORM_CD WHERE a.userid = :param0 AND a.instcd = :param1 and a.valiyn = 'Y' ORDER BY FORM_NAME]
  563. [Logging Date Time: 2016-11-02 11:10:41,693] =====================================================================================
  564. SQL Command - Statement Id: [getUserFormSet] PreparedStatement : [SELECT 'PERS_SET' AS SET_AUTH, a.linkcd AS FORM_CD, b.form_name as FORM_NAME, b.form_guid, b.FORM_RID, b.prntcnt, b.PRINT_ONLY, b.OCRTAGPRNTYN FROM emr.MRFMSETINDX a INNER JOIN cmr.v_eform_formdoc b ON a.LINKCD = b.FORM_CD WHERE a.userid = :param0 AND a.instcd = :param1 and a.valiyn = 'Y' ORDER BY FORM_NAME]
  565. [Logging Date Time: 2016-11-02 11:10:41,693] =====================================================================================
  566. SQL Command - Statement Id: [getUserFormSet] Parameters: [param0=[userid,104806], param1=[instcd,111]]
  567. [Logging Date Time: 2016-11-02 11:10:41,693] =====================================================================================
  568. SQL Command - Statement Id: [getUserFormSet] Parameters: [param0=[userid,104806], param1=[instcd,111]]
  569. [Logging Date Time: 2016-11-02 11:10:41,693] =====================================================================================
  570. SQL Command - Statement Id: [getUserFormSet] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  571. [Logging Date Time: 2016-11-02 11:10:41,693] =====================================================================================
  572. SQL Command - Statement Id: [getUserFormSet] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  573. [Logging Date Time: 2016-11-02 11:10:41,914] =====================================================================================
  574. SQL Command - Statement Id: [getUserFormSet] PreparedStatement : [SELECT 'PERS_SET' AS SET_AUTH, a.linkcd AS FORM_CD, b.form_name as FORM_NAME, b.form_guid, b.FORM_RID, b.prntcnt, b.PRINT_ONLY, b.OCRTAGPRNTYN FROM emr.MRFMSETINDX a INNER JOIN cmr.v_eform_formdoc b ON a.LINKCD = b.FORM_CD WHERE a.userid = :param0 AND a.instcd = :param1 and a.valiyn = 'Y' ORDER BY FORM_NAME]
  575. [Logging Date Time: 2016-11-02 11:10:41,914] =====================================================================================
  576. SQL Command - Statement Id: [getUserFormSet] PreparedStatement : [SELECT 'PERS_SET' AS SET_AUTH, a.linkcd AS FORM_CD, b.form_name as FORM_NAME, b.form_guid, b.FORM_RID, b.prntcnt, b.PRINT_ONLY, b.OCRTAGPRNTYN FROM emr.MRFMSETINDX a INNER JOIN cmr.v_eform_formdoc b ON a.LINKCD = b.FORM_CD WHERE a.userid = :param0 AND a.instcd = :param1 and a.valiyn = 'Y' ORDER BY FORM_NAME]
  577. [Logging Date Time: 2016-11-02 11:10:41,914] =====================================================================================
  578. SQL Command - Statement Id: [getUserFormSet] Parameters: [param0=[userid,104806], param1=[instcd,111]]
  579. [Logging Date Time: 2016-11-02 11:10:41,914] =====================================================================================
  580. SQL Command - Statement Id: [getUserFormSet] Parameters: [param0=[userid,104806], param1=[instcd,111]]
  581. [Logging Date Time: 2016-11-02 11:10:41,914] =====================================================================================
  582. SQL Command - Statement Id: [getUserFormSet] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  583. [Logging Date Time: 2016-11-02 11:10:41,914] =====================================================================================
  584. SQL Command - Statement Id: [getUserFormSet] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String]]
  585. [Logging Date Time: 2016-11-02 11:10:42,440] =====================================================================================
  586. 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']
  587. [Logging Date Time: 2016-11-02 11:10:42,440] =====================================================================================
  588. 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']
  589. [Logging Date Time: 2016-11-02 11:10:42,536] =====================================================================================
  590. 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 )]
  591. [Logging Date Time: 2016-11-02 11:10:42,536] =====================================================================================
  592. 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 )]
  593. [Logging Date Time: 2016-11-02 11:10:42,536] =====================================================================================
  594. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA]]
  595. [Logging Date Time: 2016-11-02 11:10:42,536] =====================================================================================
  596. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Parameters: [param0=[category_id,1CB1B494-1EF0-48BD-84D6-4965A54E6AEA]]
  597. [Logging Date Time: 2016-11-02 11:10:42,536] =====================================================================================
  598. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Types: [param0=[AnsiString, System.String]]
  599. [Logging Date Time: 2016-11-02 11:10:42,536] =====================================================================================
  600. SQL Command - Statement Id: [GET_CATEGORY_FOR_DROPDOWN] Types: [param0=[AnsiString, System.String]]
  601. [Logging Date Time: 2016-11-02 11:41:22,288] =====================================================================================
  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-11-02 11:41:22,288] =====================================================================================
  604. 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]
  605. [Logging Date Time: 2016-11-02 11:41:22,386] =====================================================================================
  606. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  607. [Logging Date Time: 2016-11-02 11:41:22,386] =====================================================================================
  608. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  609. [Logging Date Time: 2016-11-02 11:41:22,386] =====================================================================================
  610. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  611. [Logging Date Time: 2016-11-02 11:41:22,386] =====================================================================================
  612. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  613. [Logging Date Time: 2016-11-02 11:41:22,588] =====================================================================================
  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-11-02 11:41:22,588] =====================================================================================
  616. 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]
  617. [Logging Date Time: 2016-11-02 11:41:22,589] =====================================================================================
  618. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  619. [Logging Date Time: 2016-11-02 11:41:22,589] =====================================================================================
  620. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  621. [Logging Date Time: 2016-11-02 11:41:22,589] =====================================================================================
  622. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  623. [Logging Date Time: 2016-11-02 11:41:22,589] =====================================================================================
  624. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  625. [Logging Date Time: 2016-11-02 11:41:23,052] =====================================================================================
  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-11-02 11:41:23,052] =====================================================================================
  628. 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]
  629. [Logging Date Time: 2016-11-02 11:41:23,053] =====================================================================================
  630. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  631. [Logging Date Time: 2016-11-02 11:41:23,053] =====================================================================================
  632. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  633. [Logging Date Time: 2016-11-02 11:41:23,053] =====================================================================================
  634. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  635. [Logging Date Time: 2016-11-02 11:41:23,053] =====================================================================================
  636. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  637. [Logging Date Time: 2016-11-02 11:41:23,331] =====================================================================================
  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-11-02 11:41:23,331] =====================================================================================
  640. 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]
  641. [Logging Date Time: 2016-11-02 11:41:23,332] =====================================================================================
  642. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  643. [Logging Date Time: 2016-11-02 11:41:23,332] =====================================================================================
  644. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  645. [Logging Date Time: 2016-11-02 11:41:23,332] =====================================================================================
  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-11-02 11:41:23,332] =====================================================================================
  648. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  649. [Logging Date Time: 2016-11-02 11:41:23,383] =====================================================================================
  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-11-02 11:41:23,383] =====================================================================================
  652. 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]
  653. [Logging Date Time: 2016-11-02 11:41:23,383] =====================================================================================
  654. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  655. [Logging Date Time: 2016-11-02 11:41:23,383] =====================================================================================
  656. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,], param2=[searchClnDate,false]]
  657. [Logging Date Time: 2016-11-02 11:41:23,384] =====================================================================================
  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-11-02 11:41:23,384] =====================================================================================
  660. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  661. [Logging Date Time: 2016-11-02 11:41:23,601] =====================================================================================
  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-11-02 11:41:23,601] =====================================================================================
  664. 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]
  665. [Logging Date Time: 2016-11-02 11:41:23,601] =====================================================================================
  666. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  667. [Logging Date Time: 2016-11-02 11:41:23,601] =====================================================================================
  668. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  669. [Logging Date Time: 2016-11-02 11:41:23,601] =====================================================================================
  670. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  671. [Logging Date Time: 2016-11-02 11:41:23,601] =====================================================================================
  672. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  673. [Logging Date Time: 2016-11-02 11:41:23,688] =====================================================================================
  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-11-02 11:41:23,688] =====================================================================================
  676. 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]
  677. [Logging Date Time: 2016-11-02 11:41:23,688] =====================================================================================
  678. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  679. [Logging Date Time: 2016-11-02 11:41:23,688] =====================================================================================
  680. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  681. [Logging Date Time: 2016-11-02 11:41:23,688] =====================================================================================
  682. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  683. [Logging Date Time: 2016-11-02 11:41:23,688] =====================================================================================
  684. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  685. [Logging Date Time: 2016-11-02 11:41:29,213] =====================================================================================
  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-11-02 11:41:29,213] =====================================================================================
  688. 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]
  689. [Logging Date Time: 2016-11-02 11:41:29,300] =====================================================================================
  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-11-02 11:41:29,300] =====================================================================================
  692. 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]
  693. [Logging Date Time: 2016-11-02 11:41:29,300] =====================================================================================
  694. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  695. [Logging Date Time: 2016-11-02 11:41:29,300] =====================================================================================
  696. SQL Command - Statement Id: [getDeptList] Parameters: [param0=[instcd,111]]
  697. [Logging Date Time: 2016-11-02 11:41:29,300] =====================================================================================
  698. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  699. [Logging Date Time: 2016-11-02 11:41:29,300] =====================================================================================
  700. SQL Command - Statement Id: [getDeptList] Types: [param0=[AnsiString, System.String]]
  701. [Logging Date Time: 2016-11-02 11:41:29,387] =====================================================================================
  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-11-02 11:41:29,387] =====================================================================================
  704. 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]
  705. [Logging Date Time: 2016-11-02 11:41:29,387] =====================================================================================
  706. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  707. [Logging Date Time: 2016-11-02 11:41:29,387] =====================================================================================
  708. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd, ], param2=[srchdd,20161102]]
  709. [Logging Date Time: 2016-11-02 11:41:29,387] =====================================================================================
  710. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  711. [Logging Date Time: 2016-11-02 11:41:29,387] =====================================================================================
  712. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  713. [Logging Date Time: 2016-11-02 11:41:32,744] =====================================================================================
  714. 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]
  715. [Logging Date Time: 2016-11-02 11:41:32,744] =====================================================================================
  716. 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]
  717. [Logging Date Time: 2016-11-02 11:41:32,744] =====================================================================================
  718. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010300000], param2=[srchdd,20161102]]
  719. [Logging Date Time: 2016-11-02 11:41:32,744] =====================================================================================
  720. SQL Command - Statement Id: [getDocList] Parameters: [param0=[instcd,111], param1=[orddeptcd,2010300000], param2=[srchdd,20161102]]
  721. [Logging Date Time: 2016-11-02 11:41:32,744] =====================================================================================
  722. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  723. [Logging Date Time: 2016-11-02 11:41:32,744] =====================================================================================
  724. SQL Command - Statement Id: [getDocList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  725. [Logging Date Time: 2016-11-02 11:41:33,476] =====================================================================================
  726. 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('20161102') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', '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.orddeptcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  727. [Logging Date Time: 2016-11-02 11:41:33,476] =====================================================================================
  728. 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('20161102') - TO_DATE(inpt.indd) AS hd, TRIM(ptbs.sex || '/' || LPAD(FLOOR(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', 'B', ptbs.brthdd) / 12), 2, 0) || 'y' || LPAD(MOD(COM.FN_ZZ_GETAGE_EMR2('000000','0000000','20161102', '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.orddeptcd = :param2 AND icdr.indschacptstat IN ('A', 'D', 'T') order by inpt.indd desc]
  729. [Logging Date Time: 2016-11-02 11:41:33,477] =====================================================================================
  730. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161102], param1=[instcd,111], param2=[orddeptcd,2010300000]]
  731. [Logging Date Time: 2016-11-02 11:41:33,477] =====================================================================================
  732. SQL Command - Statement Id: [getInPatList] Parameters: [param0=[srchdd,20161102], param1=[instcd,111], param2=[orddeptcd,2010300000]]
  733. [Logging Date Time: 2016-11-02 11:41:33,477] =====================================================================================
  734. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  735. [Logging Date Time: 2016-11-02 11:41:33,477] =====================================================================================
  736. SQL Command - Statement Id: [getInPatList] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  737. [Logging Date Time: 2016-11-02 11:41:35,386] =====================================================================================
  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-11-02 11:41:35,386] =====================================================================================
  740. 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]
  741. [Logging Date Time: 2016-11-02 11:41:35,387] =====================================================================================
  742. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  743. [Logging Date Time: 2016-11-02 11:41:35,387] =====================================================================================
  744. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  745. [Logging Date Time: 2016-11-02 11:41:35,387] =====================================================================================
  746. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  747. [Logging Date Time: 2016-11-02 11:41:35,387] =====================================================================================
  748. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  749. [Logging Date Time: 2016-11-02 11:41:35,438] =====================================================================================
  750. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  751. [Logging Date Time: 2016-11-02 11:41:35,438] =====================================================================================
  752. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  753. [Logging Date Time: 2016-11-02 11:41:35,439] =====================================================================================
  754. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  755. [Logging Date Time: 2016-11-02 11:41:35,439] =====================================================================================
  756. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  757. [Logging Date Time: 2016-11-02 11:41:35,439] =====================================================================================
  758. 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]]
  759. [Logging Date Time: 2016-11-02 11:41:35,439] =====================================================================================
  760. 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]]
  761. [Logging Date Time: 2016-11-02 11:41:35,577] =====================================================================================
  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-11-02 11:41:35,577] =====================================================================================
  764. 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]
  765. [Logging Date Time: 2016-11-02 11:41:35,578] =====================================================================================
  766. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1982227], param2=[searchClnDate,20161102]]
  767. [Logging Date Time: 2016-11-02 11:41:35,578] =====================================================================================
  768. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1982227], param2=[searchClnDate,20161102]]
  769. [Logging Date Time: 2016-11-02 11:41:35,578] =====================================================================================
  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-11-02 11:41:35,578] =====================================================================================
  772. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  773. [Logging Date Time: 2016-11-02 11:41:35,689] =====================================================================================
  774. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  775. [Logging Date Time: 2016-11-02 11:41:35,689] =====================================================================================
  776. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  777. [Logging Date Time: 2016-11-02 11:41:35,690] =====================================================================================
  778. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  779. [Logging Date Time: 2016-11-02 11:41:35,690] =====================================================================================
  780. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  781. [Logging Date Time: 2016-11-02 11:41:35,690] =====================================================================================
  782. 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]]
  783. [Logging Date Time: 2016-11-02 11:41:35,690] =====================================================================================
  784. 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]]
  785. [Logging Date Time: 2016-11-02 11:41:35,764] =====================================================================================
  786. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  787. [Logging Date Time: 2016-11-02 11:41:35,764] =====================================================================================
  788. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  789. [Logging Date Time: 2016-11-02 11:41:35,765] =====================================================================================
  790. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  791. [Logging Date Time: 2016-11-02 11:41:35,765] =====================================================================================
  792. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  793. [Logging Date Time: 2016-11-02 11:41:35,765] =====================================================================================
  794. 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]]
  795. [Logging Date Time: 2016-11-02 11:41:35,765] =====================================================================================
  796. 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]]
  797. [Logging Date Time: 2016-11-02 11:41:35,840] =====================================================================================
  798. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  799. [Logging Date Time: 2016-11-02 11:41:35,840] =====================================================================================
  800. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  801. [Logging Date Time: 2016-11-02 11:41:35,841] =====================================================================================
  802. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  803. [Logging Date Time: 2016-11-02 11:41:35,841] =====================================================================================
  804. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  805. [Logging Date Time: 2016-11-02 11:41:35,841] =====================================================================================
  806. 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]]
  807. [Logging Date Time: 2016-11-02 11:41:35,841] =====================================================================================
  808. 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]]
  809. [Logging Date Time: 2016-11-02 11:41:36,437] =====================================================================================
  810. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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 CONSENT_STATE DESC, CREATE_DATETIME DESC]
  811. [Logging Date Time: 2016-11-02 11:41:36,437] =====================================================================================
  812. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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 CONSENT_STATE DESC, CREATE_DATETIME DESC]
  813. [Logging Date Time: 2016-11-02 11:41:36,438] =====================================================================================
  814. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1982227], param1=[startDt,20010601], param2=[endDt,20161102]]
  815. [Logging Date Time: 2016-11-02 11:41:36,438] =====================================================================================
  816. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1982227], param1=[startDt,20010601], param2=[endDt,20161102]]
  817. [Logging Date Time: 2016-11-02 11:41:36,438] =====================================================================================
  818. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  819. [Logging Date Time: 2016-11-02 11:41:36,438] =====================================================================================
  820. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  821. [Logging Date Time: 2016-11-02 11:41:38,482] =====================================================================================
  822. 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]
  823. [Logging Date Time: 2016-11-02 11:41:38,482] =====================================================================================
  824. 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]
  825. [Logging Date Time: 2016-11-02 11:41:38,482] =====================================================================================
  826. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  827. [Logging Date Time: 2016-11-02 11:41:38,482] =====================================================================================
  828. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  829. [Logging Date Time: 2016-11-02 11:41:38,482] =====================================================================================
  830. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  831. [Logging Date Time: 2016-11-02 11:41:38,482] =====================================================================================
  832. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  833. [Logging Date Time: 2016-11-02 11:41:38,533] =====================================================================================
  834. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  835. [Logging Date Time: 2016-11-02 11:41:38,533] =====================================================================================
  836. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  837. [Logging Date Time: 2016-11-02 11:41:38,534] =====================================================================================
  838. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1133686], param3=[orddd,20161031], param4=[cretno,1]]
  839. [Logging Date Time: 2016-11-02 11:41:38,534] =====================================================================================
  840. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1133686], param3=[orddd,20161031], param4=[cretno,1]]
  841. [Logging Date Time: 2016-11-02 11:41:38,534] =====================================================================================
  842. 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]]
  843. [Logging Date Time: 2016-11-02 11:41:38,534] =====================================================================================
  844. 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]]
  845. [Logging Date Time: 2016-11-02 11:41:38,623] =====================================================================================
  846. 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]
  847. [Logging Date Time: 2016-11-02 11:41:38,623] =====================================================================================
  848. 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]
  849. [Logging Date Time: 2016-11-02 11:41:38,623] =====================================================================================
  850. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1133686], param2=[searchClnDate,20161031]]
  851. [Logging Date Time: 2016-11-02 11:41:38,623] =====================================================================================
  852. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1133686], param2=[searchClnDate,20161031]]
  853. [Logging Date Time: 2016-11-02 11:41:38,623] =====================================================================================
  854. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  855. [Logging Date Time: 2016-11-02 11:41:38,623] =====================================================================================
  856. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  857. [Logging Date Time: 2016-11-02 11:41:38,722] =====================================================================================
  858. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  859. [Logging Date Time: 2016-11-02 11:41:38,722] =====================================================================================
  860. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  861. [Logging Date Time: 2016-11-02 11:41:38,723] =====================================================================================
  862. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1133686], param3=[orddd,20161031], param4=[cretno,1]]
  863. [Logging Date Time: 2016-11-02 11:41:38,723] =====================================================================================
  864. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1133686], param3=[orddd,20161031], param4=[cretno,1]]
  865. [Logging Date Time: 2016-11-02 11:41:38,723] =====================================================================================
  866. 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]]
  867. [Logging Date Time: 2016-11-02 11:41:38,723] =====================================================================================
  868. 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]]
  869. [Logging Date Time: 2016-11-02 11:41:38,816] =====================================================================================
  870. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  871. [Logging Date Time: 2016-11-02 11:41:38,816] =====================================================================================
  872. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  873. [Logging Date Time: 2016-11-02 11:41:38,817] =====================================================================================
  874. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1133686], param3=[orddd,20161031], param4=[cretno,1]]
  875. [Logging Date Time: 2016-11-02 11:41:38,817] =====================================================================================
  876. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1133686], param3=[orddd,20161031], param4=[cretno,1]]
  877. [Logging Date Time: 2016-11-02 11:41:38,817] =====================================================================================
  878. 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]]
  879. [Logging Date Time: 2016-11-02 11:41:38,817] =====================================================================================
  880. 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]]
  881. [Logging Date Time: 2016-11-02 11:41:38,927] =====================================================================================
  882. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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 CONSENT_STATE DESC, CREATE_DATETIME DESC]
  883. [Logging Date Time: 2016-11-02 11:41:38,927] =====================================================================================
  884. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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 CONSENT_STATE DESC, CREATE_DATETIME DESC]
  885. [Logging Date Time: 2016-11-02 11:41:38,927] =====================================================================================
  886. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1133686], param1=[startDt,20010601], param2=[endDt,20161102]]
  887. [Logging Date Time: 2016-11-02 11:41:38,927] =====================================================================================
  888. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1133686], param1=[startDt,20010601], param2=[endDt,20161102]]
  889. [Logging Date Time: 2016-11-02 11:41:38,927] =====================================================================================
  890. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  891. [Logging Date Time: 2016-11-02 11:41:38,927] =====================================================================================
  892. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  893. [Logging Date Time: 2016-11-02 11:41:39,614] =====================================================================================
  894. 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]
  895. [Logging Date Time: 2016-11-02 11:41:39,614] =====================================================================================
  896. 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]
  897. [Logging Date Time: 2016-11-02 11:41:39,614] =====================================================================================
  898. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  899. [Logging Date Time: 2016-11-02 11:41:39,614] =====================================================================================
  900. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  901. [Logging Date Time: 2016-11-02 11:41:39,614] =====================================================================================
  902. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  903. [Logging Date Time: 2016-11-02 11:41:39,614] =====================================================================================
  904. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  905. [Logging Date Time: 2016-11-02 11:41:39,671] =====================================================================================
  906. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  907. [Logging Date Time: 2016-11-02 11:41:39,671] =====================================================================================
  908. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  909. [Logging Date Time: 2016-11-02 11:41:39,672] =====================================================================================
  910. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  911. [Logging Date Time: 2016-11-02 11:41:39,672] =====================================================================================
  912. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  913. [Logging Date Time: 2016-11-02 11:41:39,672] =====================================================================================
  914. 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]]
  915. [Logging Date Time: 2016-11-02 11:41:39,672] =====================================================================================
  916. 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]]
  917. [Logging Date Time: 2016-11-02 11:41:39,766] =====================================================================================
  918. 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]
  919. [Logging Date Time: 2016-11-02 11:41:39,766] =====================================================================================
  920. 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]
  921. [Logging Date Time: 2016-11-02 11:41:39,767] =====================================================================================
  922. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1982227], param2=[searchClnDate,20161102]]
  923. [Logging Date Time: 2016-11-02 11:41:39,767] =====================================================================================
  924. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1982227], param2=[searchClnDate,20161102]]
  925. [Logging Date Time: 2016-11-02 11:41:39,767] =====================================================================================
  926. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  927. [Logging Date Time: 2016-11-02 11:41:39,767] =====================================================================================
  928. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  929. [Logging Date Time: 2016-11-02 11:41:39,832] =====================================================================================
  930. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  931. [Logging Date Time: 2016-11-02 11:41:39,832] =====================================================================================
  932. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  933. [Logging Date Time: 2016-11-02 11:41:39,833] =====================================================================================
  934. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  935. [Logging Date Time: 2016-11-02 11:41:39,833] =====================================================================================
  936. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  937. [Logging Date Time: 2016-11-02 11:41:39,833] =====================================================================================
  938. 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]]
  939. [Logging Date Time: 2016-11-02 11:41:39,833] =====================================================================================
  940. 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]]
  941. [Logging Date Time: 2016-11-02 11:41:39,929] =====================================================================================
  942. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  943. [Logging Date Time: 2016-11-02 11:41:39,929] =====================================================================================
  944. 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 AND diagh.instcd = '111' 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 AND diagh.instcd = '111' 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]
  945. [Logging Date Time: 2016-11-02 11:41:39,930] =====================================================================================
  946. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  947. [Logging Date Time: 2016-11-02 11:41:39,930] =====================================================================================
  948. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,I], param1=[instcd,111], param2=[pid,1982227], param3=[orddd,20161102], param4=[cretno,1]]
  949. [Logging Date Time: 2016-11-02 11:41:39,930] =====================================================================================
  950. 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]]
  951. [Logging Date Time: 2016-11-02 11:41:39,930] =====================================================================================
  952. 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]]
  953. [Logging Date Time: 2016-11-02 11:41:40,039] =====================================================================================
  954. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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 CONSENT_STATE DESC, CREATE_DATETIME DESC]
  955. [Logging Date Time: 2016-11-02 11:41:40,039] =====================================================================================
  956. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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 CONSENT_STATE DESC, CREATE_DATETIME DESC]
  957. [Logging Date Time: 2016-11-02 11:41:40,039] =====================================================================================
  958. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1982227], param1=[startDt,20010601], param2=[endDt,20161102]]
  959. [Logging Date Time: 2016-11-02 11:41:40,039] =====================================================================================
  960. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1982227], param1=[startDt,20010601], param2=[endDt,20161102]]
  961. [Logging Date Time: 2016-11-02 11:41:40,039] =====================================================================================
  962. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  963. [Logging Date Time: 2016-11-02 11:41:40,039] =====================================================================================
  964. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  965. [Logging Date Time: 2016-11-02 11:41:40,682] =====================================================================================
  966. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = :param0 ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  967. [Logging Date Time: 2016-11-02 11:41:40,682] =====================================================================================
  968. 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', (select dept.deptcd from com.zsdddept dept where dept.instcd = '111' and dept.valitodd = '99991231' and dept.deptengabbr = CM.WARDCD), '99991231') as WARDCD , CM.ROOMCD , CM.FORM_RID , VEF.FORM_CD , VEF.FORM_GUID , C.PRNTCNT , CM.CONSENT_STATE AS CONSENT_STATE , CM.OCR_NUMBER , CM.COSIGN_DC_ID , CM.COSIGN_DC_NAME , CM.MODIFY_USER_ID AS CREATE_USER_ID , CM.MODIFY_USER_NAME AS CREATE_USER_NAME , CM.MODIFY_DATETIME AS 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 = :param0 AND TO_CHAR(TO_DATE(CM.CREATE_DATETIME, 'YYYY-MM-DD HH24:MI:SS'), 'YYYYMMDD') BETWEEN :param1 and :param2 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' UNION ALL SELECT NULL as CONSENT_MST_RID, 'FNU출력' AS CONSENT_STATE_DISP, D.FORMNM AS CONSENT_NAME, A.INSTCD AS HOS_TYPE, B.PID AS PID, B.ORDTYPE AS VISIT_TYPE, NULL AS ORDER_NO, '' AS ORDER_CD, '' AS ORDER_NAME, B.ORDDEPTCD AS CLN_DEPT_CD, (SELECT depthngnm FROM com.zsdddept WHERE deptcd = b.orddeptcd AND instcd = b.instcd AND valifromdd <= b.orddd AND valitodd >= b.orddd) as CLN_DEPT_NM, '' AS WARDCD, '' AS ROOMCD, (SELECT V.FORM_RID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_RID, B.FORMCD AS FORM_CD, (SELECT V.FORM_GUID FROM CMR.V_EFORM_FORMDOC V WHERE V.FORM_CD = B.FORMCD) AS FORM_GUID, D.PRNTCNT, 'FNU_PRINT' AS CONSENT_STATE, A.OCRTAG AS OCR_NUMBER, '' AS COSIGN_CD_ID, '' AS COSIGN_DC_NAME, A.LASTUPDTRID AS CREATE_USER_ID, COM.FN_ZS_GETUSERNM(A.LASTUPDTRID, B.ORDDD) AS CREATE_USER_NAME, TO_CHAR(A.LASTUPDTDT,'YYYY-MM-DD HH24:MI:SS')AS CREATE_DATETIME, B.ORDDD AS CLN_DATE, B.CRETNO FROM emr.mrfhocrprnt a, emr.mrfmocrprnt b, pam.pmcmptbs c, emr.mrfmform d WHERE a.instcd = '111' AND a.ocrtag = b.ocrtag AND a.updtdt = b.FSTPRNTDT AND a.statcd = 'P' AND a.instcd = b.instcd AND b.instcd = c.instcd AND b.pid = c.pid AND b.instcd = d.instcd AND b.formcd = d.formcd AND b.formfromdt = d.formfromdt AND b.orddd >= :param1 AND b.orddd <= :param2 and b.pid = :param0 ORDER BY CONSENT_STATE DESC, CREATE_DATETIME DESC]
  969. [Logging Date Time: 2016-11-02 11:41:40,682] =====================================================================================
  970. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1982227], param1=[startDt,20010601], param2=[endDt,20161102]]
  971. [Logging Date Time: 2016-11-02 11:41:40,682] =====================================================================================
  972. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1982227], param1=[startDt,20010601], param2=[endDt,20161102]]
  973. [Logging Date Time: 2016-11-02 11:41:40,683] =====================================================================================
  974. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  975. [Logging Date Time: 2016-11-02 11:41:40,683] =====================================================================================
  976. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  977. [Logging Date Time: 2016-11-02 11:41:40,786] =====================================================================================
  978. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  979. [Logging Date Time: 2016-11-02 11:41:40,786] =====================================================================================
  980. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  981. [Logging Date Time: 2016-11-02 11:41:40,786] =====================================================================================
  982. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  983. [Logging Date Time: 2016-11-02 11:41:40,786] =====================================================================================
  984. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  985. [Logging Date Time: 2016-11-02 11:41:40,786] =====================================================================================
  986. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  987. [Logging Date Time: 2016-11-02 11:41:40,786] =====================================================================================
  988. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  989. [Logging Date Time: 2016-11-02 11:41:50,285] =====================================================================================
  990. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  991. [Logging Date Time: 2016-11-02 11:41:50,285] =====================================================================================
  992. SQL Command - Statement Id: [getUserSignImage] PreparedStatement : [SELECT signdata FROM emr.mrfmsignimge WHERE userid = :param0 and repryn = 'Y']
  993. [Logging Date Time: 2016-11-02 11:41:50,285] =====================================================================================
  994. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  995. [Logging Date Time: 2016-11-02 11:41:50,285] =====================================================================================
  996. SQL Command - Statement Id: [getUserSignImage] Parameters: [param0=[userid,104806]]
  997. [Logging Date Time: 2016-11-02 11:41:50,285] =====================================================================================
  998. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  999. [Logging Date Time: 2016-11-02 11:41:50,285] =====================================================================================
  1000. SQL Command - Statement Id: [getUserSignImage] Types: [param0=[AnsiString, System.String]]
  1001. [Logging Date Time: 2016-11-02 11:42:09,088] =====================================================================================
  1002. SQL Command - CLIP.eForm File Upload Start
  1003. [Logging Date Time: 2016-11-02 11:42:09,092] =====================================================================================
  1004. SQL Command - CLIP.eForm File Upload: 201611/02/7e7005e2638b4ce6b9fc4415f82a335a_1.jpg
  1005. [Logging Date Time: 2016-11-02 11:42:09,092] =====================================================================================
  1006. SQL Command - CLIP.eForm File Upload: D:\TeamDFH_Consent\DFH-Consent\CLIP.e-Form.Consent.Dfh.Web\201611\02\7e7005e2638b4ce6b9fc4415f82a335a_1.jpg
  1007. [Logging Date Time: 2016-11-02 11:42:09,104] =====================================================================================
  1008. SQL Command - CLIP.eForm File Upload Impersonate START workemr
  1009. [Logging Date Time: 2016-11-02 11:42:09,122] =====================================================================================
  1010. SQL Command - CLIP.eForm File Upload Impersonate END
  1011. [Logging Date Time: 2016-11-02 11:42:09,131] =====================================================================================
  1012. SQL Command - CLIP.eForm File Upload Impersonate CLOSE
  1013. [Logging Date Time: 2016-11-02 11:42:09,131] =====================================================================================
  1014. SQL Command - CLIP.eForm File Upload End
  1015. [Logging Date Time: 2016-11-02 11:42:09,268] =====================================================================================
  1016. SQL Command - CLIP.eForm File Upload Start
  1017. [Logging Date Time: 2016-11-02 11:42:09,269] =====================================================================================
  1018. SQL Command - CLIP.eForm File Upload: 201611/02/7e7005e2638b4ce6b9fc4415f82a335a_2.jpg
  1019. [Logging Date Time: 2016-11-02 11:42:09,269] =====================================================================================
  1020. SQL Command - CLIP.eForm File Upload: D:\TeamDFH_Consent\DFH-Consent\CLIP.e-Form.Consent.Dfh.Web\201611\02\7e7005e2638b4ce6b9fc4415f82a335a_2.jpg
  1021. [Logging Date Time: 2016-11-02 11:42:09,269] =====================================================================================
  1022. SQL Command - CLIP.eForm File Upload Impersonate START workemr
  1023. [Logging Date Time: 2016-11-02 11:42:09,270] =====================================================================================
  1024. SQL Command - CLIP.eForm File Upload Impersonate END
  1025. [Logging Date Time: 2016-11-02 11:42:09,273] =====================================================================================
  1026. SQL Command - CLIP.eForm File Upload Impersonate CLOSE
  1027. [Logging Date Time: 2016-11-02 11:42:09,273] =====================================================================================
  1028. SQL Command - CLIP.eForm File Upload End
  1029. [Logging Date Time: 2016-11-02 11:42:17,683] =====================================================================================
  1030. 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]
  1031. [Logging Date Time: 2016-11-02 11:42:17,683] =====================================================================================
  1032. 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]
  1033. [Logging Date Time: 2016-11-02 11:42:17,686] =====================================================================================
  1034. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_DATA]]
  1035. [Logging Date Time: 2016-11-02 11:42:17,686] =====================================================================================
  1036. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_DATA]]
  1037. [Logging Date Time: 2016-11-02 11:42:17,686] =====================================================================================
  1038. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  1039. [Logging Date Time: 2016-11-02 11:42:17,686] =====================================================================================
  1040. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  1041. [Logging Date Time: 2016-11-02 11:42:17,713] =====================================================================================
  1042. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  1043. [Logging Date Time: 2016-11-02 11:42:17,713] =====================================================================================
  1044. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  1045. [Logging Date Time: 2016-11-02 11:42:17,714] =====================================================================================
  1046. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,1284], param1=[sub_cd,CONSENT_DATA]]
  1047. [Logging Date Time: 2016-11-02 11:42:17,714] =====================================================================================
  1048. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,1284], param1=[sub_cd,CONSENT_DATA]]
  1049. [Logging Date Time: 2016-11-02 11:42:17,714] =====================================================================================
  1050. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  1051. [Logging Date Time: 2016-11-02 11:42:17,714] =====================================================================================
  1052. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  1053. [Logging Date Time: 2016-11-02 11:42:17,721] =====================================================================================
  1054. SQL Command - Statement Id: [UPDATE_CONSENT_MST] PreparedStatement : [UPDATE CONSENT_MST SET CONSENT_STATE = :param0 , COMPLETE_YN = :param1 , COMPLETE_DATETIME = TO_CHAR(SYSDATE,'YYYY-MM-DD hh24:mi:ss'), PAPER_YN = :param2 , MODIFY_USER_ID = :param3 , MODIFY_DATETIME = TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss'), MODIFY_USER_NAME = COM.FN_ZS_GETUSERNM( :param3 , TO_CHAR(SYSDATE, 'YYYYMMDD')) WHERE CONSENT_MST_RID = :param4]
  1055. [Logging Date Time: 2016-11-02 11:42:17,721] =====================================================================================
  1056. SQL Command - Statement Id: [UPDATE_CONSENT_MST] PreparedStatement : [UPDATE CONSENT_MST SET CONSENT_STATE = :param0 , COMPLETE_YN = :param1 , COMPLETE_DATETIME = TO_CHAR(SYSDATE,'YYYY-MM-DD hh24:mi:ss'), PAPER_YN = :param2 , MODIFY_USER_ID = :param3 , MODIFY_DATETIME = TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss'), MODIFY_USER_NAME = COM.FN_ZS_GETUSERNM( :param3 , TO_CHAR(SYSDATE, 'YYYYMMDD')) WHERE CONSENT_MST_RID = :param4]
  1057. [Logging Date Time: 2016-11-02 11:42:17,722] =====================================================================================
  1058. SQL Command - Statement Id: [UPDATE_CONSENT_MST] Parameters: [param0=[consentState,CERTIFY_CMP], param1=[completeYn,Y], param2=[paperYn,N], param3=[userId,104806], param4=[consentMstRid,1412]]
  1059. [Logging Date Time: 2016-11-02 11:42:17,722] =====================================================================================
  1060. SQL Command - Statement Id: [UPDATE_CONSENT_MST] Parameters: [param0=[consentState,CERTIFY_CMP], param1=[completeYn,Y], param2=[paperYn,N], param3=[userId,104806], param4=[consentMstRid,1412]]
  1061. [Logging Date Time: 2016-11-02 11:42:17,722] =====================================================================================
  1062. SQL Command - Statement Id: [UPDATE_CONSENT_MST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[Int32, System.Int32]]
  1063. [Logging Date Time: 2016-11-02 11:42:17,722] =====================================================================================
  1064. SQL Command - Statement Id: [UPDATE_CONSENT_MST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String], param3=[AnsiString, System.String], param4=[Int32, System.Int32]]
  1065. [Logging Date Time: 2016-11-02 11:42:17,724] =====================================================================================
  1066. SQL Command - Statement Id: [INSERT_CONSENT_DATA] PreparedStatement : [insert into CONSENT_DATA ( CONSENT_DATA_RID, CONSENT_MST_RID, FORM_RID, DEVICE_TYPE, DEVICE_IDENT_NO, COMPLETE_YN, CREATE_USER_ID, CREATE_DATETIME, FORM_XML, DATA_XML ) values ( :param0 , :param1 , :param2 , :param3 , :param4 , :param5 , :param6 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss'), :param7 , :param8 )]
  1067. [Logging Date Time: 2016-11-02 11:42:17,724] =====================================================================================
  1068. SQL Command - Statement Id: [INSERT_CONSENT_DATA] PreparedStatement : [insert into CONSENT_DATA ( CONSENT_DATA_RID, CONSENT_MST_RID, FORM_RID, DEVICE_TYPE, DEVICE_IDENT_NO, COMPLETE_YN, CREATE_USER_ID, CREATE_DATETIME, FORM_XML, DATA_XML ) values ( :param0 , :param1 , :param2 , :param3 , :param4 , :param5 , :param6 , TO_CHAR(SYSDATE,'yyyy-mm-dd hh24:mi:ss'), :param7 , :param8 )]
  1069. [Logging Date Time: 2016-11-02 11:42:17,725] =====================================================================================
  1070. SQL Command - Statement Id: [INSERT_CONSENT_DATA] Parameters: [param0=[consentDataRid,1284], param1=[consentMstRid,1412], param2=[formRid,667], param3=[deviceType,WIN], param4=[deviceIdentNo,16-101-33], param5=[completeYn,Y], param6=[userId,104806], param7=[formXml,System.Byte[]], param8=[dataXml,System.Byte[]]]
  1071. [Logging Date Time: 2016-11-02 11:42:17,725] =====================================================================================
  1072. SQL Command - Statement Id: [INSERT_CONSENT_DATA] Parameters: [param0=[consentDataRid,1284], param1=[consentMstRid,1412], param2=[formRid,667], param3=[deviceType,WIN], param4=[deviceIdentNo,16-101-33], param5=[completeYn,Y], param6=[userId,104806], param7=[formXml,System.Byte[]], param8=[dataXml,System.Byte[]]]
  1073. [Logging Date Time: 2016-11-02 11:42:17,725] =====================================================================================
  1074. SQL Command - Statement Id: [INSERT_CONSENT_DATA] 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], param7=[Binary, System.Byte[]], param8=[Binary, System.Byte[]]]
  1075. [Logging Date Time: 2016-11-02 11:42:17,725] =====================================================================================
  1076. SQL Command - Statement Id: [INSERT_CONSENT_DATA] 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], param7=[Binary, System.Byte[]], param8=[Binary, System.Byte[]]]
  1077. [Logging Date Time: 2016-11-02 11:42:17,989] =====================================================================================
  1078. SQL Command - CLIP.eForm File Upload consentState[CERTIFY_CMP]
  1079. [Logging Date Time: 2016-11-02 11:42:17,989] =====================================================================================
  1080. SQL Command - CLIP.eForm File Upload certTarget[6192d3be948d78e5c57667b3131debfe3c962a03c441f25b176e4a9ff6b3aa^db46cde46a72645da0dc96261aa4e2d30122da020e4ce5f6243adb5b1b96cc5]
  1081. [Logging Date Time: 2016-11-02 11:42:17,990] =====================================================================================
  1082. SQL Command - CLIP.eForm File Upload paramHashTable[certTarget[6192d3be948d78e5c57667b3131debfe3c962a03c441f25b176e4a9ff6b3aa^db46cde46a72645da0dc96261aa4e2d30122da020e4ce5f6243adb5b1b96cc5]
  1083. [Logging Date Time: 2016-11-02 11:42:17,990] =====================================================================================
  1084. SQL Command - CLIP.eForm File Upload certResult[MIIH1gIBADEPMA0GCWCGSAFlAwQCAQUAMIGLBgkqhkiG9w0BBwGgfgR8NjE5MmQz
  1085. YmU5NDhkNzhlNWM1NzY2N2IzMTMxZGViZmUzYzk2MmEwM2M0NDFmMjViMTc2ZTRh
  1086. OWZmNmIzYWFkYjQ2Y2RlNDZhNzI2NDVkYTBkYzk2MjYxYWE0ZTJkMzAxMjJkYTAy
  1087. MGU0Y2U1ZjYyNDNhZGI1YjFiOTZjY6CCBYUwggWBMIIEaaADAgECAgQF95ypMA0G
  1088. CSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAktSMRIwEAYDVQQKDAlTaWduS29yZWEx
  1089. FTATBgNVBAsMDEFjY3JlZGl0ZWRDQTEWMBQGA1UEAwwNU2lnbktvcmVhIENBMjAe
  1090. Fw0xNTExMTcwMTA3MjFaFw0xNjEyMTYxNDU5NTlaMHQxCzAJBgNVBAYTAktSMRIw
  1091. EAYDVQQKDAlTaWduS29yZWExDzANBgNVBAsMBuydmOujjDEeMBwGA1UECwwV64yA
  1092. 6rWs7YyM7Yuw66eI67OR7JuQMQwwCgYDVQQLDANFTVIxEjAQBgNVBAMMCeusuO2Y
  1093. hOuvuDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJGVtF90tKPkKNTw
  1094. zpdR1HUVkIOFGTyf3HaVlHCvDUw+olFgXpsci5/CbEjmDNZMv8rPF/6hdWljAfld
  1095. 3ty1apoOnHjYrC+7UCG5WtmLJTtx5RoO673xUMXVf5DCd7LxE2+4uJtdYpWMDj5E
  1096. l3xgUOPAz/eHGxT7n3oAI4NRb16ZjUUPnZBHeka3Ivz8c2OADogdPH6JP9XrXLxH
  1097. o3ZH/c2dpaGDdUHNrAo+kyVWMd0fUFUqcanHJaplhlniVdxiG3kuurcls5a2krep
  1098. N0wshZvCshY9lErQnmiKQksvCSFM3M6rpmrnC8yisTqFhgHqdQaN7BQhNH+ctqF5
  1099. 3C4t6w0CAwEAAaOCAj0wggI5MIGPBgNVHSMEgYcwgYSAFCeWlr7zhNxZAWIkI+IY
  1100. e9NBjS1CoWikZjBkMQswCQYDVQQGEwJLUjENMAsGA1UECgwES0lTQTEuMCwGA1UE
  1101. CwwlS29yZWEgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgQ2VudHJhbDEWMBQGA1UE
  1102. AwwNS0lTQSBSb290Q0EgNIICEAIwHQYDVR0OBBYEFJoo7S4ujdOatjMUgK5hM6kZ
  1103. iS7+MA4GA1UdDwEB/wQEAwIGwDB5BgNVHSABAf8EbzBtMGsGCiqDGoyaRAUBAQsw
  1104. XTAtBggrBgEFBQcCARYhaHR0cDovL3d3dy5zaWdua29yZWEuY29tL2Nwcy5odG1s
  1105. MCwGCCsGAQUFBwICMCAeHsd0ACDHeMmdwRyylAAgrPXHeMd4yZ3BHMeFssiy5DBo
  1106. BgNVHREEYTBfoF0GCSqDGoyaRAoBAaBQME4MCeusuO2YhOuvuDBBMD8GCiqDGoya
  1107. RAoBAQEwMTALBglghkgBZQMEAgGgIgQgIBH+uVqndB+VQBmppaH2qXfMw+Hb1GDV
  1108. IDWl/awGd6YwWgYDVR0fBFMwUTBPoE2gS4ZJbGRhcDovL2Rpci5zaWdua29yZWEu
  1109. Y29tOjM4OS9vdT1kcDRwODgzMixvdT1BY2NyZWRpdGVkQ0Esbz1TaWduS29yZWEs
  1110. Yz1LUjA1BggrBgEFBQcBAQQpMCcwJQYIKwYBBQUHMAGGGWh0dHA6Ly9vY3NwLnNp
  1111. Z25rb3JlYS5jb20wDQYJKoZIhvcNAQELBQADggEBAALWpMv3lLq3ohOOwzwgmxlN
  1112. sr86SHqt8i2RS8sQY2CKSborx72e4+Y02sq5VTBq4eKgxv+J8r0lcAXdtUne3Kce
  1113. xP/pDC0r4rZCJwLVnfCClXhWuSz5FmnlNKNsBGn4uNi92oh2b0KYh7dUeaBlPgKJ
  1114. f/zCcQ8wjMtyg8s8CIzdxzjlq5GKOWI9Vzjy7QfmHDABjS9usJQ07s6i8Mp5htvf
  1115. u3ngWHvthT81+ogyjMHQUmt7fpvM2xpi4UEpCWph6bp7HmUc0iPti0LDK13WedeK
  1116. jBGEatxVihLvrpXbeoSuUKTZqW6R4i4CI5laBGWV0UuiwoU6DDtLvZy31r5IUlAx
  1117. ggGnMIIBowIBADB8MHQxCzAJBgNVBAYTAktSMRIwEAYDVQQKEwlTaWduS29yZWEx
  1118. DzANBgNVBAsMBuydmOujjDEeMBwGA1UECwwV64yA6rWs7YyM7Yuw66eI67OR7JuQ
  1119. MQwwCgYDVQQLEwNFTVIxEjAQBgNVBAMMCeusuO2YhOuvuAIEBfecqTANBglghkgB
  1120. ZQMEAgEFADANBgkqhkiG9w0BAQsFAASCAQCFKlIhx+kFxbooW1I/CU/7n3M9qjfN
  1121. ni7n8P/sffyNE5d7C5yH0KUXiuPdpJrmEtfHCJXChNhoPwi05zfKYVpIPHwoG7PV
  1122. 7kwtBzz/CFYLIACtulF4ss1JLqagdZOYHlMFoe6jDHaHoTgENCvN25aQ0P5Sh16P
  1123. /mTJ1wMFWYcogAl8tVWqhxXH5O7hw1DunF74DWygdcOS9/s2NMe0ixdGP/CpPDAY
  1124. PPzrpUcXvQca/i4zGGjwwBtIMDy9CgEpM07vtZ6kvz+HrTDF7dYQRmM1bvjyCAXJ
  1125. KNhjMFKsHWYvJWI+n6qD2QHkhpqvNlIIfk4fc8TBBtsem6Q4GHqZm8sK]
  1126. [Logging Date Time: 2016-11-02 11:42:17,990] =====================================================================================
  1127. SQL Command - CLIP.eForm File Upload paramHashTable[certResult[MIIH1gIBADEPMA0GCWCGSAFlAwQCAQUAMIGLBgkqhkiG9w0BBwGgfgR8NjE5MmQz
  1128. YmU5NDhkNzhlNWM1NzY2N2IzMTMxZGViZmUzYzk2MmEwM2M0NDFmMjViMTc2ZTRh
  1129. OWZmNmIzYWFkYjQ2Y2RlNDZhNzI2NDVkYTBkYzk2MjYxYWE0ZTJkMzAxMjJkYTAy
  1130. MGU0Y2U1ZjYyNDNhZGI1YjFiOTZjY6CCBYUwggWBMIIEaaADAgECAgQF95ypMA0G
  1131. CSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAktSMRIwEAYDVQQKDAlTaWduS29yZWEx
  1132. FTATBgNVBAsMDEFjY3JlZGl0ZWRDQTEWMBQGA1UEAwwNU2lnbktvcmVhIENBMjAe
  1133. Fw0xNTExMTcwMTA3MjFaFw0xNjEyMTYxNDU5NTlaMHQxCzAJBgNVBAYTAktSMRIw
  1134. EAYDVQQKDAlTaWduS29yZWExDzANBgNVBAsMBuydmOujjDEeMBwGA1UECwwV64yA
  1135. 6rWs7YyM7Yuw66eI67OR7JuQMQwwCgYDVQQLDANFTVIxEjAQBgNVBAMMCeusuO2Y
  1136. hOuvuDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJGVtF90tKPkKNTw
  1137. zpdR1HUVkIOFGTyf3HaVlHCvDUw+olFgXpsci5/CbEjmDNZMv8rPF/6hdWljAfld
  1138. 3ty1apoOnHjYrC+7UCG5WtmLJTtx5RoO673xUMXVf5DCd7LxE2+4uJtdYpWMDj5E
  1139. l3xgUOPAz/eHGxT7n3oAI4NRb16ZjUUPnZBHeka3Ivz8c2OADogdPH6JP9XrXLxH
  1140. o3ZH/c2dpaGDdUHNrAo+kyVWMd0fUFUqcanHJaplhlniVdxiG3kuurcls5a2krep
  1141. N0wshZvCshY9lErQnmiKQksvCSFM3M6rpmrnC8yisTqFhgHqdQaN7BQhNH+ctqF5
  1142. 3C4t6w0CAwEAAaOCAj0wggI5MIGPBgNVHSMEgYcwgYSAFCeWlr7zhNxZAWIkI+IY
  1143. e9NBjS1CoWikZjBkMQswCQYDVQQGEwJLUjENMAsGA1UECgwES0lTQTEuMCwGA1UE
  1144. CwwlS29yZWEgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgQ2VudHJhbDEWMBQGA1UE
  1145. AwwNS0lTQSBSb290Q0EgNIICEAIwHQYDVR0OBBYEFJoo7S4ujdOatjMUgK5hM6kZ
  1146. iS7+MA4GA1UdDwEB/wQEAwIGwDB5BgNVHSABAf8EbzBtMGsGCiqDGoyaRAUBAQsw
  1147. XTAtBggrBgEFBQcCARYhaHR0cDovL3d3dy5zaWdua29yZWEuY29tL2Nwcy5odG1s
  1148. MCwGCCsGAQUFBwICMCAeHsd0ACDHeMmdwRyylAAgrPXHeMd4yZ3BHMeFssiy5DBo
  1149. BgNVHREEYTBfoF0GCSqDGoyaRAoBAaBQME4MCeusuO2YhOuvuDBBMD8GCiqDGoya
  1150. RAoBAQEwMTALBglghkgBZQMEAgGgIgQgIBH+uVqndB+VQBmppaH2qXfMw+Hb1GDV
  1151. IDWl/awGd6YwWgYDVR0fBFMwUTBPoE2gS4ZJbGRhcDovL2Rpci5zaWdua29yZWEu
  1152. Y29tOjM4OS9vdT1kcDRwODgzMixvdT1BY2NyZWRpdGVkQ0Esbz1TaWduS29yZWEs
  1153. Yz1LUjA1BggrBgEFBQcBAQQpMCcwJQYIKwYBBQUHMAGGGWh0dHA6Ly9vY3NwLnNp
  1154. Z25rb3JlYS5jb20wDQYJKoZIhvcNAQELBQADggEBAALWpMv3lLq3ohOOwzwgmxlN
  1155. sr86SHqt8i2RS8sQY2CKSborx72e4+Y02sq5VTBq4eKgxv+J8r0lcAXdtUne3Kce
  1156. xP/pDC0r4rZCJwLVnfCClXhWuSz5FmnlNKNsBGn4uNi92oh2b0KYh7dUeaBlPgKJ
  1157. f/zCcQ8wjMtyg8s8CIzdxzjlq5GKOWI9Vzjy7QfmHDABjS9usJQ07s6i8Mp5htvf
  1158. u3ngWHvthT81+ogyjMHQUmt7fpvM2xpi4UEpCWph6bp7HmUc0iPti0LDK13WedeK
  1159. jBGEatxVihLvrpXbeoSuUKTZqW6R4i4CI5laBGWV0UuiwoU6DDtLvZy31r5IUlAx
  1160. ggGnMIIBowIBADB8MHQxCzAJBgNVBAYTAktSMRIwEAYDVQQKEwlTaWduS29yZWEx
  1161. DzANBgNVBAsMBuydmOujjDEeMBwGA1UECwwV64yA6rWs7YyM7Yuw66eI67OR7JuQ
  1162. MQwwCgYDVQQLEwNFTVIxEjAQBgNVBAMMCeusuO2YhOuvuAIEBfecqTANBglghkgB
  1163. ZQMEAgEFADANBgkqhkiG9w0BAQsFAASCAQCFKlIhx+kFxbooW1I/CU/7n3M9qjfN
  1164. ni7n8P/sffyNE5d7C5yH0KUXiuPdpJrmEtfHCJXChNhoPwi05zfKYVpIPHwoG7PV
  1165. 7kwtBzz/CFYLIACtulF4ss1JLqagdZOYHlMFoe6jDHaHoTgENCvN25aQ0P5Sh16P
  1166. /mTJ1wMFWYcogAl8tVWqhxXH5O7hw1DunF74DWygdcOS9/s2NMe0ixdGP/CpPDAY
  1167. PPzrpUcXvQca/i4zGGjwwBtIMDy9CgEpM07vtZ6kvz+HrTDF7dYQRmM1bvjyCAXJ
  1168. KNhjMFKsHWYvJWI+n6qD2QHkhpqvNlIIfk4fc8TBBtsem6Q4GHqZm8sK]
  1169. [Logging Date Time: 2016-11-02 11:42:17,991] =====================================================================================
  1170. 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]
  1171. [Logging Date Time: 2016-11-02 11:42:17,991] =====================================================================================
  1172. 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]
  1173. [Logging Date Time: 2016-11-02 11:42:17,991] =====================================================================================
  1174. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_IMAGE]]
  1175. [Logging Date Time: 2016-11-02 11:42:17,991] =====================================================================================
  1176. SQL Command - Statement Id: [GET_SEQUENCE] Parameters: [param0=[sub_cd,CONSENT_IMAGE]]
  1177. [Logging Date Time: 2016-11-02 11:42:17,991] =====================================================================================
  1178. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  1179. [Logging Date Time: 2016-11-02 11:42:17,991] =====================================================================================
  1180. SQL Command - Statement Id: [GET_SEQUENCE] Types: [param0=[AnsiString, System.String]]
  1181. [Logging Date Time: 2016-11-02 11:42:17,994] =====================================================================================
  1182. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  1183. [Logging Date Time: 2016-11-02 11:42:17,994] =====================================================================================
  1184. SQL Command - Statement Id: [UPDATE_SEQUENCE] PreparedStatement : [update EFORM_CODE set ud1_num = :param0 where main_cd = 'SEQUENCE' and sub_cd = :param1]
  1185. [Logging Date Time: 2016-11-02 11:42:17,995] =====================================================================================
  1186. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,1028], param1=[sub_cd,CONSENT_IMAGE]]
  1187. [Logging Date Time: 2016-11-02 11:42:17,995] =====================================================================================
  1188. SQL Command - Statement Id: [UPDATE_SEQUENCE] Parameters: [param0=[ud1_num,1028], param1=[sub_cd,CONSENT_IMAGE]]
  1189. [Logging Date Time: 2016-11-02 11:42:17,995] =====================================================================================
  1190. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  1191. [Logging Date Time: 2016-11-02 11:42:17,995] =====================================================================================
  1192. SQL Command - Statement Id: [UPDATE_SEQUENCE] Types: [param0=[Int32, System.Int32], param1=[AnsiString, System.String]]
  1193. [Logging Date Time: 2016-11-02 11:42:17,997] =====================================================================================
  1194. 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') )]
  1195. [Logging Date Time: 2016-11-02 11:42:17,997] =====================================================================================
  1196. 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') )]
  1197. [Logging Date Time: 2016-11-02 11:42:17,998] =====================================================================================
  1198. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE_SIGN] Parameters: [param0=[consentMstRid,1412], param1=[consentImageRid,1028], param2=[certTarget,6192d3be948d78e5c57667b3131debfe3c962a03c441f25b176e4a9ff6b3aa^db46cde46a72645da0dc96261aa4e2d30122da020e4ce5f6243adb5b1b96cc5], param3=[certResult,MIIH1gIBADEPMA0GCWCGSAFlAwQCAQUAMIGLBgkqhkiG9w0BBwGgfgR8NjE5MmQz
  1199. YmU5NDhkNzhlNWM1NzY2N2IzMTMxZGViZmUzYzk2MmEwM2M0NDFmMjViMTc2ZTRh
  1200. OWZmNmIzYWFkYjQ2Y2RlNDZhNzI2NDVkYTBkYzk2MjYxYWE0ZTJkMzAxMjJkYTAy
  1201. MGU0Y2U1ZjYyNDNhZGI1YjFiOTZjY6CCBYUwggWBMIIEaaADAgECAgQF95ypMA0G
  1202. CSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAktSMRIwEAYDVQQKDAlTaWduS29yZWEx
  1203. FTATBgNVBAsMDEFjY3JlZGl0ZWRDQTEWMBQGA1UEAwwNU2lnbktvcmVhIENBMjAe
  1204. Fw0xNTExMTcwMTA3MjFaFw0xNjEyMTYxNDU5NTlaMHQxCzAJBgNVBAYTAktSMRIw
  1205. EAYDVQQKDAlTaWduS29yZWExDzANBgNVBAsMBuydmOujjDEeMBwGA1UECwwV64yA
  1206. 6rWs7YyM7Yuw66eI67OR7JuQMQwwCgYDVQQLDANFTVIxEjAQBgNVBAMMCeusuO2Y
  1207. hOuvuDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJGVtF90tKPkKNTw
  1208. zpdR1HUVkIOFGTyf3HaVlHCvDUw+olFgXpsci5/CbEjmDNZMv8rPF/6hdWljAfld
  1209. 3ty1apoOnHjYrC+7UCG5WtmLJTtx5RoO673xUMXVf5DCd7LxE2+4uJtdYpWMDj5E
  1210. l3xgUOPAz/eHGxT7n3oAI4NRb16ZjUUPnZBHeka3Ivz8c2OADogdPH6JP9XrXLxH
  1211. o3ZH/c2dpaGDdUHNrAo+kyVWMd0fUFUqcanHJaplhlniVdxiG3kuurcls5a2krep
  1212. N0wshZvCshY9lErQnmiKQksvCSFM3M6rpmrnC8yisTqFhgHqdQaN7BQhNH+ctqF5
  1213. 3C4t6w0CAwEAAaOCAj0wggI5MIGPBgNVHSMEgYcwgYSAFCeWlr7zhNxZAWIkI+IY
  1214. e9NBjS1CoWikZjBkMQswCQYDVQQGEwJLUjENMAsGA1UECgwES0lTQTEuMCwGA1UE
  1215. CwwlS29yZWEgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgQ2VudHJhbDEWMBQGA1UE
  1216. AwwNS0lTQSBSb290Q0EgNIICEAIwHQYDVR0OBBYEFJoo7S4ujdOatjMUgK5hM6kZ
  1217. iS7+MA4GA1UdDwEB/wQEAwIGwDB5BgNVHSABAf8EbzBtMGsGCiqDGoyaRAUBAQsw
  1218. XTAtBggrBgEFBQcCARYhaHR0cDovL3d3dy5zaWdua29yZWEuY29tL2Nwcy5odG1s
  1219. MCwGCCsGAQUFBwICMCAeHsd0ACDHeMmdwRyylAAgrPXHeMd4yZ3BHMeFssiy5DBo
  1220. BgNVHREEYTBfoF0GCSqDGoyaRAoBAaBQME4MCeusuO2YhOuvuDBBMD8GCiqDGoya
  1221. RAoBAQEwMTALBglghkgBZQMEAgGgIgQgIBH+uVqndB+VQBmppaH2qXfMw+Hb1GDV
  1222. IDWl/awGd6YwWgYDVR0fBFMwUTBPoE2gS4ZJbGRhcDovL2Rpci5zaWdua29yZWEu
  1223. Y29tOjM4OS9vdT1kcDRwODgzMixvdT1BY2NyZWRpdGVkQ0Esbz1TaWduS29yZWEs
  1224. Yz1LUjA1BggrBgEFBQcBAQQpMCcwJQYIKwYBBQUHMAGGGWh0dHA6Ly9vY3NwLnNp
  1225. Z25rb3JlYS5jb20wDQYJKoZIhvcNAQELBQADggEBAALWpMv3lLq3ohOOwzwgmxlN
  1226. sr86SHqt8i2RS8sQY2CKSborx72e4+Y02sq5VTBq4eKgxv+J8r0lcAXdtUne3Kce
  1227. xP/pDC0r4rZCJwLVnfCClXhWuSz5FmnlNKNsBGn4uNi92oh2b0KYh7dUeaBlPgKJ
  1228. f/zCcQ8wjMtyg8s8CIzdxzjlq5GKOWI9Vzjy7QfmHDABjS9usJQ07s6i8Mp5htvf
  1229. u3ngWHvthT81+ogyjMHQUmt7fpvM2xpi4UEpCWph6bp7HmUc0iPti0LDK13WedeK
  1230. jBGEatxVihLvrpXbeoSuUKTZqW6R4i4CI5laBGWV0UuiwoU6DDtLvZy31r5IUlAx
  1231. ggGnMIIBowIBADB8MHQxCzAJBgNVBAYTAktSMRIwEAYDVQQKEwlTaWduS29yZWEx
  1232. DzANBgNVBAsMBuydmOujjDEeMBwGA1UECwwV64yA6rWs7YyM7Yuw66eI67OR7JuQ
  1233. MQwwCgYDVQQLEwNFTVIxEjAQBgNVBAMMCeusuO2YhOuvuAIEBfecqTANBglghkgB
  1234. ZQMEAgEFADANBgkqhkiG9w0BAQsFAASCAQCFKlIhx+kFxbooW1I/CU/7n3M9qjfN
  1235. ni7n8P/sffyNE5d7C5yH0KUXiuPdpJrmEtfHCJXChNhoPwi05zfKYVpIPHwoG7PV
  1236. 7kwtBzz/CFYLIACtulF4ss1JLqagdZOYHlMFoe6jDHaHoTgENCvN25aQ0P5Sh16P
  1237. /mTJ1wMFWYcogAl8tVWqhxXH5O7hw1DunF74DWygdcOS9/s2NMe0ixdGP/CpPDAY
  1238. PPzrpUcXvQca/i4zGGjwwBtIMDy9CgEpM07vtZ6kvz+HrTDF7dYQRmM1bvjyCAXJ
  1239. KNhjMFKsHWYvJWI+n6qD2QHkhpqvNlIIfk4fc8TBBtsem6Q4GHqZm8sK], param4=[userId,104806]]
  1240. [Logging Date Time: 2016-11-02 11:42:17,998] =====================================================================================
  1241. SQL Command - Statement Id: [INSERT_CONSENT_IMAGE_SIGN] Parameters: [param0=[consentMstRid,1412], param1=[consentImageRid,1028], param2=[certTarget,6192d3be948d78e5c57667b3131debfe3c962a03c441f25b176e4a9ff6b3aa^db46cde46a72645da0dc96261aa4e2d30122da020e4ce5f6243adb5b1b96cc5], param3=[certResult,MIIH1gIBADEPMA0GCWCGSAFlAwQCAQUAMIGLBgkqhkiG9w0BBwGgfgR8NjE5MmQz
  1242. YmU5NDhkNzhlNWM1NzY2N2IzMTMxZGViZmUzYzk2MmEwM2M0NDFmMjViMTc2ZTRh
  1243. OWZmNmIzYWFkYjQ2Y2RlNDZhNzI2NDVkYTBkYzk2MjYxYWE0ZTJkMzAxMjJkYTAy
  1244. MGU0Y2U1ZjYyNDNhZGI1YjFiOTZjY6CCBYUwggWBMIIEaaADAgECAgQF95ypMA0G
  1245. CSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAktSMRIwEAYDVQQKDAlTaWduS29yZWEx
  1246. FTATBgNVBAsMDEFjY3JlZGl0ZWRDQTEWMBQGA1UEAwwNU2lnbktvcmVhIENBMjAe
  1247. Fw0xNTExMTcwMTA3MjFaFw0xNjEyMTYxNDU5NTlaMHQxCzAJBgNVBAYTAktSMRIw
  1248. EAYDVQQKDAlTaWduS29yZWExDzANBgNVBAsMBuydmOujjDEeMBwGA1UECwwV64yA
  1249. 6rWs7YyM7Yuw66eI67OR7JuQMQwwCgYDVQQLDANFTVIxEjAQBgNVBAMMCeusuO2Y
  1250. hOuvuDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJGVtF90tKPkKNTw
  1251. zpdR1HUVkIOFGTyf3HaVlHCvDUw+olFgXpsci5/CbEjmDNZMv8rPF/6hdWljAfld
  1252. 3ty1apoOnHjYrC+7UCG5WtmLJTtx5RoO673xUMXVf5DCd7LxE2+4uJtdYpWMDj5E
  1253. l3xgUOPAz/eHGxT7n3oAI4NRb16ZjUUPnZBHeka3Ivz8c2OADogdPH6JP9XrXLxH
  1254. o3ZH/c2dpaGDdUHNrAo+kyVWMd0fUFUqcanHJaplhlniVdxiG3kuurcls5a2krep
  1255. N0wshZvCshY9lErQnmiKQksvCSFM3M6rpmrnC8yisTqFhgHqdQaN7BQhNH+ctqF5
  1256. 3C4t6w0CAwEAAaOCAj0wggI5MIGPBgNVHSMEgYcwgYSAFCeWlr7zhNxZAWIkI+IY
  1257. e9NBjS1CoWikZjBkMQswCQYDVQQGEwJLUjENMAsGA1UECgwES0lTQTEuMCwGA1UE
  1258. CwwlS29yZWEgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgQ2VudHJhbDEWMBQGA1UE
  1259. AwwNS0lTQSBSb290Q0EgNIICEAIwHQYDVR0OBBYEFJoo7S4ujdOatjMUgK5hM6kZ
  1260. iS7+MA4GA1UdDwEB/wQEAwIGwDB5BgNVHSABAf8EbzBtMGsGCiqDGoyaRAUBAQsw
  1261. XTAtBggrBgEFBQcCARYhaHR0cDovL3d3dy5zaWdua29yZWEuY29tL2Nwcy5odG1s
  1262. MCwGCCsGAQUFBwICMCAeHsd0ACDHeMmdwRyylAAgrPXHeMd4yZ3BHMeFssiy5DBo
  1263. BgNVHREEYTBfoF0GCSqDGoyaRAoBAaBQME4MCeusuO2YhOuvuDBBMD8GCiqDGoya
  1264. RAoBAQEwMTALBglghkgBZQMEAgGgIgQgIBH+uVqndB+VQBmppaH2qXfMw+Hb1GDV
  1265. IDWl/awGd6YwWgYDVR0fBFMwUTBPoE2gS4ZJbGRhcDovL2Rpci5zaWdua29yZWEu
  1266. Y29tOjM4OS9vdT1kcDRwODgzMixvdT1BY2NyZWRpdGVkQ0Esbz1TaWduS29yZWEs
  1267. Yz1LUjA1BggrBgEFBQcBAQQpMCcwJQYIKwYBBQUHMAGGGWh0dHA6Ly9vY3NwLnNp
  1268. Z25rb3JlYS5jb20wDQYJKoZIhvcNAQELBQADggEBAALWpMv3lLq3ohOOwzwgmxlN
  1269. sr86SHqt8i2RS8sQY2CKSborx72e4+Y02sq5VTBq4eKgxv+J8r0lcAXdtUne3Kce
  1270. xP/pDC0r4rZCJwLVnfCClXhWuSz5FmnlNKNsBGn4uNi92oh2b0KYh7dUeaBlPgKJ
  1271. f/zCcQ8wjMtyg8s8CIzdxzjlq5GKOWI9Vzjy7QfmHDABjS9usJQ07s6i8Mp5htvf
  1272. u3ngWHvthT81+ogyjMHQUmt7fpvM2xpi4UEpCWph6bp7HmUc0iPti0LDK13WedeK
  1273. jBGEatxVihLvrpXbeoSuUKTZqW6R4i4CI5laBGWV0UuiwoU6DDtLvZy31r5IUlAx
  1274. ggGnMIIBowIBADB8MHQxCzAJBgNVBAYTAktSMRIwEAYDVQQKEwlTaWduS29yZWEx
  1275. DzANBgNVBAsMBuydmOujjDEeMBwGA1UECwwV64yA6rWs7YyM7Yuw66eI67OR7JuQ
  1276. MQwwCgYDVQQLEwNFTVIxEjAQBgNVBAMMCeusuO2YhOuvuAIEBfecqTANBglghkgB
  1277. ZQMEAgEFADANBgkqhkiG9w0BAQsFAASCAQCFKlIhx+kFxbooW1I/CU/7n3M9qjfN
  1278. ni7n8P/sffyNE5d7C5yH0KUXiuPdpJrmEtfHCJXChNhoPwi05zfKYVpIPHwoG7PV
  1279. 7kwtBzz/CFYLIACtulF4ss1JLqagdZOYHlMFoe6jDHaHoTgENCvN25aQ0P5Sh16P
  1280. /mTJ1wMFWYcogAl8tVWqhxXH5O7hw1DunF74DWygdcOS9/s2NMe0ixdGP/CpPDAY
  1281. PPzrpUcXvQca/i4zGGjwwBtIMDy9CgEpM07vtZ6kvz+HrTDF7dYQRmM1bvjyCAXJ
  1282. KNhjMFKsHWYvJWI+n6qD2QHkhpqvNlIIfk4fc8TBBtsem6Q4GHqZm8sK], param4=[userId,104806]]
  1283. [Logging Date Time: 2016-11-02 11:42:17,998] =====================================================================================
  1284. 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]]
  1285. [Logging Date Time: 2016-11-02 11:42:17,998] =====================================================================================
  1286. 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]]
  1287. [Logging Date Time: 2016-11-02 11:42:18,216] =====================================================================================
  1288. 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;]
  1289. [Logging Date Time: 2016-11-02 11:42:18,216] =====================================================================================
  1290. 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;]
  1291. [Logging Date Time: 2016-11-02 11:42:18,217] =====================================================================================
  1292. SQL Command - Statement Id: [setFileName] Parameters: [param0=[pid,1982227], param1=[ordtype,I], param2=[orddd,20161102], param3=[dschdd,99991231], param4=[cretno,1], param5=[filesize,500], param6=[formcd,1300010288], param7=[pageno,0], param8=[ocrtag,2016110262962], param9=[userid,104806]]
  1293. [Logging Date Time: 2016-11-02 11:42:18,217] =====================================================================================
  1294. SQL Command - Statement Id: [setFileName] Parameters: [param0=[pid,1982227], param1=[ordtype,I], param2=[orddd,20161102], param3=[dschdd,99991231], param4=[cretno,1], param5=[filesize,500], param6=[formcd,1300010288], param7=[pageno,0], param8=[ocrtag,2016110262962], param9=[userid,104806]]
  1295. [Logging Date Time: 2016-11-02 11:42:18,217] =====================================================================================
  1296. 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]]
  1297. [Logging Date Time: 2016-11-02 11:42:18,217] =====================================================================================
  1298. 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]]
  1299. [Logging Date Time: 2016-11-02 11:42:19,221] =====================================================================================
  1300. 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.outdate = :param3 and a.TREATNO = b.TREATNO and b.formcode = :param4 and b.ocrcode = :param5 and b.page = :param6 and b.pageno = c.pageno and d.pathid = c.pathid and d.active = 'Y']
  1301. [Logging Date Time: 2016-11-02 11:42:19,221] =====================================================================================
  1302. 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.outdate = :param3 and a.TREATNO = b.TREATNO and b.formcode = :param4 and b.ocrcode = :param5 and b.page = :param6 and b.pageno = c.pageno and d.pathid = c.pathid and d.active = 'Y']
  1303. [Logging Date Time: 2016-11-02 11:42:19,221] =====================================================================================
  1304. SQL Command - Statement Id: [getFileName] Parameters: [param0=[pid,1982227], param1=[ordtype,I], param2=[orddd,20161102], param3=[dschdd,99991231], param4=[formcd,1300010288], param5=[ocrtag,2016110262962], param6=[pageno,0]]
  1305. [Logging Date Time: 2016-11-02 11:42:19,221] =====================================================================================
  1306. SQL Command - Statement Id: [getFileName] Parameters: [param0=[pid,1982227], param1=[ordtype,I], param2=[orddd,20161102], param3=[dschdd,99991231], param4=[formcd,1300010288], param5=[ocrtag,2016110262962], param6=[pageno,0]]
  1307. [Logging Date Time: 2016-11-02 11:42:19,222] =====================================================================================
  1308. 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], param6=[AnsiString, System.String]]
  1309. [Logging Date Time: 2016-11-02 11:42:19,222] =====================================================================================
  1310. 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], param6=[AnsiString, System.String]]
  1311. [Logging Date Time: 2016-11-02 11:42:19,235] =====================================================================================
  1312. SQL Command - CLIP.eForm File Upload localpath[D:\TeamDFH_Consent\DFH-Consent\CLIP.e-Form.Consent.Dfh.Web\UPLOAD\201611\02\7e7005e2638b4ce6b9fc4415f82a335a_1.jpg]
  1313. [Logging Date Time: 2016-11-02 11:42:19,236] =====================================================================================
  1314. SQL Command - CLIP.eForm File Upload uploadFileName[Image3\fnuImage\201611\02\103138200.jpg]
  1315. [Logging Date Time: 2016-11-02 11:42:19,236] =====================================================================================
  1316. SQL Command - CLIP.eForm File Upload uploadFileName[\\192.168.100.32\image_a03\fnuImage\201611\02\103138200.jpg]
  1317. [Logging Date Time: 2016-11-02 11:42:19,236] =====================================================================================
  1318. SQL Command - CLIP.eForm File Upload Impersonate START workemr
  1319. [Logging Date Time: 2016-11-02 11:42:19,237] =====================================================================================
  1320. SQL Command - CLIP.eForm File Upload Impersonate END
  1321. [Logging Date Time: 2016-11-02 11:42:19,476] =====================================================================================
  1322. SQL Command - CLIP.eForm imageUpload ERROR : [System.IO.DirectoryNotFoundException: 'D:\TeamDFH_Consent\DFH-Consent\CLIP.e-Form.Consent.Dfh.Web\UPLOAD\201611\02\7e7005e2638b4ce6b9fc4415f82a335a_1.jpg' 경로의 일부를 찾을 수 없습니다.
  1323. 위치: System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
  1324. 위치: System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
  1325. 위치: System.IO.File.Copy(String sourceFileName, String destFileName)
  1326. 위치: CLIP.eForm.Consent.Dfh.WebService.ConsentSvc.imageUpload(SaveConsentDac dac, Hashtable paramHashTable, String userId, String patientCode, String visitType, String clnDate, String Dschdd, Int32 cretno, String ocrcode, Int32 consentMstRid, String consentState, String formCd, Int32 formRid, String dataXml, String imageFileJson, String certTarget, String certResult) 파일 D:\TeamDFH_Consent\DFH-Consent\CLIP.e-Form.Consent.Dfh.Web\ConsentSvc.asmx.cs:줄 1034]