<?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: How to sum the number of patient admissions for a certain time period? in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-sum-the-number-of-patient-admissions-for-a-certain-time/m-p/13171#M888</link>
    <description>to count admissions for patient x between '01jan2010'd and '31jan2010'd:&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
select count(*) as Admissions&lt;BR /&gt;
from tabla&lt;BR /&gt;
where patientid=xxx &lt;BR /&gt;
and startdate le '31jan2010'd &lt;BR /&gt;
and enddate ge '01jan2010'd;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
counts any admission that starts or ends during Jan 2011 or encompasses the whole month.

Message was edited by: DBailey</description>
    <pubDate>Fri, 18 Feb 2011 22:08:39 GMT</pubDate>
    <dc:creator>DBailey</dc:creator>
    <dc:date>2011-02-18T22:08:39Z</dc:date>
    <item>
      <title>How to sum the number of patient admissions for a certain time period?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-sum-the-number-of-patient-admissions-for-a-certain-time/m-p/13170#M887</link>
      <description>I have a dataset containing patient admissions 'numadmit' and their stay period within a facility ('startdate' and 'enddate'). Each patient has a unique 'ID' but may have many records, one for each admission.  Each admission has a 'startdate' and 'enddate'. These dates may be the same for multiple admissions.  &lt;BR /&gt;
&lt;BR /&gt;
How do I sum up the number of admissions for a particular patient for a certain period?&lt;BR /&gt;
&lt;BR /&gt;
For example, I patient 'A' has 3 different 'numadmit' each equal to 1 for that record.  The time period 'startdate' to 'enddate' are the same for each of the 3 admissions but this patient also has other entries with different date. How can I sum the number of admissions (in this case the sum would equal 3) for that patient within this period and also sum the number of admissions (this sum would be in a different record for the patient) for the other time period?</description>
      <pubDate>Fri, 18 Feb 2011 17:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-sum-the-number-of-patient-admissions-for-a-certain-time/m-p/13170#M887</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-18T17:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the number of patient admissions for a certain time period?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-sum-the-number-of-patient-admissions-for-a-certain-time/m-p/13171#M888</link>
      <description>to count admissions for patient x between '01jan2010'd and '31jan2010'd:&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
select count(*) as Admissions&lt;BR /&gt;
from tabla&lt;BR /&gt;
where patientid=xxx &lt;BR /&gt;
and startdate le '31jan2010'd &lt;BR /&gt;
and enddate ge '01jan2010'd;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
counts any admission that starts or ends during Jan 2011 or encompasses the whole month.

Message was edited by: DBailey</description>
      <pubDate>Fri, 18 Feb 2011 22:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-sum-the-number-of-patient-admissions-for-a-certain-time/m-p/13171#M888</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-02-18T22:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum the number of patient admissions for a certain time period?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-sum-the-number-of-patient-admissions-for-a-certain-time/m-p/13172#M889</link>
      <description>If it is detail level data then simply counting rows/summing of numadmit is not actual admissions.&lt;BR /&gt;
&lt;BR /&gt;
SD</description>
      <pubDate>Tue, 22 Mar 2011 16:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-sum-the-number-of-patient-admissions-for-a-certain-time/m-p/13172#M889</guid>
      <dc:creator>sivaji</dc:creator>
      <dc:date>2011-03-22T16:34:35Z</dc:date>
    </item>
  </channel>
</rss>

