<?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: Count number of hours, and or minutes, more than 24h in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239192#M17202</link>
    <description>&lt;P&gt;Which day? The day they got in, got out, or the total number of hour-person waited every day in ER?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2015 16:39:07 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2015-12-14T16:39:07Z</dc:date>
    <item>
      <title>Count number of hours, and or minutes, more than 24h</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239079#M17197</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data set with wait time data.&lt;/P&gt;
&lt;P&gt;exemple:&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="415"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100"&gt;Patient&lt;/TD&gt;
&lt;TD width="139"&gt;Admission date/time&lt;/TD&gt;
&lt;TD width="108"&gt;Left ER date time&lt;/TD&gt;
&lt;TD width="68"&gt;Wait time&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;2015-11-02 5:00&lt;/TD&gt;
&lt;TD&gt;2015-11-02 19:30&lt;/TD&gt;
&lt;TD&gt;14:30:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;TD&gt;2015-11-05 8:12&lt;/TD&gt;
&lt;TD&gt;2015-11-05 17:30&lt;/TD&gt;
&lt;TD&gt;9:18:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;C&lt;/TD&gt;
&lt;TD&gt;2015-11-14 5:00&lt;/TD&gt;
&lt;TD&gt;2015-11-15 19:30&lt;/TD&gt;
&lt;TD&gt;38:30:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Total wait time&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;62:18:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to be able to count the total number (in hours and in minutes) waiting time in the room.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 00:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239079#M17197</guid>
      <dc:creator>LVeilleux</dc:creator>
      <dc:date>2015-12-14T00:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of hours, and or minutes, more than 24h</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239084#M17198</link>
      <description>&lt;P&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;wait_time=intck('second',input(admission_dt,anydtdtm.), input(left_dt,anydtdtm.));&lt;BR /&gt;format wait_time time8.;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 01:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239084#M17198</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2015-12-14T01:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of hours, and or minutes, more than 24h</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239090#M17199</link>
      <description>&lt;P&gt;Wait duration is simply the difference between the datetimes. Give the difference a &lt;STRONG&gt;hhmm8.&lt;/STRONG&gt; format to display hours (may be more than 24) and minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;waitTime = left_ER_DT - admission_DT;&lt;/P&gt;
&lt;P&gt;format waitTime hhmm8.;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 03:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239090#M17199</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-14T03:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of hours, and or minutes, more than 24h</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239131#M17200</link>
      <description>&lt;P&gt;Hi, thank you for the answer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can calculate the wait for each patient using the difference between the datetimes but after that, I need to calculate the&amp;nbsp;mean of all patient wait by day and doesn't seem that I can do just a mean&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 12:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239131#M17200</guid>
      <dc:creator>LVeilleux</dc:creator>
      <dc:date>2015-12-14T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of hours, and or minutes, more than 24h</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239192#M17202</link>
      <description>&lt;P&gt;Which day? The day they got in, got out, or the total number of hour-person waited every day in ER?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 16:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239192#M17202</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-14T16:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of hours, and or minutes, more than 24h</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239221#M17203</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;They ask me:&amp;nbsp; by month,day and hour of the day using the registration Date&lt;/P&gt;
&lt;P&gt;They want the average wait in minutes and in hours (and not in this file exemple but I will need to give the information by service and by unit of admission)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="513"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="80"&gt;
&lt;P data-message-id="239079"&gt;Patient&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="117"&gt;Registration Date&lt;/TD&gt;
&lt;TD width="114"&gt;Admission date/time&lt;/TD&gt;
&lt;TD width="122"&gt;Left ER date time&lt;/TD&gt;
&lt;TD width="80"&gt;Wait time&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="80"&gt;A&lt;/TD&gt;
&lt;TD width="117"&gt;2015-11-02 2:00&lt;/TD&gt;
&lt;TD width="114"&gt;2015-11-02 5:00&lt;/TD&gt;
&lt;TD width="122"&gt;2015-11-02 19:30&lt;/TD&gt;
&lt;TD width="80"&gt;14:30:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="80"&gt;B&lt;/TD&gt;
&lt;TD width="117"&gt;2015-11-05 4:12&lt;/TD&gt;
&lt;TD width="114"&gt;2015-11-05 8:12&lt;/TD&gt;
&lt;TD width="122"&gt;2015-11-05 17:30&lt;/TD&gt;
&lt;TD width="80"&gt;9:18:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="80"&gt;C&lt;/TD&gt;
&lt;TD width="117"&gt;2015-11-14 3:00&lt;/TD&gt;
&lt;TD width="114"&gt;2015-11-14 5:00&lt;/TD&gt;
&lt;TD width="122"&gt;2015-11-15 19:30&lt;/TD&gt;
&lt;TD width="80"&gt;38:30:00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 14 Dec 2015 18:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239221#M17203</guid>
      <dc:creator>LVeilleux</dc:creator>
      <dc:date>2015-12-14T18:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of hours, and or minutes, more than 24h</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239225#M17204</link>
      <description>&lt;P&gt;Then it' s simple&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table waitTimes as
select 
	datepart(registrationDT) as registrationDate format=yymmdd10.,
	mean(left_ER_DT-Admission_DT) as waitTime format=hhmm8.
from myData
group by calculated registrationDate;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Dec 2015 18:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239225#M17204</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-14T18:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of hours, and or minutes, more than 24h</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239746#M17228</link>
      <description>&lt;P&gt;Thank you, it's working well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Line&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 14:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-hours-and-or-minutes-more-than-24h/m-p/239746#M17228</guid>
      <dc:creator>LVeilleux</dc:creator>
      <dc:date>2015-12-17T14:05:00Z</dc:date>
    </item>
  </channel>
</rss>

