Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8608

Command Line Help

$
0
0

I need to modify the filter to include patients with hospitalist that have been added after the signed off, hospitalist.  How can I modify the filter to accomplish this?

 

With filter as (

  Select distinct

    htt.PAT_ID

  from EPICADM.HSP_TRTMT_TEAM htt

  where htt.PROV_ID='411467' --SIGNED OFF, HOSPITALIST

      and htt.TRTMNT_TM_BEGIN_DT>={ts '2014-08-08 00:00:00'}

      and htt.TRTMNT_TM_BEGIN_DT<={ts '2014-08-19 09:14:00'}

)

 

Sample Data:

 

HospitalistTRTMNT_TM_BEGIN_DTTRTMNT_TM_END_DTHOSP_DISCH_TIME
SIGNED OFF, HOSPITALIST8/16/2014  11:41:00 AM8/18/2014  2:47:00 PM8/20/2014  11:55:00 AM
LOF, S8/18/2014  2:47:00 PM8/18/2014  6:40:00 PM8/20/2014  11:55:00 AM
GEORGE, S8/18/2014  6:40:00 PM8/19/2014  5:20:00 PM8/20/2014  11:55:00 AM
GEORGE, S8/19/2014  5:20:00 PM8/20/2014  11:55:00 AM

Viewing all articles
Browse latest Browse all 8608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>