<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Finding Patient Readmits in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70190#M1641</link>
    <description>Believe it or not I still haven't been able to figure this out yet.  Even if I could just start off with finding cases of patients readmitted within 30 days I'd be happy.  I haven't been working with SAS much over the last few years so really rusty...can someone please provide assistance?&lt;BR /&gt;
&lt;BR /&gt;
Note that I do know how to sort the data by the patient unique identifier of chartno but that is about it.  The data has admit date and disch date in it as well.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
    <pubDate>Fri, 07 Jan 2011 20:39:48 GMT</pubDate>
    <dc:creator>shellp55</dc:creator>
    <dc:date>2011-01-07T20:39:48Z</dc:date>
    <item>
      <title>Finding Patient Readmits</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70188#M1639</link>
      <description>Hello&lt;BR /&gt;
&lt;BR /&gt;
I'm using SAS 9.1.  I imported data from the hospital software system where one line of data is one patient visit.&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is, using the health card number, show # of readmits per patient within my organization (which is comprised of many hospitals).   &lt;BR /&gt;
&lt;BR /&gt;
I am assuming I'll need to sort the data in discharge date order so that I can calculate current admit date with previous discharge date to see if there was a readmit.   I'll want to know # of readmits in 7 days, 14 days, 21 days, 30 days and greater than 30 days PER that one patient.  &lt;BR /&gt;
&lt;BR /&gt;
How would I also be able to add other information per the readmit i.e. main diagnosis etc.?&lt;BR /&gt;
&lt;BR /&gt;
Is this possible and if so, how?  Thanks.</description>
      <pubDate>Tue, 08 Sep 2009 20:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70188#M1639</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2009-09-08T20:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Patient Readmits</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70189#M1640</link>
      <description>Suggest you start out by sorting your SAS dataset in some desired BY variable order, then analyze your observations using IF FIRST.&lt;BREAK_VARIABLE&gt; to track the variable(s) that indicate a "readmit" condition.  And use the INTCK function to derive a "days since last admitted" and count your "# of readmits".&lt;BR /&gt;
&lt;BR /&gt;
The additional "other information" is going to be up to your data, as well.  &lt;BR /&gt;
&lt;BR /&gt;
You are going to want to get your feet wet with some straightforward DATA step programming - some links are provided below from the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Step-by-Step Programming with Base SAS(R) Software&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001310736.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001310736.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
SAS Language Concepts - How the DATA Step Identifies BY Groups&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000761931.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000761931.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
SAS Language Dictionary: INTCK function&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000212868.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000212868.htm&lt;/A&gt;&lt;/BREAK_VARIABLE&gt;</description>
      <pubDate>Tue, 08 Sep 2009 21:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70189#M1640</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-08T21:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Patient Readmits</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70190#M1641</link>
      <description>Believe it or not I still haven't been able to figure this out yet.  Even if I could just start off with finding cases of patients readmitted within 30 days I'd be happy.  I haven't been working with SAS much over the last few years so really rusty...can someone please provide assistance?&lt;BR /&gt;
&lt;BR /&gt;
Note that I do know how to sort the data by the patient unique identifier of chartno but that is about it.  The data has admit date and disch date in it as well.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Fri, 07 Jan 2011 20:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70190#M1641</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2011-01-07T20:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Patient Readmits</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70191#M1642</link>
      <description>Here's a rough skeleton of what I think you're asking:&lt;BR /&gt;
&lt;BR /&gt;
Assuming you have an ID variable (patient number, health card, what ever) and that the date of admission is a SAS date value:&lt;BR /&gt;
&lt;BR /&gt;
Proc sort data=[your data set name]; by patient_id admin_date;run;&lt;BR /&gt;
/* or what ever you have named your ID and date variables*/&lt;BR /&gt;
&lt;BR /&gt;
Data [new data set name];&lt;BR /&gt;
   set [your data set name];&lt;BR /&gt;
   by patient_id;&lt;BR /&gt;
   last_admin_date=lag(admin_date);&lt;BR /&gt;
   date_dif = admin_date - last_admin_date; &lt;BR /&gt;
/* create some 0/1 coded variables to get counts by summing*/&lt;BR /&gt;
   if first.patient_id then do;&lt;BR /&gt;
      readmin_7  = 0;&lt;BR /&gt;
      readmin_14 = 0;&lt;BR /&gt;
      readmin_21 = 0;&lt;BR /&gt;
      readmin_30 = 0;&lt;BR /&gt;
      readmin_more= 0;&lt;BR /&gt;
      date_dif = 0;/* 0 days since last visit for first*/&lt;BR /&gt;
   end;&lt;BR /&gt;
   else do;&lt;BR /&gt;
      readmin_7  = (date_dif le 7);&lt;BR /&gt;
      readmin_14 = (date_dif le 14);&lt;BR /&gt;
      readmin_21 = (date_dif le 21);&lt;BR /&gt;
      readmin_30 = (date_dif le 30);&lt;BR /&gt;
      readmin_more= (date_dif gt 30);&lt;BR /&gt;
   end;&lt;BR /&gt;
   label&lt;BR /&gt;
      readmin_7   = 'Readmit within 7 days'&lt;BR /&gt;
      readmin_14  = 'Readmit within 14 days'&lt;BR /&gt;
      readmin_21  = 'Readmit within 21 days'&lt;BR /&gt;
      readmin_30  = 'Readmit within 30 days'&lt;BR /&gt;
      readmin_more= 'Readmit more than 30 days'&lt;BR /&gt;
   ;&lt;BR /&gt;
   format admin_date last_admin_date mmddyy10.;&lt;BR /&gt;
run;&lt;BR /&gt;
/* you could drop the last_admin_date and the date_dif variables after your&lt;BR /&gt;
  comfortable they are working correctly. */&lt;BR /&gt;
&lt;BR /&gt;
/* get a count by visit of each readmin group*/&lt;BR /&gt;
proc tabulate data=[new data set name];&lt;BR /&gt;
   class patient_id;&lt;BR /&gt;
   var readmin_7 readmin_14 readmin_21 readmin_30 readmin_more;&lt;BR /&gt;
   table patient_id='Patient,&lt;BR /&gt;
            (readmin_7 readmin_14 readmin_21 readmin_30 readmin_more)*sum='';&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 25 Jan 2011 16:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Finding-Patient-Readmits/m-p/70191#M1642</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-01-25T16:28:23Z</dc:date>
    </item>
  </channel>
</rss>

