LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2011, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 7 Jan 2011 16:26:51 -0500
Reply-To:     HIMS <hims.sperritt@SYMPATICO.CA>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         HIMS <hims.sperritt@SYMPATICO.CA>
Subject:      Re: Calculating Readmissions
Comments: To: Arthur Tabachneck <art297@ROGERS.COM>
In-Reply-To:  <201101072115.p07K5F6Z026117@wasabi.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"

Hi

I would only want to output 30 records with the readmit columns attached to the original visit. Thanks.

Shelley

-----Original Message----- From: Arthur Tabachneck [mailto:art297@ROGERS.COM] Sent: Friday, January 07, 2011 4:16 PM To: SAS-L@LISTSERV.UGA.EDU; Shelley Perritt Subject: Re: Calculating Readmissions

Shelly,

If you have 30 patients and 2 of them were readmitted once, are you trying to output 30 records or 32 records? If it is 30 records, what is the relevance of the admission and separation dates in your final output?

Conversely, if it is 32 records, do you want the same 30, 60 and 90 readmission information on each of the 2 records for a given patient?

Art ------- On Fri, 7 Jan 2011 16:04:18 -0500, HIMS <hims.sperritt@SYMPATICO.CA> wrote:

>Hi > >Thanks. I will check out what you've done but I thought I would >explain what I'm trying to do. > >What I want is to take each line of data which equals one hospital >visit and >see if that patient was readmitted within 30, 60 or 90 days. The data >is sorted by chartno which is the unique identifier for the patient. >So then when I group the data on that patient, I'll see 3 new columns >of 30, 60 or 90 day readmits. > >Shelley > >-----Original Message----- >From: Arthur Tabachneck [mailto:art297@ROGERS.COM] >Sent: Friday, January 07, 2011 3:58 PM >To: SAS-L@LISTSERV.UGA.EDU; Shelley Perritt >Subject: Re: Calculating Readmissions > >Shelly, > >I don't think that your code is doing what you expect it to do. > >You are using what is known as a DOW loop, but not completely. If you >insert some putlog _all_ statements in your code, just before the end >of the >two iterations, you'll see that you are not always reading the data >that you >think you are reading. > >The following MAY do what you want the program to do, but you are the >one who has to understand the code and make sure it is really doing >what you want. I didn't take the time to try to figure out what you >might really be trying to do. Thus the following reduced version of >your code, with some really contrived data, is ONLY being offered as an >example. Not knowing what you are really trying to do, or having the >time to study it, it is the best I can offer. > >Art <snip>


Back to: Top of message | Previous page | Main SAS-L page