<?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: Need Help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527295#M143725</link>
    <description>i have attached the bat file.</description>
    <pubDate>Sun, 06 Jun 2021 09:04:31 GMT</pubDate>
    <dc:creator>Guptashwe</dc:creator>
    <dc:date>2021-06-06T09:04:31Z</dc:date>
    <item>
      <title>Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527288#M143721</link>
      <description>&lt;P&gt;Cough is identified using ICD-9/10 codes from the claims databases. Whereas, there is no ICD-9/10&lt;BR /&gt;code available to define the chronic stage of cough. The objective of the problem is to identify&lt;BR /&gt;patients who have been diagnosed with chronic cough between 2007 and 2009. These patients will&lt;BR /&gt;be then assessed for their demographic characteristics. The following algorithm is deigned to&lt;BR /&gt;identify chronic cough patients:&lt;BR /&gt;A patient having at least three inpatient/outpatient claims for cough within the time window of 120&lt;BR /&gt;days anytime, between 2007 and 2009.&lt;BR /&gt;The following dataset has patients with service dates for cough from 2007 and 2009. Identify&lt;BR /&gt;patients diagnosed with chronic cough between 2007 and 2009.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Problem 2.jpg" style="width: 332px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26277i3F8FF8F88532D76E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Problem 2.jpg" alt="Problem 2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527288#M143721</guid>
      <dc:creator>Guptashwe</dc:creator>
      <dc:date>2019-01-15T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527292#M143722</link>
      <description>&lt;P&gt;Please post your data in usable form. Pictures can &lt;FONT size="4"&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;/FONT&gt; be used in SAS. See my footnotes.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527292#M143722</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-15T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527294#M143724</link>
      <description />
      <pubDate>Tue, 15 Jan 2019 13:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527294#M143724</guid>
      <dc:creator>Guptashwe</dc:creator>
      <dc:date>2019-01-15T13:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527295#M143725</link>
      <description>i have attached the bat file.</description>
      <pubDate>Sun, 06 Jun 2021 09:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527295#M143725</guid>
      <dc:creator>Guptashwe</dc:creator>
      <dc:date>2021-06-06T09:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527300#M143729</link>
      <description>&lt;P&gt;Assuming that your data already embodies much of the work that needs to be done:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The observations include only cough-related observations&lt;/LI&gt;
&lt;LI&gt;The observations are already subset for the years 2007 through 2009&lt;/LI&gt;
&lt;LI&gt;The observations are in order by ENROLID SVCDATE&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All that remains is to identify patients that have 3 observations within a 120-day window.&amp;nbsp; Here is an approach to do that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;id_counter=0;&lt;/P&gt;
&lt;P&gt;chronic='N';&lt;/P&gt;
&lt;P&gt;do until (last.enrolid);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;by enrolid svcdate;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;id_counter + 1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;if dif2(svcdate) &amp;lt;= 120 and id_counter &amp;gt;= 3 then chronic='Y';&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;do until (last.enrolid);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;by enrolid;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;drop id_counter;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The top loop processes observations for one ENROLID, setting CHRONIC to Y or N.&amp;nbsp; The bottom loop processes the same observations, outputting them with the assigned value for CHRONIC.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help/m-p/527300#M143729</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-15T13:58:12Z</dc:date>
    </item>
  </channel>
</rss>

