<?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 Patient Readmits Specific Group in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Patient-Readmits-Specific-Group/m-p/111687#M1817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SAS 9.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With BallardW's help, I use the following code to determine readmits in my patient database:&lt;/P&gt;&lt;P&gt;Data readmits;&lt;BR /&gt;set work.AllData;&lt;BR /&gt;by chartno admdate sepdate;&lt;BR /&gt;last_sepdate=lag(sepdate);&lt;BR /&gt;date_dif = admdate - last_sepdate;&lt;BR /&gt;/* create some 0/1 coded variables to get counts by summing*/&lt;BR /&gt;if first.chartno 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;/P&gt;&lt;P&gt;&lt;BR /&gt;format admdate ddmmyy10. sepdate ddmmyy10. &lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, now I want it so that the index case for looking for readmits is specific i.e. a certain doctor and certain procedures (prostatectomy).&amp;nbsp; I tried initially to run the above and then pluck out readmits for the cases but I ended up with visits that aren't related i.e. the index case was a readmit to another visit which I don't want.&amp;nbsp; Initially I thought I would create a table of just the index cases and then a table of all other visits but I don't know how I would compare the two to determine readmits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance greatly appreciated - thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 02:50:22 GMT</pubDate>
    <dc:creator>shellp55</dc:creator>
    <dc:date>2013-01-02T02:50:22Z</dc:date>
    <item>
      <title>Patient Readmits Specific Group</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Patient-Readmits-Specific-Group/m-p/111687#M1817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SAS 9.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With BallardW's help, I use the following code to determine readmits in my patient database:&lt;/P&gt;&lt;P&gt;Data readmits;&lt;BR /&gt;set work.AllData;&lt;BR /&gt;by chartno admdate sepdate;&lt;BR /&gt;last_sepdate=lag(sepdate);&lt;BR /&gt;date_dif = admdate - last_sepdate;&lt;BR /&gt;/* create some 0/1 coded variables to get counts by summing*/&lt;BR /&gt;if first.chartno 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;/P&gt;&lt;P&gt;&lt;BR /&gt;format admdate ddmmyy10. sepdate ddmmyy10. &lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, now I want it so that the index case for looking for readmits is specific i.e. a certain doctor and certain procedures (prostatectomy).&amp;nbsp; I tried initially to run the above and then pluck out readmits for the cases but I ended up with visits that aren't related i.e. the index case was a readmit to another visit which I don't want.&amp;nbsp; Initially I thought I would create a table of just the index cases and then a table of all other visits but I don't know how I would compare the two to determine readmits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance greatly appreciated - thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 02:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Patient-Readmits-Specific-Group/m-p/111687#M1817</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2013-01-02T02:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Readmits Specific Group</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Patient-Readmits-Specific-Group/m-p/111688#M1818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;index case for looking for readmits is specific i.e. a certain doctor and certain procedures (prostatectomy). &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Are you referring to the index case here or the readmits that are specific? I'm not clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, usually you change your by groupings when you need something like this. I'd need more details to make sure this works in your scenario.&lt;/P&gt;&lt;P&gt;Right now you have the following, and although you don't use admit date and separation date they ensure the data is sorted appropriately. &lt;/P&gt;&lt;P&gt;by chartno admdate sepdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can expand this by sorting by doctor/procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by chartno doctor procedure admtdate sepdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then using by.procedure instead of by.chartno to change your specifications.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 15:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Patient-Readmits-Specific-Group/m-p/111688#M1818</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-02T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Patient Readmits Specific Group</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Patient-Readmits-Specific-Group/m-p/111689#M1819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll provide some sample data soon but just to clarify, I used as you suggested but found that it wasn't calculating the different readmit status of 7, 14, 21 and 30 days, only showing the date_diff time.&amp;nbsp; Also, the readmit information is attached to the readmit case, not the original case. This is still somewhat useful but what I really want is that the initial case for this doctor/procedure (which I'm calling the index case) has the readmit information attached to it which is why I was wondering whether there should be two data sets merged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if chartno 555555 has the criteria of doctor/procedure, then attached to that record is a series of data elements from the 1st readmission, then the second readmission etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if this makes sense and I apologize if it doesn't.&amp;nbsp; I'll post sample data soon.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 22:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Patient-Readmits-Specific-Group/m-p/111689#M1819</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2013-01-02T22:10:19Z</dc:date>
    </item>
  </channel>
</rss>

