<?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: Overlapping days supply: Defining gaps and identifying episodes? in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Overlapping-days-supply-Defining-gaps-and-identifying-episodes/m-p/559994#M2266</link>
    <description>&lt;P&gt;Your question is missing some text after "If gap btw the two prescription is less than 6 days, "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please edit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you looking for overlaps between drug A and drug B or within the same drug?&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 02:49:23 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-05-20T02:49:23Z</dc:date>
    <item>
      <title>Overlapping days supply: Defining gaps and identifying episodes?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Overlapping-days-supply-Defining-gaps-and-identifying-episodes/m-p/559992#M2265</link>
      <description>&lt;P&gt;Hello,&amp;amp;nbsp;&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;I am trying to determine whether each patient has a gap btw the two prescriptions (drug A and B) and&amp;nbsp; episode is same within each patient ID.&lt;BR /&gt;&lt;BR /&gt;/*PDC for drug a*/&lt;BR /&gt;data pd1;&lt;BR /&gt;set drugA_datedays;&lt;BR /&gt;array daydummy(1460) day1-day1460;/*set up an array that has 1460 variables: day1 to day 1460 ie 4 years*/&lt;BR /&gt;array dd(*) dispdate1 - dispdate220; /* The highest number of Rxs and set up an array for the dispense date*/&lt;BR /&gt;array ss(*) days_supply1-days_supply220; /* same for days supply*/&lt;BR /&gt;do ii=1 to 1460; daydummy(ii)=0;end;&lt;BR /&gt;do ii=1 to 1460;/*Loop will go from 1-365. Outer loop process inner loop 365 times*/&lt;BR /&gt;do i = 1 to dim(dd) while (dd(i) ne .);&lt;BR /&gt;/*for each person, loop through their total number of Rxs.&lt;BR /&gt;Will continue to count as long as there is not a ‘.’ For dd (dispdate); dim returns how many are in the array*/&lt;BR /&gt;if dd(i)&amp;amp;lt;= start_dt + ii -1 &amp;amp;lt;= dd(i)+ss(i)-1&lt;BR /&gt;then daydummy(ii)=1;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;drop i ii;&lt;BR /&gt;dayscovered=sum(of day1 - day1460);&lt;BR /&gt;label dayscovered='Total Days Covered';&lt;BR /&gt;p_dayscovered=(dayscovered/1460)*100;&lt;BR /&gt;label p_dayscovered='Proportion of Days Covered';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 12:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Overlapping-days-supply-Defining-gaps-and-identifying-episodes/m-p/559992#M2265</guid>
      <dc:creator>Imek</dc:creator>
      <dc:date>2020-04-02T12:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping days supply: Defining gaps and identifying episodes?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Overlapping-days-supply-Defining-gaps-and-identifying-episodes/m-p/559994#M2266</link>
      <description>&lt;P&gt;Your question is missing some text after "If gap btw the two prescription is less than 6 days, "&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please edit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you looking for overlaps between drug A and drug B or within the same drug?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 02:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Overlapping-days-supply-Defining-gaps-and-identifying-episodes/m-p/559994#M2266</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-05-20T02:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping days supply: Defining gaps and identifying episodes?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Overlapping-days-supply-Defining-gaps-and-identifying-episodes/m-p/560690#M2267</link>
      <description>&lt;P&gt;Thank you for catching my error:) I am looking for overlaps between drug A and B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 23:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Overlapping-days-supply-Defining-gaps-and-identifying-episodes/m-p/560690#M2267</guid>
      <dc:creator>Imek</dc:creator>
      <dc:date>2019-05-21T23:27:53Z</dc:date>
    </item>
  </channel>
</rss>

