<?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: check whether any date ranges for a patient overlap in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/check-whether-any-date-ranges-for-a-patient-overlap/m-p/405569#M98685</link>
    <description>&lt;P&gt;Use the lag() function to retrieve the enddate of the previous observation, and compare that with the filldate of the current obs.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2017 14:40:24 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-10-19T14:40:24Z</dc:date>
    <item>
      <title>check whether any date ranges for a patient overlap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-any-date-ranges-for-a-patient-overlap/m-p/405560#M98677</link>
      <description>&lt;P&gt;I work on health care claims and right now I have a task to determine if any date ranges for a single patient overlap and I need to count the number of overlapping days for each date range for that patient. Here is the snap shot of the data. Also for the overlapping days I need to calculate the total dosage and also calculate the average dose for those overlapping days. Any help is greatly appreciated.&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="overlapping date ranges" style="width: 376px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16011i0524DFFDEB84C09A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="overlapping date ranges" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;overlapping date ranges&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-any-date-ranges-for-a-patient-overlap/m-p/405560#M98677</guid>
      <dc:creator>ask77</dc:creator>
      <dc:date>2017-10-19T14:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: check whether any date ranges for a patient overlap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-any-date-ranges-for-a-patient-overlap/m-p/405569#M98685</link>
      <description>&lt;P&gt;Use the lag() function to retrieve the enddate of the previous observation, and compare that with the filldate of the current obs.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-any-date-ranges-for-a-patient-overlap/m-p/405569#M98685</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-19T14:40:24Z</dc:date>
    </item>
  </channel>
</rss>

