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 (March 1998, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 2 Mar 1998 15:36:47 -0500
Reply-To:     Michael Braten <Michael_Braten@AFE.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Michael Braten <Michael_Braten@AFE.COM>
Subject:      Re: Count Patient Days
Comments: To: madoc@IBM.NET
Content-type: text/plain; charset=US-ASCII

Hi .

First, if you have repetative observations then sort by patient ID remembering to remove dups .

Second to determine the Length of Stay (los) use the INTCK function:

LOS = INTCK('day',disday, admitday);

This will give you the number of days between the SAS dates of admit and discaharge. (be sure you handle situations where patient was Admitted and Discharged in same day).

MAke sure LOS is retained so that the value is accumulated for multiple stays (that assumes that the dataset is sorted by PID and that you use FIRST. and LAST.

Hope this helped !

______________________________ Reply Separator ____________________________ _____ Subject: Count Patient Days Author: madoc@IBM.NET at TIME_INC Date: 3/2/98 2:03 PM

Hello! I need to count patient days by each patient. Below are seven records showing a typical admission and discharge pattern within one year. ADMITDAY DISDAY PID 08APR96 27APR96 01 08MAY96 10JUL96 01 08MAY96 10JUL96 01 08MAY96 10JUL96 01 08MAY96 10JUL96 01 08MAY96 10JUL96 01 12JUL96 15JUL96 01 This particular patient actually entered the hospital on three separate occasions, 8 April 1996, 8 May 1996, and 12 July 1996. Included on each record is more information telling what was done to them. I can handle those problems. What I have not yeat been able to do is to sum the days FOR EACH PATIENT that they were in the hospital. In the example above, the correct count would be 85 days (19+63+3). How do I program SAS to do this? Randy


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