<?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: Length Of Stay in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Length-Of-Stay/m-p/440728#M110164</link>
    <description>&lt;P&gt;If your dates are SAS dates then the SQL column expression should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;intck("day", admissionDate, dischargeDate) + 1 as lengthOfStay&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;+ 1 is assuming that a patient admitted and discharged on the same day will have a length of stay of 1 day.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 02:00:41 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-02-28T02:00:41Z</dc:date>
    <item>
      <title>Length Of Stay</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-Of-Stay/m-p/440709#M110158</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;how to calculate the length of stay for a group of patients using SQL query, I do have a table which contain Patient Id, Date of admission, date of discharge.&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 00:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-Of-Stay/m-p/440709#M110158</guid>
      <dc:creator>Samsami</dc:creator>
      <dc:date>2018-02-28T00:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Length Of Stay</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-Of-Stay/m-p/440712#M110159</link>
      <description>&lt;P&gt;This should be straightforward because SAS dates are just formatted numbers so subtracting one from the other should give you the length of stay. However if you want something more precise you'll have to give us more details - check out this post for how to frame your question so we can help you better (in particular we'd need some sample data).&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Support-Communities/How-to-ask-a-good-question-and-receive-a-fast-reply/ta-p/417192" target="_blank"&gt;https://communities.sas.com/t5/SAS-Support-Communities/How-to-ask-a-good-question-and-receive-a-fast-reply/ta-p/417192&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 01:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-Of-Stay/m-p/440712#M110159</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-02-28T01:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Length Of Stay</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-Of-Stay/m-p/440728#M110164</link>
      <description>&lt;P&gt;If your dates are SAS dates then the SQL column expression should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;intck("day", admissionDate, dischargeDate) + 1 as lengthOfStay&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;+ 1 is assuming that a patient admitted and discharged on the same day will have a length of stay of 1 day.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 02:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-Of-Stay/m-p/440728#M110164</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-02-28T02:00:41Z</dc:date>
    </item>
  </channel>
</rss>

