eFormServer.iBATIS.log_2016-10-31 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. [Logging Date Time: 2016-10-31 21:06:03,502] =====================================================================================
  2. 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]]
  3. [Logging Date Time: 2016-10-31 21:06:03,502] =====================================================================================
  4. 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]]
  5. [Logging Date Time: 2016-10-31 21:06:03,819] =====================================================================================
  6. 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]
  7. [Logging Date Time: 2016-10-31 21:06:03,819] =====================================================================================
  8. 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]
  9. [Logging Date Time: 2016-10-31 21:06:03,820] =====================================================================================
  10. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1928586], param1=[startDt,20010601], param2=[endDt,20161031]]
  11. [Logging Date Time: 2016-10-31 21:06:03,820] =====================================================================================
  12. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1928586], param1=[startDt,20010601], param2=[endDt,20161031]]
  13. [Logging Date Time: 2016-10-31 21:06:03,820] =====================================================================================
  14. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  15. [Logging Date Time: 2016-10-31 21:06:03,820] =====================================================================================
  16. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  17. [Logging Date Time: 2016-10-31 21:06:13,779] =====================================================================================
  18. 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]
  19. [Logging Date Time: 2016-10-31 21:06:13,779] =====================================================================================
  20. 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]
  21. [Logging Date Time: 2016-10-31 21:06:13,779] =====================================================================================
  22. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  23. [Logging Date Time: 2016-10-31 21:06:13,779] =====================================================================================
  24. SQL Command - Statement Id: [GET_USER_INFO] Parameters: [param0=[userid,104806]]
  25. [Logging Date Time: 2016-10-31 21:06:13,779] =====================================================================================
  26. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  27. [Logging Date Time: 2016-10-31 21:06:13,779] =====================================================================================
  28. SQL Command - Statement Id: [GET_USER_INFO] Types: [param0=[AnsiString, System.String]]
  29. [Logging Date Time: 2016-10-31 21:06:13,829] =====================================================================================
  30. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  31. [Logging Date Time: 2016-10-31 21:06:13,829] =====================================================================================
  32. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  33. [Logging Date Time: 2016-10-31 21:06:13,830] =====================================================================================
  34. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,E], param1=[instcd,111], param2=[pid,1514012], param3=[orddd,20161031], param4=[cretno,1]]
  35. [Logging Date Time: 2016-10-31 21:06:13,830] =====================================================================================
  36. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,E], param1=[instcd,111], param2=[pid,1514012], param3=[orddd,20161031], param4=[cretno,1]]
  37. [Logging Date Time: 2016-10-31 21:06:13,830] =====================================================================================
  38. 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]]
  39. [Logging Date Time: 2016-10-31 21:06:13,830] =====================================================================================
  40. 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]]
  41. [Logging Date Time: 2016-10-31 21:06:13,913] =====================================================================================
  42. 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]
  43. [Logging Date Time: 2016-10-31 21:06:13,913] =====================================================================================
  44. 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]
  45. [Logging Date Time: 2016-10-31 21:06:13,914] =====================================================================================
  46. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1514012], param2=[searchClnDate,20161031]]
  47. [Logging Date Time: 2016-10-31 21:06:13,914] =====================================================================================
  48. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Parameters: [param0=[instcd,111], param1=[pid,1514012], param2=[searchClnDate,20161031]]
  49. [Logging Date Time: 2016-10-31 21:06:13,914] =====================================================================================
  50. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  51. [Logging Date Time: 2016-10-31 21:06:13,914] =====================================================================================
  52. SQL Command - Statement Id: [GET_TRMT_DATE_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  53. [Logging Date Time: 2016-10-31 21:06:13,969] =====================================================================================
  54. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  55. [Logging Date Time: 2016-10-31 21:06:13,969] =====================================================================================
  56. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  57. [Logging Date Time: 2016-10-31 21:06:13,970] =====================================================================================
  58. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,E], param1=[instcd,111], param2=[pid,1514012], param3=[orddd,20161031], param4=[cretno,1]]
  59. [Logging Date Time: 2016-10-31 21:06:13,970] =====================================================================================
  60. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,E], param1=[instcd,111], param2=[pid,1514012], param3=[orddd,20161031], param4=[cretno,1]]
  61. [Logging Date Time: 2016-10-31 21:06:13,970] =====================================================================================
  62. 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]]
  63. [Logging Date Time: 2016-10-31 21:06:13,970] =====================================================================================
  64. 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]]
  65. [Logging Date Time: 2016-10-31 21:06:14,062] =====================================================================================
  66. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  67. [Logging Date Time: 2016-10-31 21:06:14,062] =====================================================================================
  68. SQL Command - Statement Id: [getPatientInfoIn] PreparedStatement : [SELECT a.orddeptcd, a.pid as IO_Pt_ID, to_char(a.cretno) as IO_CretNo, (select ptbs.sex || '/' || com.fn_zz_getageas(ptbs.rrgstno1, ptbs.rrgstno2, TO_CHAR(SYSDATE, 'YYYYMMDD'), 'A', ptbs.brthdd) from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_sex_age_y_m, (select ptbs.hngnm from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) as IO_Pt_Name, (select ptbs.rrgstno1 || '-' || substr(ptbs.rrgstno2, 1, 1) || '******' from pam.pmcmptbs ptbs where ptbs.instcd = a.instcd and ptbs.pid = a.pid) IO_JuminNo, (select dept.DEPTENGABBR from com.zsdddept dept where dept.deptcd = a.wardcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_Ward, a.roomcd as IO_roomNO, a.indd as IO_ADdate, a.dschdd as IO_Dschdd, a.ordtype as IO_VisitType, a.orddeptcd as IO_DeptCd, (select dept.deptengabbr from com.zsdddept dept where dept.deptcd = a.orddeptcd and dept.instcd = a.instcd and dept.valitodd >= a.indd and dept.valifromdd <= a.indd) as IO_DeptNm, COM.FN_ZS_GETDEPTNAME(a.instcd, a.orddeptcd, a.indd) AS IO_Dept2, oprs.perfdeptcd AS IO_OPdeptCd, COM.FN_ZS_GETDEPTNAME(a.instcd, oprs.perfdeptcd, a.indd) AS IO_OPdeptNm, COM.FN_ZS_GETUSERNM(oprs.perfdrid, a.indd) AS IO_OPdrNm, oprs.perfdrid AS IO_OPdrId, (SELECT diag.diagcd FROM emr.mmohdiag diag WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxCd, (SELECT term.diaghngnm FROM emr.mmohdiag diag, emr.mmbvdiag term WHERE diag.pid = a.pid AND diag.orddd = a.indd AND diag.cretno = a.cretno AND diag.instcd = term.instcd AND diag.diagcd = term.orgdiagcd AND diag.diaghistcd = 'O' AND diag.diagtypecd = 'D' AND diag.diagkindcdflag = 'M' AND diag.diagdd >= term.termfromdd AND diag.diagdd <= term.termtodd AND diag.diagdd >= term.diagattrfromdd AND diag.diagdd <= term.diagattrtodd AND diag.genrflagcd = :param0 AND diag.diaghistno = (select max(diagh.diaghistno) from emr.mmohdiag diagh where diagh.pid = a.pid AND diagh.orddd = a.indd AND diagh.cretno = a.cretno group by pid)) as IO_DxNm, a.MEDISPCLID as IO_MaindrId, COM.FN_ZS_GETUSERNM(a.MEDISPCLID, a.indd) as IO_MaindrNm, '111' as IO_HosType, case when ex.bp is null then '02' else ex.bp end as IO_bp, case when ex.dm is null then '02' else ex.dm end as IO_dm, case when ex.heart is null then '02' else ex.heart end as IO_heart, case when ex.kidney is null then '02' else ex.kidney end as IO_kidney, case when ex.respiration is null then '02' else ex.respiration end as IO_respiration, case when ex.hx is null then '02' else ex.hx end as IO_hx, case when ex.allergy is null then '02' else ex.allergy end as IO_allergy, case when ex.drug is null then '02' else ex.drug end as IO_drug, case when ex.smoking is null then '02' else ex.smoking end as IO_smoking, case when ex.idio is null then '02' else ex.idio end as IO_idio, case when ex.nacrotics is null then '02' else ex.nacrotics end as IO_nacrotics, case when ex.airway is null then '02' else ex.airway end as IO_airway, case when ex.hemorrhage is null then '02' else ex.hemorrhage end as IO_hemorrhage, ex.etc IO_status_etc, '111' as IO_OrderNo, '111' as IO_PrintTime, '111' as IO_MaindrId, '111' as IO_MaindrNm, '111' as IO_OcrCd, '111' as IO_InputId, '111' as IO_InputNm, '111' as IO_SignImg, a.fstrgstdt FROM pam.pmihinpt a left outer join emr.mmohoprs oprs on (oprs.pid = a.pid and oprs.ophistcd = 'O' and opcnfmdd >= a.indd ) left outer join cmr.consent_data_ex ex on (ex.pid = a.pid and ex.cln_date = a.indd) WHERE a.instcd = :param1 AND a.pid = :param2 AND a.indd = :param3 AND a.histstat = 'Y' AND a.mskind = 'M' AND a.cretno = :param4 order by a.fstrgstdt desc]
  69. [Logging Date Time: 2016-10-31 21:06:14,063] =====================================================================================
  70. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,E], param1=[instcd,111], param2=[pid,1514012], param3=[orddd,20161031], param4=[cretno,1]]
  71. [Logging Date Time: 2016-10-31 21:06:14,063] =====================================================================================
  72. SQL Command - Statement Id: [getPatientInfoIn] Parameters: [param0=[ordtype,E], param1=[instcd,111], param2=[pid,1514012], param3=[orddd,20161031], param4=[cretno,1]]
  73. [Logging Date Time: 2016-10-31 21:06:14,063] =====================================================================================
  74. 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]]
  75. [Logging Date Time: 2016-10-31 21:06:14,063] =====================================================================================
  76. 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]]
  77. [Logging Date Time: 2016-10-31 21:06:14,160] =====================================================================================
  78. 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]
  79. [Logging Date Time: 2016-10-31 21:06:14,160] =====================================================================================
  80. 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]
  81. [Logging Date Time: 2016-10-31 21:06:14,161] =====================================================================================
  82. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1514012], param1=[startDt,20010601], param2=[endDt,20161031]]
  83. [Logging Date Time: 2016-10-31 21:06:14,161] =====================================================================================
  84. SQL Command - Statement Id: [GET_CONSENT_LIST] Parameters: [param0=[patientCode,1514012], param1=[startDt,20010601], param2=[endDt,20161031]]
  85. [Logging Date Time: 2016-10-31 21:06:14,161] =====================================================================================
  86. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]
  87. [Logging Date Time: 2016-10-31 21:06:14,161] =====================================================================================
  88. SQL Command - Statement Id: [GET_CONSENT_LIST] Types: [param0=[AnsiString, System.String], param1=[AnsiString, System.String], param2=[AnsiString, System.String]]